﻿/* リセット・ベース */
:root {
    --header-height: 80px;
    --hash-size: 24px; /* ＃全体の幅・高さ */
    --line-thick: 4px; /* 線の太さ */

    --cci-width: 1200px; /* 横幅 */
    --cci-height: 600px; /* 高さ */
    --cci-item-size: 200px; /* 各円の直径 */
    --cci-duration: 40s; /* １周にかかる時間 */
    --cci-count: 8; /* アイテム数と合わせる */
    --cci-step: calc(var(--cci-duration) / var(--cci-count));
    --cci-radius-x: calc((var(--cci-width)  - var(--cci-item-size)) / 2);
    --cci-radius-y: calc((var(--cci-height) - var(--cci-item-size)) / 2);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    color: #393939;
    line-height: 1.5;
  
    overflow-x: hidden;
}



/* ヘッダー直下の .container だけ full-width に */
.header > .container,
.header__inner.container {
    width: 100%;
    max-width: none;
    margin: 0; /* 中央寄せをリセット */
    padding: 0 16px; /* 両サイドに余白が欲しければ */
}


/* ヘッダー */
.header {
    background: #FBF151;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: hidden; /* ← 追加 */
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ← 全体は左寄せ */
    height: 80px;
    flex-wrap: nowrap;
}

.logo {
    display: block;
    margin-right: 40px; /* ロゴとナビのあいだ */
}

    .logo img {
        display: block;
        height: 24px; /* お好みの高さに */
        width: auto;
    }


.nav {
    flex: 1; /* 左右の要素（ロゴ／言語切替）の間を埋める */
    overflow: visible; /* はみ出し要素は隠しておく */
}

.nav__list {
    display: flex;
    flex-wrap: wrap; /* 折り返しさせたいなら wrap に */
    /* flex-wrap: nowrap;   どうしても１行にしたいなら nowrap のままでもOK */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: visible; /* ← auto を消して、この行を追加 */
    white-space: normal; /* ← nowrap を外して、必要に応じて折り返しを許可 */
}

    .nav__list li {
        flex: 0 1 auto; /* shrink を許可 */
        margin-right: 35px; /* アイテム間の余白を微調整 */
    }


        .nav__list li:last-child {
            margin-right: 0;
        }

    .nav__list a {
        color: #393939;
       
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        text-decoration: none; /* 下線を消す */
        white-space: nowrap; /* リンクの途中改行を防止 */
        position: relative;
        z-index: 2;
        transition: color 0.3s ease;
    }

        .nav__list a::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 140%; /* 親要素より少し大きめ */
            height: 140%;
            background: rgba(255,255,255,0.4);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 0.4s ease-out, opacity 0.4s ease-out;
            opacity: 0;
            z-index: 1; /* テキストの背後に */
        }

        .nav__list a:hover::before {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        .nav__list a:hover {
            color: #fff;
            text-shadow: 0 0 24px rgba(255,255,255,0.8), 0 0 36px rgba(255,255,255,0.6);
        }

/* メイン行・サブ行ともにブロックにする */
.nav__break-link .nav__break-main,
.nav__break-link .nav__break-sub {
    display: block;
}

/* メイン行は通常の見た目 */
.nav__break-link .nav__break-main {
    font-size: 16px;
    font-weight: 500;
    line-height: 1; /* 高さをぴったり */
}

/* サブ行だけ小さく＆詰める */
.nav__break-link .nav__break-sub {
    font-size: 16px; /* お好みで */
    font-weight: 500;
    line-height: 1; /* 高さをぴったり */
    margin-top: 2px; /* ほんの少しだけ隙間を開ける */
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 16px; /* JP と VN のあいだ、VN と EN のあいだに均等な余白 */
    margin-left: auto; /* 右端への寄せ */
}

.lang-selector__btn {
    width: 32px; /* ボタンサイズ */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: #393939; /* 文字色黒 */
    border: none; /* 枠線を消す */
    outline: none; /* フォーカス時のアウトラインを消す */
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

    .lang-selector__btn:focus {
        outline: none; /* 念のためフォーカス時も */
    }

    .lang-selector__btn.active {
        background: #ffffff;
    }

section {
    min-height: calc(100svh - var(--header-height));
}

/* （必要に応じて縦中央寄せ） */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* すべてのセクションをローカル座標系にする――★追加 */
main > section[id] {
    position: relative; /* これで .marker の top/left が
                                 “そのセクション左上” 基準になる */
}


.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background-color: #FBF151;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FBF151;
    overflow: hidden;
}

.hero__overlay {
    position: absolute; /* 絶対配置 */
    top: 50%; /* セクションの縦中央 */
    left: 50%; /* セクションの横中央 */
    transform: translate(-50%, -50%);
    width: 100%; /* 横幅いっぱいにして text-align で中寄せ */
    text-align: center;
    /* pointer-events: none; クリックが必要なければ入れてもOK */
}



.hero__img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 90%;
    min-height: 100%;
    object-fit: cover;
    object-position: top left;
}



