:root {
    --accent-color: #00D9C0;
    --accent-color-rgb: 0, 217, 192;
    --accent-color-light: rgba(0, 217, 192, 0.1);
    --accent-color-text: #00B8A3;
    --accent-secondary: var(--accent-color);
    --accent-navy: #2C3E50;
    --text-color: #2C3E50;
    --bg-white: #F8F9FA;
    --bg-header: rgba(248, 249, 250, 0.70);
    --bg-dark: #2C3E50;
    --gray-light: #E0E0E0;
    --gray-medium: #888888;
    --accent-gold: var(--accent-color);
    --accent-gold-light: rgba(var(--accent-color-rgb), 0.1);
    --font-heading: 'Zen Kaku Gothic New', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', sans-serif;
    --font-accent: 'Outfit', sans-serif;
    --font-main: 'Zen Kaku Gothic New', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', sans-serif;
    --container-width: 1320px;
    --radius-lg: 10px;
    --radius-md: 5px;
}

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

html,
body {
    overflow-x: clip;
    /* hidden -> clip is safer for scrolling */
    width: 100%;
}

html {
    /* JS側でスムーズスクロールを制御するため、CSS側は無効化 */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: clamp(1.6, 2vw, 1.8);
    /* 行間も可変で読みやすく */
    font-size: clamp(15px, 2vw, 16px);
    /* 基本フォントサイズを安定させる */
    letter-spacing: 0.03em;
    /* 少し字間を広げて視認性UP */
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    /* 初期状態は透明、JavaScriptで必要時のみ表示 */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: var(--text-color);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--accent-color);
    opacity: 0.7;
    animation-delay: -0.5s;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: var(--accent-color);
    opacity: 0.4;
    animation-delay: -1s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* Section base */
.section {
    padding: clamp(60px, 10vw, 140px) 0;
    /* paddingを少し詰めて間延び解消 */
    /* SPで余白を小さく */
    position: relative;
    overflow: hidden;
    scroll-margin-top: clamp(80px, 10vw, 120px);
    /* 追従ヘッダー分+αのオフセット */
    width: 100%;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: clamp(15px, 3vw, 25px);
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section__side-label {
    position: absolute;
    top: clamp(80px, 10vw, 180px);
    left: clamp(10px, 3vw, 40px);
    writing-mode: vertical-rl;
    font-family: var(--font-accent);
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.5em;
    color: var(--accent-color);
    text-transform: uppercase;
    opacity: 0.6;
    pointer-events: none;
    z-index: 5;
    will-change: transform;
    backface-visibility: hidden;
}

.section__side-label::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 60px;
    background-color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.4;
}

.section__subtitle {
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: clamp(60px, 10vw, 120px);
    /* 間延び解消 */
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section__subtitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--accent-secondary);
}

.watermark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20vw;
    font-weight: 900;
    font-family: var(--font-accent);
    color: var(--accent-navy);
    opacity: 0.03;
    /* 視認性を邪魔しないようさらに薄く */
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
    letter-spacing: -0.02em;
    will-change: transform;
    backface-visibility: hidden;
}

.watermark--left {
    left: -5%;
}

.watermark--right {
    right: -5%;
}

.watermark--works {
    top: 25%;
    transform: translateY(0);
    /* remove -50% offset if needed, or adjust top to compensate */
}


