/* YTA WEB - スタイルシート */
/* 設計方針: 白基調 + 紺青の差し色1色 + 補助グレー / 装飾排除 / シンプル */

:root {
    --color-primary: #1f3a5f;
    --color-primary-hover: #2c4d7a;
    --color-text: #222222;
    --color-text-muted: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f8fa;
    --color-border: #e1e4e8;
    --max-width: 960px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover {
    opacity: 0.7;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== SVG Icons ========== */
.icon {
    color: var(--color-primary);
    flex-shrink: 0;
    vertical-align: middle;
}

.icon-lg {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.icon-md {
    width: 28px;
    height: 28px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-inline {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -4px;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    margin-bottom: 16px;
}

.icon-circle .icon {
    width: 28px;
    height: 28px;
}

.icon-x {
    color: #999;
}

/* ========== Header ========== */
header {
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.04em;
}

.logo a {
    color: var(--color-primary);
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
}

nav a.active {
    color: var(--color-primary);
    font-weight: 700;
}

/* ========== Hero ========== */
.hero {
    padding: var(--space-xl) 0;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(31, 58, 95, 0.04) 0%, rgba(31, 58, 95, 0) 100%),
        repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(31, 58, 95, 0.035) 40px, rgba(31, 58, 95, 0.035) 41px),
        var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero h1 .hero-mark {
    display: inline-block;
    color: var(--color-primary);
}

.hero .tagline strong {
    color: var(--color-primary);
    font-weight: 700;
}

.hero-scroll-cue {
    margin-top: 56px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 14px;
    border-top: 1px solid var(--color-border);
    padding-top: 28px;
}

.hero-scroll-cue a {
    color: var(--color-primary);
    font-weight: 700;
}

/* Hero price cards (mini) */
.hero-price-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 40px;
    max-width: 720px;
}

.hero-price-card {
    flex: 1 1 200px;
    background: white;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    padding: 20px 16px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(31, 58, 95, 0.04);
}

.hero-price-card .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

.hero-price-card .label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.hero-price-card .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.hero-price-card .sub {
    font-size: 12px;
    color: var(--color-text-muted);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hero .tagline {
    font-size: 24px;
    color: var(--color-text-muted);
    margin-bottom: 56px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.hero h1 {
    margin-bottom: 12px;
}

.hero h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    margin: 16px auto 0;
    border-radius: 50px;
}

.hero .price-summary {
    display: inline-block;
    padding: 24px 40px;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 40px;
    text-align: left;
}

.hero .price-summary p {
    font-size: 16px;
    margin-bottom: 8px;
}

.hero .price-summary p:last-child {
    margin-bottom: 0;
}

.hero .price-summary strong {
    color: var(--color-primary);
    font-size: 22px;
    font-weight: 700;
}

.hero .cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== Buttons ========== */
.cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.15s ease;
    border: 2px solid var(--color-primary);
    cursor: pointer;
}

.cta:hover {
    background: var(--color-primary-hover);
    opacity: 1;
}

.cta-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.cta-secondary:hover {
    background: var(--color-primary);
    color: white;
    opacity: 1;
}

/* ========== Sections ========== */
section {
    padding: var(--space-lg) 0;
}

section.alt {
    background: var(--color-bg-alt);
}

section h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.04em;
}

section .lead {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 56px;
    font-size: 16px;
}

section h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 12px;
    margin-top: 32px;
}

section h3:first-child {
    margin-top: 0;
}

section p {
    margin-bottom: 16px;
}

/* ========== Page Title (sub pages) ========== */
.page-title {
    padding: var(--space-lg) 0 var(--space-md);
    text-align: center;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-title h1 {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.page-title p {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* ========== Cards / Grid ========== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    padding: 32px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 0;
    color: var(--color-primary);
}

.card p {
    color: var(--color-text);
    margin-bottom: 0;
}

.card .num {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 14px;
}

/* ========== Steps (flow) ========== */
.steps {
    list-style: none;
    counter-reset: step;
    max-width: 720px;
    margin: 0 auto;
}

.steps li {
    counter-increment: step;
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.steps li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}

.steps li .step-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.steps li .step-content p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 15px;
}

.steps li .step-content h3 .icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
}

