/* :::: ルート変数定義 :::: */
:root {
    /* カラーパレット */
    --primary-color: #002040; /* 深いミッドナイトブルー */
    --primary-light: #003366;
    --accent-color: #d4af37; /* ゴールド */
    --accent-gradient: linear-gradient(135deg, #d4af37 0%, #f3d676 100%);
    --text-color: #333333;
    --text-light: #666666;
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* タイポグラフィ */
    --font-base: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    
    /* スペーシング */
    --section-padding: 100px;
    --section-padding-sp: 60px;
    --container-width: 1140px;
}

/* :::: 基本リセット :::: */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; }

/* :::: 共通クラス :::: */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-padding) 0; }
@media (max-width: 768px) { .section { padding: var(--section-padding-sp) 0; } }
.text-center { text-align: center; }

/* 見出し */
.section__header { text-align: center; margin-bottom: 70px; }
.section__subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.section__subtitle::after {
    content: ''; display: block; width: 40px; height: 2px;
    background: var(--accent-gradient); margin: 10px auto 0;
}
.section__title {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
}
@media (max-width: 768px) { .section__title { font-size: 1.7rem; } }

/* ボタン */
.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-align: center;
}
.btn--primary {
    background: var(--accent-gradient);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
}
.btn--large { padding: 20px 60px; font-size: 1.1rem; }

/* アニメーション */
.fade-in { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.25, 1, 0.5, 1); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }


/* :::: ヘッダー :::: */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 1000;
    display: flex; align-items: center; transition: 0.3s;
}
.header.is-scrolled { height: 70px; background: #fff; }
.header__inner {
    width: 100%; max-width: var(--container-width);
    margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.header__logo a {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.05em; /* 文字間を少し広げて高級感 */
    display: inline-flex;
    align-items: baseline; /* ベースラインを揃える */
    text-decoration: none;
}

.header__logo span {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 12px; /* 少し離す */
    position: relative;
    padding-left: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase; /* 小文字でも大文字表示にする */
}

/* 左側に区切りの縦棒を入れる */
.header__logo span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background-color: #ccc;
}
.header__nav { display: none; }
@media (min-width: 992px) {
    .header__nav { display: block; }
    .header__list { display: flex; gap: 30px; align-items: center; }
    .header__list a { font-weight: 600; font-size: 0.95rem; position: relative; }
    .header__list a:hover { color: var(--primary-light); }
    .header__cta a {
        background: var(--primary-color); color: white; padding: 12px 25px; border-radius: 30px;
    }
    .header__cta a:hover { background: var(--primary-light); transform: translateY(-2px); }
}

/* ハンバーガー & ドロワー */
.hamburger { display: block; width: 30px; height: 20px; background: none; border: none; position: relative; z-index: 2000; cursor: pointer; }
@media (min-width: 992px) { .hamburger { display: none; } }
.hamburger span { width: 100%; height: 2px; background: var(--primary-color); position: absolute; transition: 0.3s; right: 0; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; width: 70%; }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span { background: #fff; width: 100%; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

.drawer {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--primary-color); z-index: 1500; transition: 0.4s;
    display: flex; justify-content: center; align-items: center;
}
.drawer.active { right: 0; }
.drawer__link { display: block; font-size: 1.5rem; color: white; padding: 20px; font-weight: bold; }


/* :::: ヒーロースライダー :::: */
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; }
.hero__slide {
    position: absolute; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.1); transition: opacity 2s, transform 8s;
    display: flex; align-items: center; justify-content: center; z-index: 1;
}
.hero__slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero__overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,20,40,0.1); z-index: 3; }
.hero__content { position: relative; z-index: 4; text-align: center; color: white; padding: 20px; }
.hero__title {
    font-size: 4rem; font-weight: 800; margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.hero__text { font-size: 1.4rem; font-weight: 500; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
@media (max-width: 768px) {
    .hero__title { font-size: 2rem; }
    .hero__text { font-size: 1rem; }
}


/* :::: Services :::: */
.services { background: var(--bg-light); }
.services__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; margin-top: 40px;
}
.service-card {
    background: white; padding: 40px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
    transition: 0.4s; border: 1px solid #eee;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.service-card__icon {
    font-size: 3.5rem; margin-bottom: 20px; display: inline-block;
    width: 90px; height: 90px; line-height: 90px;
    background: #f0f4f8; border-radius: 50%;
}
.service-card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }


/* :::: Brand Section (白文字修正版) :::: */
.brand {
    position: relative; color: white; background: var(--primary-color);
    margin-top: 80px; overflow: hidden;
}
.brand__bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #003366 0%, #002040 100%);
    opacity: 0.95; z-index: 0;
}
.brand .container { position: relative; z-index: 2; }

