@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@300;400&family=Noto+Sans+JP:wght@300;400&family=Noto+Serif+JP:wght@500;600&display=swap');

:root {
    /* Colors */
    --color-primary: #1A1A1A;     /* Sumi-Ink */
    --color-background: #FDFCF8;  /* Washi-White */
    --color-accent: #B5935A;      /* Kinsa-Gold */
    --color-surface: #F2F2F2;      /* Silk-Gray */
    --color-sub-accent: #2C3E50;   /* Indigo-Blue */
    --color-white: #FFFFFF;

    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;

    /* Spacing */
    --margin-desktop: 80px;
    --margin-mobile: 24px;
    --section-spacing: clamp(60px, 10vw, 140px);
    --header-height-pc: 140px;
    --header-height-mb: 100px;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background);
    color: var(--color-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.05em;
}

h1 { 
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    line-height: 1.1; 
}
h2 { 
    font-size: clamp(1.8rem, 5vw, 2.5rem); 
    line-height: 1.2; 
    margin-bottom: 2rem; 
}
h3 { 
    font-size: clamp(1.3rem, 3vw, 1.5rem); 
    line-height: 1.3; 
}

p { font-weight: 400; margin-bottom: 1.5rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--margin-desktop);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--margin-mobile);
    }
}

section {
    padding: var(--section-spacing) 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

nav ul li a:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(26, 26, 26, 0.2);
    background: rgba(253, 252, 248, 0.85);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
    will-change: opacity;
}

.hero-slide.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Grid/Cards */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.collection-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.collection-link-card {
    display: block;
}

.collection-link-card .card-content {
    margin-top: 1.2rem;
}

.collection-top-img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.image-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Collection preview (260x400) */
.collection-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto;
}

.collection-preview-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.collection-preview-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 260 / 400;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.collection-preview-grid a:hover img {
    transform: scale(1.03);
}

.image-grid a {
    display: block;
    overflow: hidden;
}

.image-grid a img {
    transition: var(--transition-smooth);
}

.image-grid a:hover img {
    transform: scale(1.03);
}

.concept-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0 0;
}

.concept-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.concept-digest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.concept-main-image {
    width: 100%;
    border-radius: 0;
    display: block;
}

.concept-digest {
    margin-bottom: 3rem;
}

.hero {
    margin-bottom: 3rem;
}

.card {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--color-surface);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.sp-padding {
    padding: clamp(2rem, 5vw, 4rem);
}

.sp-margin {
    margin: clamp(2rem, 5vw, 4rem) 0;
}

.text-center { text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .nav-toggle { display: inline-flex; }
    .nav-container { position: relative; }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-background);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }
    header.nav-open nav {
        opacity: 1;
        visibility: visible;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    nav ul li a {
        font-size: 1.5rem;
        font-family: var(--font-serif);
    }
    header.nav-open .nav-toggle {
        z-index: 1001;
        border-color: transparent;
        background: transparent;
    }
    header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    .hero { height: 70vh; min-height: 500px; }
    .collection-grid { grid-template-columns: 1fr; }
    .collection-links { grid-template-columns: 1fr; }
    .image-grid { grid-template-columns: 1fr; }
    .collection-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .concept-gallery { grid-template-columns: 1fr; }
    .concept-digest-grid { grid-template-columns: 1fr; gap: 2rem; }
    .concept-digest { margin-bottom: 2rem; }
    .hero { margin-bottom: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
}

@media (max-width: 480px) {
}

@media (max-width: 1024px) {
    .collection-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* YouTube Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCでは横2列 */
    gap: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9のアスペクト比を維持 */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}

.video-footer-spacing {
    margin-bottom: 6rem;
}

/* モバイル対応：768px以下で縦並び */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* スマホでは縦1列 */
        gap: 1.5rem;
    }

    .video-footer-spacing {
        margin-bottom: 4rem;
    }
}

/* --- ロゴを大胆に大きく表示する設定 --- */

/* 1. ロゴの親要素：高さを十分に確保し、中央に配置 */
.logo {
    display: flex;
    align-items: center;
    padding: 10px 0; /* 上下余白を微調整 */
    text-decoration: none;
    z-index: 1001;
}

/* 2. ロゴ画像本体：高さを80pxまで拡大 */
.logo-img {
    height: 80px;    /* 以前の60pxからさらに拡大 */
    width: auto;     /* アスペクト比を維持 */
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* 視認性を高める影を微かに追加 */
    transition: var(--transition-smooth);
}

/* 3. スクロール時の挙動：圧迫感を抑えるため、スクロール後は50pxに縮小 */
header.scrolled .logo-img {
    height: 50px;
}

/* 4. モバイル対応：画面幅に合わせつつ、しっかり目立たせる */
@media (max-width: 768px) {
    .logo-img {
        height: 55px; /* スマホでも存在感のあるサイズに変更 */
    }
    
    /* ヘッダー全体の高さを確保 */
    header {
        padding: 0.5rem 0;
    }
}

/* 5. レイアウト補正：ロゴが大きくなった分、メインコンテンツの開始位置を下げる */
main {
    padding-top: var(--header-height-pc) !important;
}

@media (max-width: 768px) {
    main {
        padding-top: var(--header-height-mb) !important;
    }
}

