/* ===================================
   確定申告サポート税理士事務所
   styles.css — Editorial redesign
   Fonts: Shippori Mincho B1 + Noto Sans JP
   =================================== */

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

/* --- Variables --- */
:root {
    --c-primary: #0D8A9C;
    --c-primary-dark: #0A6F7E;
    --c-primary-light: #E0F3F7;
    --c-secondary: #7BBEC5;
    --c-accent: #3AA68E;
    --c-accent-dark: #2E8A75;
    --c-text: #2B3A4E;
    --c-text-light: #5E7185;
    --c-bg: #FAFCFC;
    --c-bg-alt: #F3F8F9;
    --c-border: #D8E5EA;

    --font-heading: 'Shippori Mincho B1', 'Yu Mincho', serif;
    --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

    --w-content: 960px;
    --header-h: 64px;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    color: var(--c-text);
    line-height: 1.9;
    letter-spacing: 0.03em;
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--w-content);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Title --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.4;
    letter-spacing: 0.08em;
    margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-body);
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 200ms, color 200ms, border-color 200ms;
    text-decoration: none;
    line-height: 1.4;
    text-align: center;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
}

.btn-accent {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

.btn-accent:hover {
    background: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
}

.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.btn-outline:hover {
    background: var(--c-primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--c-primary);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--c-primary-light);
    border-color: var(--c-primary-light);
}

.btn-lg {
    padding: 16px 44px;
    font-size: 16px;
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    transition: border-color 200ms;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: 0.06em;
}

.logo-sub {
    font-size: 11px;
    font-weight: 300;
    color: var(--c-text-light);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text);
    transition: color 200ms;
}

.nav-link:hover {
    color: var(--c-primary);
}

.header-cta {
    font-size: 13px;
    padding: 8px 20px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 250ms, opacity 200ms;
}

.mobile-menu-btn span + span {
    margin-top: 5px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: #fff;
    padding-top: calc(var(--header-h) + 16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms, visibility 250ms;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 400;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    transition: color 200ms;
}

.mobile-nav-link:hover {
    color: var(--c-primary);
}

.mobile-nav-cta {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 6px;
    font-weight: 400;
    font-size: 16px;
    transition: background 200ms;
}

.mobile-nav-cta:hover {
    background: var(--c-accent-dark);
}

/* ===================================
   1. HERO — Typography-first
   =================================== */
.hero {
    padding: calc(var(--header-h) + 80px) 0 72px;
    background: var(--c-bg);
    position: relative;
}

/* Subtle background pattern — diagonal fine lines */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 24px,
            rgba(13, 138, 156, 0.03) 24px,
            rgba(13, 138, 156, 0.03) 25px
        );
    pointer-events: none;
}

.hero .container {
    position: relative;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
    color: var(--c-text);
    margin-bottom: 24px;
}

.hero-meta {
    font-size: 15px;
    font-weight: 300;
    color: var(--c-text-light);
    line-height: 1.9;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

/* ===================================
   2. PROBLEM — Checklist
   =================================== */
.problem {
    padding: 100px 0;
    background: #fff;
}

.checklist {
    max-width: 560px;
    margin: 0 auto 40px;
}

.checklist li {
    font-size: 16px;
    font-weight: 400;
    color: var(--c-text);
    line-height: 1.6;
    padding: 12px 0 12px 36px;
    position: relative;
    border-bottom: 1px solid var(--c-border);
}

.checklist li:last-child {
    border-bottom: none;
}

/* CSS checkbox via ::before */
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--c-secondary);
    border-radius: 3px;
}

/* Checkmark via ::after */
.checklist li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 19px;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--c-primary);
    border-bottom: 2px solid var(--c-primary);
    transform: rotate(-45deg);
}

.checklist-cta {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: 0.06em;
}

/* ===================================
   3. SOLUTION — Zigzag layout
   =================================== */
.solution-item {
    padding: 80px 0;
    background: #fff;
}

.solution-item--alt {
    background: var(--c-bg-alt);
}

.solution-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.solution-row--reverse {
    direction: rtl;
}

