/*
  Clear Web Shizuoka — v6 (Senior / Local Business Edition)
  Target: Older business owners, local shops, traditional companies
  Theme: Trust (Navy), Warmth (Orange), Readability (Large fonts, high contrast)
*/

:root {
    /* ── Core Colors ── */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    /* Very gentle gray-white */
    --bg-light-brown: #FFF9F2;
    /* Warm backdrop for maintenance */

    --color-navy: #1A365D;
    /* Dark, trustworthy navy */
    --color-orange: #D97706;
    /* Warm, inviting orange */
    --color-dark-orange: #B45309;

    /* ── Text Colors ── */
    --text-main: #222222;
    /* High contrast, not pure black */
    --text-light: #555555;
    --text-white: #FFFFFF;

    /* ── Typography ── */
    --ff-sans: 'Noto Sans JP', sans-serif;
    /* Body readability */
    --ff-serif: 'Noto Serif JP', serif;
    /* Headings for trust/tradition */

    /* ── Layout & Size ── */
    --base-font-size: 16px;
    /* Browser default, scale up from here */
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--ff-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.8;
    word-wrap: break-word;
}

/* Senior-friendly big text defaults */
p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 17.6px base for normal text */
.large-text {
    font-size: 1.25rem;
}

/* 20px */
strong {
    font-weight: 900;
    color: var(--color-navy);
}

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

ul {
    list-style: none;
}

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

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

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

/* ── Colors ── */
.bg-white {
    background: var(--bg-white);
}

.bg-light {
    background: var(--bg-light);
}

.bg-navy {
    background: var(--color-navy);
    color: var(--text-white);
}

.bg-orange {
    background: var(--color-orange);
    color: var(--text-white);
}

.bg-light-brown {
    background: var(--bg-light-brown);
}

.text-navy {
    color: var(--color-navy);
}

.text-orange {
    color: var(--color-orange);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-sans);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--color-orange);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--color-dark-orange);
    color: var(--text-white);
}

.btn-large {
    font-size: 1.4rem;
    padding: 20px 48px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    color: var(--color-navy);
    font-size: 2rem;
    font-weight: 900;
    padding: 12px 32px;
    border-radius: 8px;
    border: 3px solid var(--color-navy);
    margin-bottom: 8px;
    margin-top: 8px;
    text-decoration: none;
}

.btn-phone:hover {
    background: var(--color-navy);
    color: var(--text-white);
}

.btn-phone-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-navy);
    background: #FFF;
    padding: 16px 40px;
    border-radius: 8px;
    border: 4px solid var(--color-navy);
    margin: 24px 0;
}

.btn-phone-large:hover {
    background: var(--color-navy);
    color: var(--text-white);
}

i {
    margin-right: 8px;
}

/* ── Top Bar (Phone Announcement) ── */
.top-bar {
    background: var(--color-navy);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
}

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

.top-bar-phone {
    color: var(--text-white);
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.top-bar-phone .hours {
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 8px;
}

/* ── Header ── */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.site-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-navy);
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 2px;
}

.logo-main {
    font-family: var(--ff-serif);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 700;
}

.site-nav a {
    color: var(--text-main);
    font-size: 1.1rem;
}

.site-nav a:hover {
    color: var(--color-orange);
}

.nav-cta {
    background: var(--color-orange);
    color: var(--text-white) !important;
    padding: 10px 24px;
    border-radius: 99px;
}

.nav-cta:hover {
    background: var(--color-dark-orange);
}

/* Hamburger (Mobile only) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-navy);
    border-radius: 2px;
}

/* ── Sections ── */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--ff-serif);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--color-orange);
}

