/* == 共通スタイル == */
:root {
    --text-color: #333333;
    --bg-main: #f0f4f7;
    --bg-white: #ffffff;
    --color-primary: #3f8863;
    --color-primary-light: #6cbfa4;
    --color-accent: #e67e22;
    --color-accent-light: #f39c12;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Zen Kaku Gothic New', "Hiragino Kaku Gothic ProN", "Meiryo", "メイリオ", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Zen Kaku Gothic New', "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
}

h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    margin-bottom: 1.5em;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

ul {
    padding-left: 0;
    list-style: none;
}

.text-center {
    text-align: center;
}

/* == ボタン共通 == */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.cta-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.cta-primary:hover {
    background-color: #357a55;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.cta-secondary {
    background-color: var(--color-accent);
    color: #fff;
}
.cta-secondary:hover {
    background-color: #cf6d1d;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* == ヘッダー == */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: block;
    height: 40px;
}

.logo-img {
    height: 100%;
    width: auto;
    box-shadow: none;
    border-radius: 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .nav-cta {
    background-color: var(--color-primary-light);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
}

.main-nav .nav-cta:hover {
    background-color: var(--color-primary);
}

.main-nav .nav-cta::after {
    display: none;
}

/* == ファーストビュー == */
.fv {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('img/tsukurioki_mv.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 180px 20px 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
}

.fv h1 {
    font-size: 3.2rem;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    line-height: 1.5;
}

.fv .subtitle {
    font-size: 1.15rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.key-benefits {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.benefit-item::before {
    content: '✓';
    margin-right: 8px;
    color: var(--color-primary-light);
}

.fv .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* == 課題提起 == */
.problems {
    background-color: var(--bg-main);
}

.problem-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.problem-list li {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 25px 30px 25px 65px;
    font-size: 1.1rem;
    position: relative;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-list li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.problem-list li .icon {
    position: absolute;
    left: 25px;
    top: 28px;
    width: 25px;
    height: 25px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
}

.problem-list li .icon::before {
    content: '?';
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* == 解決策 == */
.solution-section {
    background-color: var(--color-primary);
    color: #fff;
}
.solution h2 {
    color: #fff;
}
.solution h2::after {
    background-color: #fff;
}
.solution .highlight {
    color: var(--color-accent-light);
}
.solution p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.7;
}
.solution-image {
    text-align: center;
}
.solution-image img {
    border: none;
    max-width: 90%;
    margin-top: 30px;
    box-shadow: var(--shadow-medium);
}

/* == 選ばれる理由 == */
.reasons {
    background-color: var(--bg-main);
}
.reasons .reason-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    align-items: center;
    flex-wrap: wrap;
}
.reasons .reason-item:nth-child(odd) {
    flex-direction: row-reverse;
}
.reasons .reason-item .text {
    flex: 1;
    min-width: 300px;
    position: relative; /* For positioning the number */
    padding: 20px 0; /* Add some vertical padding */
}
.reasons .reason-item .image {
    flex: 1;
    min-width: 300px;
}

.point-number {
    position: absolute;
    font-size: 7rem;
    font-weight: 800;
    color: #f0f4f7; /* background-colorと同じにして、型抜き効果 */
    z-index: 0;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
}

/* Text on the left (2,4) */
.reasons .reason-item:nth-child(even) .text .point-number {
    left: -20px;
}

/* Text on the right (1,3) */
.reasons .reason-item:nth-child(odd) .text .point-number {
    right: -20px;
}

.reasons .reason-item h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative; /* To be on top of the number */
    z-index: 1;
}

.reasons .reason-item p {
    position: relative; /* To be on top of the number */
    z-index: 1;
}

.reasons .reason-item .image img {
    border: none;
    box-shadow: var(--shadow-light);
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* == プラン・料金 == */
.plans {
    background-color: var(--bg-white);
}
.plans h2::after {
    background-color: var(--color-accent);
}
.plans .plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}
.plans .plan-card {
    background: var(--bg-white);
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.plans .plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.plans .plan-card .tag {
    position: absolute;
    top: 18px;
    right: -40px;
    background-color: var(--color-accent);
    color: #fff;
    padding: 5px 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    width: 160px;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.plans .plan-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}
.plans .plan-card .plan-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.plans .plan-card ul {
    text-align: left;
    margin-bottom: 30px;
    padding-left: 20px;
    flex-grow: 1;
}
.plans .plan-card li {
    list-style-type: '✓ ';
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
}
.plans .cta-center {
    text-align: center;
    margin-top: 50px;
}

/* == 導入までの流れ == */
.flow {
    background-color: var(--bg-white);
}
.flow ol {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: flow-counter;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.flow li {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-light);
    list-style: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flow li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.flow li::before {
    counter-increment: flow-counter;
    content: 'STEP ' counter(flow-counter);
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.flow li strong {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* == よくあるご質問 (FAQ) == */
.faq {
    background-color: var(--bg-main);
}
.faq-tabs-container {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}
.faq-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.faq-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.faq-tab {
    padding: 18px 25px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}
.faq-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.faq-tab.active {
    color: var(--color-primary);
}
.faq-tab.active::after {
    width: calc(100% - 40px);
}
.faq-tab:hover {
    color: var(--color-primary);
    background-color: #f1f3f5;
}
.faq-panel {
    display: none;
    padding: 20px;
}
.faq-panel.active {
    display: block;
}
.faq .faq-item {
    background: transparent;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    box-shadow: none;
}
.faq .faq-item:last-child {
    border-bottom: none;
}
.faq .faq-item:hover {
    box-shadow: none;
}
.faq .faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 50px 20px 20px;
    cursor: pointer;
    position: relative;
    color: #333;
}
.faq .faq-question::before {
    content: 'Q';
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 15px;
}
.faq .faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1.6rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}
.faq .faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq .faq-answer p {
    padding: 0 20px 0 50px;
    margin: 0;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
}
.faq .faq-answer p::before {
    content: 'A';
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 700;
    position: absolute;
    left: 20px;
    top: 0;
}
.faq .faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

/* == クロージング (CTA) == */
.closing {
    background-color: var(--bg-white);
    text-align: center;
    border-top: 5px solid var(--color-primary);
}
.closing h2 {
    font-size: 2.2rem;
}
.closing h2::after {
    display: none;
}
.closing p {
    font-size: 1.05rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.closing > .container > p {
    text-align: left;
}
.closing .cta-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 50px 0;
}
.closing .cta-box {
    flex: 1;
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    background: #fdfdfd;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.closing .cta-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.closing .cta-box h3 {
    font-size: 1.6rem;
    margin-top: 0;
}
.closing .cta-box p {
    font-size: 1rem;
    margin-bottom: 30px;
    min-height: 3.2em;
}

/* == フッター == */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}
.footer .footer-nav {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
.footer .footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer .footer-nav a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* == アニメーションクラス == */
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.is-visible, .slide-up.is-visible, .scale-in.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* == ハンバーガーメニュー == */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* == Video Testimonials == */
#video-testimonials {
    background-color: var(--bg-main);
}
.video-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.video-grid::-webkit-scrollbar { height: 8px; }
.video-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.video-grid::-webkit-scrollbar-track { background: transparent; }
.video-wrapper {
    flex: 0 0 270px;
    width: 270px;
    aspect-ratio: 9 / 16;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.trademark {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-top: 20px;
}

/* == スマホ対応 == */
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    /* ヘッダー */
    .main-header {
        position: fixed;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* PC用ナビゲーションを非表示 */
    .main-nav ul {
        display: none;
    }

    /* ハンバーガーメニューの表示 */
    .hamburger-menu {
        display: block;
    }
    .hamburger-menu.is-open .hamburger-line {
        background-color: var(--text-color);
    }
    .hamburger-menu.is-open .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger-menu.is-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-open .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ナビゲーションパネル (main-navを再利用) */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        transform: translateX(100%);
        transition: transform 0.4s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    /* is-open時のulのスタイル */
    .main-nav.is-open ul {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 0;
    }

    .main-nav.is-open a {
        font-size: 1.5rem;
        font-weight: 700;
    }
    .main-nav.is-open a::after {
        display: none;
    }

    .main-nav.is-open .nav-cta {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    /* ページ全体のスタイル調整 */
    body {
        font-size: 14px;
        line-height: 1.7;
        overflow-wrap: break-word; /* break-allから変更 */
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 20px;
    }

    h1, .fv h1 {
        font-size: 1.7rem;
        line-height: 1.5;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    h3 {
        font-size: 1.3rem;
    }

    .fv {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .fv .subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .key-benefits {
        gap: 8px;
        margin-bottom: 30px;
    }

    .benefit-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .fv .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .plans .cta-button {
        white-space: normal;
    }

    .problem-list li {
        padding: 20px 20px 20px 55px;
        font-size: 1rem;
    }
    .problem-list li .icon {
        left: 20px;
        top: 21px;
    }

    .solution p {
        text-align: left; /* 中央揃えから左揃えに変更 */
    }

    /* タイトルの改行を調整 */
    .reasons h2 {
        font-size: 1.4rem;
    }

    /* reason-itemのコンテナを横スクロールに変更 */
    .reason-scroller {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
        /* スクロールバーを隠す */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .reason-scroller::-webkit-scrollbar {
        display: none;
    }

    /* 横スクロール内の各アイテムのスタイル */
    .reasons .reason-item,
    .reasons .reason-item:nth-child(odd) {
        flex: 0 0 85%; /* 各アイテムが画面幅の85%を占める */
        max-width: 320px; /* 最大幅も指定 */
        margin-bottom: 0; /* 横並びになるので不要に */
        flex-direction: column;
        padding: 25px;
        gap: 20px;
    }

    .reasons .reason-item .text {
        padding: 0;
        padding-top: 20px;
        width: 100%;
    }

    .point-number {
        font-size: 4rem;
        top: 0;
        left: 0;
        transform: none;
        color: rgba(63, 136, 99, 0.1);
    }

    .reasons .reason-item:nth-child(even) .text .point-number,
    .reasons .reason-item:nth-child(odd) .text .point-number {
        left: 0;
        right: auto;
    }

    .reasons .reason-item h3 {
        font-size: 1.4rem;
    }

    .reasons .reason-item .image img {
        height: 180px;
    }

    .plans .container {
        padding: 0;
    }
    .plans .plan-grid {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .plans .plan-grid::-webkit-scrollbar {
        height: 5px;
    }
    .plans .plan-grid::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }
    .plans .plan-card {
        padding: 25px;
        flex: 0 0 280px;
    }

    .flow ol {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .flow li strong {
        font-size: 1.2rem;
    }

    .faq .faq-question {
        font-size: 1rem;
        padding: 18px 50px 18px 20px;
    }
    .faq .faq-answer p {
        padding: 0 20px 0 45px;
    }
    .faq .faq-answer p::before {
        left: 20px;
    }

    .closing h2 {
        font-size: 1.3rem;
    }
    .closing .cta-box h3 {
        font-size: 1.4rem;
    }
    .closing .cta-container {
        flex-direction: column;
        gap: 20px;
    }

    .closing .cta-box {
        padding: 25px;
    }

    .closing .cta-box p {
        min-height: auto;
    }
}

@media (max-width: 375px) {
    h1, .fv h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    h3 {
        font-size: 1.1rem;
    }
}

/* == お問い合わせフォーム == */
.form-wrapper {
    max-width: 720px;
    margin: 50px auto 0;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    text-align: left;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label, .form-group legend {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
}
.required-badge {
    display: inline-block;
    margin-left: 8px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(63, 136, 99, 0.2);
}
textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkbox-item {
    display: flex;
    align-items: center;
}
.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}
.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
}
.privacy-group {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}
.privacy-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}
.privacy-group label {
    margin-bottom: 0;
    font-weight: normal;
}
.privacy-group .required-badge {
    vertical-align: baseline;
}
.form-submit {
    text-align: center;
    margin-top: 30px;
}
.form-submit .cta-button {
    width: 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 25px;
    }
    .closing .cta-box h3 {
        font-size: 1.4rem;
    }
}