/* 
 * 共通スタイルシート
 * 全ページで使用する共通のスタイル定義
 * 下層ページの実装をベースに統一
 */

/* ============================================
   基本背景設定
   ============================================ */
   html {
    background-color: #f0f0f0;
    height: 100%;
}

body {
    font-family: "Meiryo", "メイリオ", "MS PGothic", "MS Pゴシック", sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ============================================
   100%幅背景ラッパー群
   ============================================ */
.full-width-wrapper {
    width: 100%;
    min-width: 100%;
}

.header-full-width {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.nav-bar-full-width {
    background: #1e4d8b;
}

/* 2010s Page Header Band (Thin & Navy) */
.page-header-band {
    background: linear-gradient(135deg, #1e4d8b 0%, #153a6b 100%);
    border-bottom: 4px solid #153a6b;
    padding: 40px 0;
}

.main-visual-full-width {
    background-color: #000;
    width: 100%;
    overflow: hidden;
}

.selling-points-full-width {
    background-color: #f3f4f6;
    width: 100%;
    border-bottom: 1px solid #d1d5db;
}

.content-white-full-width {
    background-color: #fff;
}

.content-grey-full-width {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.services-full-width {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.cta-full-width {
    background-color: #1E4D8B;
}

.footer-full-width {
    background-color: #1f2937;
}

/* ============================================
   中央固定の幅制御用コンテナ
   ============================================ */
.container-fixed {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

/* PCのみ1024px固定の挙動 */
@media (min-width: 1024px) {
    .container-fixed {
        width: 1024px;
        padding: 0;
    }
    body {
        min-width: 1024px;
    }
}

/* ============================================
   デザインパーツ：H1とリード文
   ============================================ */
.page-h1 {
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.page-h1 .main-title {
    display: block;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.page-h1 .sub-lead {
    display: block;
    font-size: 15px;
    font-weight: normal;
    color: #dbeafe;
}

/* ============================================
   セクション見出し
   ============================================ */
.section-title {
    background: #f8f8f8;
    border-left: 8px solid #1e4d8b;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #1e4d8b;
}

.section-title-h2 {
    background: #f8f8f8;
    border-left: 8px solid #1e4d8b;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #1e4d8b;
}

.sub-title-h3 {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid #1e4d8b;
}

/* ============================================
   ナビゲーション
   ============================================ */
.nav-bar {
    height: 50px;
    border-top: 1px solid #4a7ab7;
}

.nav-bar ul {
    display: flex;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-bar li {
    border-right: 1px solid #2c5ba0;
}

.nav-bar a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.nav-bar a:hover {
    background: #2c5ba0;
}

.nav-bar li.active a {
    background: #153a6b;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
}

/* ============================================
   ハンバーガーメニューボタン（モバイル用）
   ============================================ */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    background: #1e4d8b;
    border: 2px solid #153a6b;
    border-radius: 4px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.2s;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
    background: #2c5ba0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* モバイルメニューオーバーレイ */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   ボタン
   ============================================ */
.btn-gradient-blue {
    background: linear-gradient(to bottom, #4a90e2 0%, #1e4d8b 100%);
    border: 1px solid #153a6b;
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 3px;
    transition: opacity 0.2s;
    min-height: 44px;
}

.btn-gradient-blue:hover {
    opacity: 0.9;
}

.btn-gradient-blue:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.btn-gradient-orange {
    background: linear-gradient(to bottom, #ff9800 0%, #e65100 100%);
    border: 1px solid #bf360c;
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 3px;
    transition: opacity 0.2s;
    min-height: 44px;
}

.btn-gradient-orange:hover {
    opacity: 0.9;
}

.btn-gradient-orange:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ============================================
   ヘッダー電話番号
   ============================================ */
.header-contact {
    text-align: right;
}

.header-phone {
    font-size: 24px;
    color: #1e4d8b;
    font-weight: bold;
    line-height: 1.2;
}

/* PC表示でのヘッダー最適化 */
@media (min-width: 769px) {
    .header-full-width .container-fixed {
        padding: 16px 20px;
    }
    
    .header-contact p {
        margin: 0;
        line-height: 1.4;
    }
    
    .header-contact p.text-xs {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .header-contact p.text-\[12px\] {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .header-phone {
        font-size: 22px;
        margin: 2px 0;
    }
}

/* ============================================
   パンくずリスト
   ============================================ */
.breadcrumb {
    list-style: none;
    padding: 20px 0 10px 0;
    margin: 0;
    display: flex;
    font-size: 11px;
    color: #666;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "＞";
    margin: 0 5px;
    color: #666;
}

.breadcrumb a {
    color: #1e4d8b;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   特徴・メリットボックス
   ============================================ */
.feature-box {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
}

.feature-box h3 {
    color: #1e4d8b;
    border-bottom: 2px solid #1e4d8b;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.benefit-box {
    background-color: #f0f4f9;
    border-left: 5px solid #1e4d8b;
    padding: 20px;
    margin-bottom: 25px;
}

.info-box {
    background-color: #f0f4f9;
    border-left: 5px solid #1e4d8b;
    padding: 20px;
    margin-bottom: 25px;
}

/* ============================================
   サービスカード
   ============================================ */
.service-card {
    border: 1px solid #d0d7e0;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-card:hover {
    background-color: #f8faff;
    border-color: #1e4d8b;
}

.service-card-icon {
    background-color: #f0f4f9;
    color: #1e4d8b;
    border: 1px solid #d0d7e0;
}

/* ============================================
   FAQ（セマンティックHTML対応）
   Tailwind CSSとの競合を避けるため、詳細度を高く設定
   ============================================ */

/* FAQリスト全体のスタイル */
.faq-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* dt要素（質問）のリセット */
.faq-list dt {
    margin: 0;
    padding: 0;
}

/* dd要素（回答）のリセット */
.faq-list dd {
    margin: 0;
    padding: 0;
}

/* FAQ質問部分のスタイル */
.faq-list .faq-q {
    background: #f0f4f9;
    padding: 12px 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-top: 10px;
    border: 1px solid #ddd;
    min-height: 44px;
}

/* FAQ質問部分のQアイコン */
.faq-list .faq-q::before {
    content: "Q";
    background: #1e4d8b;
    color: #fff;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border-radius: 2px;
    font-size: 14px;
    flex-shrink: 0;
}

/* FAQ質問部分のホバー効果 */
.faq-list .faq-q:hover {
    background: #e0e8f0;
}

/* FAQ質問部分のフォーカス時のスタイル（アクセシビリティ対応） */
.faq-list .faq-q:focus {
    outline: 2px solid #1e4d8b;
    outline-offset: 2px;
}

/* FAQ回答部分の基本スタイル（初期状態は非表示） */
.faq-list .faq-a {
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    display: none !important;
    background: #fff !important;
    margin: 0 0 10px 0 !important;
    /* Tailwindのtext-sm, text-gray-600との競合を防ぐ */
    font-size: 14px !important;
    color: #4b5563 !important;
}

/* aria-expanded="true"の状態の質問の直後の回答を表示 */
.faq-list .faq-q[aria-expanded="true"] + .faq-a {
    display: block !important;
}

/* 開いている質問の下部ボーダーを削除（視覚的な結合感を出すため） */
.faq-list .faq-q[aria-expanded="true"] {
    border-bottom: none !important;
}

/* ============================================
   モバイル用下部固定問い合わせバー
   ============================================ */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e4d8b;
    border-top: 2px solid #153a6b;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    flex-direction: row;
}

.mobile-contact-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    min-height: 52px;
    transition: background 0.2s;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.mobile-contact-btn:last-child {
    border-right: none;
}

.mobile-contact-btn:active,
.mobile-contact-btn:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-contact-btn:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.contact-icon {
    font-size: 18px;
    margin-right: 10px;
    line-height: 1;
    flex-shrink: 0;
}

.contact-label {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    text-align: left;
}

.contact-subtext {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
    line-height: 1.2;
    text-align: left;
}

/* 電話番号のスタイル */
.contact-phone-number {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
}

/* 電話ボタン内のテキストコンテナ */
.mobile-contact-phone {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
