/*
Theme Name: METARETO Theme
Theme URI: https://metareto.co.jp
Author: METARETO Dev Team
Description: Corporate theme for METARETO Inc.
Version: 2.2.0
*/

/* =========================================
   1. Theme Variables & Base Setup
   ========================================= */
:root {
    /* Colors */
    --color-main-bg: #FFFFFF;
    --color-sub-bg: #F5F5F7;
    --color-accent: #1b94d3; /* METARETO Blue */
    --color-accent-dark: #0A6EA6;
    
    /* Text Colors - Updated to Dark Gray */
    --color-text-body: #555555; /* 本文：真っ黒ではなくグレー */
    --color-text-head: #444444; /* 見出し：濃いグレー */
    
    /* Footer & UI */
    --color-footer-bg: #1D1D1F; /* フッター背景は引き締め色として維持 */
    --color-white: #FFFFFF;
    --color-border: #E5E5E5;

    /* Typography */
    --font-main: "Inter", "Noto Sans JP", sans-serif;
    --font-eng-head: "Montserrat", "Inter", sans-serif;
    
    /* Sizes */
    --header-height: 70px;
    --container-width: 1080px;
    --padding-side: 24px;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--color-main-bg);
    color: var(--color-text-body);
    line-height: 1.8;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--color-text-head);
    font-family: var(--font-main);
}

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

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

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

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--padding-side);
    width: 100%;
    position: relative;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.btn:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 148, 211, 0.2);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-text-head);
    color: var(--color-text-head);
}

.btn-outline:hover {
    background-color: var(--color-text-head);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-white {
    background-color: #fff !important;
    color: var(--color-text-head) !important; /* 文字色を変数に合わせる */
    border: 1px solid #fff;
}
.btn-white:hover {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}

/* Animation Utilities */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.anim-text {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease;
}
.anim-text.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* =========================================
   2. Header Styles
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

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

.site-logo a { display: block; line-height: 0; }
.site-logo img { height: 24px; width: auto; }

.site-nav ul { display: flex; gap: 40px; }
.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-body);
    position: relative;
}
.site-nav a:hover, .site-nav a.current { color: var(--color-accent); }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block; width: 100%; height: 2px; background-color: var(--color-text-head); transition: all 0.3s ease;
}

/* =========================================
   3. COMPANY Page Styles
   ========================================= */