.accent {
    color: var(--accent-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(70px, 8vw, 100px);
    /* 高さを可変に */
    display: flex;
    align-items: center;
    background-color: var(--bg-header);
    backdrop-filter: blur(15px);
    color: var(--text-color);
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header__logo img,
.loading-logo img,
.footer__logo img {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
}

.header__nav-list {
    display: flex;
    gap: clamp(15px, 2vw, 30px);
    align-items: center;
}

.header__nav-item a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
}

.header__nav-item a:hover {
    color: var(--accent-color);
}

.header__nav-item.is-cta a {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--text-color);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.header__nav-item.is-cta a:hover {
    background-color: var(--accent-color);
}

.header__hamburger {
    display: none;
}

@media (max-width: 1024px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        visibility: hidden;
        transition: visibility 0.4s ease;
        display: block !important;
        pointer-events: none;
    }

    .header__nav.is-active {
        visibility: visible;
        pointer-events: auto;
    }

    /* 背景オーバーレイ */
    .header__nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        /* 少し暗く */
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .header__nav.is-active::before {
        opacity: 1;
    }

    .header__nav-list {
        position: absolute;
        top: 0;
        right: -80%;
        /* 幅より少し広めに設定して隠す */
        width: 75%;
        /* 90%から75%に縮小 */
        height: 100%;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        /* 中央から上寄せに変更 */
        align-items: center;
        gap: 30px;
        padding: 100px 40px 40px;
        /* 上部に余白を追加 */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .header__nav.is-active .header__nav-list {
        right: 0;
    }

    .header__hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 1100;
    }

    .header__hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .header__hamburger span:nth-child(1) {
        top: 0;
    }

    .header__hamburger span:nth-child(2) {
        top: 9px;
    }

    .header__hamburger span:nth-child(3) {
        top: 18px;
    }

    /* アイコンアニメーション (開いた状態) */
    .header__hamburger.is-active span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }

    .header__hamburger.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .header__hamburger.is-active span:nth-child(3) {
        top: 9px;
        transform: rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; は解除 */
    z-index: 10; /* 次のセクションより上に表示 */
    background: var(--bg-white);
    padding-top: 140px;
    padding-bottom: 140px;
    box-sizing: border-box;
}

.hero__visual {
    position: absolute;
    top: 140px;
    /* 上部余白 */
    right: 0;
    bottom: 140px;
    /* 下部余白 */
    left: auto;
    width: calc(100% - 80px);
    /* 左側の余白も少し広く */
    height: calc(100% - 280px);
    /* 上(140) + 下(140) = 280px を引く */
    pointer-events: none;
    border-radius: 40px 0 0 40px;
    /* 左側を角丸にする（少し控えめに調整） */
    overflow: hidden;
    /* スライド画像を切り抜く */
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* スライド個別にアニメーションを適用 */
    animation: slideAnimation 20s infinite linear;
}

.hero__slide--1 {
    background-image: url('../images/hero-bg_1.png');
}

.hero__slide--2 {
    background-image: url('../images/hero-bg_2.png');
    animation-delay: 10s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }

    10% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    55% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--text-color);
    padding: 0 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 5.2vw, 3.2rem); /* 18文字が100vwに収まる計算値に調整 */
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
    color: var(--text-color);
    max-width: 100%;
    white-space: nowrap; /* PC版では基本1行を維持 */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 0.5); /* 文字を浮かび上がらせる */
}

.hero__title-sub {
    font-size: 0.7em;
}


.reveal-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    max-width: 100%; /* 枠自体が親要素を突き破るのを防ぐ */
}

.hero__title .reveal-text {
    opacity: 0;
    transform: translateY(100%);
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero__title .reveal-text span {
    display: inline-block; /* 単語のまとまりを維持 */
}

.hero__title br+.reveal-text {
    animation-delay: 0.2s;
}

.hero__subtitle {
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin: 40px 0 70px;
    color: #4B5563;
    font-weight: 500;
    line-height: 1.8;
    max-width: fit-content;
    margin: 40px 0 70px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1.2s 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* サブタイトルも読みやすく */
}
}

.hero__cta {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    /* 左寄せ */
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: clamp(12px, 2vw, 16px) clamp(20px, 4vw, 36px);
    border-radius: 0;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-family: var(--font-accent);
    cursor: pointer;
    white-space: nowrap;
    /* テキストの折り返し防止 */
    min-height: 50px;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
}