.hero__title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 72px;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hashtag {
    color: #FF478B;
}



/* PURPOSE */
.purpose {
    position: relative;
    padding: 80px 0;
    background: #f9f9f9;
}

.purpose__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.purpose__img {
    width: 100%;
    border-radius: 8px;
}

.purpose__content {
    text-align: right;
}

.purpose__subtitle {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin: 16px 0;
}

/* PURPOSE セクション内の動画ラッパー */
.purpose__video-wrapper {
    width: 70%;
    /* 必要に応じて最大幅を制限するなら下記を追加 */
    /* max-width: 1200px; */
    margin: 0 auto; /* 念のため左右中央 */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比率 */
    height: 0;
    overflow: hidden;
}

    .purpose__video-wrapper > div,
    .purpose__video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

    .purpose__video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* ラッパー幅の100% */
        height: 100%;
        border: none;
    }

.purpose__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
}

.button--outline {
    border: 3px solid #717171;
    color: #717171;
}

/* フッター */
.footer {
    text-align: center;
    padding: 40px 0;
    background: #FFCF00;
    font-size: 18px;
}


/* １）アニメーション後に使う画像用スタイル */
.hero__title-image {
    position: absolute;
    /* 最初は中央配置しておく */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 大きさの固定は外す */
    width: 300px; 
    height: auto; 
    opacity: 0;
}


/* ２）最終的にフェードインさせるための初期状態 */
.hero__title-image--visible {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}


/* -----------------------------
   マーカー共通
------------------------------ */
/* =========================================================
   マーカー（＃）本体  ―― ここから追加／置換
   ========================================================= */
/*
.marker {
    position: fixed;
    top: calc(var(--header-height) + 50px);
    left: 16px;
    pointer-events: none;
    z-index: 50;
}
    */

.marker {
    position: absolute; /* セクション内で絶対配置 */
    top: 50px; /* ヘッダーの下に相当する位置 */
    left: 16px;
    pointer-events: none;
    z-index: 5; /* セクション内であれば十分 */
}



.marker__hash {
    position: relative;
    width: var(--hash-size);
    height: var(--hash-size);
}

.marker__hash-line {
    position: absolute;
    background: #FFCF00;
}

    /* ──縦 2 本── */
    .marker__hash-line.vert {
        width: var(--line-thick);
        height: 100%;
        top: 0;
    }

    .marker__hash-line.left {
        left: 2px;
    }

    .marker__hash-line.right {
        right: 2px;
    }
    /* ─ 横線（25%/75% に置くと “＃” らしい間隔） */
    .marker__hash-line.horiz {
        height: var(--line-thick);
        width: 100%;
        left: 0;
    }

    .marker__hash-line.top {
        top: 25%;
    }
    /* 25% でバランス良い＃ */
    .marker__hash-line.bottom {
        top: 75%;
    }

/* 伸ばす縦線・横線（初期は 0） */
.marker__vertical {
    position: absolute;
    /* ハッシュ底の中央 (= 24px - 2px) に合わせる */
    top: calc(var(--hash-size) - var(--line-thick) / 2);
    left: calc(var(--line-thick) / 2); /* 左縦線中央 */
    width: var(--line-thick);
    height: 0;
    background: #FFCF00;
    transform-origin: top;
    /* 背景をグラデーションに */
    background: linear-gradient( to bottom, #FFCF00 0, #FFCF00 calc(100% - 100px), /* 下から10px手前までは黄 */
    #FF478B calc(100% - 10px), #FF478B 100% /* 下端10pxをピンク */
    );
}