.company-fv {
    padding: 200px 0 140px;
    background-color: var(--color-main-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.company-fv::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: 1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    pointer-events: none;
}
.horizon-glow { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow-primary {
    position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
    width: 140%; height: 600px;
    background: radial-gradient(ellipse at center, rgba(27, 148, 211, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    animation: pulse-glow-primary 8s ease-in-out infinite alternate;
}
.glow-secondary {
    position: absolute; bottom: -120px; left: 50%; transform: translateX(-50%);
    width: 100%; height: 400px;
    background: radial-gradient(ellipse at center, rgba(27, 148, 211, 0.18) 0%, rgba(255, 255, 255, 0) 60%);
    filter: blur(50px);
    animation: pulse-glow-secondary 6s ease-in-out infinite alternate-reverse;
}
@keyframes pulse-glow-primary {
    0% { opacity: 0.6; transform: translateX(-50%) scaleY(0.9); }
    100% { opacity: 1; transform: translateX(-50%) scaleY(1.1); }
}
@keyframes pulse-glow-secondary {
    0% { opacity: 0.7; transform: translateX(-50%) scaleY(0.95); }
    100% { opacity: 0.9; transform: translateX(-50%) scaleY(1.05); }
}
.company-fv .container { position: relative; z-index: 2; }
.purpose-copy {
    font-family: var(--font-main);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-text-head);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}
.purpose-lead {
    font-size: 1.1rem;
    color: var(--color-text-body);
    max-width: 720px;
    margin: 0 auto;
    line-height: 2.2;
}

/* Genesis Section */
.genesis-section {
    padding: 100px 0;
    background-color: var(--color-sub-bg);
    position: relative;
    overflow: hidden;
}
.genesis-bg-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1; z-index: 0;
}
.genesis-header { text-align: center; margin-bottom: 60px; position: relative; z-index: 1; }
.genesis-title {
    font-family: var(--font-eng-head); font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem); color: var(--color-accent);
    margin-bottom: 10px; letter-spacing: 0.05em;
}
.genesis-subtitle { font-size: 1.25rem; font-weight: 700; color: var(--color-text-body); margin-bottom: 1rem; }
.genesis-desc { font-size: 1rem; color: #666; }
.genesis-grid {
    display: grid; grid-template-columns: 1fr 200px 1fr; gap: 20px;
    align-items: center; max-width: 1000px; margin: 0 auto;
    position: relative; z-index: 1;
}
.genesis-card {
    background-color: var(--color-white); padding: 2rem; border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); height: 100%;
}
.genesis-card.left { border-left: 4px solid var(--color-text-body); }
.genesis-card.right { border-right: 4px solid var(--color-accent); text-align: right; }
.card-head {
    font-family: var(--font-eng-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem;
}
.genesis-card.left .card-head { color: var(--color-text-body); }
.genesis-card.right .card-head { color: var(--color-accent); }
.card-sub { font-size: 0.875rem; color: #666; margin-bottom: 1rem; font-weight: 600; }
.card-text { font-size: 0.9rem; line-height: 1.8; color: #777; }

/* Fusion Core Animation */
.fusion-core {
    display: flex; justify-content: center; position: relative;
    height: 160px; width: 160px; margin: 0 auto;
}
.ring-outer {
    position: absolute; inset: 0; border: 2px solid var(--color-accent); border-radius: 50%;
    opacity: 0.3; animation: spin-slow 10s linear infinite; border-top-color: transparent;
}
.ring-inner {
    position: absolute; inset: 16px; border: 2px solid var(--color-accent); border-radius: 50%;
    opacity: 0.5; animation: spin-reverse 7s linear infinite; border-bottom-color: transparent;
}
.core-circle {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-family: var(--font-eng-head); font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 0 20px rgba(27, 148, 211, 0.4);
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10;
}
.fusion-line-left, .fusion-line-right {
    position: absolute; top: 50%; width: 60px; height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent));
}
.fusion-line-left { right: 100%; }
.fusion-line-right { left: 100%; background: linear-gradient(to left, transparent, var(--color-accent)); }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

/* Message Section */
.message-section { padding: 120px 0; background-color: var(--color-main-bg); }
.message-container { max-width: 800px; margin: 0 auto; }
.message-head {
    font-size: 2rem; font-weight: 700; color: var(--color-text-head);
    margin-bottom: 50px; line-height: 1.6; text-align: center;
}
.message-body { font-size: 1.05rem; line-height: 2.2; text-align: left; }
.message-body p { margin-bottom: 2rem; }

/* Roadmap Section */
.roadmap-section { padding: 120px 0; background-color: var(--color-footer-bg); color: var(--color-white); }
.roadmap-header { text-align: center; margin-bottom: 80px; }
.roadmap-title {
    font-family: var(--font-eng-head); font-size: 3rem; font-weight: 800;
    color: var(--color-white); margin-bottom: 10px;
}
.roadmap-lead { font-size: 1.1rem; color: rgba(255,255,255,0.7); }
.roadmap-steps {
    display: flex; flex-direction: column; gap: 20px;
    max-width: 800px; margin: 0 auto; position: relative;
}
.roadmap-steps::before {
    content: ''; position: absolute; top: 20px; bottom: 20px; left: 20px;
    width: 2px; background-color: rgba(255,255,255,0.1);
}
.step-item { display: flex; gap: 40px; padding: 20px 0; position: relative; }
.step-marker {
    width: 42px; height: 42px; background-color: var(--color-footer-bg);
    border: 2px solid var(--color-accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: var(--color-accent); z-index: 1; flex-shrink: 0;
}
.step-content { flex-grow: 1; padding-top: 5px; }
.step-phase {
    font-family: var(--font-eng-head); font-size: 0.9rem; color: var(--color-accent);
    letter-spacing: 0.1em; margin-bottom: 5px; display: block;
}
.step-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* Outline Section */
.outline-section { padding: 100px 0; background-color: var(--color-main-bg); }
.outline-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; }
.outline-table tr { border-bottom: 1px solid var(--color-border); }
.outline-table th { width: 30%; padding: 24px 0; text-align: left; font-weight: 700; color: var(--color-text-head); vertical-align: top; }
.outline-table td { padding: 24px 0; color: var(--color-text-body); line-height: 1.8; }

/* =========================================
   4. SERVICE Page Styles
   ========================================= */
.service-hero {
    position: relative; padding: 180px 0 140px; text-align: center;
    background-color: var(--color-main-bg); overflow: hidden;
}
#hero-canvas-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.8;
}
.service-hero .container { position: relative; z-index: 1; }
.service-hero h1 {
    font-family: var(--font-main); font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800; line-height: 1.3; color: var(--color-text-head);
    margin-bottom: 30px; letter-spacing: -0.02em;
}
.service-hero h1 span { display: inline-block; }
.service-hero .lead-text {
    font-size: 1.1rem; color: var(--color-text-body);
    max-width: 700px; margin: 0 auto; line-height: 2;
}
.service-domains-wrapper {
    position: relative; z-index: 1; background-color: var(--color-main-bg);
}
.service-domain { padding: 100px 0; border-top: 1px solid var(--color-border); }
.service-domain:nth-child(even) { background-color: #FAFAFC; }
.domain-container {
    display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start;
}
.domain-header { position: relative; }
.domain-number {
    font-family: "Inter", sans-serif; font-size: 6rem; font-weight: 800;
    line-height: 1; color: #E8E8ED; margin-bottom: -20px; margin-left: -5px; z-index: 0;
}
.domain-title {
    font-size: 1.75rem; font-weight: 700; color: var(--color-text-head);
    position: relative; z-index: 1; line-height: 1.4;
}
.domain-subtitle {
    display: block; font-size: 0.9rem; color: var(--color-accent);
    margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.domain-body { padding-top: 20px; }
.domain-catch {
    font-size: 1.5rem; font-weight: 700; color: var(--color-text-head);
    margin-bottom: 24px; line-height: 1.5;
}
.domain-desc { margin-bottom: 40px; font-size: 1rem; }
.key-features {
    margin-bottom: 40px; background-color: var(--color-white);
    padding: 30px; border-radius: 12px; border: 1px solid #EEEEEE;
}
.key-features h4 {
    font-size: 0.9rem; color: #999; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 20px; font-weight: 600;
}
.feature-list li {
    position: relative; padding-left: 24px; margin-bottom: 12px;
    font-weight: 500; color: var(--color-text-head);
}
.feature-list li::before {
    content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px;
    background-color: var(--color-accent); border-radius: 50%;
}
.feature-list li span {
    color: var(--color-text-body); font-weight: 400; font-size: 0.95rem; margin-left: 8px;
}
.service-cta-section {
    padding: 120px 0; background-color: var(--color-text-head);
    color: var(--color-white); text-align: center; position: relative; z-index: 1;
}
.service-cta-section h2 {
    font-size: 2rem; margin-bottom: 40px; font-weight: 700; line-height: 1.6;
}

/* =========================================
   5. Footer Styles
   ========================================= */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}
.footer-cta {
    text-align: center; margin-bottom: 80px; padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-cta h2 { font-family: var(--font-eng-head); font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; }
.footer-middle {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px;
}
.footer-logo img { height: 28px; width: auto; }
.footer-subtext {
    display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); letter-spacing: 0.2em; margin-top: 8px;
}
.footer-nav ul { display: flex; gap: 30px; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--color-white); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: rgba(255,255,255,0.4); padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   6. News / Index / Privacy
   ========================================= */
.section { padding: 100px 0; }
.entry-header h2 a { color: var(--color-text-head); transition: color 0.3s; }
.entry-header h2 a:hover { color: var(--color-accent); }
.news-list { max-width: 800px; margin: 40px auto 0; border-top: 1px solid var(--color-border); }
.news-item {
    display: flex; padding: 20px 0; border-bottom: 1px solid var(--color-border);
    align-items: baseline; transition: background 0.3s;
}
.news-date { width: 120px; font-size: 0.9rem; color: #999; font-family: var(--font-eng-head); }
.news-title { font-weight: 600; color: var(--color-text-head); }
.news-title a:hover { color: var(--color-accent); text-decoration: underline; }

/* =========================================
   7. Responsive (Common)
   ========================================= */
@media (max-width: 768px) {
    :root { --header-height: 60px; --padding-side: 20px; }

    /* Nav */
    .site-nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background-color: var(--color-main-bg); display: flex; align-items: center; justify-content: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .site-nav.active { right: 0; }
    .site-nav ul { flex-direction: column; text-align: center; gap: 30px; }
    .site-nav a { font-size: 1.2rem; font-weight: 700; }

    /* Hamburger */
    .hamburger { display: flex; }
    .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); }

    /* Page Specific SP Adjustments */
    .company-fv { padding: 140px 0 100px; }
    .purpose-copy { font-size: 1.8rem; text-align: left; }
    .purpose-lead { text-align: left; font-size: 1rem; }
    .glow-primary, .glow-secondary { opacity: 0.6; }

    .genesis-grid { grid-template-columns: 1fr; gap: 40px; }
    .fusion-core { margin: 20px auto; }
    .fusion-line-left, .fusion-line-right { display: none; }
    .genesis-card.right { text-align: left; border-right: none; border-left: 4px solid var(--color-accent); }
    
    .message-body { columns: 1; text-align: left; }
    .message-head { font-size: 1.5rem; text-align: left; }
    
    .roadmap-title { font-size: 2rem; }
    .step-item { gap: 20px; }
    .roadmap-steps::before { left: 16px; }
    .step-marker { width: 34px; height: 34px; font-size: 0.7rem; }
    .step-title { font-size: 1.25rem; }

    .outline-table th, .outline-table td { display: block; padding: 10px 0; width: 100%; }
    .outline-table th { padding-top: 20px; border-bottom: none; }
    .outline-table td { padding-top: 0; padding-bottom: 20px; }

    .service-hero { padding: 120px 0 80px; }
    .service-hero h1 { font-size: 1.8rem; }
    .service-hero .lead-text { font-size: 1rem; text-align: left; }
    .domain-container { grid-template-columns: 1fr; gap: 30px; }
    .domain-number { font-size: 4rem; margin-bottom: -10px; }
    .domain-title { font-size: 1.5rem; }
    .domain-catch { font-size: 1.3rem; }
    .key-features { padding: 24px; }
    .service-cta-section h2 { font-size: 1.5rem; }

    .footer-middle { flex-direction: column; gap: 40px; }
    .footer-nav ul { flex-direction: column; gap: 15px; }
    .footer-bottom { flex-direction: column-reverse; gap: 20px; }
}

/* =========================================
   8. Contact Form Styles (Vertical Layout)
   ========================================= */

/* ラッパー全体 */
.metareto-contact-form {
    width: 100%;
    max-width: 720px; /* 縦積みで見やすくなるよう幅を少し制限 */
    margin: 0 auto;
}

/* フォームの各行（縦積みに変更） */
.form-row {
    display: block; /* ここをflexからblockに変更 */
    margin-bottom: 30px; /* 行間の余白 */
    border-bottom: none; /* 横線は削除してスッキリさせる */
    padding-bottom: 0;
}

/* ラベルエリア */
.form-label {
    width: 100%; /* 横幅いっぱいに */
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-text-head);
    margin-bottom: 10px; /* 入力欄との間隔 */
    font-size: 1rem;
}