.btn--primary:hover {
    background-color: #fff;
    /* transform: translateY(-2px); 削除 */
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn__arrow {
    width: 1.2em;
    height: 1.2em;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    /* 矢印が潰れないように */
}

/* 矢印の線を破線状にしてアニメーションさせる */
.btn__arrow line {
    stroke-dasharray: 14;
    /* 線の長さ */
    stroke-dashoffset: 14;
    /* 最初は隠す */
    transition: opacity 0.3s;
    opacity: 0.5;
}

.btn:hover .btn__arrow line {
    animation: dashFlow 1.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    opacity: 1;
}

.btn:hover .btn__arrow polyline {
    animation: headMove 1.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* 矢印全体の位置調整 */
.btn:hover .btn__arrow {
    animation: none;
    /* 全体ループは削除 */
}

@keyframes dashFlow {
    0% {
        stroke-dashoffset: 14;
    }

    40% {
        stroke-dashoffset: 0;
        /* 線が現れる */
    }

    60% {
        stroke-dashoffset: 0;
        /* 少し溜める */
    }

    100% {
        stroke-dashoffset: -14;
        /* 線が消える */
    }
}

@keyframes headMove {
    0% {
        transform: translateX(0);
        opacity: 0.5;
    }

    40% {
        transform: translateX(5px);
        /* 線が出てくるのに合わせて少し右へ */
        opacity: 1;
    }

    60% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(10px);
        opacity: 0;
    }
}

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

.btn--secondary:hover {
    background-color: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
    /* transform: translateY(-2px); 削除 */
}

.hero__scroll {
    position: absolute;
    top: calc(100% + 110px); /* ボタンの下端から110px下げて写真の境界に合わせる */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

@media (max-width: 768px) {
    /* SP版での縦書きサイドラベルが他要素に被らないよう非表示に */
    .section__side-label {
        display: none;
    }
    /* Contactセクションのサイドラベルも同様に非表示 */
    .contact-section .section__side-label {
        display: none;
    }

    /* MV scroll decoration: SPでの重なりを避けるため縮小して下部に配置 */
    .hero__scroll {
        margin: 0;
        top: calc(100% + 10px);
        transform: translateX(-50%) scale(0.85);
    }
}

/* ----- SP 用 制作範囲番号・余白調整 ----- */
@media (max-width: 768px) {
    /* 番号を横並びにし、サイズ調整 */
    .areas__index {
        display: inline-block;
        font-size: clamp(2.5rem, 8vw, 5rem);
        margin-right: 0.5rem;
        line-height: 1;
    }
    /* ラベルのサイズ・余白調整 */
    .areas__feature-label {
        margin-top: 0.2rem;
        font-size: 0.75rem;
    }
    /* アイテム間の余白を縮小 */
    .areas__item {
        gap: clamp(20px, 4vw, 40px);
        margin-bottom: clamp(30px, 5vw, 50px);
    }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--text-color);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    opacity: 0.5;
}

.scroll-line {
    width: 2px;
    height: 80px;
    background: rgba(44, 62, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    animation: scrollLineMove 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flow Ticker Background */
.flow__ticker {
    position: absolute;
    top: 35%;
    /* Moved up from 50% */
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.flow__ticker-inner {
    display: inline-block;
    padding-left: 0;
    font-size: 20vh;
    font-weight: 900;
    font-family: var(--font-accent);
    color: var(--accent-color);
    animation: flowTicker 120s linear infinite;
}

@keyframes flowTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollLineMove {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

@media (max-width: 1024px) {
    .hero__title {
        font-size: clamp(1.1rem, 4.5vw, 3.2rem);
    }
}

@media (max-width: 768px) {
    .hero__content {
        text-align: center;
        padding: 0 clamp(20px, 5vw, 40px);
        /* 左右の余白をしっかり開けて窮屈さをなくす */
        margin-left: 0;
    }

    .hero__title {
        font-size: clamp(1.4rem, 8vw, 2.2rem);
        line-height: 1.4;
        text-align: center;
        margin-bottom: clamp(20px, 5vw, 30px);
        letter-spacing: 0.05em;
        white-space: normal; /* スマホでは折り返しを許可 */
    }

    .hero__title .reveal-text {
        display: inline;
        overflow: visible;
    }

    .hero__title br {
        display: none;
        /* 余分な空白行をなくす */
    }

    .hero__title .reveal-text {
        display: block;
        /* block化で意図しない不格好な改行を防止 */
    }

    .hero__title-sub {
        font-size: 0.8em;
        display: block;
        /* 独立させてスッキリ見せる */
        margin-bottom: 5px;
        color: var(--accent-color);
    }

    .hero__subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.02em;
        text-align: center;
        line-height: 1.8;
        margin: 0 auto clamp(20px, 5vw, 40px);
        max-width: 100%;
    }

    .hero__cta {
        display: flex;
        flex-direction: column;
        gap: 10px; /* タイトで洗練された隙間 */
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
    }

    .btn {
        width: 100%;
        padding: 14px 0; /* 上下をわずかに絞ってシャープに */
    }
    }

    .hero {
        height: 100vh;
        padding-top: 0;
        padding-bottom: 0;
        overflow: visible; /* スマホでも突き抜けを許可 */
    }

    .hero__visual {
        width: 100%;
        height: 100%;
        top: 0;
        bottom: 0;
        left: 0;
        border-radius: 0;
    }
}

.areas {
    background-color: #fff;
    padding: clamp(80px, 10vw, 160px) 0;
}

.areas__list {
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 8vw, 120px);
}

.areas__item {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
    position: relative;
    flex-wrap: wrap;
    /* 追加: SPで並びが変わるのを保証 */
}

.areas__item:nth-child(even) {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {

    .areas__item,
    .areas__item:nth-child(even) {
        flex-direction: column;
        flex-wrap: nowrap;
    }
}

.areas__content {
    flex: 1;
    z-index: 2;
}

.areas__header {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    padding-top: 60px;
}

.areas__index {
    font-family: var(--font-accent);
    font-size: clamp(4rem, 15vw, 12rem);
    /* 12rem固定だったものを可変に */
    font-weight: 800;
    line-height: 0.8;
    color: var(--accent-color);
    opacity: 0.2;
    -webkit-text-stroke: 1px var(--accent-color);
    position: absolute;
    top: clamp(-10px, -2vw, -20px);
    left: clamp(-15px, -3vw, -30px);
    z-index: -1;
    pointer-events: none;
    letter-spacing: -0.05em;
}

.areas__feature-label {
    font-family: var(--font-accent);
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    opacity: 0.8;
}

.areas__name {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 3vw, 25px);
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.areas__desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    /* 本文の文字サイズも担保 */
    line-height: 2;
    color: #4B5563;
    text-align: justify;
}

.areas__image-wrapper {
    flex: 1.2;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

.areas__image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}



/* Responsive */
@media (max-width: 1024px) {
    .areas__item {
        gap: 40px;
    }

    .areas__name {
        font-size: 1.8rem;
    }

    .areas__image {
        height: 280px;
    }
}

@media (max-width: 768px) {

    .areas__item,
    .areas__item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }

    .areas__content {
        width: 100%;
    }

    .areas__image-wrapper {
        width: 100%;
        border-radius: 20px;
    }

    .areas__image {
        height: 200px;
    }

    /* ----- 全体：セクション間の余白をさらに凝縮 ----- */
    .areas, .works.section, .points, .flow, .contact-section {
        padding: 40px 0 !important;
    }

    .section__header {
        margin-bottom: 25px;
    }

    /* ----- 制作範囲セクション：精密調整 ----- */
    .areas__list {
        gap: 30px !important; /* リスト全体の隙間を強制的に詰める */
    }

    .areas__header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
        padding-top: 0;
    }

    .areas__index {
        position: static;
        font-size: 5.5rem;
        line-height: 1;
        color: #e0f7f4;
        -webkit-text-stroke: 0;
        opacity: 1;
        font-family: var(--font-accent);
        font-weight: 900;
        margin-left: -5px;
    }

    .areas__feature-label {
        font-size: 1rem;
        color: #4ee0d0;
        font-weight: 900;
        letter-spacing: 0.1em;
        margin-top: 10px;
    }

    .areas__name {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
        text-align: left;
        font-weight: 800;
    }

    .areas__desc {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
        text-align: left;
    }

    .areas__item {
        gap: 10px;
        margin-bottom: 30px; /* アイテム間をさらに短縮 */
    }
}

