/*
Theme Name: ipeace-v2
Author: 
Description: A new WordPress theme for i.PEACE based on the updated design.
Version: 1.0.0
Text Domain: ipeace-v2
*/

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

        :root {
            --bg: #CCD5D9;
            --bg-light: #CDD2D3;
            --ink: #1A1310;
            --ink-soft: #2C2420;
            --white: #FFFFFF;
            --white-soft: rgba(255, 255, 255, 0.85);
            --white-muted: rgba(255, 255, 255, 0.55);
            --dark: #333333;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: var(--bg);
            color: var(--ink);
            font-family: 'Noto Sans JP', sans-serif;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            position: relative;
            text-align: center;
        }

        /* ===== ANIMATIONS ===== */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
        }

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

        /* ===== HERO SECTION ===== */
        .hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 0 20px;
            background: var(--bg);
            position: relative;
        }

        .hero-image-container {
            width: 100%;
            max-width: 770px;
            margin: 0 auto 140px;
            padding: 40px 20px 0;
            animation: fadeIn 2s ease-out 0.5s both;
        }

        .hero-image-container img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* ===== PHILOSOPHY SECTION ===== */
        .philosophy-section {
            background: var(--bg);
            padding: 80px 40px 100px;
        }

        .philosophy-inner {
            max-width: 820px;
            margin: 0 auto;
        }

        .philosophy-heading {
            font-family: 'Noto Serif JP', serif;
            font-weight: 600;
            font-size: clamp(22px, 4.5vw, 32px);
            line-height: 1.7;
            color: var(--white);
            margin-bottom: 40px;
            letter-spacing: 1px;
        }

        .philosophy-body {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 16px;
            font-weight: 700;
            line-height: 2.2;
            color: var(--white-soft);
            letter-spacing: 0.5px;
        }

        .philosophy-body p {
            margin-bottom: 0;
        }

        /* ===== DIVIDER ===== */
        .section-divider {
            width: 100%;
            max-width: 820px;
            margin: 0 auto;
            border: none;
            border-top: 1px solid rgba(26, 19, 16, 0.2);
        }

        /* ===== i.PEACE NAME SECTION ===== */
        .name-section {
            background: var(--bg);
            padding: 80px 40px 60px;
            position: relative;
            overflow: visible;
        }

        .name-inner {
            max-width: 820px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .name-logo {
            display: flex;
            align-items: baseline;
            justify-content: center;
            margin-bottom: 40px;
        }

        .name-logo .logo-i {
            font-family: 'EB Garamond', serif;
            font-style: italic;
            font-weight: 400;
            font-size: 64px;
            color: var(--white);
            line-height: 1;
        }

        .name-logo .logo-dot {
            font-family: 'EB Garamond', serif;
            font-size: 64px;
            color: var(--white);
            line-height: 1;
        }

        .name-logo .logo-peace {
            font-family: 'Playfair Display', serif;
            font-weight: 400;
            font-size: 36px;
            color: var(--white);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .name-desc {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 16px;
            font-weight: 700;
            line-height: 2.2;
            color: var(--white-soft);
            letter-spacing: 0.5px;
        }

        .name-desc p {
            margin-bottom: 16px;
        }

        .name-desc p:last-child {
            margin-bottom: 0;
        }

        /* ===== 5 PILLARS SECTION ===== */
        .pillars-section {
            background: var(--bg);
            padding: 80px 40px 40px;
            position: relative;
            overflow: visible;
        }

        .pillars-inner {
            max-width: 820px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .pillars-label {
            font-family: 'Cormorant Garamond', serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 5px;
            text-transform: uppercase;
            color: var(--white-muted);
            margin-bottom: 8px;
        }

        .pillars-title {
            font-family: 'Noto Sans JP', sans-serif;
            font-weight: 700;
            font-size: clamp(24px, 5vw, 32px);
            color: var(--white);
            margin-bottom: 6px;
        }

        .pillars-subtitle {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: clamp(24px, 5vw, 32px);
            font-weight: 400;
            color: var(--white);
            letter-spacing: 1px;
            margin-bottom: 24px;
        }

        .pillars-desc {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 16px;
            font-weight: 700;
            line-height: 2.2;
            color: var(--white-soft);
            margin-bottom: 50px;
            letter-spacing: 0.5px;
        }

        .pillars-logos {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: nowrap;
        }

        .pillars-logos .logo-item {
            flex: 0 1 auto;
            min-width: 0;
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }

        .pillars-logos .logo-item img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
            filter: brightness(0) invert(1);
            opacity: 0.85;
        }

        .pillars-logos .logo-finli { width: 133px; }
        .pillars-logos .logo-nodie { width: 152px; }
        .pillars-logos .logo-maaaru { width: 90px; }
        .pillars-logos .logo-peace { width: 96px; }
        .pillars-logos .logo-aquia { width: 142px; }

        /* ===== PROJECT SECTIONS ===== */
        .project-section {
            background: var(--bg);
            padding: 80px 40px 100px;
            position: relative;
            overflow: visible;
        }

        .project-inner {
            max-width: 820px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        /* ===== DECORATIVE IMAGES ===== */
        .deco-img {
            position: absolute;
            z-index: 1;
            pointer-events: none;
        }

        .deco-right {
            right: 0;
            top: -40px;
            height: 110%;
            width: auto;
            max-width: 300px;
            object-fit: contain;
            object-position: right top;
        }

        .deco-left {
            left: -10px;
            top: -160px;
            height: 100%;
            width: auto;
            max-width: 152px;
            object-fit: contain;
            object-position: left top;
        }

        .pillars-section .deco-left {
            max-width: 120px;
            top: 10%;
        }

        .project-logo-container {
            text-align: center;
            margin-bottom: 40px;
        }

        .project-logo-circle {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .project-logo-circle svg {
            width: 48px;
            height: 48px;
        }

        .project-logo-circle .project-logo-text {
            font-family: 'EB Garamond', serif;
            font-size: 16px;
            letter-spacing: 3px;
            color: var(--white);
        }

        .project-image {
            width: 100%;
            margin-bottom: 40px;
            overflow: hidden;
        }

        .project-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .project-title {
            font-family: 'EB Garamond', serif;
            font-size: 24px;
            color: var(--white);
            margin-bottom: 0px;
            letter-spacing: 1px;
        }

        #maaaru .project-title {
            font-size: 28px;
        }

        .project-subtitle {
            font-family: 'EB Garamond', serif;
            font-size: 19px;
            color: var(--white);
            margin-bottom: 0px;
            letter-spacing: 1px;
        }

        .project-tag {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 15px;
            font-weight: 700;
            color: var(--white-muted);
            margin-bottom: 16px;
            letter-spacing: 1px;
        }

        .project-desc {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 18px;
            font-weight: 700;
            line-height: 2.2;
            color: var(--white-soft);
            letter-spacing: 0.5px;
        }

        .project-btn {
            display: block;
            width: fit-content;
            margin: 32px auto 0;
            padding: 12px 40px;
            border: 1px solid var(--white-muted);
            color: var(--white);
            text-decoration: none;
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 2px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .project-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--white);
            color: var(--white);
        }

        .sp-only {
            display: none;
        }

        .sp-block {
            display: none;
        }

        /* ===== FOOTER ===== */
        .site-footer {
            background: var(--bg);
            padding: 0 40px 0; /* AQUiAセクション下の余白をそのまま活かすため、フッター上部の余白を0にする */
            display: flex;
            flex-direction: column; /* 縦並びにする */
            justify-content: flex-end; /* 全体を下寄せ */
            align-items: center; /* 左右中央寄せ */
            position: relative;
        }

        .footer-logo {
            margin-bottom: 80px; /* 装飾画像の上の間隔（ボタンと装飾の「真ん中」あたりに来るよう調整） */
            position: relative;
            z-index: 2;
        }

        .footer-logo img {
            height: 80px; /* ロゴのサイズ調整 */
            width: auto;
            display: block;
        }

        .footer-deco {
            width: 100%;
            max-width: 540px; /* PCではさらに1.5倍（360px -> 540px） */
            height: auto;
            object-fit: contain;
            display: block; /* 余分な隙間をなくす */
            position: relative;
            z-index: 1; /* ロゴの下 */
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 640px) {
            html {
                scroll-behavior: auto;
            }

            .reveal {
                transform: translateY(15px);
                transition: opacity 0.6s ease-out, transform 0.6s ease-out;
            }

            .philosophy-section {
                padding: 60px 24px 80px;
            }

            .name-section {
                padding: 60px 24px 40px;
            }

            .pillars-section {
                padding: 60px 24px 30px;
            }

            .project-section {
                padding: 60px 24px 80px;
            }

            .site-footer {
                padding: 0 24px 0; /* スマホ表示時も上部に余白を確保せずAQUiAの余白を活かす */
            }

            .footer-logo {
                margin-bottom: 60px; /* スマホ表示時の間隔 */
            }

            .footer-logo img {
                height: 50px; /* スマホ表示時のロゴサイズ */
            }

            .footer-deco {
                max-width: 360px; /* スマホでは大きくなりすぎないように元の最大幅を維持 */
            }

            .pillars-logos {
                gap: 8px; /* スマホでは隙間を少し詰める */
                justify-content: space-between;
            }

            .philosophy-heading {
                font-size: 22px;
            }

            .philosophy-body,
            .name-desc,
            .pillars-desc,
            .project-desc {
                font-size: 15px;
                line-height: 1.6;
                padding: 0 26px;
            }

            .philosophy-body {
                padding: 0 15px;
            }

            .name-desc {
                padding: 0 25px;
            }

            .project-title {
                font-size: 26px;
            }

            #maaaru .project-title {
                font-size: 30px;
            }

            .project-desc {
                text-align: center;
                padding: 0 45px;
                letter-spacing: 0;
            }

            .hero {
                padding: 0;
            }

            .hero-image-container {
                padding: 40px 0 0;
            }

            .hero-image-container img {
                width: 95%;
                margin: 0 auto;
            }

            .name-logo img {
                height: 100px !important;
                max-width: 100%;
                object-fit: contain;
            }

            .deco-right {
                max-width: 50px; /* スクロール負荷軽減のためさらに縮小 */
                right: 0;
            }

            .deco-left {
                max-width: 35px; /* スクロール負荷軽減のためさらに縮小 */
                left: 0;
                top: -80px;
            }

            .project-logo-circle img {
                height: 135px !important;
            }

            #peace .project-logo-circle img {
                height: 81px !important;
                max-width: 100%;
                object-fit: contain;
            }

            #finli .project-logo-circle img,
            #aquia .project-logo-circle img {
                height: 80px !important;
                max-width: 100%;
            }

            #nodie .project-logo-circle img {
                height: 72px !important;
                max-width: 100%;
            }

            .sp-only {
                display: inline;
            }

            .sp-block {
                display: block;
            }

            .pc-only {
                display: none;
            }

            .pillars-section .deco-left {
                max-width: 45px; /* 少し小さく調整 */
                top: 10%; /* PC版に合わせて10%下に */
            }
        }
