/* ========================================
   = CAFE - メインスタイルシート
   ======================================== */

/* Liberation Sans - ローカルホスト */
@font-face {
    font-family: 'Liberation Sans';
    src: local('Liberation Sans'),
         url('/assets/fonts/LiberationSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Liberation Sans';
    src: local('Liberation Sans Italic'),
         url('/assets/fonts/LiberationSans-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Liberation Sans';
    src: local('Liberation Sans Bold'),
         url('/assets/fonts/LiberationSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Liberation Sans';
    src: local('Liberation Sans Bold Italic'),
         url('/assets/fonts/LiberationSans-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* リセット & 基本設定 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #D4754A;
    --color-primary-dark: #B8603A;
    --color-primary-light: #E8956E;
    --color-bg: #EBE8E8;
    --color-bg-gray: #F0F0F0;
    --color-text: #D4754A;
    --color-text-light: #D4754A;
    --color-text-muted: #D4754A;
    --color-white: #FFFFFF;
    --color-border: #DDDDDD;
    --color-success: #28a745;
    --color-error: #dc3545;
    --font-family: 'Liberation Sans', 'Noto Sans JP', sans-serif;
    --font-family-heading: 'Liberation Sans', 'Noto Sans JP', sans-serif;
    --max-width: 1000px;
    --header-height: 96px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .footer {
    margin-top: auto;
}

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

a:hover {
    opacity: 0.7;
}

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

ul, ol {
    list-style: none;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.container-narrow {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background-color: var(--color-bg);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    padding: 0 40px;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    gap: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 1080px) {
    .nav-menu {
        position: static;
        transform: none;
    }
}

.nav-menu a {
    color: var(--color-text);
    font-size: 18px;
    font-weight: bold;
    font-family: var(--font-family-heading);
    letter-spacing: 0.05em;
    padding-bottom: 4px;
}

.nav-menu a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.header-sns {
    display: flex;
    align-items: center;
}

.header-sns a {
    color: var(--color-text);
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* ========================================
   セクション共通
   ======================================== */
.section {
  padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1;
}

/* ========================================
   Hero / Philosophy セクション
   ======================================== */
.hero-philosophy {
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--color-bg);
}

.hero-philosophy > .container {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 40px;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.hero-philosophy-content {
    display: flex;
    gap: 0px;
    align-items: flex-start;
    width: 100%;
}

.hero-philosophy-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-catch {
    font-family: var(--font-family-heading);
    font-size: 44px;
    font-weight: bold;
    color: var(--color-text);
    line-height: 1.4;
}

.hero-philosophy-right {
    flex: 1;
    min-width: 0;
}

.hero-philosophy-right p {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text-light);
    margin-bottom: 1em;
}

.hero-philosophy-right p:last-child {
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   Menu セクション
   ======================================== */
.menu-section {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.menu-section .section-title {
    color: var(--color-white);
}

.menu-image {
    max-width: 850px;
    margin: 0 auto 40px;
}

.menu-image img {
    width: 100%;
    display: block;
}

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

.btn-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border: 2px solid var(--color-white);
    border-radius: 40px;
    color: var(--color-white);
    font-size: 16px;
    font-weight:bold;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-menu .download-icon {
    margin-left: 5px;
    vertical-align: middle;
}

/* ========================================
   Store セクション
   ======================================== */
.store {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-bg);
}

.store-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 2;
    margin-bottom: 30px;
}

.store-image {
    max-width: 850px;
    margin: 0 auto 40px;
}

.store-image img {
    width: 100%;
    display: block;
}

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

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border: 2px solid var(--color-primary);
    border-radius: 40px;
    color: var(--color-primary);
    font-size: 16px;
    font-weight:bold;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.arrow-icon {
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.btn-store:hover .arrow-icon,
.btn-submit:hover .arrow-icon {
    transform: translateX(5px);
}

/* ========================================
   Location セクション
   ======================================== */
.location {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.location .section-title {
    color: var(--color-white);
}

.location-map {
    margin: 0 auto 20px;
    max-width: 850px;
}

.location-map img {
    width: 100%;
    display: block;
}

.location-map iframe {
    width: 100%;
    height: 550px;
    border: none;
    display: block;
    filter: grayscale(100%);
}

.location-address {
    text-align: center;
    font-size: 14px;
    color: var(--color-white);
    margin-top: 20px;
}

/* ========================================
   Contact セクション
   ======================================== */
.contact {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.contact-form {
    max-width: 850px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: none;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    background: var(--color-white);
    transition: border-color 0.3s ease;
    color: var(--color-text);
    border-radius: 10px;
}

.form-control::placeholder {
    color: #999999;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 25px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 40px;
    font-size: 16px;
    font-weight:bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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


/* ========================================
   フッター
   ======================================== */
.footer {
    padding: 30px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 0 40px;
}

.footer-copyright {
    font-size: 11px;
    color: var(--color-text);
    font-weight: bold;
}

.footer-sns {
    display: flex;
    align-items: center;
}

.footer-sns a {
    color: var(--color-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
}

.footer-sns a:hover {
    color: var(--color-primary);
}

/* ========================================
   アラート
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   ページヘッダー（下層ページ用）
   ======================================== */
.page-header {
    padding: 120px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.1em;
}

/* パンくずリスト */
.breadcrumb {
    padding: 10px 0;
    font-size: 12px;
}

.breadcrumb ul {
    display: flex;
    gap: 10px;
}

.breadcrumb li::after {
    content: '>';
    margin-left: 10px;
    color: var(--color-text-muted);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

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

/* ========================================
   ニュース一覧ページ
   ======================================== */
.news-archive {
    padding: 40px 0 80px;
}

.news-archive-list {
    max-width: 850px;
    margin: 0 auto;
}

.news-archive-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
}

.news-archive-item:first-child {
    border-top: 1px solid var(--color-border);
}

.news-archive-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    background-color: var(--color-bg-gray);
}

.news-archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-archive-content {
    flex: 1;
}

.news-archive-date {
    font-size: 12px;
    color: var(--color-text);
    margin-bottom: 5px;
}

.news-archive-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
}

.news-archive-title a {
    color: var(--color-text);
}

.news-archive-excerpt {
    font-size: 12px;
    color: var(--color-text-light);
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid var(--color-border);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    opacity: 1;
}

.pagination .current {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ========================================
   ニュース詳細ページ
   ======================================== */
.news-detail {
    padding: 40px 0 80px;
}

.news-detail-content {
    max-width: 850px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.news-detail-date {
    font-size: 12px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.news-detail-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
}

.news-detail-body {
    font-size: 14px;
    line-height: 2;
}

.news-detail-body p {
    margin-bottom: 1.5em;
}

.news-detail-body h2,
.news-detail-body h3 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.news-detail-body ul,
.news-detail-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.news-detail-body ul {
    list-style: disc;
}

.news-detail-body ol {
    list-style: decimal;
}

.news-detail-body li {
    margin-bottom: 0.5em;
}

.news-detail-back {
    margin-top: 40px;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    opacity: 1;
}

/* ========================================
   お問い合わせ完了ページ
   ======================================== */
.contact-complete {
    padding: 60px 0 80px;
    text-align: center;
}

.contact-complete-content {
    max-width: 500px;
    margin: 0 auto;
}

.contact-complete-icon {
    font-size: 48px;
    color: var(--color-success);
    margin-bottom: 25px;
}

.contact-complete h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.contact-complete p {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 2;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-home:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    opacity: 1;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .header .container {
        padding: 0 10px 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .logo img {
        height: 40px;
        width: auto;
    }
    .nav-menu a{
        font-size:18px;
    }
    .header-right {
        gap: 10px;
    }
    .header-right .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .header-right .nav-menu.active {
        display: flex;
    }

    .section {
        padding: 40px 0;
    }

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

    .hero-philosophy > .container {
        min-height: 550px;
        padding-top: var(--header-height);
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-philosophy-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero-catch {
        font-size: 34px;
    }

    .hero-philosophy-right p {
        font-size: 12px;
    }

    .hero-philosophy-right br {
        display: none;
    }

    .store-text br {
        display: none;
    }
    .section-header{
        margin-bottom: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer {padding: 10px 0;}
    .footer .container {
        padding: 0 20px;
    }

    .news-archive-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-archive-thumbnail {
        width: 100%;
        height: 180px;
    }

    .location-map iframe {
        height: 250px;
    }
}