.areas__logo-container {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 60px);
    background: transparent;
}

.areas__svg-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    overflow: visible;
}

.areas__svg-text {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 800;
    fill: transparent;
    stroke: var(--text-color);
    stroke-width: 0.8px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    letter-spacing: -0.02em;
    pointer-events: none;
}

.areas__svg-dot {
    fill: transparent;
    stroke: var(--accent-color);
}

.areas__svg-text.is-filled {
    fill: var(--text-color);
}

.areas__svg-text.is-filled .areas__svg-dot {
    fill: var(--accent-color);
}

@media (max-width: 768px) {
    .areas__logo-container {
        width: 100%;
        min-height: 180px;
        border-radius: 20px;
        padding: 30px;
    }

    .areas__svg-text {
        font-size: 38px;
    }
}

/* Works (Masonry & Filter) */
.works__filter {
    margin-bottom: 80px;
    text-align: center;
}

.works__filter-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--gray-medium);
    background: transparent;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

.works__filter-tags {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    /* 太く */
    color: #666;
    /* 濃く */
    letter-spacing: 0.1em;
    min-width: 60px;
    text-align: right;
}

.filter-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 6px 16px;
    border: 1px solid var(--gray-light);
    background: #fff;
    color: #555;
    /* 視認性のために濃く */
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.2s;
}