/* ── Hero ── */
.hero {
    padding: 60px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-orange);
    color: var(--text-white);
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.hero-heading {
    font-family: var(--ff-serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 32px;
    color: var(--color-navy);
}

.hero-check-list {
    display: inline-block;
    text-align: left;
    margin-bottom: 48px;
}

.hero-check-list li {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.hero-check-list li i {
    color: var(--color-orange);
    font-size: 1.5rem;
    margin-right: 12px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.phone-action {
    background: var(--bg-white);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px 40px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.phone-label {
    font-weight: 900;
    color: var(--color-navy);
    font-size: 1.2rem;
}

.phone-hours {
    font-size: 0.95rem;
    color: #666;
    font-weight: 700;
}

.or-text {
    font-weight: 700;
    color: #888;
}

/* ── Problem Section ── */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.problem-card {
    background: var(--bg-light);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 40px 24px;
}

.problem-icon {
    font-size: 3rem;
    color: #9CA3AF;
    margin-bottom: 24px;
}

.problem-card p {
    font-weight: 700;
    line-height: 1.6;
}

.solution-box {
    background: var(--bg-light-brown);
    border: 2px solid var(--color-orange);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.solution-title {
    font-family: var(--ff-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 16px;
}

/* ── Services Section ── */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-text h3 {
    font-family: var(--ff-serif);
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 16px;
}

/* ── Pricing Section ── */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.price-box {
    background: var(--bg-white);
    border-radius: 12px;
    /* overflow: hidden; はみ出しタグのため削除 */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 3px solid #E5E7EB;
    /* 枠線の太さをfeatured(3px)と統一することで数pxのズレをなくす */
    position: relative;
}

.price-box.featured {
    border-color: var(--color-orange);
    border-radius: 14px;
    /* transform: scale(1.02); を削除または無効化し、基準線を揃える */
    transform: none;
    box-shadow: 0 8px 25px rgba(228, 92, 10, 0.15);
    /* 代わりに影で目立たせる */
    z-index: 2;
    /* 影が他のカードに被るようにするため */
}

.recommend-tag {
    background: var(--color-orange);
    color: var(--text-white);
    text-align: center;
    font-weight: 900;
    padding: 8px 0;
    font-size: 1.1rem;
    position: absolute;
    top: -22px;
    /* カードの上枠から上に飛び出させる */
    left: 50%;
    transform: translateX(-50%);
    /* 中央配置 */
    width: 80%;
    /* ちょっとスリムなバッジ風に */
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.price-header {
    padding: 16px;
    text-align: center;
    height: 120px;
    /* 固定高さを指定して、全てのプランでprice-bodyの開始位置を完璧に揃える */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* テキストを下寄りに配置して「一番人気」タグとの干渉を防ぐ */
    padding-bottom: 20px;
    border-radius: 9px 9px 0 0;
    /* overflowを使わないための角丸処置 */
}



.price-header h4 {
    font-family: var(--ff-serif);
    font-size: 1.6rem;
    font-weight: 900;
}

.sub-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--ff-sans);
    margin-top: 4px;
    opacity: 0.9;
}

.price-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* flex-grow: 1 から flex: 1 に変更し、均等な高さ配分を強制 */
}

.price-amount {
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-navy);
    display: flex;
    flex-direction: column;
    /* 数字と円(税込...)を必ず上下2行に分ける */
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100px;
    /* 全プラン共通の固定高 → その下の「毎月の管理費」が完璧に一直線に揃う */
    box-sizing: border-box;
}

.price-number {
    /* 画面幅に応じて調整。はみ出し防止のため最大サイズを3.5rem程度に抑える */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    font-family: var(--ff-serif);
}

.price-yen {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 0;
    opacity: 0.8;
}

/* 金額と「円」を同じ行のベースラインで揃える */
.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-unit {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--ff-serif);
}

.price-tax {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.7;
    display: block;
}

.price-features {
    margin-bottom: 32px;
    flex-grow: 1;
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
}

.price-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-orange);
    margin-right: 12px;
}

.price-note {
    font-weight: 900;
    font-size: 1.05rem;
}

.maintenance-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.m-title {
    font-family: var(--ff-serif);
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 24px;
    text-align: center;
}

.m-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.m-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    flex-shrink: 0;
    text-align: center;
}

.m-price strong {
    font-size: 3rem;
    font-family: var(--ff-serif);
}

.m-list li {
    margin-bottom: 12px;
    font-weight: 700;
}

