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

html {
    scroll-behavior: smooth;
}

:root {
    --wood-darker: #654321;
    --wood-text: #22190f;
    --wood-accent: #cd853f;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: "手書き風フォント";
    src: url("fonts/ktegaki.woff2") format("woff2");
    font-display: swap;
}

body {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', 'sans-serif';
    font-weight: 500;
    line-height: 1.8;
    color: var(--wood-text);
    background: #fffcf7;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 30px;
}

.donguri-line {
    height: 50px;
    background-image: url('images/donguri.line.png');
    background-repeat: repeat-x;
    background-position: center;
    background-size: contain;
    opacity: 0.8;
    margin-top: 7rem;
}

#about,
#menu,
#access {
    scroll-margin-top: 90px;
}

.font-accent,
.section-title {
    font-family: '手書き風フォント', sans-serif;
}

/* Header Styles */
header {
    width: 100%;
    position: fixed;
    inset: 0 0 auto 0;
    background-color: rgba(183, 148, 92, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(101, 82, 12, .3);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transition: var(--transition-smooth);
}

.header-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wood-darker);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 100px;
    display: block;
}

.shop-titles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
    font-size: 2rem;
    flex-wrap: wrap;
}

.shop-subname {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.shop-name {
    font-size: 2.5rem;
    letter-spacing: 10px;
}

nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--wood-darker);
    font-weight: 600;
    padding: .5rem 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--wood-accent);
    transition: width 0.3s ease-in-out;
}

nav a:hover {
    color: var(--wood-accent);
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 80%;
}

nav a .en {
    font-size: 1.2rem;
}

nav a .jp {
    font-size: 1rem;
    margin-top: 0;
    font-weight: 500;
}

.menu-toggle {
    display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 16px;
        position: relative;
    }

    .logo {
        justify-self: start;
    }

    .logo img {
        height: 70px;
    }

    .shop-titles {
        flex-direction: column;
        gap: 0;
    }

    .shop-subname {
        font-size: 1rem;
        padding-bottom: 0;
    }

    .shop-name {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .shop-subname,
    .shop-name {
        line-height: 1.3;
    }

    .menu-icon {
        justify-self: end;
        position: absolute;
        top: 2rem;
        right: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1100;
    }

    .menu-icon span {
        display: block;
        height: 4px;
        background-color: var(--wood-darker);
        border-radius: 2px;
    }


    .menu-toggle:checked+.menu-icon+nav {
        display: flex;
    }


    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: flex;
        /* flex に変更 */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        border-top: 1px solid rgba(101, 82, 12, 0.2);
        padding: 1rem 0;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
        z-index: 1000;
    }

    .menu-toggle:checked+.menu-icon+nav {
        transform: translateX(0);
        opacity: 1;
    }

    nav a {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(101, 82, 12, 0.1);
        text-align: left;
        align-items: flex-start;
        position: relative;
    }

    nav a .en {
        font-size: 1rem;
    }

    nav a .jp {
        font-size: 0.9rem;
    }
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.bg1 {
    opacity: 1;
}

.bg2 {
    opacity: 0;
}



.fade-in-section {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.fade-in-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, );
    z-index: -1;
}

.fade-in-section p {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    letter-spacing: 0.05em;
    max-width: 900px;
}

.animated-border {
    position: relative;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid transparent;
}

.animated-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid white;
    box-sizing: border-box;
    animation: border-rotate 5s linear infinite;
    pointer-events: none;
}

@keyframes border-rotate {
    0% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    }

    25% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 100% 100%);
    }

    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    75% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

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

@media (max-width: 768px) {
    .fade-in-section {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1rem;
        flex-direction: column;
    }

    .fade-in-section p {
        font-size: 1.3rem;
        line-height: 1.8;
        max-width: 90%;
        margin-bottom: 1.5rem;
    }
}

.hero-sub {
    text-align: center;
    padding-top: 10rem;
}

.highlight {
    font-size: 1.4rem;
    font-weight: 4;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.txt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}

.line {
    display: flex;
    justify-content: center;
}

.line p {
    margin: 0 0.2rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3rem;
    color: var(--wood-darker);
    opacity: 0;
    animation: textanimation 1s forwards;
}

.line p:nth-child(1) {
    animation-delay: 0.2s;
}

.line p:nth-child(2) {
    animation-delay: 0.4s;
}

.line p:nth-child(3) {
    animation-delay: 0.6s;
}

.line p:nth-child(4) {
    animation-delay: 0.8s;
}

.line-bottom p:nth-child(1) {
    animation-delay: 1s;
}

.line-bottom p:nth-child(2) {
    animation-delay: 1.2s;
}

.line-bottom p:nth-child(3) {
    animation-delay: 1.4s;
}

.line-bottom p:nth-child(4) {
    animation-delay: 1.6s;
}

.line-bottom p:nth-child(5) {
    animation-delay: 1.8s;
}

.line-bottom p:nth-child(6) {
    animation-delay: 2s;
}

.line-bottom p:nth-child(7) {
    animation-delay: 2.2s;
}

.line-bottom p:nth-child(8) {
    animation-delay: 2.4s;
}

.line-bottom p:nth-child(9) {
    animation-delay: 2.6s;
}

.line-bottom p:nth-child(10) {
    animation-delay: 2.8s;
}

.shop-description {
    font-size: 1.3rem;
    color: var(--wood-text);
    line-height: 2;
    margin: 0 auto 2rem;
}

.under-line {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 6px;
    text-decoration-color: rgb(224, 174, 183);
}