/* ========== Tables ========== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
}

.pricing-table th,
.pricing-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
    background: var(--color-bg-alt);
    font-weight: 700;
    width: 40%;
    color: var(--color-primary);
}

.pricing-table td {
    font-weight: 500;
}

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

/* ========== Promise / Things we don't do ========== */
.promise-list {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
}

.promise-list li {
    padding: 20px 0;
    padding-left: 36px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

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

.promise-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 20px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 18px;
}

.promise-list.exclude-list li::before {
    content: "−";
    color: #999;
    font-size: 22px;
    line-height: 22px;
}

.promise-list li strong {
    color: var(--color-primary);
    font-size: 17px;
    display: block;
    margin-bottom: 4px;
}

.promise-list li span {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 28px 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item .q {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-size: 17px;
    padding-left: 32px;
    position: relative;
}

.faq-item .q::before {
    content: "Q.";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.faq-item .a {
    color: var(--color-text);
    padding-left: 32px;
    position: relative;
}

.faq-item .a::before {
    content: "A.";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-weight: 700;
}

/* ========== Notice / Alert ========== */
.notice {
    padding: 20px 24px;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    margin: 24px 0;
    font-size: 15px;
}

.notice strong {
    color: var(--color-primary);
}

/* ========== CTA Section ========== */
.cta-section {
    padding: var(--space-lg) 0;
    text-align: center;
    background: var(--color-bg-alt);
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ========== Footer ========== */
footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    background: white;
}

footer .footer-logo {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

footer .footer-nav {
    margin-bottom: 24px;
}

footer .footer-nav a {
    color: var(--color-text-muted);
    margin: 0 12px;
    font-size: 13px;
}

footer .copyright {
    color: var(--color-text-muted);
    font-size: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

/* ========== Tokushoho specific ========== */
.tokushoho-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.tokushoho-table th,
.tokushoho-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.tokushoho-table th {
    background: var(--color-bg-alt);
    font-weight: 700;
    width: 30%;
    color: var(--color-primary);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero .tagline {
        font-size: 17px;
        margin-bottom: 36px;
        letter-spacing: 0.02em;
    }
    .hero .price-summary {
        padding: 20px 24px;
        display: block;
    }
    .hero .price-summary strong {
        font-size: 18px;
    }
    .hero-price-cards {
        flex-direction: column;
        gap: 12px;
    }
    .hero-price-card .value {
        font-size: 20px;
    }
    .hero-scroll-cue {
        margin-top: 32px;
        font-size: 13px;
    }
    .cta {
        padding: 14px 32px;
        font-size: 15px;
    }
    section {
        padding: 48px 0;
    }
    section h2 {
        font-size: 24px;
    }
    .page-title h1 {
        font-size: 28px;
    }
    .grid-3,
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    nav ul {
        gap: 12px;
        justify-content: center;
        font-size: 13px;
    }
    .logo {
        font-size: 20px;
    }
    header {
        padding: 16px 0;
    }
    header .container {
        flex-direction: column;
    }
    .pricing-table th,
    .pricing-table td,
    .tokushoho-table th,
    .tokushoho-table td {
        padding: 12px;
        font-size: 14px;
    }
    .steps li {
        gap: 16px;
    }
    .steps li::before {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }
}

/* ========================================
   Phase B: 視覚的アップグレード (2025-05-02)
   - 装飾排除の方針を維持しつつ、シャドウ・微アニメ・サンプルプレビューで
     「HP販売業者の自社HPとしてのプロ感」を補強
   - 既存CSS設計（白基調+紺青1色+補助グレー）と整合
   ======================================== */

/* デザイントークン追加 */
:root {
    --shadow-card: 0 1px 3px rgba(31, 58, 95, 0.06), 0 1px 2px rgba(31, 58, 95, 0.04);
    --shadow-card-hover: 0 8px 24px rgba(31, 58, 95, 0.10), 0 2px 4px rgba(31, 58, 95, 0.04);
    --shadow-cta: 0 2px 4px rgba(31, 58, 95, 0.12);
    --shadow-cta-hover: 0 6px 16px rgba(31, 58, 95, 0.20);
    --transition-default: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-card: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cards (4つの強み) — shadow + hover lift */
.card {
    box-shadow: var(--shadow-card);
    transition: var(--transition-card);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(31, 58, 95, 0.15);
}

/* Hero price cards — hover lift (border-top accent は既存) */
.hero-price-card {
    transition: var(--transition-card);
}
.hero-price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 58, 95, 0.10);
}

/* CTA buttons — subtle elevation + hover lift */
.cta {
    box-shadow: var(--shadow-cta);
    transition: var(--transition-default);
}
.cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta-hover);
}
.cta:active {
    transform: translateY(0);
    box-shadow: var(--shadow-cta);
}
.cta-secondary {
    box-shadow: none;
}
.cta-secondary:hover {
    box-shadow: var(--shadow-cta-hover);
}

/* Promise list — シンプルなボーダー線 → カード化 */
section .promise-list li {
    padding: 22px 24px 22px 60px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-default);
}
section .promise-list li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(31, 58, 95, 0.15);
}
section .promise-list li:last-child {
    border-bottom: 1px solid var(--color-border);
}
section .promise-list li::before {
    left: 24px;
    top: 22px;
}

