/* --- 共通設定 --- */
html {
    scroll-behavior: smooth;
}

:root {
    --main-blue: #0066cc;
    --light-blue: #f0f7ff;
    --accent-gold: #d4af37;
    --text-slate: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-gray: #f8fafc;
    --white: #ffffff;
}

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

body {
    font-family: 'Yu Mincho', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    color: var(--text-slate);
    line-height: 1.8;
    background-color: var(--white);
    scroll-behavior: smooth;
}

.btn-color {
    background: var(--main-blue);
    color: white !important;
    transition: all .5s;
}

.btn-color:hover {
    background: white;
    color: var(--main-blue) !important;
    border: 1px solid var(--main-blue);
    transition: all .5s;
}

/* ブラウザ標準マーカーをリセット */
summary {
    list-style: none;
    /* Chrome, Firefox用 */
}

summary::-webkit-details-marker {
    display: none;
    /* Safari用 */
}

/* メニューが開いている時にスクロールさせない */
body.nav-open {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    color: var(--main-blue);
    margin-bottom: 60px;
    font-weight: bold;
}

.section-title::after {
    background-color: #0066cc;
    content: "";
    display: block;
    height: 1px;
    margin: 0 auto;
    width: 60px;
}

/* --- ヘッダー（修正の要） --- */
header {
    position: fixed;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding-top: 15px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    /* これで左端と右端に分かれます */
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--main-blue);
    font-style: italic;
}

/* PC用メニュー */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-slate);
}

.nav-menu a:hover {
    color: var(--main-blue);
}

.btn-contact-nav {
    padding: 12px 28px;
    border-radius: 6px;
}

/* --- ヘッダー基本 --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    /* ヘッダーは基本1000 */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ハンバーガーボタン本体 --- */
/* --- ヘッダー全体の固定設定 --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    /* ここが重要：メニュー(1050)よりも上に配置する */
    z-index: 2000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ハンバーガーボタン --- */
.hamburger {
    display: none;
    /* PCでは隠す */
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    /* 親のheaderがz-index:2000なので、その中で最前面になる */
}

.hamburger span {
    display: block;
    position: absolute;
    left: 7px;
    width: 30px;
    height: 2px;
    background-color: var(--main-blue);
    transition: all 0.4s ease;
}

/* 三本線の初期位置 */
.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 22px;
}

.hamburger span:nth-child(3) {
    top: 30px;
}

/* --- ×ボタンへの変化（nav-open時） --- */
.nav-open .hamburger span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

/* --- モバイルメニュー本体 --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* 初期は画面の外（右） */
    width: 100%;
    height: 100vh;
    background: #ffffff;
    /* ヘッダー(2000)より少し下に設定 */
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.5s ease-in-out;
}

.mobile-nav.active {
    right: 0;
    /* 画面にスライドイン */
}

/* スマホ表示の切り替え（必須） */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* --- ヒーロー --- */
.hero {
    padding: 180px 0 120px;
    background-image: url(../../images/top.webp);
    background-position: right;
    background-size: cover;
    /* background-color: rgba(255, 255, 255, 0.5); */
    background-blend-mode: lighten;
}

.hero h2 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 800;
}

.hero .blue-text {
    color: var(--main-blue);
    display: block;
    font-size: 32px;
    margin-top: 15px;
}

.hero p {
    font-size: 18px;
    color: black;
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
}

/* --- サービス --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    background: white;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 19px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    text-align: left;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    color: var(--main-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 15px;
    font-size: 24px;
}

/* --- 実績 (Works) --- */
.works {
    background: var(--bg-gray);
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: left;
}

.work-thumb {
    aspect-ratio: 16/9;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: bold;
}

.work-thumb-img {
    width: 100%;
    height: auto; /* これを追加 */
    display: block; /* 隙間ができるのを防ぐ */
    object-fit: cover; /* 枠に合わせて綺麗に収める場合 */
}

.work-body {
    padding: 25px;
}

.work-tag {
    font-size: 10px;
    background: var(--light-blue);
    color: var(--main-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 12px;
}

.work-text {
    margin-top: 20px;
    text-align: left;
}

.work-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.work-disc {
    margin-bottom: 15px;
}
.work-disc-text {
    font-size: 14px;
    word-break: break-all; /* 単語の途中でも、枠の端に来たら即改行する */
    overflow-wrap: anywhere; /* 上記で効かない場合の最新の指定 */
    text-align: justify;
}

.work-btn-content {
    text-align: center;
}

.work-btn {
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
}

/* --- 料金 (Price) --- */
.price-simple-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.price-simple-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.price-simple-item .label {
    font-weight: bold;
}

.price-simple-item .amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-blue);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.price-card.popular {
    border: 4px solid var(--accent-gold);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.price-card-header {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-gray);
}

.popular .price-card-header {
    background: white;
}

.plan-price {
    font-size: 36px;
    font-weight: bold;
    color: var(--main-blue);
    margin-top: 10px;
}

.plan-price span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

.price-card-body {
    padding: 20px;
    flex-grow: 1;
}

.price-card-body li {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    gap: 12px;
}

