/* ========================================
   フォント定義
========================================= */
@font-face {
    font-family: 'GD-HighwayGothicJA';
    src: url('../fonts/GDhwGoJA-OTF112b2.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* フォント読み込み中も代替フォントで表示 */
}

/* ========================================
   CSS変数（グローバル設定）
========================================= */
:root {
    /* レスポンシブコンテナの設定 */
    --max-screen-width: 450px;
    --container-width-percent: 94vw; /* viewport widthの94% */
    /* 最大幅: 画面が狭い時は94vw、450px以上の時は固定値 */
    --container-max-width: calc(var(--max-screen-width) * 0.94);
    
    /* 赤枠カードの共通設定 */
    --red-card-height: 250px;
}

/* ========================================
   リセット & ベーススタイル
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro', 'Yu Gothic', 'メイリオ', Meiryo, sans-serif;
    background-color: #6ac9cc;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ========================================
   レスポンシブコンテナ（汎用）
========================================= */
/* 
 * 使い方:
 * 1. .responsive-container を適用すると、横幅が画面幅（viewport）の92%になります
 * 2. 画面幅が380pxを超えると、最大幅は 380px × 92% = 349.6px に固定されます
 * 3. 中央揃えで表示されます
 * 
 * 仕組み:
 * width: min(92vw, 349.6px) で、画面幅の92%と固定値の小さい方を自動選択
 * 
 * カスタマイズ:
 * :root の --max-screen-width を変更することで、すべてのレスポンシブコンテナの
 * 最大幅を一括で変更できます
 */
.responsive-container {
    width: min(var(--container-width-percent), var(--container-max-width));
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   ヘッダー
========================================= */
.header {
    background: #0292bb;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-wave-top {
    width: 100%;
    height: auto;
    display: block;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px 20px;
}

.header-text {
    flex: 1;
    text-decoration: none;
    display: block;
    transition: opacity 0.3s;
}

.header-text:hover {
    opacity: 0.8;
}

.header-subtitle {
    font-size: 12px;
    color: white;
    margin-bottom: 5px;
}

.header-title {
    font-size: 32px;
    color: #f9d483;
    font-weight: bold;
    line-height: 1.2;
}

.menu-button {
    background: #fc98a5;
    border: none;
    border-radius: 0 0 0 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    width: 90px;
    height: 90px;
    margin-top: -30px;
    margin-right: -34px;
}

.menu-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-lines span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
}

.menu-text {
    font-size: 9px;
    color: white;
    font-weight: bold;
}

/* ========================================
   メインコンテンツ
========================================= */
.main-content {
    padding-top: 135px;
    padding-bottom: 20px;
}

/* ========================================
   ヒーローセクション
========================================= */
.hero-section {
    background: #0292bb;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    
    /* レスポンシブコンテナの設定を適用 */
    width: min(var(--container-width-percent), var(--container-max-width));
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.hero-image-container {
    width: 100%;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    padding: 25px 15px 30px;
}

.hero-illustration {
    margin-bottom: 15px;
}

.hero-illustration img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.hero-description {
    color: white;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.hero-description p {
    margin-bottom: 8px;
}

.hero-highlight {
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.hero-note {
    font-size: 10px;
    color: white;
    margin-bottom: 12px;
    line-height: 1.5;
}

.stamp-card-button {
    display: block;
    background-color: #6ac9cc;
    color: white;
    border: 3px solid white;
    border-radius: 26px;
    padding: 12px 24px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    margin: 20px auto;
    width: min(85vw, calc(var(--container-max-width) * 0.85));
    font-family: 'Hiragino Maru Gothic Pro', sans-serif;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.stamp-card-button:hover {
    opacity: 0.8;
}

.hero-link {
    color: white;
    text-decoration: underline;
    font-size: 11px;
    display: inline-block;
}

.hero-link-external {
    display: block;
    color: white;
    text-decoration: underline;
    font-size: 12px;
    text-align: right;
    margin-top: 16px;
    margin-bottom: 16px;
    
    /* レスポンシブコンテナの設定を適用 */
    width: min(var(--container-width-percent), var(--container-max-width));
    margin-left: auto;
    margin-right: auto;
}

.hero-link-external:hover {
    opacity: 0.8;
}

/* ========================================
   ボタンセクション
========================================= */
.button-section {
    /* レスポンシブコンテナの設定を適用 */
    width: min(var(--container-width-percent), var(--container-max-width));
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
}

.cta-button {
    padding: 12px 9px 6px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    color: #351719;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    width: 49%;
    max-width: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
    /* テキストの折り返しを許可 */
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button.pink {
    background: #fc98a5;
}

.cta-button.yellow {
    background: #f9d483;
}
z
.button-arrow {
    font-size: 16px;
    font-weight: normal;
}

/* ========================================
   セクションタイトル
========================================= */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 18px;
    position: relative;
    padding: 18px 48px;
    min-height: 72px;
    background-image: url("assets/Subtract.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    
    /* レスポンシブコンテナの設定を適用 */
    width: min(var(--container-width-percent), var(--container-max-width));
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 18px;
    color: #fc98a5;
    font-weight: bold;
    white-space: nowrap;
}

.section-title.yellow-section h2 {
    color: #f9d483;
}

.star-deco {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ========================================
   赤枠カード(共通コンポーネント)
========================================= */
.red-card {
    background: white;
    border: 4px solid #e33d3f;
    border-radius: 23px;
    padding: 0 20px;
    box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.25);
    
    /* 高さを統一 */
    height: var(--red-card-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* レスポンシブコンテナの設定を適用 */
    width: min(var(--container-width-percent), var(--container-max-width));
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.red-card-title {
    font-size: 24px;
    color: #e33d3f;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
    font-family: 'GD-HighwayGothicJA', 'Hiragino Kaku Gothic Pro', sans-serif;
}

.red-card-content {
    display: flex;
    gap: 10px;
    align-items: center;
}

.red-card-content.reverse {
    flex-direction: row-reverse;
}

.red-card-image {
    flex-shrink: 0;
}

.red-card-image img {
    max-width: 130px;
    height: auto;
}

.red-card-text {
    font-size: 14px;
    color: #0292bb;
    line-height: 1.6;
    font-weight: 600;
    text-align: left;
    flex: 1;
}

.red-card-note {
    font-size: 11px;
    color: #b2b2b2;
    text-align: center;
    margin-top: 8px;
}

/* デジタルカード（画像上、テキスト下の縦配置） */
.red-card.digital-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.red-card.digital-card .red-card-image {
    text-align: center;
}

.red-card.digital-card .red-card-image img {
    max-width: 140px;
}

.red-card.digital-card .red-card-text {
    text-align: center;
    font-size: 20px;
}

/* ========================================
   スタンプページ
   ======================================== */

.stamp-page {
    background-color: #6ac9cc;
    min-height: 100vh;
    padding: 215px 22px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stamp-sheet {
    width: 100%;
    max-width: 390px;
}

/* スタンプ台紙エリア */
.stamp-canvas {
    width: 345px;
    height: 345px;
    background-color: white;
    border: 4px solid #e33d3f;
    border-radius: 4px;
    box-shadow: inset 0px 4px 6.7px -31px rgba(0, 0, 0, 0.25);
    margin: 0 auto 32px;
    position: relative;
    overflow: hidden;
}

.stamp-overlay {
    position: absolute;
    inset: 0;               /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
    z-index: 1;
}

/* 取得済みスタンプは表示 */
.stamp-overlay.acquired {
    opacity: 1;
    z-index: 2;
}

/* スタンプグリッド */
.stamp-grid {
    display: grid;
    grid-template-columns: repeat(4, 65px);
    grid-template-rows: repeat(2, 65px);
    gap: 9px;
    justify-content: center;
    row-gap: 9px;
}

.stamp-grid .stamp-item:nth-child(5),
.stamp-grid .stamp-item:nth-child(6),
.stamp-grid .stamp-item:nth-child(7) {
    grid-row: 2;
}

.stamp-grid .stamp-item:nth-child(5) {
    grid-column: 1 / 2;
    margin-left: 43px;
}

.stamp-grid .stamp-item:nth-child(6) {
    grid-column: 2 / 3;
    margin-left: 43px;
}

.stamp-grid .stamp-item:nth-child(7) {
    grid-column: 3 / 4;
    margin-left: 43px;
}

/* スタンプアイテム */
.stamp-item {
    width: 65px;
    height: 65px;
    position: relative;
    transition: transform 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景要素（共通）: 未取得時は stamp-mi を表示 */
.stamp-item .stamp-bg {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 6px;
    transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease, background-image 120ms ease;
    pointer-events: none;
    background-image: url("assets/stamp-mi.png");
}

/* 取得済みなら stamp-kan を表示 */
.stamp-item.acquired .stamp-bg {
    background-image: url("assets/stamp-kan.png");
    filter: none;
}

/* UUID表示エリア */
#uuid-display {
    margin-top: 24px;
    font-size: 12px;
    color: #fff;
    text-align: center;
}

.completion-survey {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2100;
}

.completion-survey.show {
    opacity: 1;
    pointer-events: auto;
}

.completion-survey-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.completion-survey-card {
    position: relative;
    width: min(320px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 32px 24px 28px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    z-index: 1;
}

.completion-survey-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff8a00;
    margin: 0;
}

.completion-survey-description {
    margin: 0;
    font-size: 14px;
    color: #5c5c5c;
    line-height: 1.6;
}

.completion-survey-star-field {
    display: flex;
    gap: 12px;
}

.completion-survey-star {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid #e4e4e4;
    background: #ffffff;
    font-size: 22px;
    font-weight: 700;
    color: #c0c0c0;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}

.completion-survey-star:hover,
.completion-survey-star:focus-visible {
    border-color: #ffbc5a;
    color: #ffa726;
    transform: translateY(-2px);
    outline: none;
}

.completion-survey-star[aria-pressed="true"] {
    background: #ffe4c2;
    border-color: #ff991f;
    color: #ff7a00;
}

.completion-survey-star-label {
    display: block;
    font-size: 11px;
    color: #7a7a7a;
}

.completion-survey-star[aria-pressed="true"] .completion-survey-star-label {
    color: #ff7a00;
}

.completion-survey-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.completion-survey-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border-radius: 999px;
    border: none;
    background: #ffb53d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease;
}

.completion-survey-next:disabled {
    background: #f0f0f0;
    color: #b7b7b7;
    cursor: not-allowed;
}

.completion-survey-next:not(:disabled):hover,
.completion-survey-next:not(:disabled):focus-visible {
    background: #ff9c0f;
    transform: translateY(-1px);
    outline: none;
}

.stamp-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2000;
}

.stamp-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.stamp-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.stamp-popup-card {
    position: relative;
    width: 280px;
    min-height: 355px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 24px 36px;
    text-align: center;
    background-color: #ffffff;
    background-image: url("assets/get_stamp/Rectangle_92.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    z-index: 1;
}

.stamp-popup-card.variant-complete {
    width: 327px;
    min-height: 379px;
    height: auto;
    padding: 64px 32px 40px;
    background-color: #ffffff;
    background-image: url("assets/スクリーンショット 2025-10-24 0.43.32.png");
}

.stamp-popup-standard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.stamp-popup-card.variant-complete .stamp-popup-standard {
    display: none;
}

.stamp-popup-complete {
    display: none;
    width: 100%;
    flex: 1;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stamp-popup-card.variant-complete .stamp-popup-complete {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.stamp-popup-complete-icon {
    width: 120px;
    max-width: 70%;
    height: auto;
    margin-bottom: 0;
}

.stamp-popup-complete-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0292bb;
    line-height: 1.6;
    text-align: center;
    white-space: pre-line;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stamp-popup-title {
    width: 86px;
    height: auto;
}

.stamp-popup-card.variant-complete .stamp-popup-title {
    width: 85%;
    max-width: 85%;
    height: auto;
}

.stamp-popup-divider {
    width: 109px;
    height: auto;
}

.stamp-popup-illustration {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.stamp-popup-thumb {
    width: 60px;
    height: auto;
}

.stamp-popup-star {
    width: 47px;
    height: auto;
}

#stamp-popup-text {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #0292bb;
    line-height: 1.6;
    text-align: center;
    white-space: pre-line;
}

.stamp-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    border-radius: 999px;
    border: 2px solid #d7d7d7;
    background: #ffffff;
    cursor: pointer;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #969696;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.stamp-popup-close:hover {
    border-color: #c5c5c5;
}

.stamp-popup-close:focus-visible {
    outline: 2px solid #0292bb;
    outline-offset: 4px;
}

.stamp-popup-close-label {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
}

.stamp-popup-card.variant-complete .stamp-popup-close {
    margin-top: 20px;
}

.stamp-popup-card.variant-complete .stamp-popup-close:hover {
    border-color: #c5c5c5;
}

.stamp-popup-card.variant-complete .stamp-popup-close-label {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   デジタルカード
========================================= */
.digital-section {
    padding: 25px 0 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    
    /* レスポンシブコンテナの設定を適用 */
    width: min(var(--container-width-percent), var(--container-max-width));
    margin-left: auto;
    margin-right: auto;
}

.digital-section h2 {
    font-size: 18px;
    color: #f9d483;
    font-weight: bold;
    margin: 0 12px;
}

.digital-section .star-deco {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.digital-section .red-card {
    margin-top: 30px;
}

.digital-section .red-card-image img {
    max-width: 200px;
}

.digital-section .red-card-text {
    font-size: 20px;
}

/* ========================================
   フッターロゴ
========================================= */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 48px;
    width: min(var(--container-width-percent), var(--container-max-width));
}

.footer-logo img {
    width: 155px;
    height: auto;
    display: block;
}

/* ========================================
   フッター
========================================= */
.footer {
    background: #0292bb;
    padding: 12px;
    text-align: center;
}

.footer p {
    font-size: 11px;
    color: white;
}

/* ========================================
   レスポンシブ対応
========================================= */
/* Contact Page Styles */
.contact-page {
    padding: 50px 20px 40px;
    max-width: var(--max-screen-width);
    margin: 0 auto;
}

.contact-title {
    font-size: 32px;
    font-weight: bold;
    color: #0292bb;
    text-align: center;
    margin-bottom: 40px;
}

.contact-section {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #fc98a5;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #fc98a5;
}

.contact-info {
    font-size: 14px;
    line-height: 1.8;
    color: #351719;
}

.contact-info p {
    margin: 8px 0;
}

.contact-org {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 12px !important;
}

.contact-link {
    color: #0292bb;
    text-decoration: none;
    word-break: break-all;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-button {
    display: block;
    width: 205px;
    margin: 24px auto 0;
    padding: 12px 24px;
    background: #fc98a5;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.contact-button:hover {
    opacity: 0.8;
}

/* ========================================
   ハンバーガーメニュー
========================================= */
.hamburger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
}

.hamburger-menu.active {
    right: 0;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background: rgba(53, 23, 25, 0.95);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.hamburger-menu.active .menu-content {
    transform: translateX(0);
}

/* メニューの閉じるボタン */
.menu-close {
    position: absolute;
    top: -10px;
    right: -14px;
    background: #fc98a5;
    border: none;
    border-radius: 0 0 0 100%;
    width: 90px;
    height: 90px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.close-icon {
    width: 25px;
    height: 25px;
    position: relative;
}

.close-icon span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: white;
    border-radius: 2px;
}

.close-icon span:first-child {
    transform: translateY(-50%) rotate(45deg);
}

.close-icon span:last-child {
    transform: translateY(-50%) rotate(-45deg);
}

.close-text {
    font-size: 9px;
    color: white;
    font-weight: bold;
}

/* メニューナビゲーション */
.menu-nav {
    padding-top: 15vh;
    padding-left: 38px;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-nav li {
    margin-bottom: 20px;
    line-height: 4;
}

.menu-nav a {
    font-size: 16px;
    color: white;
    text-decoration: none;
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 600;
    letter-spacing: 1.6px;
    transition: opacity 0.3s;
}

.menu-nav a:hover {
    opacity: 0.7;
}

/* メニューソーシャル */
.menu-social {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 66px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.7;
}

.social-icon {
    width: 50px;
    /* height: 50px; */
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-link span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-decoration: underline;
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    line-height: 4;
}

.social-link.twitter span {
    font-size: 20px;
    letter-spacing: 2px;
}

/* ローディングオーバーレイ */
#loading {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#loading .loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

#loading .loading-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.5rem;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.loading-gif {
    width: 160px;
    max-width: 60vw;
    height: auto;
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.08em;
}

.loading-progress {
    width: 240px;
    max-width: 70vw;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #4a8ff7;
    background: rgba(74, 143, 247, 0.15);
}

.loading-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #d8e9ff 35%, #4a8ff7 100%);
    border-radius: inherit;
}

.loading-progress-fill.animate {
    animation: loadingProgress 2.8s ease-in-out forwards;
}

@keyframes loadingProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
