/*
Theme Name: つかさ(Tsukasa)
Theme URI: 
Author: Seiji Oomura
Author URI: https://note.com/masatake1139
Description: 薩摩炭火やきとり居酒屋つかさのオリジナルテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsukasa
*/

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

:root {
    /* Color Palette - Modern Retro Fusion */
    --color-black-deep: #0a0a0a;
    --color-black-soft: #1a1a1a;
    --color-red-primary: #9e1b1b;
    --color-red-bright: #cc2525;
    --color-text-light: #e6e6e6;
    --color-text-muted: #a3a3a3;
    --color-paper: #ebdcb9;
    /* For retro texture elements */

    /* Typography */
    /* Noto Serif for clean but traditional text */
    --font-primary: 'Noto Serif JP', serif;
    /* Kaisei Decol or Yuji Syuku for headings/brush feel */
    --font-heading: 'Yuji Syuku', serif;
    --font-accent: 'Kaisei Decol', serif;
}

body {
    background-color: var(--color-black-deep);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
    /* Adding a sublte noise texture via CSS gradient for analog feel */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
}

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

a:hover {
    color: var(--color-red-bright);
}

ul {
    list-style: none;
}

/* =========================================
   Typography Utilities
   ========================================= */
.brush-text {
    font-family: var(--font-heading);
    color: var(--color-red-primary);
}

/* =========================================
   Layout & Components
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 100%);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.1em;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.main-nav a:hover {
    color: var(--color-red-bright);
}

/* =========================================
   UI Elements
   ========================================= */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    border: 2px solid var(--color-red-primary);
    color: var(--color-red-primary);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.cta-button:hover {
    background-color: var(--color-red-primary);
    color: var(--color-text-light);
    box-shadow: 0 0 15px rgba(204, 37, 37, 0.4);
}

.section-padding {
    padding: 100px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.section-lead {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-red-primary);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: -2;
    transform: scale(1.05);
    /* Slight zoom to avoid edges during scroll */
}

/* Dark gradient overlay for readability and "dark ambiance" */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.2) 100%);
    z-index: -1;
}

/* Adding dramatic red film grain/noise over the hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 70% 50%, transparent 20%, rgba(158, 27, 27, 0.15) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
    text-align: left;
    animation: fadeIn 2s ease-out;
}

.hero-subtitle {
    font-family: var(--font-accent);
    color: var(--color-red-primary);
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(204, 37, 37, 0.5);
    /* Glowing red accent */
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cccccc;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.scroll-indicator span {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--color-red-primary);
    animation: scrollDown 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: top;
}

/* =========================================
   About Section (Retro Texture)
   ========================================= */
.retro-paper-bg {
    background-color: var(--color-paper);
    color: var(--color-black-deep);
    /* Subtle paper texture */
    background-image:
        linear-gradient(rgba(235, 220, 185, 0.9), rgba(235, 220, 185, 0.9)),
        url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.1"/%3E%3C/svg%3E');
    position: relative;
}

/* Torn paper edge effect */
.retro-paper-bg::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0,20 L0,10 Q5,0 10,10 T20,10 T30,10 T40,10 T50,10 T60,10 T70,10 T80,10 T90,10 T100,10 L100,20 Z" fill="%23ebdcb9" opacity="0.9"/></svg>');
    background-size: 50px 20px;
    z-index: 10;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 10px 10px 0 var(--color-black-deep);
    filter: sepia(0.4) contrast(1.1) brightness(0.9);
    /* Vintage photo effect */
    transition: all 0.5s ease;
}