/* FAQ items — シンプルな下線 → カード化 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-default);
}
.faq-item:first-child { padding-top: 24px; }
.faq-item:last-child { border-bottom: 1px solid var(--color-border); }
.faq-item:hover {
    border-color: rgba(31, 58, 95, 0.15);
    box-shadow: var(--shadow-card-hover);
}

/* ========== Samples Preview Section (NEW) ========== */
.samples-preview-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}
.samples-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 16px auto 0;
}
@media (max-width: 768px) {
    .samples-preview { grid-template-columns: 1fr; }
}
.sample-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    display: block;
    box-shadow: var(--shadow-card);
    transition: var(--transition-card);
}
.sample-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(31, 58, 95, 0.2);
    opacity: 1;
}

/* CSS-only mockup preview (Phase Bでは画像不使用、Phase Cで実スクショ化) */
.sample-card-preview {
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background: white;
}
.sample-card-preview .browser-bar {
    height: 22px;
    background: #eef0f2;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}
.sample-card-preview .browser-bar::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c5cad1;
    box-shadow: 12px 0 0 #c5cad1, 24px 0 0 #c5cad1;
}
.sample-card-preview .mock-body {
    padding: 14px 16px;
    height: calc(100% - 22px);
}
.sample-card-preview .mock-header {
    width: 55%;
    height: 8px;
    border-radius: 2px;
    margin-bottom: 12px;
}
.sample-card-preview .mock-image {
    width: 100%;
    height: 56px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.sample-card-preview .mock-line {
    height: 5px;
    background: var(--color-border);
    border-radius: 2px;
    margin-bottom: 5px;
}
.sample-card-preview .mock-line.short { width: 75%; }
.sample-card-preview .mock-line.shorter { width: 55%; }

/* 業種別カラーアクセント（テンプレ多様性を視覚的に伝える） */
.sample-card.koumuten .sample-card-preview .mock-image {
    background: linear-gradient(135deg, #6b5642 0%, #b89070 100%);
}
.sample-card.koumuten .sample-card-preview .mock-header {
    background: #6b5642;
}
.sample-card.gyouseishoshi .sample-card-preview .mock-image {
    background: linear-gradient(135deg, #1f3a5f 0%, #4a6fa5 100%);
}
.sample-card.gyouseishoshi .sample-card-preview .mock-header {
    background: #1f3a5f;
}
.sample-card.seitai .sample-card-preview .mock-image {
    background: linear-gradient(135deg, #5a8a5a 0%, #9bc3a0 100%);
}
.sample-card.seitai .sample-card-preview .mock-header {
    background: #5a8a5a;
}

.sample-card-content {
    padding: 20px 22px 22px;
}
.sample-card-content h3 {
    margin: 0 0 8px;
    font-size: 19px;
    color: var(--color-primary);
    font-weight: 700;
}
.sample-card-content .desc {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 14px;
}
.sample-card-content .link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}
.sample-card:hover .sample-card-content .link {
    gap: 10px;
}

/* Hero の subtle entrance animations */
@keyframes ytaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero h1,
.hero .tagline,
.hero-price-cards,
.hero > .container > .cta-group {
    animation: ytaFadeInUp 0.7s ease-out backwards;
}
.hero h1 { animation-delay: 0.05s; }
.hero .tagline { animation-delay: 0.18s; }
.hero-price-cards { animation-delay: 0.30s; }
.hero > .container > .cta-group { animation-delay: 0.45s; }

/* prefers-reduced-motion アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
