/* --- リセット & 基本設定 --- */
:root {
    --primary-color: #0f172a;
    /* 濃紺：信頼・誠実 */
    --accent-color: #06c755;
    /* LINEグリーン：アクション */
    --text-color: #334155;
    /* 濃いグレー */
    --bg-light: #f8fafc;
    /* 薄いグレー */
    --white: #ffffff;
}

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

html {
    /* スマホでの文字サイズ自動拡大防止 */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    /* スマホで読みやすいよう少し広め */
    background-color: var(--white);
    font-size: 16px;
    /* 基本フォントサイズ */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 共通コンポーネント --- */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    /* 左右の余白 */
}

/* ボタン共通設定 */
.btn-line {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    padding: 18px 24px;
    /* 指で押しやすいサイズ */
    border-radius: 50px;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
    text-align: center;
    width: 100%;
    /* スマホデフォルトは幅いっぱい */
    max-width: 350px;
    /* PCなどで広がりすぎないように制限 */
    margin: 0 auto;
    /* 中央寄せ */
}

.btn-line:active {
    transform: scale(0.98);
    /* タップ時の凹み演出 */
}

/* PCのみホバー効果 */
@media (hover: hover) {
    .btn-line:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
    }
}

.btn-line i {
    margin-right: 8px;
    font-size: 1.4em;
}

.section-title {
    font-size: 1.6rem;
    /* スマホサイズに調整 */
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
}

.section-title span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

section {
    padding: 60px 0;
    /* スマホ向けに少し詰め気味に */
}

