﻿/* リセット・ベース */
.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-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-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;
}





/* １）アニメーション後に使う画像用スタイル */
.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;

}

.view-more {
    display: block;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;

}

.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;
}



.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;
    }


.submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
}

.submit-overlay__box {
    display: grid;
    gap: 14px;
    place-items: center;
    padding: 22px 26px;
    border-radius: 16px;
    background: rgba(20,20,20,.72);
    border: 1px solid rgba(255, 208, 64, .35);
    box-shadow: 0 0 30px rgba(255, 208, 64, .18), 0 0 90px rgba(255, 208, 64, .10);
}

.glow-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* 二重リングで“輝き” */
    border: 5px solid rgba(255, 208, 64, .25);
    border-top-color: rgba(255, 208, 64, 1);
    border-right-color: rgba(255, 208, 64, .85);
    /* 光彩 */
    filter: drop-shadow(0 0 8px rgba(255, 208, 64, .8)) drop-shadow(0 0 18px rgba(255, 208, 64, .45));
    animation: spin 0.85s linear infinite;
}

.submit-overlay__text {
    color: #ffe7a0;
    letter-spacing: .04em;
    font-weight: 600;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------- レスポンシブ例（幅 768px 以下で縮小） ---------- */
@media (max-width: 768px) {
    :root {
        --cci-width: 100vw;
        --cci-height: 70vw;
        --cci-item-size: 120px;
    }
}