.solution-row--reverse > * {
    direction: ltr;
}

.solution-text {
    position: relative;
}

.solution-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    color: rgba(13, 138, 156, 0.07);
    line-height: 1;
    position: absolute;
    top: -24px;
    left: -8px;
    pointer-events: none;
    user-select: none;
}

.solution-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    line-height: 1.5;
    color: var(--c-text);
    position: relative;
}

.solution-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--c-text-light);
    line-height: 1.9;
}

.solution-visual {
    overflow: hidden;
    border-radius: 4px;
}

.solution-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 300ms;
}

.solution-visual:hover img {
    transform: scale(1.02);
}

/* ===================================
   4. TEAM — Warm profile
   =================================== */
.team {
    padding: 100px 0;
    background: var(--c-bg-alt);
}

.team-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 760px;
    margin: 0 auto;
}

.team-photo {
    overflow: hidden;
    border-radius: 0 12px 0 0;
}

.team-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-role {
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-light);
    line-height: 1.7;
    margin-bottom: 28px;
}

.team-message {
    font-size: 16px;
    font-weight: 300;
    color: var(--c-text);
    line-height: 2;
}

/* ===================================
   5. PROOF — Large quote blocks
   =================================== */
.proof {
    padding: 100px 0;
    background: #fff;
}

.testimonial {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 56px;
}

.testimonial:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.testimonial-result {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    line-height: 1.3;
}

.testimonial-quote {
    position: relative;
    padding-left: 28px;
    margin-bottom: 20px;
}

/* Decorative quotation mark */
.testimonial-quote::before {
    content: '\201C';
    position: absolute;
    left: -4px;
    top: -16px;
    font-family: Georgia, serif;
    font-size: 64px;
    line-height: 1;
    color: var(--c-secondary);
    opacity: 0.5;
    pointer-events: none;
}

.testimonial-quote p {
    font-size: 15px;
    font-weight: 300;
    color: var(--c-text);
    line-height: 2;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text-light);
    text-align: right;
}

/* ===================================
   6. PRICING — Table
   =================================== */
.pricing {
    padding: 100px 0;
    background: var(--c-bg-alt);
}

.pricing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 640px;
}

.pricing-table thead th {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    text-align: center;
    padding: 20px 16px 12px;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--c-border);
    vertical-align: bottom;
}

.pricing-table thead th:first-child {
    text-align: left;
}

.plan-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    color: var(--c-text-light);
    margin-top: 4px;
    letter-spacing: 0;
}

.pricing-table tbody td {
    padding: 12px 16px;
    text-align: center;
    font-weight: 300;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

.pricing-table tbody td:first-child {
    text-align: left;
    font-weight: 400;
    color: var(--c-text);
    white-space: nowrap;
}

.pricing-price-row td {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--c-primary);
    padding: 20px 16px;
}

.pricing-price-row td:first-child {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text);
}

/* Recommended plan column highlight */
.plan-recommended {
    background: rgba(13, 138, 156, 0.05);
}

.pricing-feature-col {
    width: 160px;
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-light);
}

/* ===================================
   7. FAQ — Minimal accordion
   =================================== */
.faq {
    padding: 100px 0;
    background: #fff;
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--c-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    text-align: left;
    letter-spacing: 0.04em;
    transition: color 200ms;
}

.faq-question:hover {
    color: var(--c-primary);
}

.faq-q-text {
    flex: 1;
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--c-text-light);
    transition: transform 250ms;
}

.faq-icon::before {
    width: 14px;
    height: 1.5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 1.5px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease-out;
}

.faq-answer-inner {
    padding: 0 0 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--c-text-light);
}

/* ===================================
   8. ACCESS — Two column
   =================================== */