.marker__horizontal { /* ← 横線はハッシュ中央に */
    position: absolute;
    top: 5px;
    left: var(--hash-size);
    height: var(--line-thick);
    width: 0;
    background: #FFCF00;
    transform-origin: left;
    background: linear-gradient( to right, #FFCF00 0, #FFCF00 calc(100% - 100px), #FF478B calc(100% - 10px), #FF478B 100% );
}

/* =========================================================
   マーカー ―― ここまで
   ========================================================= */

/* ① overlay の基本スタイルはそのまま */
.scroll-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: transparent;
    transition: background 0.3s ease;
    z-index: 10000;
}

    .scroll-overlay.active {
        background:
        /* 中心のふんわり光 */
        radial-gradient( circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 40% ),
        /* 外側の自然な暗がり */
        radial-gradient( circle at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.6) 100% );
        background-repeat: no-repeat;
    }

/* ① 中心のほんのり光る部分 */
/* ② 白いリング（縁取り） */
/* ③ 外側の暗いグラデーション */

/*
    .scroll-overlay.active {
        
        background: radial-gradient( circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.25) 25%, rgba(255, 255, 255, 0) 35% ),
   
        radial-gradient( circle at center, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.3) 35%, rgba(255, 255, 255, 0) 37% ),
    
        radial-gradient( circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.6) 100% );
        background-repeat: no-repeat;
    }
    */




