/* 変数の設定 */
:root {
    --main-color: #d58558;
    --accent-color: #7a4a19;
    --bg-color: #fffaf6; /* ここを変更しました */
    --text-color: #4a3a35;
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Shippori Mincho', serif;
    color: var(--accent-color);
}

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

/* 1. ヒーローセクション（アニメーション） */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

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

.slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeAnimation 15s infinite; /* 5秒×3枚 = 15秒サイクル */
}

.slide1 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('photo/top-01.avif');
    animation-delay: 0s;
}

.slide2 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('photo/top-02.avif');
    animation-delay: 5s;
}

.slide3 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('photo/top-03.avif');
    animation-delay: 10s;
}

@keyframes fadeAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--white);
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 2. 商品紹介セクション */
.menu-category {
    margin-bottom: 80px;
}

.category-name {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--main-color);
    display: inline-block;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.price {
    color: var(--main-color);
    font-weight: bold;
}

/* 4. 店主紹介セクション */
.owner-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.owner-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--white);
    padding: 10px;
    border: 1px solid var(--main-color);
}

.owner-text {
    flex: 1;
    min-width: 300px;
}

/* その他共通、アニメーション設定（前回の設定を維持） */
.concept-bg { background-color: rgba(213, 133, 88, 0.05); }
.concept-flex { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.concept-image img { width: 100%; border-radius: 8px; }

.slide-left { opacity: 0; transform: translateX(-50px); transition: 1.2s; }
.slide-right { opacity: 0; transform: translateX(50px); transition: 1.2s; }
.is-visible { opacity: 1 !important; transform: translateX(0) !important; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-map iframe { width: 100%; height: 350px; border: none; border-radius: 8px; }

footer { text-align: center; padding: 40px; background: var(--accent-color); color: var(--white); }

@media (max-width: 768px) {
    .info-grid, .owner-flex { flex-direction: column; text-align: center; }
    .info-grid { grid-template-columns: 1fr; }
}

/* 店名のアニメーション設定 */
.drawing-title {
    display: inline-block;
}

.drawing-title span {
    display: inline-block;
    opacity: 0; /* 最初は隠す */
    transform: translateY(10px); /* 少し下から */
    filter: blur(5px); /* ぼかしを入れるとお洒落 */
    animation: drawText 0.8s forwards;
}

/* 1文字ずつ遅延（delay）させる */
.drawing-title span:nth-child(1) { animation-delay: 0.5s; }
.drawing-title span:nth-child(2) { animation-delay: 0.8s; }
.drawing-title span:nth-child(3) { animation-delay: 1.1s; } /* 空白(&nbsp;)を飛ばす場合は調整 */
.drawing-title span:nth-child(4) { animation-delay: 1.4s; }
.drawing-title span:nth-child(5) { animation-delay: 1.7s; }
.drawing-title span:nth-child(6) { animation-delay: 2.0s; }

/* サブコピーも店名が終わった後に表示 */
.hero-sub-copy {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    animation-delay: 2.5s;
}

@keyframes drawText {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