@keyframes textanimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-sub {
        text-align: center;
        padding-top: 5rem;
    }

    .txt {
        flex-direction: column;
        align-items: center;
    }

    .line {
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .line p {
        font-size: 1.7rem;
        letter-spacing: 0.1rem;
    }

    .shop-description {
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .highlight {
        font-size: 1.2rem;
    }

    .under-line {
        text-underline-offset: 2px;
        text-decoration-thickness: 4px;
    }
}

/* Section Styles */
section {
    padding: 2rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.section-title span {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--wood-text);
    margin-top: 0.1rem;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Menu Section */
.menu-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0 auto;
    gap: 1rem;
    padding: 2rem 0;
}

.menu-item {
    text-align: center;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.menu-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item-name {
    font-size: 1.2rem;
    color: var(--wood-darker);
    margin-bottom: 0.5rem;
}

.menu-item-description {
    font-size: 0.95rem;
    color: var(--wood-text);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .menu-content {
        grid-template-columns: 1fr;
    }
}

.features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 0 auto;
    max-width: 1200px;
}

.feature-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: 2rem;
}

.feature-card.reverse {
    grid-template-columns: 1fr 2fr;
}

.feature-card.reverse>* {
    direction: ltr;
}

.feature-card.reverse .feature-card-image {
    order: 2;
}

.feature-card.reverse .feature-card-content {
    order: 1;
}


.feature-card-image img {
    width: 100%;
    height: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.feature-card-content {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--wood-text);
}

.feature-badge {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: #3d3226;
    color: white;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.feature-card-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--wood-darker);
}

.feature-card-content p {
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .feature-card {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .feature-card-content h3 {
        font-size: 2rem;
    }

    .feature-card-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .feature-card-image img {
        max-width: 100%;
        height: auto;
    }

    .feature-card.reverse .feature-card-image {
        order: 1;
    }

    .feature-card.reverse .feature-card-content {
        order: 2;
    }
}

/* menu section */
.menu-btn {
    display: inline-block;
    margin: 0 auto;
    padding: 0.6em 1.8em;
    font-size: 1.5rem;
    color: #ffffff;
    background-color: rgba(126, 94, 57, 0.8);
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 #d8cfc4;
}

.menu-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    pointer-events: none;
    border-radius: 8px;
}

.menu-btn:hover {
    background-color: rgba(126, 94, 57);
    box-shadow: 2px 2px 0 #b8a89c;
    transform: translateY(-2px);
}

.btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 2em;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        padding: 1rem;
    }

    .menu-item-name {
        font-size: 1.1rem;
    }

    .menu-item-description {
        font-size: 0.9rem;
    }

    .menu-btn {
        font-size: 1.2rem;
        padding: 0.6em 1.5em;
    }

    .btn-wrapper {
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.instagram-link {
    text-align: center;
    padding: 4rem 2rem;
}

.insta-button {
    display: inline-block;
    background-color: rgba(126, 94, 57, 0.8);
    color: #ffffff;
    font-size: 1.1rem;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.insta-button:hover {
    transform: scale(1.05);
    background-color: rgba(126, 94, 57);

}

/* Access section */
.map-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
    margin-left: 100px;
}

.map-content {
    flex: 1;
    width: 100%;
}

.map-content iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-note {
    font-size: 1.3rem;
    color: var(--wood-text);
    line-height: 1.6;
    margin-top: 0;
    flex: 1;
    max-width: 1200px;
}

.contact-info-note span {
    color: rgb(147, 113, 67);
    font-weight: 600;
    font-size: 1.8rem;
}

.contact-info-note p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    line-height: 2;
}

.contact-info-note table {
    margin-top: 1rem;
    width: 100%;
    border-collapse: collapse;
    background-color: #5c4a3a;
    color: #e6d9c5;
    font-weight: bold;
    width: 100%;
    max-width: 500px;
}

.contact-info-note th,
.contact-info-note td {
    border: 1px solid #cbb89a;
    padding: 0.8rem;
    text-align: center;

}

.contact-info-note th {
    font-size: 0.8rem;
}

/* 共通設定：中央揃え */
.insta-wrapper {
    border: none;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instagram-media {
    margin: 0 auto !important;
}


@media (max-width: 1024px) {
    .map-layout {
        flex-direction: column;
        margin-left: 0;
        gap: 3rem;
    }

    .map-content iframe {
        height: 400px;
    }

    .contact-info-note {
        font-size: 1.1rem;
        text-align: center;
    }

    .contact-info-note span {
        font-size: 1.6rem;
    }

    .contact-info-note p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .contact-info-note table {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .instagram-link h2 {
        font-size: 1rem;
    }

    .instagram-link p {
        font-size: 0.8rem;
    }

    .insta-button {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
    }

    .map-content iframe {
        height: 300px;
    }

    .contact-info-note {
        padding: 0 1rem;
    }

    .contact-info-note table {
        font-size: 0.75rem;
    }
}


/* スマホ・タブレット向け */
@media (max-width: 768px) {
    .insta-wrapper blockquote {
        max-width: 90%;
        /* 画面幅の90%以内 */
        width: 90%;
        /* 横幅を固定 */
    }
}

/* Footer */
.hokkori-footer {
    background-color: rgba(183, 148, 92, 0.6);
    opacity: 0.8;
    padding: 1rem 1rem;
    text-align: center;
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #5c4a3b;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sns-icons {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 2rem;
    width: 60px;
    height: auto;
}

.sns-icons a {
    color: #5c4a3b;
    transition: color 0.3s ease;
}

.sns-icons a:hover {
    color: #c89f7b;
}

.copyright {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .footer-center {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
}