/* HOT TOPICS */
.hot-topics {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

.view-more {
    display: block;
    text-align: right;
    font-size: 32px;
    font-weight: 700;
    color: #717171;
    text-decoration: none;
    margin-bottom: 16px;
}

.hot-topics__slider {
    position: relative;
    height: auto;
    padding-bottom: 60px; /* ドットのぶん余白を確保 */
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 20;
}

.slider-arrow--left {
    left: 16px;
}

.slider-arrow--right {
    right: 16px;
}

.slider-arrow img {
    width: 90%;
    height: auto;
}

.slider-dots {
    position: absolute;
    right: 24px;
    bottom: 16px; /* 右下に固定・画像には被らない */
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .slider-dots li {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #c0c0c0;
        opacity: .6;
        transition: opacity .3s;
    }

        .slider-dots li.active {
            background: #505050;
            opacity: 1;
        }

.hot-topics__item {
    flex: 0 0 auto;
    width: 280px;
    text-align: center;
}

    .hot-topics__item img {
        width: 90%;
        border-radius: 50%;
    }

.hot-topics__caption {
    margin-top: 12px;
    font-size: 24px;
    color: #717171;
}

/* タイトル中央寄せ */
.section-title--center {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title--left {
    margin-left: 100px;
    text-align: left;
    margin-bottom: 1rem;
}


/* 横並び＆アニメート */
.slider-track {
    display: flex;
    gap: 50px; /* スライド間の隙間を消す */
    transition: transform .6s ease;
}

    /* ドラッグ中のカーソル */
    .slider-track:active {
        cursor: grabbing;
    }

/* 各スライド */
.slide {
    position: relative;
    overflow: hidden; /* 拡大分をマスク */
    opacity: .25;
    transition: opacity .6s ease;
    height: calc(100svh - var(--header-height) - 25vh);
}

    .slide::before { /* 画像だけマスクするための擬似要素 */
        content: "";
        position: absolute;
        inset: 0;
        background: #000;
        opacity: 0; /* 見えないマスク */
        pointer-events: none;
    }

    .slide.active {
        opacity: 1;
        z-index: 5;
        top: -10px;
    }

    .slide img {
        width: 100%;
        height: calc(100svh - var(--header-height) - 30vh);
        object-fit: cover;
        transition: transform .6s ease;
    }

    .slide.active img {
        transform: scale(1.08);
    }
/* 倍率をお好みで調整 */


/* キャプション */
.caption {
    margin-top: 20px; /* 完全に画像の下へ分離 */
    font-size: 1rem;
    text-align: center;
    color: #333;
}

/* =========================================
   Character IP – 円形カルーセル
   ======================================= */
:root {
    /* サイズ・速度のカスタマイズはここだけ触れば OK */
    --cci-width: 1200px; /* 横幅 */
    --cci-height: 600px; /* 高さ */
    --cci-item-size: 200px; /* 各円の直径 */
    --cci-duration: 40s; /* １周にかかる時間 */
    --cci-count: 8; /* アイテム数と合わせる */
    --cci-step: calc(var(--cci-duration) / var(--cci-count));
    --cci-radius-x: calc((var(--cci-width)  - var(--cci-item-size)) / 2);
    --cci-radius-y: calc((var(--cci-height) - var(--cci-item-size)) / 2);
}

.character-ip__textblock {
    text-align: center; /* 横中央寄せ */
    margin-top: 80px; /* ← 好きなだけ下げる（数値調整可） */
}

.character-carousel {
    position: relative;
    width: var(--cci-width);
    height: var(--cci-height);
    margin: 80px auto; /* セクション内で中央寄せ */
}

    .character-carousel .cci-item {
        position: absolute;
        top: 50%;
        left: 50%;
        width: var(--cci-item-size);
        height: var(--cci-item-size);
        margin: calc(var(--cci-item-size) / -2);
        border-radius: 50%;
        overflow: hidden;
        /* 楕円軌道を指定 */
        offset-path: ellipse(var(--cci-radius-x) var(--cci-radius-y) at 50% 50%);
        offset-rotate: 0deg; /* 常に画像を直立 */
        animation: cciMove var(--cci-duration) linear infinite;
    }

/* スタート位置をずらす */
@for $i from 1 through 8 {
}
/* (Sass 用の参考。純粋 CSS の場合は下記のように手動で) */
.character-carousel .cci-item:nth-child(1) {
    animation-delay: calc(var(--cci-step) * 0);
}

.character-carousel .cci-item:nth-child(2) {
    animation-delay: calc(var(--cci-step) * -1);
}

.character-carousel .cci-item:nth-child(3) {
    animation-delay: calc(var(--cci-step) * -2);
}

.character-carousel .cci-item:nth-child(4) {
    animation-delay: calc(var(--cci-step) * -3);
}

.character-carousel .cci-item:nth-child(5) {
    animation-delay: calc(var(--cci-step) * -4);
}

.character-carousel .cci-item:nth-child(6) {
    animation-delay: calc(var(--cci-step) * -5);
}

.character-carousel .cci-item:nth-child(7) {
    animation-delay: calc(var(--cci-step) * -6);
}

.character-carousel .cci-item:nth-child(8) {
    animation-delay: calc(var(--cci-step) * -7);
}

.character-carousel .cci-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 回転アニメーション本体 */
@keyframes cciMove {
    0% {
        offset-distance: 0%;
        transform: scale(1);
        z-index: 2;
    }

    25% {
        offset-distance: 25%;
        transform: scale(1.5);
        z-index: 3;
    }

    50% {
        offset-distance: 50%;
        transform: scale(1);
        z-index: 2;
    }

    75% {
        offset-distance: 75%;
        transform: scale(0.5);
        z-index: 1;
    }

    100% {
        offset-distance: 100%;
        transform: scale(1);
        z-index: 1;
    }
}


/* ========== WORKS Rotator ========== */
.works .rotator {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 80px auto 40px; /* セクション中央 */
    overflow: visible;
}

.rotator__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 100;
}

/* ひし形 */
.diamond {
    position: absolute;
    width: 90px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transform: rotate(45deg);
    transition: left .5s ease,top .5s ease, transform .3s,background .3s,z-index .3s;
}

    .diamond .label {
        display: inline-block;
        transform: rotate(-45deg);
        pointer-events: none
    }

    .diamond[data-index="0"] .label {
        font-size: 10px
    }
/* MERCHANDISINGのみ縮小 */

/* 線 */
.connector {
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 60
}

    .connector line {
        stroke: gray;
        stroke-width: 2
    }


/* AI-INFO 内チャットレイアウト */
.ai-info__inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 60px 0;
}

.ai-chat {
    display: flex;
    width: 90%;
    padding-left: 8%;
}

/* キャラクター */
.ai-chat__character img {
    width: 200px;
    height: auto;
    display: block;
}

/* チャットウィンドウ */
.ai-chat__window {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    max-height: 400px;
    background: #fff;
}

/* 会話履歴 */
.chat-history {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
}

/* メッセージバブル */
.chat-message {
    padding: 8px 12px;
    border-radius: 16px;
    margin-bottom: 8px;
    max-width: 70%;
    word-wrap: break-word;
    line-height: 1.4;
}

    .chat-message.user {
        background: #e0f7fa;
        align-self: flex-end;
    }

    .chat-message.ai {
        background: #f0f0f0;
        align-self: flex-start;
    }

/* 入力フォーム */
.chat-input {
    display: flex;
    gap: 8px;
}

    .chat-input input {
        flex: 1;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

    .chat-input button {
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        background: #393939;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
    }

        .chat-input button:active {
            opacity: 0.8;
        }


/* --------------------------------------
   About Us
-------------------------------------- */
.about-us {
    padding: 80px 0;
    background: #fff;
}

.about-us__intro {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.about-us__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
}

.about-us__arrow {
    background: none;
    border: none;
    cursor: pointer;
}

.about-us__circles {
    display: flex;
    gap: 24px;
}

.about-us__circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .3s, background .3s;
}

    .about-us__circle.active {
        transform: scale(1.2);
        background: #53C2FF; /* default active color; overridden per-item below */
    }

    /* per-item colors */
    .about-us__circle[data-index="0"].active {
        background: #B0BEC5;
    }

    .about-us__circle[data-index="1"].active {
        background: #53C2FF;
    }

    .about-us__circle[data-index="2"].active {
        background: #FFC6D1;
    }

    .about-us__circle[data-index="3"].active {
        background: #FFEA88;
    }

.about-us__content {
    position: relative;
    padding-left: 2%;
    padding-right: 2%;
}

.about-us__pane {
    display: none;
    opacity: 0;
    transition: opacity .4s;
}

    .about-us__pane.active {
        display: block;
        opacity: 1;
    }

/* shared grid for text + image */
.about-us__pane-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-us__image-wrap img {
    width: 100%;
    display: block;
    border-radius: 8px;
    background: #eee;
}

.about-us__text h4 {
    font-size: 20px;
    margin-bottom: 12px;
    position: relative;
}

    .about-us__text h4::before {
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: currentColor;
        margin-right: 8px;
        vertical-align: middle;
    }

.about-us__pane[data-index="1"] .about-us__text h4 {
    color: #53C2FF;
}

.about-us__pane[data-index="2"] .about-us__text h4 {
    color: #FFC6D1;
}

.about-us__pane[data-index="3"] .about-us__text h4 {
    color: #FFEA88;
}

.about-us__text p {
    margin-bottom: 14px;
    line-height: 1.6;
    color: #444;
}

.about-us__text ul {
    margin: 14px 0;
    padding-left: 20px;
}

.about-us__text li {
    margin-bottom: 8px;
}

.about-us__callout {
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 4px;
}

    .about-us__callout strong {
        display: block;
        margin-bottom: 8px;
    }

/* HISTORY */
.history-list {
    list-style: none;
    padding: 0;
}

    .history-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 8px;
        line-height: 1.5;
    }