.tag-btn:hover {
    border-color: #bbb;
    color: #444;
}

.tag-btn.active {
    background-color: var(--accent-color);
    color: var(--text-color);
    /* 黄色背景に黒文字で最強のコントラスト */
    border-color: var(--accent-color);
}

.works__masonry {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

@media (max-width: 1024px) {
    .works__masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .works__masonry {
        column-count: 1;
        column-gap: 0;
    }
}

.works__item {
    break-inside: avoid;
    margin-bottom: clamp(30px, 5vw, 50px);
    border-radius: 0;
    /* 角丸を削除 */
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    border: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.works__item:nth-child(even) {
    margin-top: 0;
}

.works__item:hover {
    /* transform: translateY(-12px); 削除 */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    /* 影だけ残す（好みで） */
}


/* Hidden state for filter */
.works__item.hidden {
    display: none;
}

.works__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.works__thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top;
    transition: transform 0.5s ease;
}

.works__item:hover .works__thumb img {
    transform: scale(1.05);
}

/* Meta overlay */
/* Meta overlay - Hidden based on user request to show only images */
.works__meta {
    display: none;
}

.works__cat {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
}

.works__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Remove spacing for hidden items to prevent masonry gaps */
.works__item.hidden {
    display: none;
}

.works__more {
    margin-top: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .works__more {
        margin-top: 40px;
    }
}

/* Points: Refined Mint Green Background (Restored Saturation) */
.points {
    background-color: #EBF8F4;
    color: var(--text-color);
    padding: 180px 0;
}

@media (max-width: 768px) {
    .points {
        padding: 80px 0;
    }
}

.points .section__title {
    color: var(--text-color);
}

.points .section__subtitle {
    color: var(--accent-color);
    opacity: 0.8;
}

.points__list {
    display: flex;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
    /* 追加: 画面幅縮小時にはみ出しを防ぐ */
}

.points__item {
    flex: 1;
    min-width: 240px;
    /* 追加: 小さくなりすぎないように */
    text-align: center;
    padding: clamp(30px, 5vw, 60px) clamp(15px, 3vw, 30px) clamp(20px, 4vw, 40px);
    background: #fff;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    /* 30px 角丸 */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.points__visual {
    position: relative;
    width: clamp(100px, 20vw, 160px);
    height: clamp(100px, 20vw, 160px);
    margin: 0 auto clamp(20px, 4vw, 35px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.points__ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.points__icon-inner {
    width: 50px;
    height: 50px;
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.points__icon-inner svg {
    width: 100%;
    height: 100%;
}

.points__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.points__text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}


/* Flow: Horizontal Story Layout */
.flow {
    background-color: #F8FCFA;
    padding: 180px 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .flow {
        padding: 80px 0;
    }
}

.flow__steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.flow__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.flow__visual {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow__platform {
    position: absolute;
    bottom: 5px;
    width: 140px;
    height: 46px;
    background: radial-gradient(ellipse at center, rgba(var(--accent-color-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotateX(60deg);
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.flow__icon {
    width: 44px;
    height: 44px;
    color: var(--accent-color);
    z-index: 2;
    transition: transform 0.5s var(--transition-main);
}

.flow__item:hover .flow__icon {
    /* transform: translateY(-10px); 削除 */
}

.flow__icon svg {
    width: 100%;
    height: 100%;
}

.flow__num {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.2);
    z-index: 3;
}

.flow__content {
    text-align: center;
    padding: 0 15px;
}

.flow__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.flow__desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

.flow__arrow {
    position: absolute;
    top: 50px;
    right: -30px;
    width: 60px;
    height: 30px;
    color: rgba(var(--accent-color-rgb), 0.4);
    z-index: 5;
}

.flow__arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 3;
    /* Thicker line for better visibility */
}

@media (max-width: 991px) {
    .flow__steps {
        flex-direction: column;
        gap: clamp(40px, 8vw, 60px);
        /* 余白も少し柔軟化 */
        align-items: center;
    }

    .flow__arrow {
        top: auto;
        bottom: clamp(-30px, -5vw, -40px);
        right: auto;
        /* Arrow position fix: width 60pxなので左端を50%基準 - 30pxにして回転のみで中央揃え */
        left: calc(50% - 30px);
        transform: rotate(90deg);
    }

    .flow__visual {
        margin-bottom: 20px;
    }
}


.flow__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.flow__desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 2;
}

/* CTA: Value Focused Slim Layout */
.cta {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 220px;
    /* Aggressively reduced for a slim, stylish bar look */
}

.cta::before {
    display: none;
    /* Remove old overlay */
}

.cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: clamp(20px, 4vw, 50px);
}

.cta__content {
    flex: 1;
    text-align: left;
    max-width: 600px;
    padding: clamp(20px, 4vw, 30px) 0;
    /* Minimized padding to keep height low */
}

.cta__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.cta__title span {
    display: block;
    color: #fff;
    padding: 0;
}

.cta__text {
    font-size: 1.1rem;
    line-height: 2;
    opacity: 0.9;
    margin-bottom: 0;
    color: #fff;
}

.cta__visual {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    /* Removed black background */
}

.cta__scroll-wrapper {
    display: flex;
    gap: 10px;
    /* Slimmer gap */
    height: 600px;
    /* 高さを制限 */
    position: relative;
    width: 100%;
}

.cta__scroll-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Slimmer gap */
    animation: ctaVerticalScroll 35s linear infinite;
    /* Slightly faster for slim unit */
    min-width: 0;
}

.cta__scroll-col--reverse {
    animation-direction: reverse;
}

.cta__scroll-col img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Subtle shadow for lighter look */
}

@keyframes ctaVerticalScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-66.666%);
        /* 3回繰り返しのうち2回分をスクロール */
    }
}

