/* --- Reset & Basic Settings --- */
:root {
    --font-serif-jp: 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-sans-jp: 'Noto Sans JP', sans-serif;
    --color-bg: #121212;
    --color-text: #e0e0e0;
    --color-accent: #c5a06a;
    --color-surface: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans-jp);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    opacity: 0.8;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; /* パディングを少し調整 */
    z-index: 100;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.header--scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.5rem 5%;
}

.header__logo a {
    display: block;
}

.header__logo img {
    height: 60px; /* ロゴの高さを設定 */
    width: auto;
    transition: height 0.4s ease;
}

.header--scrolled .header__logo img {
    height: 50px; /* スクロール後のロゴの高さ */
}

.header__nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.header__nav a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.header__nav a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

/* 網掛けとフィルター用のオーバーレイ */
.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 10, 30, 0.3) 1px, transparent 0);
    background-size: 4px 4px;
    filter: brightness(0.6);
}

#hero.is-active .hero__bg video {
    transform: scale(1);
}

/* Hero Symbol */
.hero__symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw; /* ロゴの幅を拡大 */
    max-width: 600px; /* 最大幅も拡大 */
    opacity: 0.2; /* 少し濃くする */
    z-index: 1;
}

.hero__content {
    position: relative; /* z-indexを有効にするためrelativeに変更 */
    z-index: 2;
}

.hero__title {
    font-family: var(--font-serif-jp);
    font-size: clamp(2.5rem, 8vw, 5.5rem); /* フォントサイズを調整 */
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    writing-mode: horizontal-tb; /* 横書きに変更 */
    letter-spacing: 0.1em;
}

.hero__title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- Scroll Down Animation --- */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    z-index: 2;
}

.scroll-down::after {
    content: '';
    position: absolute;
    top: 5rem;
    left: 50%;
    width: 1px;
    height: 50px;
    background: #fff;
    transform: translateX(-50%);
    animation: scroll-indicator 2s infinite;
}

@keyframes scroll-indicator {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-serif-jp);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::before {
    content: attr(data-en);
    font-family: var(--font-sans-jp);
    font-size: 1rem;
    color: var(--color-accent);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.1em;
}

/* --- Passion Section --- */
.passion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.passion-item {
    background-color: var(--color-surface);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.passion-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.passion-item__img {
    margin-bottom: 1.5rem;
}

.passion-item__img img {
    border-radius: 4px;
}

.passion-item__title {
    font-family: var(--font-serif-jp);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.passion-item__text {
    text-align: left;
    font-size: 0.95rem;
}

/* --- Menu Section --- */
#menu {
    background-color: var(--color-surface);
    background-image: url('../images/seigaiha_gray_bg.jpg');
    background-repeat: repeat;
    background-size: auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.menu-item {
    background-color: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: scale(1.03);
}

.menu-item__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}
.menu-item:hover .menu-item__img {
    filter: brightness(1);
}

.menu-item__info {
    padding: 1.5rem 2rem;
}

.menu-item__name {
    font-family: var(--font-serif-jp);
    font-size: 1.4rem;
    font-weight: 700;
}

.menu-item__price {
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.menu-item__desc {
    font-size: 0.9rem;
}

/* --- Info Section --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.info-map iframe {
    border-radius: 8px;
    filter: grayscale(1) invert(0.9) brightness(1.2);
}

.info-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
}

.info-details dt {
    font-weight: bold;
    color: var(--color-accent);
}

.info-details dd {
    margin-left: 0;
}

.info-sns {
    display: flex;
    gap: 1rem;
}

.info-sns a {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid var(--color-accent);
    border-radius: 20px;
}

.info-sns a:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #2a2a2a;
}

/* --- Animations --- */
.anim-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .header__nav {
        display: none; /* Simple hiding for demo. Could be replaced by a hamburger menu. */
    }
    .hero__title {
        font-size: clamp(2rem, 10vw, 3.5rem); /* スマホ用にタイトルサイズ調整 */
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}
