/* ==========================================================================
   1. 共通設定・デザイン変数 (Variables & Reset)
   ========================================================================== */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-dark: #111111;
    --color-gray-light: #f9f9f9;
    --color-border-light: #e0e0e0;
    --color-border-opacity: rgba(255, 255, 255, 0.15);
    --color-text-muted: #aaaaaa;

    --font-serif: 'Playfair Display', 'Times New Roman', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    --img-hero: url('assets/images/hero-stadium.jpg'), linear-gradient(135deg, #020205 0%, #11131c 100%);
    --img-hero-1440: url('assets/images/hero-stadium-1440.jpg'), linear-gradient(135deg, #020205 0%, #11131c 100%);
    --img-hero-tablet: url('assets/images/hero-stadium-tablet.jpg'), linear-gradient(135deg, #020205 0%, #11131c 100%);
    --img-hero-mobile: url('assets/images/hero-stadium-tablet.jpg'), linear-gradient(135deg, #020205 0%, #11131c 100%);
    --img-message: url('assets/images/message-stadium.jpg'), linear-gradient(180deg, #0a0b10 0%, #020204 100%);
    --img-message-portrait: url('assets/images/message-stadium-portrait.jpg'), linear-gradient(180deg, #0a0b10 0%, #020204 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background-color: var(--color-white); color: var(--color-black); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }
ul { list-style: none; }

/* 2. Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background-color: var(--color-white); border-bottom: 1px solid var(--color-border-light); z-index: 1000; }
.header-container { max-width: 1840px; height: 100%; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.logo a { display: flex; align-items: center; }
.logo img { height: 26px; width: auto; display: block; }
.global-nav ul { display: flex; align-items: center; gap: 30px; }
.global-nav a { font-size: 13px; font-weight: 500; letter-spacing: 1px; }
.btn-contact { border: 1px solid var(--color-black); padding: 8px 24px; border-radius: 2px; transition: background-color 0.3s, color 0.3s; }
.btn-contact:hover { background-color: var(--color-black); color: var(--color-white); opacity: 1; }
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 100%; height: 2px; background-color: var(--color-black); transition: all 0.3s ease; }

/* 3. Hero */
.hero-section { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 500px; background-color: #05060a; background-image: var(--img-hero); background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; padding-top: 70px; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.45); z-index: 1; }
.hero-content { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 40px; color: var(--color-white); z-index: 2; }
.hero-title { font-family: var(--font-serif); font-size: 112px; font-weight: 400; line-height: 1.15; letter-spacing: 2px; margin-bottom: 24px; margin-left: 50px; }
.hero-subtitle { font-size: 26px; font-weight: 300; letter-spacing: 4px; padding-left: 4px; margin-left: 50px; }

/* 4. Service */
.service-section { width: 100%; background-color: var(--color-white); }
.section-title-block { text-align: center; padding: 90px 0 60px 0; }
.section-title-en { font-family: var(--font-serif); font-size: 38px; font-weight: 400; letter-spacing: 2px; line-height: 1; margin-bottom: 8px; }
.section-title-jp { font-size: 16px; font-weight: 400; color: #666666; letter-spacing: 1px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
.service-card { height: 420px; display: flex; }
.card-content { width: 46%; box-sizing: border-box; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.card-photo { width: 54%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-title-en { font-weight: 900; font-size: 36px; letter-spacing: 1px; margin-bottom: 6px; line-height: 1; }
.card-title-jp { font-size: 15px; font-weight: 700; margin-bottom: 28px; letter-spacing: 1px; }
.card-text { font-size: 16px; line-height: 1.8; font-weight: 400; opacity: 0.9; }
.card-black .card-content { background-color: var(--color-black); color: var(--color-white); }
.card-black .card-photo { background-color: var(--color-black); }
.card-white .card-content { background-color: var(--color-white); color: var(--color-black); border: 1px solid var(--color-border-light); border-right: none; }
.card-white .card-photo { background-color: var(--color-white); border: 1px solid var(--color-border-light); border-left: none; }

/* 5. Message */
.message-section { position: relative; width: 100%; padding: 160px 0; background: var(--img-message); background-size: cover; background-position: center 75%; color: var(--color-white); border-top: 1px solid rgba(255, 255, 255, 0.15); }
.message-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.65); z-index: 1; }
.message-container { position: relative; max-width: 1500px; margin: 0; padding: 0 60px 0 160px; z-index: 2; }
.message-tag { font-size: 16px; letter-spacing: 2px; color: var(--color-text-muted); display: block; margin-bottom: 24px; }
.message-title { font-size: 66px; font-weight: 500; line-height: 1.35; letter-spacing: 2px; margin-bottom: 48px; }
.message-body p { font-size: 27px; line-height: 1.8; font-weight: 300; margin-bottom: 26px; }
.message-body p:last-child { margin-bottom: 0; }
.message-signature { margin-top: 50px; display: flex; align-items: flex-end; gap: 30px; }
.sig-text p { font-size: 15px; line-height: 1.8; }
.sig-image { font-family: var(--font-serif); font-style: italic; font-size: 28px; opacity: 0.8; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px; }

/* 6. Company */
.company-section { width: 100%; background-color: var(--color-white); padding-bottom: 120px; }
.company-table { max-width: 640px; margin: 0 auto; width: 100%; border-collapse: collapse; color: var(--color-black); padding: 0 40px; box-sizing: border-box; }
.company-table th, .company-table td { padding: 18px 0; font-size: 16px; vertical-align: top; border-bottom: 1px solid var(--color-border-light); }
.company-table th { width: 120px; font-weight: 500; text-align: left; color: #666666; letter-spacing: 1px; }
.company-table td { font-weight: 400; line-height: 1.8; color: var(--color-black); }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }

/* 6.5 Contact Form */
.contact-section { width: 100%; background-color: var(--color-gray-light); padding-bottom: 100px; }
.contact-page-top { padding-top: 70px; }
.contact-form { max-width: 640px; margin: 0 auto; padding: 0 40px; }
.form-row { margin-bottom: 28px; }
.form-row label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 1px; margin-bottom: 10px; }
.badge-required, .badge-optional { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 2px; }
.badge-required { background-color: var(--color-black); color: var(--color-white); }
.badge-optional { background-color: var(--color-white); color: #666666; border: 1px solid var(--color-border-light); }
.form-row input, .form-row textarea { width: 100%; padding: 14px 16px; font-family: var(--font-sans); font-size: 14px; border: 1px solid var(--color-border-light); border-radius: 2px; background-color: var(--color-white); color: var(--color-black); }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-black); }
.form-row textarea { resize: vertical; line-height: 1.8; }
.consent-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; cursor: pointer; }
.consent-label input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }
.consent-label a { color: var(--color-black); text-decoration: underline; }

/* スパム対策ハニーポット欄：人間には見えないよう画面外に配置（display:noneはボットに無視されやすいため） */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error-message { max-width: 640px; margin: 0 auto 32px; padding: 16px 20px; background-color: #fdecec; color: #c0392b; font-size: 14px; border-radius: 4px; text-align: center; }

.legal-content { max-width: 760px; margin: 0 auto; padding: 0 40px; color: var(--color-black); }
.legal-content > p { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
.legal-content h3 { font-size: 17px; font-weight: 700; margin: 40px 0 14px; }
.legal-content ul { margin: 0 0 24px; padding-left: 1.4em; }
.legal-content li { font-size: 15px; line-height: 1.9; margin-bottom: 6px; }
.legal-date { text-align: right; font-size: 13px; color: #666666; margin-top: 40px; }
.btn-submit { display: block; width: 100%; padding: 18px; background-color: var(--color-black); color: var(--color-white); border: none; border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: 2px; cursor: pointer; transition: opacity 0.3s ease; }
.btn-submit:hover { opacity: 0.8; }
.form-note { margin-top: 16px; font-size: 12px; color: #666666; text-align: center; line-height: 1.8; }

/* 7. Footer */
.site-footer { background-color: var(--color-black); color: var(--color-white); padding: 60px 0; border-top: 1px solid var(--color-border-opacity); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { margin-bottom: 8px; }
.footer-logo img { height: 24px; width: auto; display: inline-block; }
.copyright { font-size: 11px; color: #666666; }
.footer-legal { font-size: 11px; margin-top: 6px; }
.footer-legal a { color: #999999; text-decoration: underline; }
.footer-nav ul { display: flex; align-items: center; gap: 30px; }
.footer-nav a { font-size: 12px; letter-spacing: 1px; }
.footer-btn-contact { border: 1px solid var(--color-white); padding: 6px 20px; border-radius: 2px; }
.footer-btn-contact:hover { background-color: var(--color-white); color: var(--color-black); }

/* ==========================================================================
   8. レスポンシブ対応 (Media Queries)
   確認対象デバイス（9ブレークポイント／幅ベースで管理）
   - デスクトップ　: 1920×1080（基本スタイルで対応、max-width:1200pxコンテナが中央寄せされる）
   - ノートPC　　　: 1440×900 → max-width:1440px
   - ノートPC　　　: 1366×768 → max-width:1366px
   - タブレット縦　: 1024×1366 → max-width:1024px
   - タブレット縦　: 768×1024  → max-width:768px（ハンバーガーメニューに切替）
   - スマホ　　　　: 414×896  → max-width:414px
   - スマホ　　　　: 390×844  → max-width:390px
   - スマホ　　　　: 375×812 / 375×667 → max-width:375px
   ※ 上から順に「広い→狭い」の順で記述すること（後勝ちで上書きされるため、
     この並び順を変えないこと。!important は使用しない）
   ========================================================================== */

/* ---- 1440px以下（ノートPC / 1440×900） ---- */
@media (max-width: 1440px) {
    .header-container,
    .hero-content,
    .message-container,
    .footer-container { padding: 0 32px; }
    .header-container { max-width: 1360px; }

    .hero-title { font-size: 64px; margin-left: 50px; }
    .hero-section { background-image: var(--img-hero-1440); }

    .card-content { padding: 40px; }

    .message-title { font-size: 58px; }
    .message-body p { font-size: 23px; }
    .message-container { padding: 0 60px 0 100px; }
    .message-tag { font-size: 19px; }
    .hero-subtitle { font-size: 22px; margin-left: 50px; }

    .company-table th,
    .company-table td { font-size: 15px; }
    .section-title-en { font-size: 32px; }
    .section-title-jp { font-size: 14px; }
}

/* ---- 1366px以下（ノートPC / 1366×768） ---- */
@media (max-width: 1366px) {
    .hero-section { min-height: 460px; background-image: var(--img-hero); }
    .hero-title { font-size: 52px; }
    .hero-subtitle { letter-spacing: 3px; }

    .message-section { padding: 130px 0; }
    .message-title { font-size: 54px; }
    .message-body p { font-size: 22px; }
    .message-container { padding: 0 60px 0 90px; }
    .message-tag { font-size: 18px; }

    .company-table th,
    .company-table td { font-size: 15px; }
}

/* ---- 1024px以下（タブレット縦 / 1024×1366） ---- */
@media (max-width: 1024px) {
    .header-container { padding: 0 24px; }
    .hero-content { padding: 0 24px; }
    .hero-title { font-size: 48px; margin-left: 44px; }
    .hero-subtitle { margin-left: 44px; }
    .hero-section { background-image: var(--img-hero-tablet); }

    .service-card { height: auto; min-height: 300px; }
    .card-content { padding: 24px; width: 58%; }
    .card-photo { width: 42%; }
    .card-title-en { font-size: 26px; }

    .message-container { padding: 0 24px 0 44px; }
    .message-title { font-size: 36px; }
    .message-body p { font-size: 22px; }

    .footer-container { padding: 0 24px; }
}

/* ---- 768px以下（タブレット縦 768×1024 / スマホ共通のベース） ---- */
@media (max-width: 768px) {
    .header-container { padding: 0 20px; }
    .menu-toggle { display: flex; }
    .global-nav { position: fixed; top: 70px; left: 100%; width: 100%; height: calc(100vh - 70px); height: calc(100svh - 70px); background-color: var(--color-white); transition: left 0.4s ease; padding: 40px; z-index: 999; overflow-y: auto; }
    .global-nav.active { left: 0; }
    .global-nav ul { flex-direction: column; align-items: flex-start; gap: 24px; }
    .global-nav a { font-size: 16px; color: var(--color-black); }
    .btn-contact { display: inline-block; width: 100%; text-align: center; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-title { font-size: 40px; }
    .message-section { background-image: var(--img-message-portrait); }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { height: auto; flex-direction: column; }
    .card-content { width: 100%; padding: 40px 20px; }
    .card-photo { width: 100%; height: 420px; }
    .card-white .card-content { border-right: 1px solid var(--color-border-light); border-bottom: none; }
    .card-white .card-photo { border-left: 1px solid var(--color-border-light); border-top: none; }
    .service-grid .service-card:not(:first-child) { border-top: 1px solid var(--color-border-light); }
    .message-section { border-top: 1px solid var(--color-border-light); }

    /* 縦並び時のみ、EXHIBITION(3番目)とCREATIVE(4番目)の白黒を反転してアルバイト的な交互配色にする */
    .service-grid .service-card:nth-child(3).card-white .card-content { background-color: var(--color-black); color: var(--color-white); border: none; }
    .service-grid .service-card:nth-child(3).card-white .card-photo { background-color: var(--color-black); border: none; }
    .service-grid .service-card:nth-child(4).card-black .card-content { background-color: var(--color-white); color: var(--color-black); border-right: 1px solid var(--color-border-light); border-bottom: none; }
    .service-grid .service-card:nth-child(4).card-black .card-photo { border-left: 1px solid var(--color-border-light); border-top: none; }

    .message-title { font-size: 28px; }
    .message-body p { font-size: 18px; }
    .message-tag { font-size: 14px; }
    .message-signature { flex-direction: column; align-items: flex-start; gap: 15px; }
    .company-table { padding: 0 20px; }
    .contact-form { padding: 0 20px; }
    .legal-content { padding: 0 20px; }
    .footer-container { flex-direction: column; gap: 30px; text-align: center; }
    .footer-nav ul { flex-direction: column; gap: 15px; }
}

/* ---- 414px以下（スマホ大 / iPhone 11・XR 414×896） ---- */
@media (max-width: 414px) {
    .hero-title { font-size: 36px; letter-spacing: 1px; margin-left: 8px; }
    .hero-subtitle { font-size: 14px; letter-spacing: 3px; margin-left: 8px; }
    .hero-section { background-image: var(--img-hero-mobile); }

    .section-title-en { font-size: 26px; }

    .card-content { padding: 32px 20px; }
    .card-title-en { font-size: 30px; }
    .card-text { font-size: 13px; }

    .message-title { font-size: 22px; }
    .message-body p { font-size: 14px; }
    .message-tag { font-size: 12px; }
    .message-body br { display: none; }
    .message-body p { text-wrap: pretty; }
    .message-container { padding: 0 20px; }
    .message-section { background-color: #05060a; background-image: var(--img-message-portrait); background-size: contain; background-repeat: no-repeat; background-position: center; }

    .company-table { padding: 0; }
    .company-table th { padding: 18px 12px 18px 32px; font-size: 12px; }
    .company-table td { padding: 18px 32px 18px 12px; font-size: 12px; }
}

/* ---- 390px以下（スマホ中 / iPhone 12・13・14 390×844） ---- */
@media (max-width: 390px) {
    .header-container { padding: 0 16px; }
    .hero-content { padding: 0 16px; }
    .hero-title { font-size: 32px; }

    .card-content { padding: 30px 16px; }
    .card-title-en { font-size: 28px; }

    .message-container { padding: 0 20px; }
    .addr-building { display: block; }
    .company-table { padding: 0; }
    .company-table th { padding: 18px 12px 18px 28px; }
    .company-table td { padding: 18px 28px 18px 12px; }
    .addr-building { display: block; }
    .footer-container { padding: 0 16px; }
}

/* ---- 375px以下（スマホ小 / iPhone SE・8 375×667、X系 375×812） ---- */
@media (max-width: 375px) {
    .hero-title { font-size: 30px; letter-spacing: 0.5px; }
    .hero-subtitle { font-size: 13px; letter-spacing: 2px; }

    .card-title-en { font-size: 26px; }
    .card-title-jp { font-size: 12px; margin-bottom: 20px; }

    .message-title { font-size: 24px; }

    .company-table th { width: 90px; }
    .addr-building { display: block; }
}