@media (max-width: 991px) {
    .cta {
        min-height: 0;
        display: block;
    }

    .cta .container {
        display: block;
        text-align: center;
        padding: 50px 20px; /* 心地よい余裕を再度適用 */
    }

    .cta__content {
        max-width: 100%;
        padding: 0;
        margin-bottom: 35px; /* 文章と画像の間に適切な距離を */
        display: block;
        height: auto !important;
    }

    .cta__title {
        font-size: clamp(1.8rem, 8vw, 2.4rem); /* 堂々としたサイズへ */
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .cta__text {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .cta__visual {
        width: 100%;
        height: 260px; /* 見栄えのする高さへ */
        margin: 0;
    }
}


/* Footer */
.footer {
    padding: 80px 0;
    background-color: var(--bg-dark);
    /* 漆黒で締める */
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--accent-color);
}

.footer__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    /* ロゴは白で際立たせる */
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .header__inner {
        padding: 0 20px;
    }

    .header__nav {
        display: none;
        /* Hide nav for now on mobile */
    }

    .header__hamburger span {
        background-color: var(--text-color);
        /* 共通変数を使用 */
    }

    .areas__grid {
        grid-template-columns: 1fr;
    }

    .points__list {
        flex-direction: column;
    }

    .flow__steps {
        flex-direction: column;
        gap: 30px;              /* ステップ間の程よい凝縮感 */
    }

    .flow__steps::before {
        display: none;
    }

    .flow__item {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding-left: 0;
        width: 100%;
    }

    .flow__visual {
        height: 110px;          /* 高さをさらに圧縮 */
        margin-bottom: 0;
    }

    .flow__num {
        left: 12px;
        top: 20px;
        margin: 0;
        flex-shrink: 0;
        z-index: 4;
    }

    .flow__name {
        font-size: 1.4rem;
        margin-top: 0;
        margin-bottom: 5px;
        font-weight: 800;
    }

    .flow__desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .flow__arrow {
        position: static;
        width: 30px;            /* 15pxから30pxへ拡大 */
        height: 30px;
        transform: rotate(90deg);
        margin: 15px auto 0;    /* 適切な余白 */
        display: block;
        opacity: 1;
    }

    .flow__content {
        padding-top: 0;
    }

    .cta__title {
        font-size: 2.5rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: 20px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent scrolling on overlay */
    background-color: rgba(0, 0, 0, 0.85);
    /* Slightly darker for focus */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal__content {
    position: relative;
    /* Remove background from wrapper as it's transparent/container */
    margin: auto;
    padding: 0;

    width: 90%;
    max-width: 1000px;

    /* Max height constraint for the modal container */
    max-height: 90vh;

    /* Flex column to manage header(close) and body */
    display: flex;
    flex-direction: column;

    /* Allow visible overflow for close button positioning */
    overflow: visible;

    animation: zoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal__body {
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* 必要に応じてスクロールできるように戻す */
    overscroll-behavior: contain;
    flex: 1;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal__close {
    color: #fff;
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 38px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
    line-height: 1;
    opacity: 0.8;
}

.modal__close:hover,
.modal__close:focus {
    color: #fff;
    opacity: 1;
    transform: rotate(90deg);
}

.modal__img {
    display: block;
    width: 100%;
    /* Full width of container */
    height: auto;
    /* Natural height */
    margin: 0 auto;
}



/* Update cursor for works item */
.works__item {
    cursor: zoom-in;
}


/* Contact Form Styles */
.contact {
    background-color: var(--bg-white);
}

/* お問い合わせセクションのウォーターマーク位置調整 */
.contact .watermark {
    top: 80px;
    /* セクション上部、タイトルの上に配置 */
    transform: none;
}

.contact__content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: clamp(30px, 6vw, 60px) clamp(20px, 4vw, 60px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.contact__fields {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vw, 30px);
    margin-bottom: 40px;
}

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact__label .required {
    font-size: 0.7rem;
    background-color: var(--accent-color);
    /* ミントグリーン */
    color: var(--text-color);
    /* 濃い色で視認性確保 */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.contact__input:focus,
.contact__textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--accent-color-light);
}

.contact__input.is-error,
.contact__textarea.is-error {
    border-color: #ff4d4d;
    background-color: #fff5f5;
}

.contact__input.is-error:focus,
.contact__textarea.is-error:focus {
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1);
}

.contact__error-message {
    font-size: 0.8rem;
    color: #ff4d4d;
    margin-top: 5px;
    font-weight: 600;
}

.contact__textarea {
    height: 180px;
    resize: vertical;
}

.contact__submit {
    text-align: center;
}

.contact__submit .btn {
    min-width: min(100%, 240px);
    /* SPで画面外にはみ出さないように */
}

@media (max-width: 768px) {
    .contact__content {
        padding: 40px 20px;
    }

    .contact__fields {
        gap: 20px;
    }
}

.contact__field--checkbox {
    display: table;
    flex-direction: row;
    align-items: center;
}

.contact__checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.contact__checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.contact__checkbox-label a {
    color: var(--accent-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.contact__checkbox-label a:hover {
    color: var(--accent-color);
}

/* Contact Thanks Message */
.contact__thanks {
    display: none;
    /* 初期状態は非表示 */
    text-align: center;
    padding: 40px 20px;
    animation: thanksFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.contact__thanks.is-visible {
    display: block;
}

.contact__thanks-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--accent-color);
    background-color: var(--accent-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact__thanks-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact__thanks-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

@keyframes thanksFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact__form.is-hidden {
    display: none;
}

/* Privacy Page */
.privacy-page .header {
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.privacy-page .header .container {
    flex: 1;
}

.privacy-page .header__inner {
    justify-content: flex-start;
}

.privacy-content {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.privacy-text-wrapper {
    max-width: 800px;
    margin: 60px auto;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.privacy-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.privacy-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

.privacy-section li {
    line-height: 1.8;
    margin-bottom: 8px;
}

.privacy-back {
    text-align: center;
    margin-top: 60px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Area 01 Special Style: No Frame */
.areas__image-wrapper--no-frame {
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: transparent;
}

.areas__image-wrapper--no-frame::after {
    display: none;
}

.areas__image-wrapper--no-frame .areas__image {
    height: auto;
    object-fit: contain;
    /* 元の縦横比を維持して全体を表示 */
}

.areas__image--scale-down {
    transform: scale(0.95);
    transform-origin: center;
}

/* System Error Page */
.error-page {
    min-height: calc(100vh - clamp(70px, 8vw, 100px) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(60px, 10vw, 140px) 0;
}

.error-page__content {
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

.error-page__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-page__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.error-page__text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.error-page__actions {
    display: flex;
    justify-content: center;
}

/* Button Loading / Disabled State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 192, 0.2);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 217, 192, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
