/**
 * ヤマト制作 - メインスタイル（レスポンシブ）
 * PHP 5.2/5.5 対応サイト用
 */

/* ===== リセット・ベース ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    font-family: 'Helvetica Neue', Helvetica, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.7;
    color: #2c2c2c;
    background: #fafafa;
}

/* ===== 変数代わり（カラー） ===== */
:root {
    --color-primary: #1a1a2e;
    --color-accent: #c9a227;
    --color-accent-hover: #b8921f;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-bg: #fafafa;
    --color-white: #fff;
    --color-border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

/* ===== ヘッダー ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.98);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow);
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.site-logo a {
    color: var(--color-white);
    text-decoration: none;
}
.site-logo span {
    color: var(--color-accent);
}

/* ナビゲーション */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}
.site-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--color-accent);
    background: rgba(201, 162, 39, 0.15);
}

/* ハンバーガー（SP） */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ===== メインコンテンツ ===== */
.main-content {
    padding-top: 60px;
    min-height: calc(100vh - 200px);
}

/* ===== 共通セクション ===== */
.section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.section-lead {
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}
/* ===== ヒーロー下メッセージブロック ===== */
.intro-block {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, #faf9f7 0%, #f5f3ef 50%, #faf9f7 100%);
}
.intro-block-inner {
    max-width: 800px;
    margin: 0 auto;
}
.intro-block-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 1rem;
}
.intro-block-text {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.9;
}
@media (max-width: 768px) {
    .intro-block {
        padding: 3rem 1rem;
    }
}

/* ===== 制作の流れ（目立つブロック） ===== */
.flow-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    color: #fff;
    margin: 0;
    max-width: none;
}
.flow-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.flow-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.flow-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.flow-lead {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}
.flow-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem 0;
    margin-bottom: 2.5rem;
}
.flow-step {
    flex: 0 0 auto;
    width: calc(16.666% - 0.5rem);
    min-width: 140px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.flow-step:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(201, 162, 39, 0.5);
    transform: translateY(-2px);
}
.flow-step-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.flow-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}
.flow-step-desc {
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.4;
}
.flow-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    padding: 0 0.25rem;
}
.flow-cta-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.flow-cta-btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    background: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}
.flow-cta-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}
@media (max-width: 900px) {
    .flow-steps {
        gap: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: stretch;
    }
    .flow-step {
        width: 100%;
        min-width: 0;
    }
    .flow-arrow {
        display: none;
    }
}
@media (max-width: 480px) {
    .flow-section {
        padding: 3.5rem 1rem;
    }
    .flow-steps {
        grid-template-columns: 1fr;
    }
    .flow-step {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ===== ヒーロー（トップ） ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--color-white);
    padding: 6rem 1.5rem 5rem;
    text-align: center;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.hero h1 .accent {
    color: var(--color-accent);
}
.hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
.hero-cta {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover {
    background: var(--color-accent-hover);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ===== サービスカード ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid var(--color-border);
}
.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.service-card h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
}
.service-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ===== 特徴・強み ===== */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}
.feature-list li {
    padding: 1rem 1rem 1rem 3rem;
    position: relative;
    background: var(--color-white);
    margin-bottom: 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-accent);
}
.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--color-accent);
    font-weight: 700;
}

/* ===== ページヘッダー（下層） ===== */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--color-white);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ===== お問い合わせフォーム ===== */
.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}
.form-group label .required {
    color: #c00;
    margin-left: 0.2rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}
.form-group textarea {
    min-height: 160px;
    resize: vertical;
}
.form-submit {
    margin-top: 2rem;
}
.form-submit button,
.form-submit input[type="submit"] {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.form-submit button:hover,
.form-submit input[type="submit"]:hover {
    background: #0f0f1e;
}
.msg-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.msg-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* ===== 料金目安ページ ===== */
.price-lead {
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}
.price-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}
.price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.price-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
}
.price-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.price-card-featured {
    border-color: var(--color-accent);
    background: linear-gradient(180deg, #fffef9 0%, var(--color-white) 100%);
}
.price-card-light .price-card-num {
    font-size: 1.75rem;
}
.price-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0 12px 0 8px;
}
.price-card-badge-rec {
    background: var(--color-primary);
    color: var(--color-white);
}
.price-card-name {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}
.price-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.price-card-yen {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}
.price-card-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent);
}
.price-card-tax {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
}
.price-card-include {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
}
.price-card-include-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.price-card-include ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.7;
}
.price-card-include li {
    padding-left: 1em;
    text-indent: -1em;
}
.price-card-include li:before {
    content: '・';
    margin-right: 0.25em;
}
.price-cta {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}
.price-cta p {
    margin-bottom: 1rem;
    color: var(--color-text);
}
@media (max-width: 768px) {
    .price-list {
        grid-template-columns: 1fr;
    }
    .price-card-featured {
        order: -1;
    }
}

/* ===== 会社概要・テキスト ===== */
.about-content,
.service-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-content h2,
.service-content h2 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--color-accent);
}
.about-content p,
.service-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}
.dl-list {
    list-style: none;
    margin: 1rem 0;
}
.dl-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
}
.dl-list dt {
    width: 140px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--color-primary);
}
.dl-list dd {
    margin: 0;
    flex: 1;
    color: var(--color-text);
}

/* ===== フッター ===== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.85);
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.site-footer nav {
    margin-bottom: 1rem;
}
.site-footer nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.9rem;
}
.site-footer nav a:hover {
    color: var(--color-accent);
}
.site-footer .copy {
    font-size: 0.85rem;
    opacity: 0.8;
}
.site-footer .copy a.footer-domain {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.site-footer .copy a.footer-domain:hover {
    color: var(--color-accent);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        padding: 1rem;
        display: none;
    }
    .site-nav.is-open {
        display: block;
    }
    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .site-nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .hero {
        padding: 4rem 1rem 3.5rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .contact-form-wrap {
        padding: 1.5rem;
    }
    .page-header {
        padding: 3rem 1rem 2rem;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    .site-logo {
        font-size: 1.15rem;
    }
}
