/* Webフォントは index.html の <link> でまとめて読み込み（@importは描画を遅らせるため使用しない） */

:root {
    /* Color System */
    --navy-deep: #0a1424;
    --navy-dark: #070f1e;
    --navy-light: #1e293b;
    --accent-mint: #10b981;
    --accent-mint-dark: #059669;
    --accent-gold: #c5a059;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --accent-red: #ef4444;
    
    /* Glassmorphism Settings */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);

    /* Animation Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 16px;
    --radius-md: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-primary);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    line-height: 1.4;
    color: var(--navy-deep);
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--navy-deep);
    position: relative;
    padding-bottom: 20px;
}

.section-title span {
    color: var(--accent-mint);
    background: linear-gradient(120deg, var(--accent-mint) 0%, var(--accent-mint-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold));
    border-radius: 2px;
}

/* 表示日数などの注記（誇大広告とみなされないための補足） */
.section-note {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -10px auto 60px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 48px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-deep);
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-contact {
    text-align: right;
}

.nav-tel {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-deep);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    margin-bottom: 2px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-tel:hover {
    color: var(--accent-mint-dark);
}

.nav-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-header-cta {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(10, 20, 36, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 20, 36, 0.3);
    border-color: var(--accent-gold);
}

/* Decorative Background Elements */
.bg-decoration-text {
    position: fixed;
    top: 50%;
    left: -10%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 20vw;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: rgba(197, 160, 89, 0.03);
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.1em;
}

.bg-decoration-shape-1 {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.bg-decoration-shape-2 {
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Hero Section - Image Background with Glassmorphism */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 100px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 250, 252, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-container-inner {
    max-width: 950px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.glass-hero-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(197, 160, 89, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-hero-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.5), transparent);
}



.hero-badge-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.35;
    margin-bottom: 24px;
    color: var(--navy-deep);
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--accent-mint);
    background: linear-gradient(120deg, var(--accent-mint) 0%, var(--accent-mint-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 45px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.hero-btns-centered {
    display: flex;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-btns-centered .btn {
    flex: 1;
}

.tag-badge {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-mint {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%);
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.25rem;
    padding: 22px 36px;
    box-shadow: 0 10px 25px rgba(10, 20, 36, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 40px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(10, 20, 36, 0.3);
    border-color: var(--accent-gold);
}

.btn-line {
    background: #06c755;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(6, 199, 85, 0.15);
    border: none;
}

.btn-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 199, 85, 0.25);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: none;
}

.btn-shine:hover::after {
    left: 130%;
    transition: all 0.8s ease-in-out;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Property Types */
.target-types {
    background: var(--white);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.type-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e8d099, var(--accent-gold));
    opacity: 0;
    transition: var(--transition-smooth);
}

.type-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(197, 160, 89, 0.3);
}

.type-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
    transition: var(--transition-smooth);
}

.type-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b38b45 100%);
    color: var(--white);
}

.type-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--navy-deep);
}

.type-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Success Cases */
.cases {
    background: var(--bg-light);
}

.case-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.05);
    margin-bottom: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
}

.case-flex {
    display: flex;
}

.case-img-box {
    flex: 0.8; /* Slightly smaller relative to text */
    display: flex;
    min-width: 300px;
}

.case-img {
    flex: 1;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-img span {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--navy-dark);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
}