.about-image img:hover {
    filter: none;
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0 var(--color-red-primary);
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =========================================
   Story (Timeline) Section
   ========================================= */
.text-center {
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(158, 27, 27, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--color-red-primary);
    border: 4px solid var(--color-black-deep);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-date {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.timeline-content {
    background: rgba(26, 26, 26, 0.6);
    padding: 25px;
    border-radius: 4px;
    border-left: 3px solid var(--color-red-primary);
    backdrop-filter: blur(5px);
}

.timeline-content h4 {
    color: var(--color-text-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================
   Menu Section
   ========================================= */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.menu-category {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(158, 27, 27, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.menu-list ul li {
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    font-weight: 700;
}

.menu-name {
    flex: 0 0 auto;
}

.menu-dots {
    flex: 1 1 auto;
    border-bottom: 1px dotted rgba(10, 10, 10, 0.4);
    margin: 0 15px 5px 15px;
}

.menu-price {
    flex: 0 0 auto;
    font-family: var(--font-accent);
}

.menu-note {
    font-size: 0.9rem;
    margin-top: 20px;
    color: #666;
}

.commitment-text {
    padding: 30px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
}

.commitment-text h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-red-primary);
}

.commitment-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    /* Image first on mobile */
    .main-nav {
        display: none;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item::after {
        left: 23px;
    }

    .timeline-item:nth-child(even)::after {
        left: 23px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hover-border {
        padding: 30px 20px;
    }
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    margin-bottom: 50px;
}

.hover-border {
    border: 1px solid rgba(158, 27, 27, 0.2);
    padding: 60px;
    background-color: rgba(26, 26, 26, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.hover-border:hover {
    border-color: var(--color-red-primary);
    box-shadow: 0 0 20px rgba(158, 27, 27, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-block {
    margin: 30px 0;
    font-size: 1.1rem;
    line-height: 2;
}

.info-block p strong {
    color: var(--color-red-primary);
    display: inline-block;
    width: 80px;
}

.contact-note {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    border-left: 3px solid var(--color-red-primary);
    padding-left: 15px;
    margin-top: 30px;
}

.contact-note p {
    margin-bottom: 10px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    color: #666;
    font-family: var(--font-accent);
    letter-spacing: 0.2em;
}

.footer-container {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #222;
}
/* =========================================
   News / Blog Section
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: rgba(26, 26, 26, 0.4);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}

.news-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-family: var(--font-accent);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--color-text-light);
}

.news-excerpt {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-accent);
    color: var(--color-red-primary);
    font-weight: 700;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.news-item:hover .read-more {
    color: var(--color-red-bright);
}

/* =========================================
   Single Post & Archive
   ========================================= */
.single-post-container,
.archive-container {
    padding-top: 150px; /* Offset for fixed header */
    padding-bottom: 100px;
}

.post-header {
    margin-bottom: 40px;
}

.post-date {
    font-family: var(--font-accent);
    color: var(--color-red-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.3;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-black-deep);
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-heading);
    color: var(--color-red-primary);
    margin-top: 2em;
    margin-bottom: 1em;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(158, 27, 27, 0.3);
    padding-bottom: 10px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 5px 5px 0 var(--color-black-deep);
    margin: 2em 0;
}

.archive-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.archive-grid .news-item {
    background-color: rgba(255, 255, 255, 0.3); /* Lighter bg for retro paper */
    border: 1px solid rgba(10, 10, 10, 0.2);
    box-shadow: none;
}

.archive-grid .news-item:hover {
    border-color: var(--color-red-primary);
    box-shadow: 5px 5px 0 rgba(158, 27, 27, 0.1);
}

.archive-grid .news-title {
    color: var(--color-black-deep);
}

.archive-grid .news-excerpt {
    color: #444;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-accent);
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid rgba(158, 27, 27, 0.3);
    color: var(--color-black-deep);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .current {
    background-color: var(--color-red-primary);
    color: var(--color-text-light);
    border-color: var(--color-red-primary);
}

.cta-button.outline {
    border-color: var(--color-black-deep);
    color: var(--color-black-deep);
}

.cta-button.outline:hover {
    background-color: var(--color-black-deep);
    color: var(--color-paper);
    box-shadow: 0 0 15px rgba(10, 10, 10, 0.4);
}