/* --- ヘッダー --- */
header {
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    /* 長い社名が折り返さないよう調整 */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* ヘッダーのボタンはPC表示時のみ出す（スマホは画面下が基本） */
header .btn-line {
    display: none;
}

/* --- ヒーローセクション --- */
.hero {
    /* 100vhだとスマホのアドレスバーで隠れるため dvh を使用 */
    height: 100dvh;
    min-height: 600px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 300px;
    height: 300px;
    background-color: rgba(15, 23, 42, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    z-index: 1;
    width: 100%;
}

.tagline {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero h1 {
    font-size: 1.75rem;
    /* スマホ最適化 */
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-feature-settings: "palt";
    /* 文字詰め */
}

.hero h1 span {
    background: linear-gradient(transparent 65%, #dbeafe 65%);
    padding: 0 4px;
}

.hero p {
    font-size: 0.95rem;
    margin-bottom: 30px;
    color: #475569;
    padding: 0 10px;
}

/* --- 悩み共感 --- */
.pain-points {
    background-color: var(--white);
}

.pain-grid {
    display: flex;
    flex-direction: column;
    /* スマホは縦積み */
    gap: 15px;
}

.pain-item {
    width: 100%;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    /* 横並びレイアウトに変更 */
    align-items: center;
    text-align: left;
}

.pain-icon {
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 0;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.pain-item h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

/* --- 強み（USP） --- */
.features {
    background-color: var(--primary-color);
    color: var(--white);
}

.features .section-title {
    color: var(--white);
}

.features .section-title span {
    color: #cbd5e1;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 10px;
}

.feature-head {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-head i {
    color: var(--accent-color);
}

.feature-text {
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* --- 実績・ターゲット --- */
.target-message {
    background-color: var(--bg-light);
}

.message-box {
    background: var(--white);
    padding: 40px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.message-box h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.message-box p {
    font-size: 0.95rem;
    text-align: left;
    /* 長文は左寄せの方がスマホで読みやすい */
}

/* --- フロー --- */
.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 40px;
    /* 余白を下につける */
    position: relative;
}

.step:last-child {
    padding-bottom: 0;
}

/* 縦棒のデザイン調整 */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    /* 丸の中心 */
    top: 40px;
    /* 丸の下あたり */
    bottom: 0;
    width: 2px;
    background-color: #cbd5e1;
    transform: translateX(-50%);
}

.step-num {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 16px;
    z-index: 1;
    /* 線の上に表示 */
}

.step-content {
    padding-top: 4px;
    /* 数字との位置合わせ */
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.step-content p {
    font-size: 0.9rem;
    color: #475569;
}

/* --- コンバージョンエリア --- */
#line {
    padding-bottom: 140px;
    /* 固定ボタンとかぶらないよう余白多め */
}

/* --- フッター --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 30px 0 100px 0;
    /* 固定ボタン用に下部余白確保 */
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 固定CTA (スマホ最適化) --- */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 16px 20px;
    /* iPhone等のホームバーエリアを考慮 */
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);

    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.fixed-cta.visible {
    transform: translateY(0);
}

.fixed-cta .btn-line {
    width: 100%;
    max-width: 100%;
    /* 画面幅いっぱい */
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}


/* --- PC/タブレット向けの調整 (Media Queries) --- */
@media (min-width: 768px) {

    /* PCではフォントサイズを大きく */
    html {
        font-size: 18px;
    }

    /* コンテナ幅確保 */
    .container {
        padding: 0 40px;
    }

    section {
        padding: 80px 0;
    }

    /* ヘッダーボタン表示 */
    header .btn-line {
        display: inline-block;
        width: auto;
        margin: 0;
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    /* ヒーロー */
    .hero h1 {
        font-size: 3rem;
    }

    .hero::before {
        width: 600px;
        height: 600px;
        top: -20%;
        right: -10%;
    }

    /* 悩みエリア：3列グリッド */
    .pain-grid {
        flex-direction: row;
        justify-content: center;
    }

    .pain-item {
        width: 300px;
        display: block;
        /* 縦並びに戻す */
        text-align: center;
        padding: 30px;
    }

    .pain-icon {
        margin-right: 0;
        margin-bottom: 16px;
        font-size: 2rem;
    }

    .pain-item h3 {
        font-size: 1.1rem;
    }

    /* 強みエリア：2列グリッド */
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* メッセージボックス */
    .message-box {
        padding: 60px;
        text-align: center;
    }

    .message-box p {
        text-align: center;
    }

    .message-box h3 {
        font-size: 1.5rem;
    }

    /* ステップ */
    .step-num {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 20px;
    }

    .step:not(:last-child)::after {
        left: 25px;
        /* 50pxの半分 */
        top: 50px;
    }

    /* フッター */
    footer {
        padding-bottom: 40px;
    }

    /* 固定CTA：PCでは少し浮かせて控えめに */
    .fixed-cta {
        bottom: 20px;
        left: auto;
        right: 20px;
        width: auto;
        background: transparent;
        border: none;
        padding: 0;
        backdrop-filter: none;
    }

    .fixed-cta .btn-line {
        width: auto;
        padding: 16px 40px;
    }
}

/* --- サブページ共通設定 --- */
.sub-header {
    padding-top: 100px;
    /* 固定ヘッダー分 */
    padding-bottom: 40px;
    background: var(--bg-light);
    text-align: center;
}

.sub-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.sub-content {
    padding: 60px 0;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

/* 記事・規約などのテキストスタイル */
.text-body h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.text-body h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.text-body p {
    margin-bottom: 1.5em;
    text-align: justify;
}

/* 会社概要のテーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.company-table th,
.company-table td {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.company-table th {
    width: 30%;
    background-color: #f8fafc;
    color: var(--primary-color);
    font-weight: 700;
}

/* FAQ（よくある質問） */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--white);
}

.faq-q {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.faq-q::before {
    content: 'Q.';
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 10px;
    font-weight: 900;
}

.faq-a {
    padding-left: 28px;
    color: #475569;
}

/* 成功事例 */
.success-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.2s;
}

.success-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.success-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 700;
}

.success-body {
    padding: 25px;
}

.success-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #64748b;
    font-size: 0.9rem;
}

.success-profile i {
    margin-right: 5px;
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .sub-header h1 {
        font-size: 2.5rem;
    }

    .faq-item {
        padding: 30px;
    }

    .company-table th {
        width: 25%;
    }
}

/* --- ハンバーガーメニュー用スタイル --- */

/* ヘッダー右側のレイアウト調整 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    /* ボタンとハンバーガーの間隔 */
}

/* ヘッダー内のLINEボタンの調整（スマホで邪魔にならないように） */
.header-btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    height: auto;
}

/* スマホで「相談する」の文字を消してアイコンだけにする場合（任意） */
@media (max-width: 400px) {
    .header-btn .btn-text {
        display: none;
    }

    .header-btn i {
        margin-right: 0;
    }
}

/* ハンバーガーボタン本体 */
.hamburger {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2000;
    /* メニューより手前に表示 */
}

/* 三本線 */
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 8px;
    /* 中央寄せ */
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.hamburger span:nth-child(1) {
    top: 11px;
}

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

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

/* メニューが開いている時（×印になる） */
.hamburger.active span {
    background-color: var(--white);
    /* 背景が暗くなるので白に */
}

.hamburger.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* 全画面ナビゲーションメニュー */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.98);
    /* 濃紺の透過背景 */
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    /* 閉じてる時はクリック不可 */
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* メニューが開いた時 */
.global-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.global-nav ul {
    text-align: center;
    width: 100%;
}

.global-nav li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}

/* メニューが開いた時のリストのアニメーション */
.global-nav.active li {
    opacity: 1;
    transform: translateY(0);
}

/* 少しずつ遅れて表示させる演出 */
.global-nav.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.global-nav.active li:nth-child(2) {
    transition-delay: 0.15s;
}

.global-nav.active li:nth-child(3) {
    transition-delay: 0.2s;
}

.global-nav.active li:nth-child(4) {
    transition-delay: 0.25s;
}

.global-nav.active li:nth-child(5) {
    transition-delay: 0.3s;
}

.global-nav.active li:nth-child(6) {
    transition-delay: 0.35s;
}

.global-nav.active li:nth-child(7) {
    transition-delay: 0.4s;
}

.global-nav a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    padding: 10px;
}

.nav-btn-area {
    margin-top: 40px !important;
}

/* ナビ内のボタン */
.nav-btn-area .btn-line {
    max-width: 280px;
    margin: 0 auto;
}