/* ==========================================================================
   リセットCSS & ベーススタイル
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* ベースフォントを明朝体に設定 */
    font-family: 'Noto Serif JP', "Yu Mincho", "MS Mincho", serif;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* 汎用クラス */
.font-sans {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ==========================================================================
   ファーストビュー (FV) 全体レイアウト
   ========================================================================== */
.fv {
    position: relative;
    width: 100%;
    height: 100vh; /* 画面の高さ一杯に表示 */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 背景画像とオーバーレイ設定 */
.fv__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ダミー画像: イベント会場のようなぼかした画像を使用 */
    background-image: url('./images/fv/bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.fv__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 画像を少し暗くしてテキストの視認性を高める */
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ==========================================================================
   ヘッダーエリア
   ========================================================================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 40px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.header__logo img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.header__nav ul {
    display: flex;
    align-items: center;
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* メニュー間のスラッシュを疑似要素で追加 */
.header__nav li {
    display: flex;
    align-items: center;
}

.header__nav li:not(:last-child)::after {
    content: '/';
    margin: 0 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.header__cta {
    background-color: #c1a454; /* ゴールド系の色 */
    color: #ffffff;
    padding: 24px 48px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.header__cta:hover {
    background-color: #b09348;
    opacity: 1;
}

/* ==========================================================================
   中央コンテンツエリア
   ========================================================================== */
.fv__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 5;
}

.fv__center-logo {
    margin-bottom: 10px;
}

.fv__title {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}

/* メインアクションボタン */
.btn-primary {
    display: inline-block;
    border: 1px solid #c1a454;
    background-color: rgba(193, 164, 84, 0.35); /* 半透明のゴールド */
    backdrop-filter: blur(4px); /* 背景を少しぼかす */
    padding: 20px 80px;
    margin-bottom: 100px;
    font-size: 18px;
    letter-spacing: 0.1em;
}

.btn-primary:hover {
    background-color: rgba(193, 164, 84, 0.6);
}

/* ==========================================================================
   下部コンテンツエリア (コピーとスクロール)
   ========================================================================== */
.fv__bottom {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    z-index: 5;
}

.fv__copy-main {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* 文字の可読性向上 */
}

.fv__copy-sub {
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 50px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* スクロールインジケーター */
.fv__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fv__scroll-text {
    font-size: 13px;
    letter-spacing: 0.2em;
    font-weight: 300;
    text-transform: uppercase;
}

.fv__scroll-arrow {
    width: 24px;
    height: 24px;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* スクロール矢印のアニメーション */
@keyframes scrollBounce {
    0% { transform: translateY(0) rotate(45deg); opacity: 0; }
    50% { transform: translateY(10px) rotate(45deg); opacity: 1; }
    100% { transform: translateY(20px) rotate(45deg); opacity: 0; }
}

/* ==========================================================================
   参加企業セクション (Company)
   ========================================================================== */
.company {
    background-color: #fafafa; /* FVとの境界を明確にし、白いロゴパネルを目立たせる */
    color: #333333;
    padding: 80px 0;
    overflow: hidden; /* 横にはみ出した要素を隠す */
}

.company__title {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

.company__sliders {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 行と行の間の余白 */
}

.company__slider-row {
    display: flex;
    gap: 20px; /* リスト(ul)同士の間の余白 */
    width: fit-content;
    /* 40秒かけて左にスクロールし、無限に繰り返す */
    animation: marquee 40s linear infinite;
}

/* 偶数行（2行目）は逆方向にスクロールさせる */
.company__slider-row:nth-child(even) {
    animation-direction: reverse;
}

.company__list {
    display: flex;
    gap: 20px; /* ロゴ同士の間の余白 */
}

.company__item {
    width: 220px;
    height: 80px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    flex-shrink: 0; /* フレックスコンテナ内で縮小させない */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.company__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* アスペクト比を維持したままコンテナに収める */
}

/* 無限スクロール用のアニメーション定義 */
@keyframes marquee {
    0% { transform: translateX(0); }
    /* コンテナ全体の半分の位置まで移動したタイミングで0に戻すことでシームレスにループ */
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   イベント紹介セクション (About)
   ========================================================================== */
.about {
    padding: 100px 0;
    background-color: #ffffff;
    color: #333333;
    overflow: hidden;
}

.about__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about__title {
    color: #c1a454; /* ゴールド系の色 */
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

/* 画像ギャラリー（自動・無限横スクロール） */
.about__gallery {
    overflow: hidden;
    margin-bottom: 80px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.about__gallery-track {
    display: flex;
    align-items: flex-start;
    width: fit-content;
    gap: 20px;
    animation: marquee 55s linear infinite;
}

.about__gallery-item {
    position: relative;
    width: 260px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 画像ごとの高さと上下位置を調整し、アーチ状の配置を再現（1周目・2周目で同じパターン） */
.about__gallery-item:nth-child(5n + 1) { height: 320px; margin-top: 80px; }
.about__gallery-item:nth-child(5n + 2) { height: 380px; margin-top: 40px; }
.about__gallery-item:nth-child(5n + 3) { height: 440px; margin-top: 0; } /* 中央を最も高く */
.about__gallery-item:nth-child(5n + 4) { height: 380px; margin-top: 40px; }
.about__gallery-item:nth-child(5n + 5) { height: 320px; margin-top: 80px; }

.about__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像を少し暗くして文字の視認性を高める */
    filter: brightness(0.85);
    transition: filter 0.3s;
}

.about__gallery-item:hover img {
    filter: brightness(1);
}

/* 画像上の横倒しテキスト */
.about__gallery-text {
    position: absolute;
    bottom: 20px;
    right: 0px;
    transform-origin: right bottom;
    /* 文字を反時計回りに90度回転して配置 */
    transform: rotate(-90deg) translateX(100%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 48px;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    pointer-events: none; /* テキストが画像のホバーの邪魔をしないようにする */
}

/* テキストコンテンツエリア */
.about__content {
    max-width: 800px;
    margin: 0 auto;
}

.about__lead {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about__line {
    border: none;
    border-top: 1px solid #c1a454;
    margin-bottom: 30px;
}

.about__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .about__gallery-track {
        animation: none;
    }
}

/* ==========================================================================
   大型CTAセクション (Big CTA)
   ========================================================================== */
.cta-large {
    position: relative;
    padding: 120px 20px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 背景画像と暗いオーバーレイ */
.cta-large__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/cta-large/bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.cta-large__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* FVより暗めに設定 */
    z-index: -1;
}

.cta-large__content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    width: 100%;
}

.cta-large__catch {
    color: #c1a454;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.cta-large__title {
    color: #c1a454;
    font-size: 38px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

.cta-large__desc {
    font-size: 16px;
    line-height: 2.4;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

.cta-large__info {
    max-width: 500px;
    font-size: 15px;
    letter-spacing: 0.1em;
    margin: 0 auto;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: left;
}

.cta-large__info-row {
    display: flex;
    align-items: flex-start;
}

.cta-large__info-label {
    width: 120px;
    text-align: center;
    margin-right: 20px;
    opacity: 0.9;
}

.cta-large__info-value {
    text-align: left;
}

/* CTAボタン */
.cta-large__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 20px 40px;
    background-color: rgba(124, 106, 58, 0.6); /* 暗いゴールド系の背景 */
    border: 1px solid rgba(193, 164, 84, 0.6);
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.cta-large__btn:hover {
    background-color: rgba(193, 164, 84, 0.8);
    opacity: 1;
}

.cta-large__btn-arrow {
    position: absolute;
    left: 30px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
}

/* ==========================================================================
   ストロングポイントセクション (Strong Point)
   ========================================================================== */
.strong-point {
    padding: 100px 0;
    background-color: #ffffff;
    color: #333333;
}

.strong-point__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.strong-point__title {
    color: #c1a454;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.strong-point__list {
    border-top: 1px solid #e5e7eb;
}

.strong-point__item {
    border-bottom: 1px solid #e5e7eb;
}

.strong-point__header {
    display: flex;
    align-items: flex-start;
    padding: 40px 0 16px 0;
}

.strong-point__header-inner {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
}

.strong-point__text-main {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.strong-point__text-sub {
    color: #c1a454;
    font-size: 14px;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.strong-point__content {
    padding: 0 0 40px 0;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.05em;
    color: #555555;
}

.strong-point__content p {
    margin: 0;
}

/* ==========================================================================
   お問い合わせセクション (Contact: Information & Form)
   ========================================================================== */
.contact {
    padding: 100px 0;
    background-color: #fafafa; /* 前セクションとの区別のため少し色をつける */
    color: #333333;
}

.contact__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.contact__col {
    flex: 1;
}

.contact__title {
    color: #c1a454;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

/* ------------------------------
   左側: Information
   ------------------------------ */
.contact__info-box {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 40px 30px;
    height: calc(100% - 50px); /* タイトル分を引いて高さを揃える */
}

.contact__info-note {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.contact__info-item {
    margin-bottom: 25px;
}

.contact__info-item:last-child {
    margin-bottom: 0;
}

.contact__info-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.contact__info-value {
    background-color: #666666;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

/* ------------------------------
   右側: Form
   ------------------------------ */
.contact__form-box {
    background-color: #ffffff;
    border: 1px solid #c1a454; /* フォーム側はゴールドの枠線 */
    padding: 40px 30px;
    height: calc(100% - 50px);
}

.form-message {
    margin: 0 0 20px 0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    border-radius: 2px;
}

.form-message--success {
    background-color: rgba(193, 164, 84, 0.12);
    border: 1px solid #c1a454;
    color: #333333;
}

.form-message--error {
    background-color: #fef2f2;
    border: 1px solid #e5b4b4;
    color: #7f1d1d;
}

.form-select-wrap {
    position: relative;
}

select.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 25px;
}

.form-group--flex {
    display: flex;
    gap: 20px;
}

.form-group--flex .form-item {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.form-required {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #c1a454;
    border: 1px solid #c1a454;
    border-radius: 2px;
    vertical-align: middle;
}

.form-required--inline {
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcd1b4;
    background-color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    color: #333333;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #c1a454;
    box-shadow: 0 0 0 2px rgba(193, 164, 84, 0.2);
}

.form-input::placeholder {
    color: #aaaaaa;
}

/* 同意チェックボックス部分 */
.form-agreement {
    margin-bottom: 30px;
    margin-top: 10px;
}

.form-agreement-link {
    display: block;
    font-size: 10px;
    color: #c1a454;
    margin-bottom: 8px;
    text-decoration: underline;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    background-color: #bc9e4c; /* デザインに近い少し落ち着いたゴールド */
    color: #ffffff;
    border: none;
    padding: 18px 0;
    font-size: 16px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s;
}

.form-submit:hover:not(:disabled) {
    opacity: 0.8;
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   レスポンシブ対応 (Media Queries)
   ========================================================================== */

/* タブレット・小型PC向け */
@media screen and (max-width: 1024px) {
    .header__nav {
        display: none; /* メニュー項目が多い場合、タブレット以下は非表示（またはハンバーガー化） */
    }
    .header__logo {
        padding-left: 10px;
    }
    .header__logo img {
        width: 200px;
        height: auto;
        object-fit: contain;
    }
    .fv__copy-main {
        font-size: 22px;
    }
    .fv__copy-sub {
        font-size: 13px;
    }
}

/* スマートフォン向け */
@media screen and (max-width: 768px) {
    .header__cta {
        padding: 15px 20px;
        font-size: 12px;
    }

    .header__logo img {
        width: 120px;
        height: auto;
        object-fit: contain;
    }

    .header__logo span {
        font-size: 18px;
    }

    .fv {
        position: relative;
        height: 50vh;
        min-height: 400px;
    }

    .fv__center-logo img {
        width: 100px;
        height: auto;
        margin-top: 100px;
    }

    .fv__title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 15px 40px;
        font-size: 15px;
        margin-top: 20px;
    }

    /* タイトル・サブタイトルを上部に置き、中央ロゴはその下へ */
    .fv__center {
        top: 66%;
    }

    .fv__bottom {
        top: 75px;
        bottom: auto;
    }

    .fv__copy-main {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .fv__copy-sub {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .fv__scroll {
        display: none;
    }

    /* 企業一覧セクションのレスポンシブ調整 */
    .company {
        padding: 50px 0;
    }

    .company__title {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .company__sliders {
        gap: 12px;
    }

    .company__slider-row,
    .company__list {
        gap: 12px; /* スマホでは間隔を狭める */
    }

    .company__item {
        width: 150px;
        height: 60px;
        padding: 10px;
    }

    /* イベント紹介セクションのレスポンシブ調整 */
    .about {
        padding: 60px 0;
    }

    .about__title {
        font-size: 20px;
        margin-bottom: 30px;
        text-align: center;
    }

    .about__gallery {
        margin-bottom: 50px;
    }

    .about__gallery-track {
        gap: 15px;
    }

    /* nth-child アーチ指定より詳細度を上げてスマホは高さ統一 */
    .about__gallery .about__gallery-item {
        width: 220px;
        height: 320px !important;
        margin-top: 0 !important;
    }

    .about__gallery-text {
        font-size: 36px;
    }

    .about__lead {
        font-size: 16px;
    }

    /* 大型CTAセクションのレスポンシブ調整 */
    .cta-large {
        padding: 80px 20px;
    }

    .cta-large__catch {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .cta-large__title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .cta-large__desc {
        font-size: 14px;
        line-height: 2;
        margin-bottom: 40px;
    }

    .cta-large__info {
        font-size: 13px;
        gap: 10px;
        align-items: center;
    }

    .cta-large__info-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .cta-large__info-label {
        width: auto;
        margin-right: 0;
    }

    .cta-large__btn {
        padding: 15px 20px;
        font-size: 16px;
    }

    .cta-large__btn-arrow {
        left: 20px;
    }

    /* ストロングポイントセクションのレスポンシブ調整 */
    .strong-point {
        padding: 60px 0;
    }

    .strong-point__title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .strong-point__header {
        padding: 25px 0 10px 0;
    }

    .strong-point__header-inner {
        flex-direction: column;
        gap: 8px;
    }

    .strong-point__text-main {
        font-size: 16px;
        line-height: 1.5;
    }

    .strong-point__text-sub {
        font-size: 12px;
    }

    .strong-point__content {
        padding: 0 0 25px 0;
        font-size: 14px;
    }

    /* お問い合わせセクションのレスポンシブ調整 */
    .contact {
        padding: 60px 0;
    }

    .contact__inner {
        flex-direction: column; /* 横並びから縦積みに変更 */
        gap: 50px;
    }

    .contact__info-box,
    .contact__form-box {
        padding: 30px 20px;
        height: auto; /* 高さを自動に戻す */
    }

    .form-group--flex {
        flex-direction: column;
        gap: 25px;
    }
}
