/* ==========================================================================
   共通設定 & 変数（ロゴの色をベースに設定）
   ========================================================================== */
:root {
    --bg-dark: #11141a;       /* ロゴの深い紺・黒に近いベースカラー */
    --gold: #d4af37;          /* ロゴの品のあるゴールド */
    --gold-light: #f3e5ab;    /* 明るいゴールド */
    --sakura: #ff4d6d;        /* ロゴの鮮やかな桜の赤・ピンク */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9fa;
    --border-color: #dddddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif JP', serif; /* 和の雰囲気を引き立てる明朝体 */
    color: var(--text-dark);
    background-color: var(--text-light);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* フォーム用の少し細めのコンテナ */
.container-small {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション共通レイアウト */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--bg-dark);
    letter-spacing: 4px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 50px;
    letter-spacing: 2px;
    font-weight: bold;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.header {
    background-color: rgba(17, 20, 26, 0.95); /* 半透明のダーク背景 */
    color: var(--text-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px; /* ヘッダーに合わせてサイズ調整 */
    width: auto;
    object-fit: contain;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-light);
}

.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav a:hover {
    color: var(--gold);
}

.btn-nav {
    background-color: transparent;
    border: 1px solid var(--gold);
    padding: 6px 18px;
    border-radius: 4px;
    color: var(--gold) !important;
}

.btn-nav:hover {
    background-color: var(--gold);
    color: var(--bg-dark) !important;
}

/* ==========================================================================
   メインビジュアル (Hero)
   ========================================================================== */
.hero {
    height: 100vh;
    background: radial-gradient(circle at center, #1e2530 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 70px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 40px;
    line-height: 1.4;
}

.btn-main {
    display: inline-block;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 12px 40px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.btn-main:hover {
    border-color: var(--gold);
    color: var(--bg-dark);
    background-color: var(--gold);
}

/* ==========================================================================
   私たちについて (About)
   ========================================================================== */
.about-section {
    background-color: var(--text-light);
    text-align: center;
}

.about-text {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 25px;
}

/* ==========================================================================
   事業内容 (Services)
   ========================================================================== */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.service-card {
    flex: 1;
    background-color: var(--text-light);
    padding: 50px 40px;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 3px solid var(--bg-dark);
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--gold);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--bg-dark);
}

.service-tags {
    font-size: 0.85rem;
    color: var(--sakura);
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* ==========================================================================
   会社概要 (Company)
   ========================================================================== */
.company-section {
    background-color: var(--text-light);
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.company-table th {
    width: 30%;
    text-align: left;
    color: var(--bg-dark);
    font-weight: 700;
}

/* ==========================================================================
   お問い合わせセクション (Top Page - Contact)
   ========================================================================== */
.contact-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-lead {
    margin-bottom: 40px;
}

.btn-contact {
    display: inline-block;
    background-color: var(--gold);
    color: var(--bg-dark);
    font-weight: bold;
    padding: 15px 50px;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(214, 175, 55, 0.3);
}

.btn-contact:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   【新設】お問い合わせページ専用フォームデザイン (Contact Page)
   ========================================================================== */
.contact-page-body {
    background-color: var(--bg-light);
}

.form-section {
    padding-top: 140px; /* ヘッダーとの被り防止 */
}

.form-desc {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    color: #555;
}

.contact-form {
    background-color: var(--text-light);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(17, 20, 26, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

/* 必須・任意バッジ */
.required, .optional {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.required {
    background-color: var(--sakura);
    color: var(--text-light);
}

.optional {
    background-color: #999999;
    color: var(--text-light);
}

/* 入力要素スタイル */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--text-light);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

/* フォーム内送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--bg-dark);
    padding: 15px 60px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--bg-dark);
}

.back-to-home {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
}

.back-to-home a {
    color: #666;
    border-bottom: 1px dashed #666;
}

.back-to-home a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
    background-color: #0b0d11;
    padding: 40px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 80px;
    width: auto;
}

.copyright {
    font-size: 0.8rem;
    color: #666666;
    letter-spacing: 1px;
}

/* ==========================================================================
   レスポンシブ（スマホ対応）
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
    }
    .nav {
        display: none;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .services-grid {
        flex-direction: column;
    }
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .company-table th {
        border-bottom: none;
        padding-top: 15px;
    }
    .contact-form {
        padding: 30px 20px;
    }
}
/* ==========================================================================
   追加：画像ファイル添付エリアのデザイン
   ========================================================================== */
.file-help {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

/* ファイル選択ボタン全体のスタイル */
.contact-form input[type="file"] {
    width: 100%;
    padding: 15px;
    background-color: #fafafa;
    border: 1px dashed var(--border-color); /* 添付エリアと分かりやすくするため破線に */
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* マウスを乗せたときと選択時の変化 */
.contact-form input[type="file"]:hover,
.contact-form input[type="file"]:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.03);
}

/* ブラウザ標準の「ファイルを選択」ボタン部分のデザイン調整（対応ブラウザ用） */
.contact-form input[type="file"]::file-selector-button {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    margin-right: 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.contact-form input[type="file"]::file-selector-button:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
}