/* ==========================================================================
   Trattoria SORAMAME - style.css
   ========================================================================== */

/* --- CSSリセット --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}
p, ul, ol, li {
    margin: 0;
    padding: 0;
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- カラー・変数 --- */
:root {
    /* メインカラー：トマト×レンガのテラコッタ（温かみ×親しみやすさ） */
    --primary-color: #B5482E;
    --primary-dark: #8C371F;
    --primary-light: #E8C9B8;

    /* アクセント：オリーブグリーン（イタリアン・ハーブの気配） */
    --accent-olive: #6B7A4F;
    --accent-olive-dark: #4F5B3A;

    /* ベースカラー */
    --black: #1A1A1A;
    --dark-gray: #2C2C2C;
    --medium-gray: #666666;
    --light-gray: #F3EDE4;
    --cream: #FBF6EF;
    --white: #FFFFFF;

    --text-primary: var(--black);
    --text-muted: var(--medium-gray);

    /* スペーシング */
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: clamp(1.5rem, 4vw, 3rem);
    --space-xl: clamp(2rem, 5vw, 4rem);
    --space-2xl: clamp(3rem, 8vw, 6rem);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- タイポグラフィ --- */
h1 {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    word-break: keep-all;
    overflow-wrap: break-word;
}
h2 {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    word-break: keep-all;
    overflow-wrap: break-word;
}
h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}
p, li {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.9375rem, 2vw, 1rem);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}
p + p {
    margin-top: 1.5rem;
}
.caption, small {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}
.lead-text {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}
.nowrap {
    white-space: nowrap;
}
.section-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}
.en {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-top: 0.75rem;
    opacity: 0.85;
}

.sp-only { display: inline; }
@media (max-width: 768px) {
    .sp-only { display: block; }
}
.pc-only { display: none; }
@media (min-width: 769px) {
    .pc-only { display: block; }
}

/* --- レイアウト共通 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}
section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}
.section-content > * {
    margin-bottom: 2rem;
}
.section-content > *:last-child {
    margin-bottom: 0;
}
.bg-cream {
    background-color: var(--cream);
}
.bg-dark {
    background-color: var(--black);
    color: var(--white);
}
.bg-dark p, .bg-dark li {
    color: rgba(255, 255, 255, 0.85);
}
.text-center {
    text-align: center;
}

/* --- フェードイン --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ヘッダー --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--cream);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem clamp(1.25rem, 5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.site-logo .brand-en {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-list a {
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.25rem;
}
.nav-list .nav-cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.65rem 1.25rem;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(181, 72, 46, 0.25);
}
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 340px);
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        padding: 2rem clamp(1.5rem, 8vw, 3rem);
        transition: right 0.35s ease;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
    }
    .nav-list.is-open {
        right: 0;
    }
    .nav-list a {
        font-size: 1.125rem;
    }
    .nav-list .nav-cta {
        width: 100%;
        text-align: center;
    }
}

/* --- ヒーロー --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.15) 0%, rgba(26, 20, 16, 0.65) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem);
}
.hero-title {
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.hero-lead {
    max-width: 640px;
    margin-top: var(--space-md);
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}
.hero-tags span {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.15);
}

/* ページ用の小さいヒーロー */
.page-hero {
    position: relative;
    min-height: 40vh;
    margin-top: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 16, 0.55);
}
.page-hero .hero-content {
    padding: clamp(6rem, 12vw, 8rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem);
}

/* --- ボタン --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.03em;
    border-radius: 100px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(181, 72, 46, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 12px 32px rgba(181, 72, 46, 0.35);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(26, 26, 26, 0.25);
}
.btn-secondary:hover {
    background-color: var(--light-gray);
}
.btn-block {
    width: 100%;
}
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- グリッド・カード --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 860px) {
    .grid-3 { grid-template-columns: 1fr; }
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 720px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}
.card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-body {
    padding: clamp(1.5rem, 4vw, 2rem);
}
.card-body > * {
    margin-bottom: 1rem;
}
.card-body > *:last-child {
    margin-bottom: 0;
}
.card-price {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* --- Why / 強みブロック --- */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.feature-num {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* --- 営業時間テーブル --- */
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table tr {
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}
.info-table tr:last-child {
    border-bottom: none;
}
.info-table th, .info-table td {
    text-align: left;
    padding: 1rem 0.5rem;
    vertical-align: top;
}
.info-table th {
    width: 8.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

/* --- Googleマップ --- */
.map-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- 営業時間バッジ（メニューページ） --- */
.hours-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hours-badge {
    flex: 1 1 220px;
    background-color: var(--white);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--primary-color);
}
.hours-badge.dinner {
    border-top-color: var(--accent-olive);
}
.hours-badge > * {
    margin-bottom: 0.5rem;
}
.hours-badge > *:last-child {
    margin-bottom: 0;
}

/* --- コースセクション --- */
.course-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}
@media (max-width: 860px) {
    .course-block { grid-template-columns: 1fr; }
}
.course-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-price {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
}
.course-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.course-includes span {
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    background-color: var(--light-gray);
    border-radius: 100px;
    color: var(--dark-gray);
}

/* --- パンくず --- */
.breadcrumb {
    padding: 1.25rem 0;
    background-color: var(--cream);
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.breadcrumb li {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* --- フォーム --- */
.form-notice {
    background-color: var(--cream);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: var(--space-lg);
}
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: var(--space-xl);
}
.contact-method {
    flex: 1 1 220px;
    background-color: var(--cream);
    border-radius: 12px;
    padding: var(--space-lg);
}
.contact-method > * {
    margin-bottom: 0.5rem;
}
.contact-method > *:last-child {
    margin-bottom: 0;
}
.method-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}
.tel-number {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-label {
    font-weight: 700;
    font-size: 0.9375rem;
}
.form-label .required {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--white);
    background-color: var(--primary-color);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    vertical-align: middle;
}
.form-label .optional {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    background-color: var(--light-gray);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    vertical-align: middle;
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 8px;
    background-color: var(--white);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(181, 72, 46, 0.15);
}
.form-textarea {
    resize: vertical;
    min-height: 8rem;
}
.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.form-error {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #A6432F;
}
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* --- 確認画面テーブル --- */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-xl);
}
.confirm-table tr {
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}
.confirm-table th, .confirm-table td {
    text-align: left;
    padding: 1.25rem 0.5rem;
    vertical-align: top;
}
.confirm-table th {
    width: 9rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* --- サンクス画面 --- */
.thanks-box {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 0;
}
.icon-mark {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--accent-olive);
    color: var(--white);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- フッター --- */
.site-footer {
    background-color: var(--black);
    color: rgba(255, 255, 255, 0.85);
    padding: clamp(3rem, 8vw, 5rem) 0 var(--space-lg);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr; }
}
.footer-inner .site-logo {
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-inner .site-logo .brand-en {
    color: rgba(255, 255, 255, 0.6);
}
.footer-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}
.footer-list li + li {
    margin-top: 0.75rem;
}
.footer-list a:hover {
    color: var(--primary-light);
}
.footer-bottom {
    padding-top: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- CTAバンド --- */
.cta-band {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.cta-band h2 {
    color: var(--white);
}
.cta-band .btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.cta-band .btn-primary:hover {
    background-color: var(--cream);
}