/* 入力欄エリア */
.form-input-wrapper {
    width: 100%; /* 横幅いっぱいに */
}

/* 必須・任意バッジ */
.required-badge,
.optional-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 600;
    line-height: 1;
}
.required-badge {
    background-color: var(--color-accent);
    color: #fff;
}
.optional-badge {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

/* 入力フィールド共通 */
.form-control {
    width: 100%;
    padding: 14px 16px; /* 少しパディングを広げて入力しやすく */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: #f9f9f9; /* 背景を少しグレーにして入力エリアを明確化 */
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-body);
    transition: all 0.3s ease;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(27, 148, 211, 0.1);
}

/* テキストエリア */
textarea.form-control {
    line-height: 1.6;
    resize: vertical;
    min-height: 180px;
}

/* プライバシーポリシー同意エリア */
.privacy-row {
    margin-top: 40px;
    text-align: center;
}
.privacy-wrapper {
    display: inline-block;
    font-size: 0.95rem;
}
.privacy-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
}
.privacy-link:hover {
    text-decoration: none;
}

/* 送信ボタンエリア */
.submit-row {
    text-align: center;
    margin-top: 40px;
}

input.wpcf7-submit.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 80px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    border-radius: 40px;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
}
input.wpcf7-submit.btn-submit:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 148, 211, 0.3);
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    font-size: 0.85rem;
    margin-top: 8px;
    color: #e74c3c;
    font-weight: 600;
}