.case-info {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-tag-area {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.case-location {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--accent-mint);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.case-cat {
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(217, 119, 6, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.case-info h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    line-height: 1.4;
}

.case-story-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-problem, .story-solution {
    position: relative;
    padding-left: 70px;
    font-size: 0.95rem;
}

.label-prob, .label-sol {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.label-prob {
    background: #fef2f2;
    color: #ef4444;
}

.label-sol {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-mint-dark);
}

/* 5 Steps (Timeline) */
.steps-section {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 4px;
    background: var(--bg-gray);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 17px;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 4px solid var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-number span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.timeline-content {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: var(--transition-smooth);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Timeline hover interaction */
.timeline-item:hover .timeline-number {
    border-color: var(--accent-mint);
    background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-mint-dark) 100%);
}

.timeline-item:hover .timeline-number span {
    color: var(--white);
}

.timeline-item:hover .timeline-content {
    background: var(--white);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.04);
    border-color: rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

/* Representative Message */
.rep-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.rep-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.rep-img-wrapper {
    flex: 1;
    position: relative;
    border-radius: 30px 10px 30px 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.rep-img-el {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.rep-img-wrapper:hover .rep-img-el {
    transform: scale(1.03);
}

.rep-content {
    flex: 1.3;
}

.rep-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--accent-mint);
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.rep-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.rep-text-wrapper {
    font-size: 1.05rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent-mint);
    margin-bottom: 30px;
}

.rep-text-wrapper p {
    margin-bottom: 16px;
}

.rep-text-wrapper p:last-child {
    margin-bottom: 0;
}

.rep-name {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.rep-name span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-left: 8px;
}

/* Contact Section & Glassmorphism Form */
.contact-section {
    background: var(--bg-light);
    color: var(--text-primary);
    position: relative;
}

.contact-section .section-title {
    color: var(--navy-deep);
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold));
}

.contact-form-container {
    max-width: 850px;
    margin: 0 auto;
}

.contact-form-container.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

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

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.label-optional {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: middle;
}

.form-help {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ハニーポット: 画面外に飛ばして利用者からは見えなくする */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-privacy {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
}

.form-error {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.form-error a {
    color: #b91c1c;
    font-weight: 700;
}

.form-error[hidden] {
    display: none;
}

.form-control::placeholder {
    color: rgba(15, 23, 42, 0.35);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-mint);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Custom Radio Card UI */
.radio-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.radio-card {
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-btn {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.1);
    transition: var(--transition-smooth);
}

.radio-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy-deep);
    margin-bottom: 4px;
}

.radio-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.radio-card:hover .radio-card-btn {
    border-color: rgba(197, 160, 89, 0.4);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.radio-card input[type="radio"]:checked + .radio-card-btn {
    background: rgba(197, 160, 89, 0.05);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 1px var(--accent-gold);
}

.btn-submit {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%);
    color: var(--white);
    font-size: 1.3rem;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(10, 20, 36, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 40px;
    margin-top: 20px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(10, 20, 36, 0.3);
    border-color: var(--accent-gold);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: 0 10px 25px rgba(10, 20, 36, 0.15);
}

/* Thanks Page */
.thanks-section {
    background: var(--bg-light);
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.thanks-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    padding: 70px 60px;
    text-align: center;
}

.thanks-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-mint-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.thanks-icon svg {
    width: 42px;
    height: 42px;
}

.thanks-title {
    font-size: 2.1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.thanks-title span {
    color: var(--accent-mint);
    background: linear-gradient(120deg, var(--accent-mint) 0%, var(--accent-mint-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thanks-lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 36px;
}

.thanks-lead strong {
    color: var(--accent-mint-dark);
    font-weight: 700;
}

.thanks-note {
    background: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.thanks-note p {
    margin-bottom: 12px;
}

.thanks-note p:last-child {
    margin-bottom: 0;
}

.thanks-contact {
    padding: 28px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 36px;
}

.thanks-tel {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy-deep);
    text-decoration: none;
    line-height: 1.2;
    transition: var(--transition-smooth);
}

.thanks-tel:hover {
    color: var(--accent-mint-dark);
}

.thanks-hours {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.thanks-back {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 116, 139, 0.4);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}

.thanks-back:hover {
    color: var(--accent-mint-dark);
    border-bottom-color: var(--accent-mint-dark);
}

/* Legal Page (個人情報の取扱) */
.legal-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.legal-section .container {
    max-width: 900px;
}

.legal-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.legal-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.legal-breadcrumb a:hover {
    color: var(--accent-mint-dark);
}

.legal-head h1 {
    font-size: 2.1rem;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-gold);
}

.legal-intro {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 50px;
}

.legal-block {
    padding: 0 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-block h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 条番号。本文と視覚的に切り分けて条項を追いやすくする */
.legal-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legal-block p {
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.legal-block p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.legal-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 2px;
    background: var(--accent-mint);
}

.legal-ol {
    counter-reset: legal-sub;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.legal-ol li {
    counter-increment: legal-sub;
    position: relative;
    padding: 14px 18px 14px 46px;
    margin-bottom: 10px;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.8;
}

.legal-ol li::before {
    content: '(' counter(legal-sub) ')';
    position: absolute;
    left: 16px;
    top: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--accent-gold);
}

.legal-supplement {
    background: var(--bg-gray);
    border-left: 3px solid var(--text-secondary);
    padding: 14px 18px;
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
}

.legal-contact-box {
    background: var(--white);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    margin-top: 8px;
}

.legal-contact-box p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.legal-license {
    color: var(--accent-gold) !important;
    font-size: 0.82rem !important;
    font-weight: 500;
}

.legal-corp {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem !important;
    font-weight: 700;
    color: var(--navy-deep) !important;
    margin-bottom: 12px !important;
}

.legal-contact-box a {
    color: var(--navy-deep);
    text-decoration: none;
    font-weight: 500;
}

.legal-contact-box a:hover {
    color: var(--accent-mint-dark);
}

.legal-revised {
    text-align: right;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legal-source {
    text-align: right;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legal-source a {
    color: var(--accent-mint-dark);
}

.legal-back {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-logo img {
    height: 50px;
    object-fit: contain;
}

.footer-info {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-contact {
    margin-top: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact a:hover {
    color: var(--accent-mint);
}

.footer-company {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

/* 宅建業免許番号。広告に記載が必要な項目なので埋没させない */
.footer-license {
    display: inline-block;
    margin: 10px 0 4px;
    padding: 6px 16px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 4px;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-offices {
    margin-top: 20px;
    font-size: 0.88rem;
    line-height: 1.9;
}

.footer-office-label {
    display: inline-block;
    min-width: 100px;
    margin-right: 10px;
    padding: 1px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-access {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-hours {
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-assoc {
    margin-top: 22px;
    font-size: 0.8rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 700px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-mint);
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* OSで「視差効果を減らす」を設定しているユーザー向け（アニメーション酔い対策） */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.active {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 100px 0 80px 0;
        min-height: auto;
    }

    .hero-bg-image {
        /* iOS Safari等ではfixedが正しく効かず画像が拡大・ガタつくためscrollに戻す */
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .case-flex {
        flex-direction: column;
    }
    
    .case-img-box {
        min-width: 100%;
    }
    
    .rep-flex {
        flex-direction: column;
        gap: 40px;
    }
    
    .rep-img-wrapper {
        width: 100%;
        max-width: 450px;
    }
    
    .rep-img-el {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 80px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .nav-tel {
        font-size: 1.3rem;
    }
    
    .btn-header-cta {
        display: none; /* Hide header CTA on mobile to prevent clutter */
    }
    
    .hero h1 {
        font-size: 2.0rem;
        line-height: 1.4;
    }
    
    .hero-btns-centered {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
    }
    
    .radio-card-group {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container.glass-card {
        padding: 30px 20px;
    }

    .legal-section {
        padding: 50px 0;
    }

    .legal-head h1 {
        font-size: 1.5rem;
    }

    .legal-block h2 {
        font-size: 1.1rem;
        gap: 10px;
    }

    .legal-contact-box {
        padding: 20px;
    }

    .footer-office-label {
        display: block;
        min-width: 0;
        margin: 0 auto 4px;
        width: fit-content;
    }

    .footer-offices p {
        margin-bottom: 14px;
    }

    .thanks-card {
        padding: 40px 24px;
    }

    .thanks-title {
        font-size: 1.5rem;
    }

    .thanks-tel {
        font-size: 1.8rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 55px;
    }
    
    .timeline-number {
        left: -3px;
        width: 40px;
        height: 40px;
    }
    
    .timeline-number span {
        font-size: 0.9rem;
    }
    
    .case-info {
        padding: 30px 20px;
    }
    
    .story-problem, .story-solution {
        padding-left: 0;
        padding-top: 30px;
    }
    
    .label-prob, .label-sol {
        top: 0;
    }
}

/* 電話リンクの扱い
   PC  : 発信手段がないのにアプリ選択ダイアログが出るため無効化し、見た目どおり「ただの表示」に揃える
   スマホ: 逆にタップ発信できることが伝わる見た目にする（受話器アイコン＋枠） */
@media (min-width: 769px) {
    .nav-tel,
    .thanks-tel,
    .footer-contact a[href^="tel:"] {
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .nav-tel,
    .thanks-tel,
    .footer-contact a[href^="tel:"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .nav-tel::before,
    .thanks-tel::before,
    .footer-contact a[href^="tel:"]::before {
        content: '';
        flex-shrink: 0;
        width: 0.8em;
        height: 0.8em;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    }

    .footer-contact a[href^="tel:"] {
        margin-bottom: 8px;
        padding: 8px 22px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 40px;
    }
}