.history-date {
    display: inline-block;
    min-width: 80px;
    padding: 2px 6px;
    background: #F9EBC6;
    border-radius: 4px;
    margin-right: 12px;
    font-weight: 700;
    font-size: 10px;
    color: #333;
}

/* ──────────────────────────────────────
   8. Contact form セクション
────────────────────────────────────── */
/* セクション全体 */
.contact {
    padding: 10px 0;
    background: #F9F9F9;
}

    /* タイトル */
    .contact .section-title {
        font-size: 36px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 40px;
        color: #393939;
    }

/* フォーム全体 */
.contact__form {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    /* 各フォーム項目 */
    .contact__form .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #555;
    }

    .contact__form .form-group input,
    .contact__form .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #CCC;
        border-radius: 4px;
        font-size: 16px;
        transition: border-color .2s;
    }

        .contact__form .form-group input:focus,
        .contact__form .form-group textarea:focus {
            border-color: #FFCF00;
            outline: none;
        }

    /* 送信ボタン */
    .contact__form button.button {
        align-self: center;
        background: #FFCF00;
        color: #393939;
        padding: 12px 40px;
        font-size: 18px;
        font-weight: 700;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background .3s, transform .1s;
    }

        .contact__form button.button:hover {
            background: #E6B800;
        }

        .contact__form button.button:active {
            transform: scale(0.97);
        }