/* タイトルと本文を白に強制 */
.brand .section__title { color: #ffffff !important; } 
.brand__description { color: #f0f0f0; font-size: 1.05rem; margin-bottom: 40px; }

.brand__wrapper { display: flex; align-items: center; gap: 60px; }
.brand__info { flex: 1; }
.brand__image { flex: 1; }
.brand__image img { border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.brand__features li {
    display: flex; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px;
}
.check-icon { color: var(--accent-color); font-size: 1.2rem; margin-right: 15px; }
.brand__features strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 5px; } /* 白文字 */
.brand__features small { color: #ccc; } /* 薄いグレー */

@media (max-width: 992px) {
    .brand__wrapper { flex-direction: column; }
}


/* :::: 下層ページヘッダー :::: */
.sub-hero {
    background: var(--primary-color); color: white; padding: 160px 0 100px;
    text-align: center; position: relative; overflow: hidden;
}
.sub-hero__bg {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-size: cover; background-position: center;
    opacity: 0.3; filter: blur(3px);
}
.sub-hero__content { position: relative; z-index: 2; }
.sub-hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 10px; }
.sub-hero p { color: var(--accent-color); font-weight: 700; letter-spacing: 0.2em; }

@media (max-width: 600px) {
    .sub-hero__content { position: relative; z-index: 2; }
    .sub-hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
    .sub-hero p { color: var(--accent-color); font-weight: 700; letter-spacing: 0.2em; }

}


/* :::: Company Page :::: */
.company__list { width: 100%; max-width: 800px; margin: 0 auto; }
.company__row { display: flex; border-bottom: 1px solid #eee; padding: 20px 0; }
.company__row dt { width: 180px; font-weight: 700; color: var(--primary-color); }
.company__row dd { flex: 1; }
.company__map { height: 400px; background: #eee; border-radius: 15px; margin-top: 50px; }
@media (max-width: 600px) { .company__row { flex-direction: column; } }


/* :::: Support Page (LP風) :::: */
.support-intro { background: linear-gradient(#f0f4f8, #fff); padding: 100px 0; }
.support-title { font-size: 2rem; color: var(--primary-color); font-weight: 800; margin-bottom: 30px; }
.merit-list { display: flex; flex-direction: column; gap: 60px; }
.merit-item {
    display: flex; align-items: center; gap: 50px; background: white; padding: 50px;
    border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.merit-item.reverse { flex-direction: row-reverse; }
.merit-num {
    display: inline-block; background: var(--accent-gradient); color: var(--primary-color);
    padding: 5px 15px; border-radius: 20px; font-weight: bold; margin-bottom: 15px;
}
.merit-content { flex: 1; }
.merit-content h3 { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 15px; }
.merit-img { flex: 1; text-align: center; }
.merit-img img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.merit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 60px; }
.merit-box { padding: 30px; background: white; border-radius: 15px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }

.support-cta { margin-top: 100px; }
.support-cta p { font-size: 1.2rem; font-weight: bold; margin-bottom: 30px; color: var(--primary-color); }


@media (max-width: 768px) { .merit-item, .merit-item.reverse { flex-direction: column-reverse; padding: 30px; } }


/* :::: Contact Form (崩れ修正・堅牢レイアウト) :::: */
.contact__form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 32, 64, 0.1); /* 影を綺麗に */
    border: 1px solid rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .contact__form-wrapper { padding: 30px 20px; }
}

.contact__form { width: 100%; }

.form-group {
    margin-bottom: 35px; /* 余白をしっかり取る */
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.required {
    background-color: #ff4d4d;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

/* 入力欄のデザインを統一 */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%; /* 横幅いっぱい */
    padding: 18px 20px; /* 内側余白を広めに */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    box-sizing: border-box; /* はみ出し防止 */
    appearance: none; /* OS標準スタイルをリセット */
}

/* フォーカス時のデザイン */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 32, 64, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

/* 注意書き */
.form-note {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

/* プライバシーポリシー同意チェック */
.form-privacy {
    margin: 40px 0;
    text-align: center;
}
.form-privacy label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: bold;
}
.form-privacy input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--primary-color);
}

/* 送信ボタンエリア */
.form-submit {
    text-align: center;
    margin-top: 50px;
}
.form-submit .btn {
    width: 100%;
    max-width: 350px; /* ボタンが大きくなりすぎないように */
}


/* :::: Footer (白文字修正版) :::: */
.footer {
    background: var(--primary-color);
    color: #ffffff; /* ベースカラーを白に */
    padding: 80px 0 30px;
}
.footer__inner {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px; margin-bottom: 30px;
}
.footer__logo h2 { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 5px; }
.footer__logo p { color: var(--accent-color); font-size: 0.9rem; }

.footer__links a {
    color: #dddddd; /* リンクは少しグレー */
    margin-right: 25px; font-weight: 500; font-size: 0.95rem;
}
.footer__links a:hover { color: #ffffff; text-decoration: underline; }

.footer__copyright {
    text-align: center; color: #999999; font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer__inner { flex-direction: column; gap: 40px; }
    .footer__links { display: flex; flex-direction: column; gap: 15px; }
}