/* =========================================
   ■ 全体設定（PC）
========================================= */
body {
    margin: 0;
    font-family: "Helvetica", "Arial", sans-serif;
    background: #f7f7f7;
    padding-top: 110px;
    background-image: url("../img/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================
   ■ 固定ヘッダー
========================================= */
.top-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 2000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-fixed header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
}

.logo {
    height: 24px;
    width: auto;
    margin-right: 14px;
}

.top-fixed h1 {
    font-size: 18px;
    margin: 0;
    color: #000;
    flex: 1;
}

/* =========================================
   ■ ハンバーガーボタン（スマホ用）
========================================= */
.hamburger {
    display: none;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #003366;
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   ■ ナビゲーション（PC）
========================================= */
nav {
    background: #003366;
    padding: 6px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav li a {
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

nav li a .line2 {
    color: #66ccff;
    font-size: 12px;
}

/* =========================================
   ■ メイン（中央揃え）
========================================= */
main {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.about-center {
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.8;
    font-size: 16px;
}

/* =========================================
   ■ h2 見出し
========================================= */
h2 {
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 2px;
    background: #003366;
    transform: translateX(-50%);
}

.service-card h2::after {
    display: none;
}

/* =========================================
   ■ メイン画像
========================================= */
.hero img {
    display: block;
    margin: 0 auto;
    width: 500px;
    height: auto;
}

.catch {
    text-align: center;
    font-size: 28px;
    margin-top: 20px;
    font-weight: bold;
    color: #003366;
}

/* =========================================
   ■ サービスカード
========================================= */
.service-cards {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid #eaeaea;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =========================================
   ■ お問い合わせフォーム
========================================= */
.contact-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 0;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    font-size: 16px;
}

.contact-form button {
    background: #003366;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.contact-form button:hover {
    background: #0055aa;
}

/* =========================================
   ■ 会社情報ページ
========================================= */
.company-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.company-box {
    background: #fff;
    padding: 30px 28px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 30px auto;
}

.company-table {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 18px;
    column-gap: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.company-table dt {
    font-weight: bold;
    color: #003366;
}

.company-table dd {
    margin: 0;
}

/* ホームへ戻るボタン */
.back-home-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #e8f2fa;
    color: #003366;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #c9dcec;
    transition: 0.2s;
}

.back-home-btn:hover {
    background: #dcecf7;
}

/* =========================================
   ■ FAQ（短縮版）
========================================= */
.faq-short {
    background: #fff;
    border-radius: 12px;
    padding: 40px 28px;
    margin: 40px auto;
    max-width: 900px;
    border: 1px solid #eaeaea;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.faq-short h2.section-title {
    font-size: 22px;
    margin-bottom: 0px;
    color: #003366;
}

.faq-list {
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-q {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: bold;
    color: #003366;
}

.faq-a {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.faq-more {
    text-align: right;
    margin-top: 10px;
}

.faq-link {
    color: #e67e22;
    font-weight: bold;
    text-decoration: none;
}

.faq-link:hover {
    text-decoration: underline;
}

/* =========================================
   ■ FAQ（フル版・PC2カラム）
========================================= */
.faq-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 28px;
    margin: 60px auto;
    max-width: 1000px;
    border: 1px solid #eaeaea;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.faq-full h2 {
    grid-column: 1 / -1;
    font-size: 22px;
    margin-bottom: 25px;
    color: #003366;
}

.faq-full .faq-item {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
}

.faq-full .faq-item:last-child {
    border-bottom: none;
}

.faq-full .faq-q {
    font-size: 17px;
    font-weight: bold;
    color: #003366;
}

.faq-full .faq-a {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* =========================================
   ■ お問い合わせボタン（FAQ下）
========================================= */
.contact-cta {
    text-align: center;
    margin: 40px 0 20px;
}

.contact-btn {
    display: inline-block;
    background-color: #F8B878;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.contact-btn:hover {
    background-color: #F7A654;
    transform: translateY(-2px);
}

.contact-note {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* =========================================
   ■ モーダル
========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    display: block;
    margin: 80px auto;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* =========================================
   ■ スマホ対応（600px以下）
========================================= */
@media (max-width: 600px) {

    body {
        padding-top: 70px;
    }

    .hamburger {
        display: block;
    }

    nav {
        display: none;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 6px;
        padding: 10px 0;
    }

    .catch {
        font-size: 22px;
    }

    .hero img {
        width: 100%;
        max-width: 360px;
    }

    .about-center {
        width: 90%;
        font-size: 15px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 16px;
    }

    .service-card {
        padding: 18px 14px;
    }

    .faq-full {
        grid-template-columns: 1fr;
        padding: 28px 18px;
        margin: 40px auto;
    }

    .faq-full .faq-q {
        font-size: 16px;
    }

    .faq-full .faq-a {
        font-size: 14px;
    }

    .contact-btn {
        width: 90%;
        padding: 16px 0;
        font-size: 17px;
    }

    footer ul {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
}
/* =========================================
   ■ フッター（デザイン復元）
========================================= */
footer {
    background: #003366;          /* 濃い青の背景に戻す */
    color: #fff;                  /* 文字は白 */
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer a {
    color: #cce6ff;               /* 薄い青のリンク色 */
    text-decoration: none;
    font-size: 14px;
}

footer a:hover {
    text-decoration: underline;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .privacy {
    margin: 10px 0;
    font-size: 13px;
}

footer .copy {
    font-size: 12px;
    opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 8px;
    }
}
/* Q&A 全体を中央寄せ */
.faq-short {
  text-align: center;
}

/* 各 Q&A ブロックの幅を整えて中央に配置 */
.faq-item {
  max-width: 700px;
  margin: 0 auto 25px;
  text-align: left; /* ← QとAの文章は左揃えのままの方が読みやすい */
}

/* Q と A の見た目を整える */
.faq-q {
  font-weight: bold;
  margin-bottom: 5px;
}

.faq-a {
  margin-bottom: 15px;
}
/* Q&A セクション全体を中央寄せ */
.faq-short {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* ← これが最強の中央寄せ */
}

/* Q&A のリストを中央に */
.faq-list {
  width: 100%;
  max-width: 800px; /* ← 中央に集める幅 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 各 Q&A ブロック */
.faq-item {
  width: 100%;
  max-width: 700px; /* ← ここで中央にまとまる */
  margin: 0 auto 25px;
}
/* Q&A 全体の幅を狭くする */
.faq-list {
  max-width: 450px;   /* ← ここを好きな幅に調整（例：500px / 550px） */
  margin: 0 auto;
}

/* 各 Q&A カードの幅も揃える */
.faq-item {
  width: 100%;
  margin-bottom: 15px; /* 行間も自然に */
}
/* よくいただくご相談のカード幅を強制的に狭くする */
.faq-short {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  width: 100%;
  max-width: 400px; /* ← ここを好きな幅に変更（例：450px / 400px） */
  margin: 0 auto;
}

.faq-item {
  width: 100%;
  margin-bottom: 15px;
}
/* サービスページ（service.html）用：PCでは2列×2段 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

/* スマホでは1列 */
@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* トップページだけ横3つにする */
body.index .services .service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* スマホでは縦1列 */
@media (max-width: 768px) {
    body.index .services .service-cards {
        grid-template-columns: 1fr;
    }
}
.hero {
    position: relative;
}

.service-btn {
    position: absolute;
    top: 0px;      /* 上からの距離（調整OK） */
    right: 60px;    /* 右からの距離（調整OK） */
    width: 150px;   /* ボタンの大きさ（調整OK） */
    z-index: 10;
}

.service-btn img {
    width: 100%;
    height: auto;
    display: block;
}
/* スマホ（幅600px以下）のときだけボタンを小さくする */
@media screen and (max-width: 600px) {
    .service-btn {
        width: 90px;   /* ← スマホ用の小さいサイズ */
        top: 12px;     /* 必要なら位置も微調整 */
        right: 12px;
    }
}
/* 事業内容ページだけ色をつける */
body:not(.index) .service-card:nth-child(1) { 
  background-color: #F2F8FF;
  border: 2px solid #B7DFF3;
}

body:not(.index) .service-card:nth-child(2) { 
  background-color: #EEF3FA;
  border: 2px solid #8FA0C0;
}

body:not(.index) .service-card:nth-child(3) { 
  background-color: #FFF1F7;
  border: 2px solid #E7B7CC;
}

body:not(.index) .service-card:nth-child(4) { 
  background-color: #FFF2E6;
  border: 2px solid #F4C89A;
}