.price-card-body i {
    color: var(--main-blue);
    margin-top: 4px;
}

.ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 150px;
    padding: 8px 0;
    background-color: var(--accent-gold);
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    left: -15px;
    top: 25px;
    transform: rotate(45deg);
}

.popular-badge {
    color: var(--accent-gold);
    font-size: 24px;
    margin-bottom: 10px;
}

.premium-feature-box {
    background: var(--light-blue);
    padding: 20px;
    border-left: 4px solid var(--main-blue);
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.price-footer-notice {
    margin: 60px auto 0;
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 20px;
    background-color: #FFF9E6;
}

.price-footer-notice ul li {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

/* --- FAQ --- */
.faq {
    background: var(--bg-gray);
}

.faq-list {
    margin: 0 auto;
}

details {
    background: white;
    margin-bottom: 15px;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 15px;
}

/* --- FAQアイコンの切り替え --- */

/* 1. 最初はプラスを表示（既にHTMLにあるので、回転などの制御） */
details summary i {
    transition: transform 0.3s ease;
}

/* 2. detailsが開いた（open属性がついた）時のアイコン変更 */
details[open] summary i {
    transform: rotate(0deg);
    /* プラスを45度回して×（または-っぽく）見せる方法 */
}

/* 3. もしアイコン自体を完全に「-」に差し替えたい場合 */
details[open] summary i::before {
    content: "\f068";
    /* FontAwesomeの minus アイコンコード */
}

/* --- お問い合わせ --- */
.contact-container {
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: flex;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.required::after {
    content: "（必須）";
    color: #e11d48;
    font-size: 12px;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-gray);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 22px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
}

/* チェックボックスのスタイル */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 送信ボタン下の注釈 */
.privacy-note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.privacy-note a {
    color: var(--main-blue);
    text-decoration: underline;
    font-weight: bold;
    transition: all .8s;
}

.privacy-note a:hover {
    text-decoration: none;
    transition: all .8s;
}

/* --- フッター --- */
footer {
    background: #eff7ff;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 15px 0;
    font-size: 24px;
}

.sns-link {
    width: 50px;
    height: 50px;
}

.sns-link img {
    width: 100%;
}

.footer-social a {
    color: white;
}

.copyright {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 2px;
}

/* ページトップへ戻るボタン */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--main-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    /* 最初は隠す */
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ボタンが表示された時のクラス */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--text-slate);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* メニュークリック時にヘッダーと被らないように調整（ヘッダー高さ分80px） */
:target::before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
}

/* --- プライバシーポリシーページ --- */
.privacy-page {
    padding-top: 30px;
    /* ヘッダーとの距離 */
    background-color: var(--bg-gray);
}

.privacy-content {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.privacy-intro {
    margin-bottom: 40px;
    font-size: 15px;
}

.privacy-content h3 {
    font-size: 20px;
    color: var(--main-blue);
    border-left: 4px solid var(--main-blue);
    padding-left: 15px;
    margin: 40px 0 20px;
}

.privacy-content p {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-slate);
}

.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content ul li {
    font-size: 15px;
    list-style: disc;
    margin-bottom: 10px;
}

.privacy-date {
    text-align: right;
    margin-top: 50px;
    font-weight: bold;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .privacy-content {
        padding: 30px 20px;
    }
}

/* パンくずリスト */
.breadcrumb {
    margin-top: 100px;
}

.breadcrumb li {
    display: inline-block;
    margin: 0 5px;
}

.breadcrumb a {
    color: black;
    transition: all .5s;
}

.breadcrumb a:hover {
    color: #0066cc;
    transition: all .5s;
}


/* --- レスポンシブ修正 --- */

/* 【タブレットサイズ】 1201px未満 〜 481px以上 */
@media (max-width: 1200px) {
    .tab-br {
        display: block;
    }

    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        padding: 70px 0;
        background-color: rgba(255, 255, 255, 0.5);

    }


    /* 横に2つずつ並べる設定 */
    .service-grid,
    .works-grid,
    .price-grid,
    .price-simple-list {
        display: grid;
        /* 念のため再宣言 */
        grid-template-columns: repeat(2, 1fr) !important;
        /* 確実に1:1の2列にする */
        gap: 20px;
    }

    .hero h2 {
        font-size: 38px;
    }
}

/* 【スマホサイズ】 480px以下 */
@media (max-width: 480px) {

    .sp-br {
        display: block;
    }

    /* 縦一列にする設定 */
    .service-grid,
    .works-grid,
    .price-grid,
    .price-simple-list {
        grid-template-columns: 1fr !important;
        /* 全幅の1列 */
    }

    .hero {
        background-color: rgba(255, 255, 255, 0.7);
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero .blue-text {
        font-size: 22px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-btn {
        display: block;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    /* お問い合わせフォームの余白調整 */
    .contact-container {
        padding: 30px 20px;
    }

    /* 人気プランの強調（浮き出し）をスマホでは解除 */
    .price-card.popular {
        transform: none;
        margin: 0;
    }

    /* PCメニューを隠し、ハンバーガーを表示 */
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }
}