/* ══════════════════════════════
   Pricing - New Elements (TCO, Promise, Monthly 2-tier)
   ══════════════════════════════ */

/* 選べる月額プラン */
.monthly-plans-section {
    margin-top: 56px;
    padding: 40px;
    background: var(--bg-light-brown);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
}

.monthly-plans-heading {
    text-align: center;
    font-size: 1.4rem;
    font-family: var(--ff-serif);
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 32px;
}

.monthly-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.monthly-card {
    background: var(--bg-white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.monthly-card.recommended {
    border: 3px solid var(--color-orange);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.monthly-card .plan-name {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--color-navy);
    font-family: var(--ff-serif);
}

.monthly-card .plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-orange);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #E5E7EB;
    font-family: var(--ff-serif);
}

.monthly-card .plan-price span {
    font-size: 1.1rem;
    font-family: var(--ff-sans);
    color: var(--text-main);
    margin-left: 4px;
}

.monthly-card .plan-list li {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* 3年総コスト(TCO)比較表 */
.tco-section {
    margin-top: 48px;
    padding: 40px 32px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.tco-heading {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--color-navy);
    font-family: var(--ff-serif);
}

.tco-desc {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.tco-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.tco-table table {
    width: 100%;
    border-collapse: collapse;
}

.tco-table th,
.tco-table td {
    padding: 20px 16px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 1.1rem;
}

.tco-table th {
    background: var(--bg-light-brown);
    font-weight: 700;
    color: var(--color-navy);
    width: 35%;
}

.tco-table td {
    text-align: right;
    font-weight: 700;
}

.tco-table tr.highlight td {
    color: var(--color-orange);
    font-size: 1.3rem;
    font-weight: 900;
}

.tco-table tr:last-child th,
.tco-table tr:last-child td {
    border-bottom: none;
}

/* 安心のお約束（ロックイン排除） */
.promise-section {
    margin-top: 48px;
    padding: 40px;
    background: var(--bg-white);
    border: 2px solid var(--color-navy);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.promise-heading {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--ff-serif);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.promise-item {
    text-align: center;
    padding: 16px;
}

.promise-item i {
    font-size: 2.5rem;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.promise-item h5 {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--color-navy);
}

.promise-item p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ── Contact Section ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.box-white-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.required {
    background: var(--color-orange);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.senior-form input,
.senior-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    font-size: 1.1rem;
    font-family: var(--ff-sans);
    background: #f9f9f9;
}

.senior-form input:focus,
.senior-form textarea:focus {
    border-color: var(--color-navy);
    outline: none;
    background: #fff;
}

/* ── Footer ── */
.site-footer {
    background: #111827;
    color: #D1D5DB;
    padding: 60px 0 24px;
    font-size: 1.1rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info h3 {
    font-family: var(--ff-serif);
    font-size: 2rem;
    color: #FFF;
    margin-bottom: 16px;
}

.footer-info p {
    margin-bottom: 8px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .problem-cards {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .price-box.featured {
        transform: scale(1);
    }

    .m-content {
        flex-direction: column;
        text-align: center;
    }

    .m-list li {
        text-align: left;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        gap: 24px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-heading {
        font-size: 1.8rem;
    }

    .hero-check-list li {
        font-size: 1.1rem;
    }

    .btn-phone-large {
        font-size: 1.8rem;
        padding: 12px 24px;
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .large-text {
        font-size: 1.1rem;
    }

    .phone-action {
        padding: 24px 16px;
    }

    .btn-phone {
        font-size: 1.6rem;
        padding: 10px 16px;
        width: 100%;
    }

    /* ── Pricing (Mobile Overrides) ── */
    .monthly-cards {
        grid-template-columns: 1fr;
    }

    .monthly-card.recommended {
        margin-top: 16px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
    }

    .promise-item {
        padding: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 24px;
    }

    .promise-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* TCOテーブルのスマホ対応 */
    .tco-table th,
    .tco-table td {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .tco-table th {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        background: var(--bg-light-brown);
    }
}