/* ==========================================
           1. 基本共通設定＆変数（ノイズを排した設計）
           ========================================== */
        :root {
            --font-serif: 'Noto Serif JP', serif;
            --font-sans: 'Noto Sans JP', sans-serif;
            --color-rose-btn: #d46c63;
            --color-blue-btn: #5381b1;
            --color-bg-rose: #fbdad4;
            --color-bg-blue: #d7e3ef;
            --color-bg-dark: #2b2c2d;
            --color-line: #00b900;
            --color-teal: #4a8a7a;
            --font-size-heading-lg: 1.8rem;
            --theme-accent: var(--color-rose-btn);
            --page-hero-bg: linear-gradient(to bottom, #fdf0ee, #ffffff);
            --cta-bg: linear-gradient(135deg, #fef5f3 0%, #fdece9 100%);
            --problem-bar-bg: #fdf8f7;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 40px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.1);
        }

        body.theme-blue {
            --theme-accent: var(--color-blue-btn);
            --page-hero-bg: linear-gradient(to bottom, #e8f0f8, #ffffff);
            --cta-bg: linear-gradient(135deg, #e8f0f8 0%, #d7e3ef 100%);
            --problem-bar-bg: #f0f5fa;
        }

        body.theme-teal {
            --theme-accent: var(--color-teal);
            --page-hero-bg: linear-gradient(to bottom, #e8f3f0, #ffffff);
            --cta-bg: linear-gradient(135deg, #e8f3f0 0%, #d5ede7 100%);
            --problem-bar-bg: #f0f7f5;
        }

        body.theme-neutral {
            --theme-accent: #888888;
            --page-hero-bg: linear-gradient(to bottom, #f5f6f7, #ffffff);
            --cta-bg: linear-gradient(135deg, #fef5f3 0%, #fdece9 100%);
            --problem-bar-bg: #f5f6f7;
        }

        body.theme-contact .nav-mail-btn {
            background-color: var(--color-rose-btn);
        }

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

        body {
            font-family: var(--font-sans);
            color: #2b2c2d;
            background-color: #ffffff;
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }

        /* ==========================================
           2. ヘッダーエリア
           ========================================== */
        header {
            background-color: rgba(255, 255, 255, 0.95);
            height: 75px;
            padding: 0 4%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            transition: height 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
        }

        header.is-scrolled {
            height: 60px;
            background-color: rgba(255, 255, 255, 0.78);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: var(--shadow-sm);
        }

        .logo-group {
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: var(--font-serif);
            font-size: 1.7rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            transition: font-size 0.35s ease, gap 0.35s ease;
        }

        header.is-scrolled .logo-group {
            font-size: 1.45rem;
            gap: 10px;
        }

        /* 2つの重なる円のロゴマークを再現 */
        .logo-mark {
            width: 26px;
            height: 26px;
            border: 2px solid #b8c4d2;
            border-radius: 50%;
            position: relative;
            transition: width 0.35s ease, height 0.35s ease;
        }

        header.is-scrolled .logo-mark {
            width: 22px;
            height: 22px;
        }
        .logo-mark::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border: 2px solid #cca19c;
            border-radius: 50%;
            top: 2px;
            left: 6px;
        }

        .nav-group {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .nav-link {
            font-size: 0.88rem;
            font-weight: 500;
            color: #333333;
            letter-spacing: 0.02em;
        }
        .nav-link:hover,
        .nav-link.active {
            color: var(--theme-accent);
        }
        .nav-link.active {
            font-weight: 700;
        }

        /* ドロップダウンメニュー (PC) */
        .nav-dropdown {
            position: relative;
        }
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: #ffffff;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            border-radius: 8px;
            padding: 10px 0;
            min-width: 180px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 100;
        }
        .nav-dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        .dropdown-item {
            display: block;
            padding: 10px 24px;
            font-size: 0.85rem;
            font-weight: 500;
            color: #333333;
            text-align: center;
            transition: background 0.2s, color 0.2s;
        }
        .dropdown-item:hover {
            background: #fdf0ee;
            color: var(--theme-accent);
        }

        /* お問い合わせメールボックス */
        .nav-mail-btn {
            background-color: #606466;
            color: #ffffff !important;
            width: 36px;
            height: 28px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            margin-left: 4px;
        }
        .nav-mail-btn:hover {
            background-color: var(--theme-accent);
        }

        /* モバイルメニュー */
        .menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            width: 44px;
            height: 44px;
            padding: 10px;
            border: none;
            background: transparent;
            cursor: pointer;
            z-index: 1101;
        }

        .menu-toggle-bar {
            display: block;
            width: 22px;
            height: 2px;
            background-color: #333333;
            border-radius: 2px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }
        .menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
            opacity: 0;
        }
        .menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        .mobile-nav-overlay {
            position: fixed;
            inset: 0;
            z-index: 1099;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }

        .mobile-nav-overlay.is-open {
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            width: 100%;
            max-width: 360px;
            padding: 24px;
        }

        .mobile-nav a {
            display: block;
            width: 100%;
            padding: 16px 20px;
            font-size: 1rem;
            font-weight: 500;
            color: #333333;
            text-align: center;
            border-radius: 8px;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .mobile-nav a:hover {
            background-color: rgba(212, 108, 99, 0.08);
            color: var(--color-rose-btn);
        }

        .mobile-nav-contact {
            margin-top: 12px;
            background: linear-gradient(to right, #d8736a, #cf655c);
            color: #ffffff !important;
            font-weight: 700;
            border-radius: 30px !important;
            box-shadow: 0 4px 16px rgba(212, 108, 99, 0.25);
        }

        .mobile-nav-contact:hover {
            background: #be5d55 !important;
            color: #ffffff !important;
        }

        /* モバイル用ドロップダウン (アコーディオン) */
        .mobile-dropdown {
            width: 100%;
        }
        .mobile-dropdown-header {
            display: flex;
            align-items: center;
            width: 100%;
        }
        .mobile-dropdown-header a {
            flex-grow: 1;
            text-align: center;
            padding-left: 44px; /* offset for toggle button balance */
        }
        .mobile-dropdown-toggle {
            width: 44px;
            height: 44px;
            background: none;
            border: none;
            font-size: 0.8rem;
            color: #666;
            cursor: pointer;
            transition: transform 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .mobile-dropdown.is-open .mobile-dropdown-toggle {
            transform: rotate(180deg);
        }
        .mobile-dropdown-menu {
            display: none;
            background: #f8f9fa;
            border-radius: 8px;
            margin: 0 10px 10px;
            padding: 10px 0;
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
        }
        .mobile-dropdown-menu a {
            padding: 12px 20px;
            font-size: 0.95rem;
            color: #555;
            text-align: center;
            border-radius: 0;
        }
        .mobile-dropdown.is-open .mobile-dropdown-menu {
            display: block;
        }

        body.menu-open {
            overflow: hidden;
        }
        

        .action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            max-width: 340px;
            padding: 13px 24px;
            border-radius: 30px;
            color: #ffffff;
            font-size: 0.9rem;
            font-weight: 500;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.12);
            transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        }
        .action-btn::before {
            content: '';
            flex-shrink: 0;
            width: 7px;
            height: 7px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(-45deg);
            margin-right: 2px;
            transition: transform 0.3s ease;
        }
        .action-btn:hover::before {
            transform: rotate(-45deg) translate(2px, 2px);
        }

        .btn-rose { background: linear-gradient(to right, #d8736a, #cf655c); }
        .btn-rose:hover {
            background: #be5d55;
            transform: translateY(-2px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 10px 28px rgba(190, 93, 85, 0.35);
        }
        
        .btn-blue { background: linear-gradient(to right, #5c8ab8, #4e7aa7); }
        .btn-blue:hover {
            background: #436991;
            transform: translateY(-2px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 10px 28px rgba(67, 105, 145, 0.35);
        }



        footer {
            background-color: var(--color-bg-dark);
            color: #ffffff;
            padding: 35px 4% 25px;
            position: relative;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .footer-nav {
            display: flex;
            gap: 24px;
        }

        .footer-nav a {
            font-size: 0.88rem;
            color: #cccccc;
        }
        .footer-nav a:hover {
            color: #ffffff;
        }

        .footer-copyright {
            font-size: 0.75rem;
            color: #888888;
            width: 100%;
            text-align: center;
            margin-top: 25px;
            border-top: 1px solid #3d3e3f;
            padding-top: 15px;
        }

        /* LINE連携コンポーネント（完全再現） */
        .line-integration-box {
            display: flex;
            align-items: center;
            gap: 10px;
            position: absolute;
            right: 4%;
            top: -42px;
            z-index: 100;
        }

        .line-green-bar {
            background-color: var(--color-line);
            color: #ffffff;
            padding: 11px 24px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .line-green-bar::before {
            content: '●';
            font-size: 0.4rem;
        }

        .line-green-circle {
            background-color: var(--color-line);
            color: #ffffff;
            width: 75px;
            height: 75px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 1.15rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            letter-spacing: -0.05em;
            position: relative;
        }
        .line-green-circle::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px 5px 0;
            border-style: solid;
            border-color: var(--color-line) transparent;
            display: block;
            width: 0;
        }

        /* ==========================================
           3.5 コンセプトエリア
           ========================================== */


        /* サブページ共通レイアウト */
        .page-hero {
            background: var(--page-hero-bg);
            padding: 80px 4% 60px;
            text-align: center;
        }

        .page-hero-inner {
            max-width: 900px;
            margin: 0 auto;
        }

        .page-title-eng {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--theme-accent);
            text-transform: uppercase;
            letter-spacing: 0.2em;
            margin-bottom: 15px;
        }

        .page-title {
            font-family: var(--font-serif);
            font-size: 2.8rem;
            font-weight: 700;
            color: #111111;
            line-height: 1.4;
            letter-spacing: 0.05em;
            margin-bottom: 20px;
        }

        .page-lead {
            font-size: 1.15rem;
            color: #555555;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.8;
        }

        /* ==========================================
           4. セクション共通スタイル
           ========================================== */
        section {
            padding: 90px 4%;
        }

        .section-container {
            max-width: 1100px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title {
            font-family: var(--font-serif);
            font-size: 2rem;
            font-weight: 700;
            color: #111111;
            margin-bottom: 15px;
            letter-spacing: 0.05em;
            position: relative;
            display: inline-block;
        }

        .section-title::after,
        .concept-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 1.5px;
            background-color: var(--theme-accent);
        }

        .concept-title::after {
            bottom: -10px;
            width: 50px;
        }

        .section-subtitle {
            font-size: 0.9rem;
            color: #777777;
            letter-spacing: 0.05em;
        }



        /* ドキュメント・法務ページ */
        .main-section { padding: 80px 4%; }
        .doc-container { max-width: 820px; margin: 0 auto; }

        .doc-intro {
            font-size: 0.95rem; color: #555; margin-bottom: 50px;
            padding: 20px 24px; background: #fdfcfb;
            border-left: 3px solid #e1b4b0; border-radius: 0 4px 4px 0;
        }

        .doc-article { margin-bottom: 45px; }
        .doc-article-title {
            font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
            color: #111; margin-bottom: 15px;
            padding-bottom: 10px; border-bottom: 1px solid #f0ece9;
        }
        .doc-article-body {
            font-size: 0.93rem; color: #444; line-height: 1.9;
        }
        .doc-article-body p { margin-bottom: 10px; }
        .doc-article-body ol, .doc-article-body ul {
            padding-left: 1.4em; margin-top: 8px;
        }
        .doc-article-body li { margin-bottom: 6px; }

        .doc-date {
            text-align: right; font-size: 0.88rem; color: #888;
            margin-top: 60px; padding-top: 20px; border-top: 1px solid #f0ece9;
        }



        /* 情報テーブル（会社概要・特商法など） */
        .info-table { width: 100%; border-collapse: collapse; }
        .info-table tr { border-bottom: 1px solid #f0ece9; }
        .info-table tr:first-child { border-top: 1px solid #f0ece9; }
        .info-table th {
            width: 220px; padding: 20px 16px; text-align: left;
            font-size: 0.9rem; font-weight: 700; color: #555;
            vertical-align: top; white-space: nowrap;
        }
        .info-table td {
            padding: 20px 16px; font-size: 0.95rem; color: #333; line-height: 1.7;
        }

        /* 課題・訴求バナー */
        .problem-bar {
            background-color: var(--problem-bar-bg);
            border-left: 4px solid var(--theme-accent);
            max-width: 900px;
            margin: 0 auto 60px;
            padding: 20px 30px;
            border-radius: 0 6px 6px 0;
        }
        .problem-bar p {
            font-size: 1.05rem;
            font-weight: 700;
            color: #333333;
        }
        .problem-bar p span {
            color: var(--theme-accent);
        }

        /* フォーム共通 */
        .form-section,
        .order-section {
            padding: 90px 4%;
        }
        .form-section {
            background-color: #fdfcfb;
            border-top: 1px solid #f2ece6;
        }
        .form-container,
        .form-wrap {
            max-width: 780px;
            margin: 0 auto;
        }
        .form-group { margin-bottom: 25px; }
        .form-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: #333333;
            margin-bottom: 8px;
            display: block;
        }
        .form-label span.required {
            font-size: 0.75rem;
            background-color: var(--color-rose-btn);
            color: #ffffff;
            padding: 2px 7px;
            border-radius: 3px;
            margin-left: 6px;
        }
        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #dddddd;
            border-radius: 6px;
            font-family: var(--font-sans);
            font-size: 0.95rem;
            color: #333333;
            background: #ffffff;
            transition: border-color 0.2s;
        }
        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--color-rose-btn);
            box-shadow: 0 0 0 3px rgba(212, 108, 99, 0.1);
        }
        .form-textarea { min-height: 140px; resize: vertical; }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .submit-btn {
            display: block;
            width: 100%;
            padding: 16px;
            background: linear-gradient(to right, #d8736a, #cf655c);
            color: #ffffff;
            font-size: 1rem;
            font-weight: 700;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(212, 108, 99, 0.25);
            transition: all 0.3s ease;
            margin-top: 10px;
        }
        .submit-btn:hover {
            background: #be5d55;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212, 108, 99, 0.3);
        }
        .form-honeypot {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }
        .form-turnstile {
            display: flex;
            justify-content: center;
            margin-bottom: 10px;
        }
        .form-status {
            margin-bottom: 24px;
            padding: 14px 18px;
            border-radius: 6px;
            font-size: 0.92rem;
            line-height: 1.7;
        }
        .form-status--error {
            background-color: #fdf0ee;
            border: 1px solid #e8b4b0;
            color: #8a3b35;
        }
        .form-status--success {
            background-color: #eef8ee;
            border: 1px solid #b5dcb5;
            color: #2d5a2d;
            max-width: 640px;
            margin: 0 auto;
        }



        .cta-section {
            background: var(--cta-bg);
            text-align: center;
            padding: 80px 4%;
        }
        .cta-box {
            max-width: 800px;
            margin: 0 auto;
        }
        .cta-lead {
            font-family: var(--font-serif);
            font-size: var(--font-size-heading-lg);
            font-weight: 700;
            color: #111111;
            margin-bottom: 15px;
            letter-spacing: 0.05em;
        }
        .cta-text { font-size: 1rem; color: #555; margin-bottom: 35px; }
        .cta-btn-wrap { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
        .cta-btn {
            display: inline-flex; align-items: center; justify-content: center;
            padding: 15px 40px; border-radius: 30px; font-size: 0.95rem;
            font-weight: 700; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        }
        .cta-btn-rose { background: linear-gradient(to right, #d8736a, #cf655c); }
        .cta-btn-rose:hover { background: #be5d55; transform: translateY(-2px); }
        .cta-btn-blue { background: linear-gradient(to right, #5c8ab8, #4e7aa7); }
        .cta-btn-blue:hover { background: #436991; transform: translateY(-2px); }
        .cta-btn-teal { background: linear-gradient(to right, #5a9e8e, #4a8a7a); }
        .cta-btn-teal:hover { background: #3d7567; transform: translateY(-2px); }
        .cta-btn-line { background-color: var(--color-line); }
        .cta-btn-line:hover { background-color: #009900; transform: translateY(-2px); }



        /* 共通レスポンシブ */
        @media (max-width: 992px) {
            header { padding: 0 20px; }
            .nav-group { display: none; }
            .menu-toggle { display: flex; }
            .page-hero { padding: 60px 20px 40px; }
            .page-title { font-size: var(--font-size-heading-lg); }
            .page-lead { font-size: 1rem; }
            section, .main-section { padding: 60px 20px; }
            .info-table th { width: 130px; font-size: 0.85rem; }
            .form-row { grid-template-columns: 1fr; }
            .line-integration-box { position: static; margin: 15px auto; justify-content: center; width: 100%; }
            .footer-container { flex-direction: column; text-align: center; }
            .footer-nav { justify-content: center; margin-bottom: 15px; gap: 15px; flex-wrap: wrap; }
        }
        @media (max-width: 600px) {
            .cta-lead { font-size: 1.4rem; }
            .cta-btn { width: 100%; max-width: 340px; }
        }
