/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #009657;
    --cream: #FBF9EF;
    --sand: #D3F4DC;
    --dark: #4B3636;
    --mid: #777;
    --accent: #F38200;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    background: var(--cream);
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   3カラム グリッド (.shell)
============================================================ */
.shell {
    display: grid;
    grid-template-columns: 1fr 1000px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* ============================================================
   LEFT PANEL (.left)
============================================================ */
.left {
    background: var(--sand);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    overflow: hidden;
    position: relative;
}

.left-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    text-align: center;
}

.hero-img {
    display: block;
    max-width: 100%;
    height: auto;
    padding: 0 1rem;
}

.left__pipitto-wrap {
    position: absolute;
    top: 10%;
    right: 0;
    width: 35%;
}

.left__pipitto {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   MIDDLE PANEL (.middle)
============================================================ */
.middle {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 78, 80, 0.25) transparent;
}

.middle::-webkit-scrollbar {
    width: 3px;
}

.middle::-webkit-scrollbar-thumb {
    background: rgba(30, 78, 80, 0.25);
    border-radius: 2px;
}

/* ============================================================
   セクション共通
============================================================ */
.section {
    padding: 2rem 3rem;
    /* text-align: center; */
}

.contents {
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
}

.contents a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* セクション見出し */
.sec-h2 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: var(--dark);
    line-height: 1.3;
}

#hero {
    padding-bottom: 0.5rem;
}

#hero .sec-h2 {
    color: var(--green);
    text-align: center;
}

/* リード文 */
.sec-lead {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* ============================================================
   イベント概要ページへ ボタン
============================================================ */


.company-btn-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.company-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 2rem;
    background: var(--sand);
    color: var(--dark);
    border: 2px solid var(--green);
    border-radius: 100px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.company-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.company-btn__arrow {
    font-size: 0.7rem;
    color: var(--green);
    display: inline-block;
    margin-left: 0.3rem;
}

/* ============================================================
   企業名一覧 — 行ボタン & カードグリッド
============================================================ */
.row-group {
    margin-bottom: 1rem;
}

.row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 2rem;
    background: var(--sand);
    color: var(--dark);
    border: none;
    outline: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.row-btn:hover {
    background: var(--green);
    color: white;
    transform: translateY(-1px);
}

.row-btn__arrow {
    font-size: 0.75rem;
    color: var(--green);
    display: inline-block;
    transition: transform 0.25s;
}

.row-btn:hover .row-btn__arrow {
    color: white;
}

.row-btn.is-open .row-btn__arrow {
    transform: rotate(180deg);
}


/* ============================================================
   フッター
============================================================ */
.footer {
    padding: 2rem 3rem;
    background: var(--green);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__contact {
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.footer__contact p {
    font-size: 14px;
    font-weight: 700;
    margin-top: 0.4rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer__org {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    opacity: 0.85;
    line-height: 1.8;
}

.footer__org a {
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0 0.25rem;
}

.footer__org:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 1rem;
}

/* ============================================================
   RIGHT PANEL (.right)
============================================================ */
.right {
    background: var(--sand);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 3rem;
    border-left: 1px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.top-btn {
    display: block;
    padding: 0.6rem 1rem;
    background: white;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 100px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.top-btn:hover {
    background: var(--green);
    color: white;
}

.right__tontan-wrap {
    position: relative;
    margin-top: auto;
}

.right__tontan {
    display: block;
    position: relative;
    left: -3rem;
    width: calc(25% + 2.5rem);
    height: auto;
}

.right__progress {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.prog-label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: var(--mid);
    flex-shrink: 0;
}

.prog-track {
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    width: 0%;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.25s;
}

/* ============================================================
   モバイル UI — ドロワー / バックドロップ / ハンバーガー
   PC では非表示
============================================================ */
.mob-ham {
    display: none;
}

.right__cta1 {
    display: none;
}

.mob-drawer {
    display: none;
}

.mob-backdrop {
    display: none;
}

/* ============================================================
   RESPONSIVE — (〜1500px)
============================================================ */
@media (max-width: 1500px) {
    .left {
        display: none;
    }

    .shell {
        grid-template-columns: 1fr 220px;
    }

    .middle {
        grid-column: 1;
    }

    .right {
        grid-column: 2;
        padding: 1.75rem 1.25rem;
    }

    .right__tontan {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE — (〜1000px)
============================================================ */
@media (max-width: 1000px) {

    html,
    body {
        overflow: auto;
        height: auto;
    }

    .shell {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
    }

    .left {
        display: none;
    }

    /* .right を底バーに変形 */
    .right {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 0.5rem;
        gap: 0.5rem;
        background: white;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        z-index: 300;
        overflow: visible;
    }

    /* PC用要素を隠す */
    .top-btn,
    .right__tontan-wrap,
    .right__progress {
        display: none;
    }

    /* CTAラッパーを横並びに */
    .right__cta1 {
        flex: 1;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    /* CTAボタン共通 */
    .mob-bar__cta {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        padding: 0 0.9rem;
        border-radius: 10px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        text-decoration: none;
        transition: opacity 0.2s, transform 0.2s, background-color 0.2s, color 0.2s;
    }

    .mob-bar__cta--reserve {
        background: var(--accent);
        color: white;
    }

    .mob-bar__cta--reserve:hover {
        opacity: 0.8;
        transform: translateY(-1px);
    }

    .mob-bar__cta--exhibit {
        background: white;
        border: 2px solid var(--accent);
        color: var(--dark);
    }

    .mob-bar__cta--exhibit:hover {
        background: var(--accent);
        color: var(--cream);
    }

    .middle {
        height: auto;
        overflow: visible;
        padding-bottom: 76px;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    #hero {
        padding: 2.5rem 1.5rem 0.5rem;
    }

    .footer {
        padding: 1.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ──── ハンバーガーボタン ──── */
    .mob-ham {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 48px;
        height: 40px;
        flex-shrink: 0;
        background: var(--green);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mob-ham span:not(.mob-ham__label) {
        display: block;
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: transform 0.25s, opacity 0.25s;
        transform-origin: center;
    }

    .mob-ham.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mob-ham.is-open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mob-ham.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ──── ドロワー ──── */
    .mob-drawer {
        display: block;
        position: fixed;
        bottom: 64px;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        padding: 0.75rem 1.25rem 1.25rem;
        z-index: 295;
        transform: translateY(110%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.14);
    }

    .mob-drawer.is-open {
        transform: translateY(0);
    }

    .mob-drawer__handle {
        width: 36px;
        height: 4px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
        margin: 0 auto 1rem;
    }

    .mob-drawer__title {
        font-family: 'Zen Kaku Gothic New', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: var(--mid);
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        text-align: center;
    }

    .mob-drawer__grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .mob-drawer__row-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 0.25rem;
        background: var(--sand);
        border: 2px solid var(--green);
        border-radius: 10px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: var(--dark);
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }

    .mob-drawer__row-link:hover,
    .mob-drawer__row-link:active {
        background: var(--green);
        color: white;
    }

    /* ──── バックドロップ ──── */
    .mob-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 290;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .mob-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============================================================
   RESPONSIVE — スマホ (〜720px)
============================================================ */
@media (max-width: 720px) {
    .section {
        padding: 2.5rem 1rem;
    }
}

/* ============================================================
   RESPONSIVE — スマホ小サイズ (〜600px)
============================================================ */
@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .company-cards {
        grid-template-columns: 1fr;
    }
}

.br-400 {
    display: none;
}

@media (max-width: 415px) {
    .br-400 {
        display: inline;
    }
}