.access {
    padding: 100px 0;
    background: var(--c-bg-alt);
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.access-list dt {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 20px;
}

.access-list dt:first-child {
    margin-top: 0;
}

.access-list dd {
    font-size: 15px;
    font-weight: 300;
    color: var(--c-text);
    line-height: 1.8;
    margin-top: 2px;
}

.access-list a {
    color: var(--c-primary);
    transition: color 200ms;
}

.access-list a:hover {
    color: var(--c-primary-dark);
}

.access-map {
    background: #E8EDEF;
    border-radius: 4px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    font-size: 15px;
    font-weight: 400;
    color: var(--c-text-light);
}

/* ===================================
   9. CTA — Simple and warm
   =================================== */
.cta {
    padding: 80px 0;
    background: var(--c-accent);
    color: #fff;
    text-align: center;
}

.cta-message {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.6;
    margin-bottom: 28px;
}

.cta-phone {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    transition: opacity 200ms;
}

.cta-phone:hover {
    opacity: 0.85;
}

.cta-hours {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.88;
    margin-bottom: 28px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--c-text);
    color: #8A9AAB;
}

.footer .container {
    padding-top: 40px;
    padding-bottom: 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.06em;
}

.footer-sub {
    font-size: 13px;
    font-weight: 300;
    color: #6D8499;
}

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

.footer-nav a {
    font-size: 13px;
    font-weight: 300;
    color: #6D8499;
    transition: color 200ms;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3B4F5E;
    font-size: 12px;
    font-weight: 300;
    color: #5E7185;
}

.footer-disclaimer {
    background: #1A2833;
    color: #6D8499;
    text-align: center;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 300;
    border-top: 1px solid #2E3E4E;
}

.footer-disclaimer a {
    color: var(--c-secondary);
    margin-left: 8px;
    transition: color 200ms;
}

.footer-disclaimer a:hover {
    color: #fff;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* -- Tablet and below -- */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: calc(var(--header-h) + 48px) 0 48px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-meta {
        font-size: 14px;
        margin-bottom: 32px;
    }

    /* Problem */
    .problem {
        padding: 56px 0;
    }

    .section-title {
        font-size: 21px;
        margin-bottom: 32px;
    }

    .checklist {
        margin-bottom: 32px;
    }

    .checklist li {
        font-size: 15px;
    }

    .checklist-cta {
        font-size: 15px;
    }

    /* Solution */
    .solution-item {
        padding: 56px 0;
    }

    .solution-row,
    .solution-row--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        direction: ltr;
    }

    .solution-visual {
        order: -1;
    }

    .solution-num {
        font-size: 56px;
        top: -16px;
        left: -4px;
    }

    .solution-title {
        font-size: 20px;
    }

    /* Team */
    .team {
        padding: 56px 0;
    }

    .team-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .team-photo {
        max-width: 220px;
        margin: 0 auto;
        border-radius: 0 12px 0 0;
    }

    .team-message {
        text-align: left;
    }

    /* Proof */
    .proof {
        padding: 56px 0;
    }

    .testimonial {
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .testimonial-result {
        font-size: 22px;
    }

    .testimonial-quote::before {
        font-size: 48px;
        top: -12px;
    }

    /* Pricing */
    .pricing {
        padding: 56px 0;
    }

    .pricing-table {
        font-size: 13px;
    }

    .pricing-price-row td {
        font-size: 18px;
    }

    /* FAQ */
    .faq {
        padding: 56px 0;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 0;
    }

    /* Access */
    .access {
        padding: 56px 0;
    }

    .access-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .access-map {
        min-height: 200px;
    }

    /* CTA */
    .cta {
        padding: 56px 0;
    }

    .cta-message {
        font-size: 19px;
    }

    .cta-phone {
        font-size: 28px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* -- Small mobile -- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-meta br {
        display: none;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

    .checklist li {
        font-size: 14px;
        padding: 10px 0 10px 32px;
    }

    .checklist li::before {
        width: 16px;
        height: 16px;
        top: 13px;
    }

    .checklist li::after {
        left: 3px;
        top: 17px;
        width: 9px;
        height: 4px;
    }

    .solution-num {
        font-size: 48px;
    }

    .team-name {
        font-size: 22px;
    }

    .testimonial-result {
        font-size: 20px;
    }

    .pricing-price-row td {
        font-size: 16px;
    }
}