/* ──────────────────────────────────────
   9. Recruitment セクション
────────────────────────────────────── */
/* セクション全体 */
.recruit {
    padding: 80px 0;
    background: #FFFFFF;
    text-align: center;
}

    /* タイトル */
    .recruit .section-title {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 24px;
        color: #393939;
    }

/* テキスト */
.recruit__text {
    font-size: 24px;
    margin-bottom: 32px;
    color: #555;
}

/* ボタン（outline） */
.recruit .button--outline {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 40px;
    border: 3px solid #393939;
    border-radius: 4px;
    color: #393939;
    text-decoration: none;
    transition: background .3s, color .3s;
}

    .recruit .button--outline:hover {
        background: #393939;
        color: #FFFFFF;
    }


@media (max-width:768px) {
    .works .rotator {
        width: 240px;
        height: 240px
    }

    .diamond {
        width: 72px;
        height: 72px;
        line-height: 72px
    }
}


/* ---------- レスポンシブ例（幅 768px 以下で縮小） ---------- */
@media (max-width: 768px) {
    :root {
        --cci-width: 100vw;
        --cci-height: 70vw;
        --cci-item-size: 120px;
    }
}

/* --------------------
   タブレット以下
   -------------------- */
@media (max-width: 768px) {
    /* ヘッダー */
    .header__inner {
        flex-wrap: wrap; /* 複数行に折り返し */
        justify-content: space-between;
    }

    .nav__list {
        flex-direction: column; /* 縦並び */
        gap: 12px;
    }

        .nav__list li {
            margin-right: 0;
        }

    .lang-selector {
        margin-top: 12px;
        margin-left: 0;
    }

    /* intro */
    .intro__logo img {
       width:300px;
    }

    /* hero セクション */
    .hero {
        height: 60vh; /* 高さを縮小 */
    }

    .hero__title {
        font-size: 48px; /* 文字サイズ縮小 */
    }

    /* purpose セクション */
    .purpose__inner {
        display: flex;
        flex-direction: column-reverse; /* 画像とコンテンツを縦並び逆順 */
        gap: 24px;
    }

    .purpose__content {
        text-align: center; /* 中央寄せ */
    }

    .purpose__video-wrapper {
        width: 100%;
    }

    /* hot-topics スライダー */
    .hot-topics__slider {
        padding-bottom: 80px; /* dot余白調整 */
    }

    .hot-topics__item {
        width: calc(50% - 16px); /* 2列表示 */
        margin: 0 8px 16px;
    }

    /* contact フォーム */
    .contact__form {
        max-width: 100%;
        padding: 0 16px;
    }
}

/* --------------------
   スマホ（もっと狭い）480px以下
   -------------------- */
@media (max-width: 480px) {
    body {
        font-size: 14px; /* 全体フォント縮小 */
    }

    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 16px;
    }

    /* ナビは隠してハンバーガー化 */
    .nav {
        display: none;
    }
    /* 代替として .hamburger を出す想定 */
    .hamburger {
        display: block;
    }

    /* intro アニメーション背景 */
    .intro__bg {
        clip-path: circle(0 at 50% 50%);
        animation-duration: 2s; /* アニメ短縮 */
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.2;
    }

    /* about-us のグリッド崩し */
    .about-us__pane-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* recruitment ボタン */
    .recruit .button--outline {
        padding: 12px 20px;
        font-size: 16px;
    }
}