/* =========================================
   Responsive (SP)
   ========================================= */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    .form-label {
        width: 100%;
        padding-top: 0;
        margin-bottom: 8px;
    }
    .form-input-wrapper {
        width: 100%;
    }
    input.wpcf7-submit.btn-submit {
        width: 100%;
    }
}

/* =========================================
   9. TOP Page Specific (Additions)
   ========================================= */
.fv {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.fv canvas {
    display: block;
}
.text-accent {
    color: var(--color-accent);
}
/* =========================================
   11. Contact Form Checkbox Style (Vertical)
   ========================================= */

/* チェックボックスの項目を縦積みにする */
.metareto-contact-form .wpcf7-list-item {
    display: block; /* これで改行されます */
    margin: 0 0 12px 0; /* 下の余白 */
}

/* 最後の項目だけ余白を消す */
.metareto-contact-form .wpcf7-list-item:last-child {
    margin-bottom: 0;
}

/* チェックボックスと文字の間隔調整 */
.metareto-contact-form .wpcf7-list-item-label {
    margin-left: 8px;
    font-size: 1rem;
    color: var(--color-text-body);
}

/* チェックボックス本体の微調整 */
.metareto-contact-form input[type="checkbox"] {
    transform: scale(1.2); /* 少し大きくして押しやすく */
    cursor: pointer;
}
/* =========================================
   12. Mobile Fixes (Final Version)
   ========================================= */

@media (max-width: 768px) {
    /* 1. サイト全体の横揺れ防止 */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    /* 2. 投稿ページの枠組み修正 */
    /* コンテナ自体に必ず余白（パディング）を持たせる */
    .single-post-section.container {
        padding-left: 20px !important;  /* 左の余白を復活 */
        padding-right: 20px !important; /* 右の余白を復活 */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 中身のコンテンツ幅をリセット */
    .single-post-section .page-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 3. 記事本文のはみ出し防止 */
    .entry-content {
        width: 100%;
        /* 長い文字やURLを強制的に改行させる */
        overflow-wrap: break-word !important;
        word-break: break-all; 
    }

    /* 画像・動画・iframeを画面幅に強制フィット */
    .entry-content img,
    .entry-content video,
    .entry-content iframe,
    .entry-content figure {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important; /* 固定幅を無効化 */
        box-sizing: border-box;
    }

    /* 4. タイトル文字サイズの調整 */
    .entry-title {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }
}
/* =========================================
   13. Message Section Title Adjustment
   ========================================= */

.section-label-blue {
    text-align: center;           /* 中央寄せ */
    color: var(--color-accent);   /* サイト共通の水色 (#1b94d3) */
    font-family: var(--font-eng-head); /* 英字用フォント（Montserrat） */
    font-size: 1.2rem;            /* サイズ調整 */
    font-weight: 700;             /* 太字 */
    letter-spacing: 0.1em;        /* 文字間隔を少し広げる */
    margin-bottom: 20px;          /* 下の日本語見出しとの余白 */
    display: block;
}

/* スマホでの微調整（必要であれば） */
@media (max-width: 768px) {
    .section-label-blue {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}
/* =========================================
   14. Roadmap Section Text Color Fix
   ========================================= */

/* ステップのメインタイトルを白にして視認性を確保 */
.roadmap-section .step-title {
    color: #FFFFFF !important; /* 強制的に白にする */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ついでに説明文も少し明るくして読みやすく */
.roadmap-section .step-desc {
    color: rgba(255, 255, 255, 0.9) !important; /* 不透明度を上げて明るく */
    font-size: 0.95rem;
    line-height: 1.8;
}

/* フェーズ名（Deep Care Techなど）はアクセントカラーのまま */
.roadmap-section .step-phase {
    color: var(--color-accent) !important;
    font-family: var(--font-eng-head);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    display: block;
}