/* Custom Properties */
:root {
    --color-primary: #8a7b66;
    /* Warm Greige */
    --color-accent: #c4b69c;
    /* Soft Gold/Beige */
    --color-bg: #faf9f7;
    /* Ivory / Off-white */
    --color-bg-light: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;

    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 94%;
    max-width: 1100px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* DuckDuckGo等での表示崩れ対策 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip-path: inset(50%) !important;
}

.br-pc {
    display: inline;
}

.br-sp {
    display: none;
}

@media (max-width: 768px) {
    .br-pc {
        display: none;
    }

    .br-sp {
        display: inline;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 400;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5%;
}

.logo a {
    display: block;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .logo img {
        height: 32px;
    }
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
    left: 0;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Nav Menu */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

/* FV */
.fv {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 450px;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .fv {
        aspect-ratio: 4 / 5;
        min-height: 500px;
    }
}

.hero-sequence {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
}

.slide-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/01.png');
    animation: heroAnimation 6s forwards;
    animation-delay: 0s;
}

.slide-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/02.png');
    animation: heroAnimation 6s forwards;
    animation-delay: 5s;
}

.slide-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/03.png');
    animation: heroAnimation 6s forwards;
    animation-delay: 10s;
}

.slide-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/04.png');
    animation: heroFinalSlide 6s forwards;
    animation-delay: 15s;
}

@keyframes heroAnimation {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    15% {
        opacity: 1;
        transform: scale(1.05);
    }

    85% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes heroFinalSlide {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    20% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fv-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: contentFadeIn 2s forwards;
    animation-delay: 2s;
}

@keyframes contentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fv-logo {
    display: none;
    /* Removed as per user request (integrated into image 03) */
}

.fv-copy {
    font-size: clamp(1.2rem, 5.5vw, 2.4rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 2rem;
    font-feature-settings: "palt";
}

.fv-sub {
    font-size: clamp(0.75rem, 3.5vw, 1.0rem);
    letter-spacing: 0.05em;
    padding: 0 2rem;
    line-height: 1.6;
    font-feature-settings: "palt";
}

@media (min-width: 769px) {
    .fv-copy {
        font-size: clamp(1.4rem, 2.5vw, 2.2rem);
        white-space: nowrap;
    }
    .fv-sub {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        white-space: nowrap;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background-color: white;
    margin: 10px auto 0;
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Concept */
.concept-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--color-text-light);
}

/* Strengths */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.strength-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.strength-img {
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.strength-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.strength-card:hover .strength-img img {
    transform: scale(1.05);
}

.strength-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.strength-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    line-height: 1.4;
}

.strength-text-short {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    transition: var(--transition);
}

.strength-text-expand {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.strength-text-expand p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding-top: 1rem;
    line-height: 1.6;
}

.strength-card:hover .strength-text-expand {
    max-height: 300px;
    opacity: 1;
}

/* Menu */
.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.menu-info {
    flex-grow: 1;
}

.menu-info h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    line-height: 1.5;
}

.menu-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.menu-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #eaeaea;
    text-align: right;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Fixed Footer (Smartphone Optimization) */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.btn-fixed {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 60px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.btn-tel {
    background-color: #ffffff;
    color: var(--color-text);
    border-top: 1px solid #eaeaea;
}

.btn-tel svg {
    width: 20px;
    height: 20px;
}

.btn-web {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-web:hover {
    background-color: #786a56;
}

/* Instagram Gallery */
.mb-4 {
    margin-bottom: 2rem;
}

.insta-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.insta-item {
    position: relative;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 15px;
}

.insta-overlay-inner {
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover .insta-overlay-inner {
    transform: translateY(0);
}

.insta-item:hover {
    transform: translateY(-3px);
}

.insta-overlay-icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.insta-caption-text {
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

/* Elfsight Widget Overrides */
.elfsight-app-edaa4e2a-8739-48cb-8906-9136dfdef1a5 [class*="WidgetTitle__Container-sc"] {
    display: none !important;
}

.elfsight-app-edaa4e2a-8739-48cb-8906-9136dfdef1a5 [class*="FollowButton__Container-sc"] {
    display: none !important;
}

.elfsight-app-edaa4e2a-8739-48cb-8906-9136dfdef1a5 a[href*="elfsight.com"],
a[href*="instagram-feed-instashow"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Elfsight 独自の「もっと読み込む」ボタン用カスタマイズ */
.eapps-instagram-feed-posts-grid-load-more-container {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-top: 2rem !important;
}

.eapps-instagram-feed-posts-grid-load-more {
    background-color: transparent !important;
    border: 1px solid #8a7b66 !important;
    color: #8a7b66 !important;
    border-radius: 30px !important;
    padding: 16px 48px !important;
    height: auto !important;
    min-height: 58px !important;
    line-height: normal !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.eapps-instagram-feed-posts-grid-load-more:hover {
    background-color: #8a7b66 !important;
    color: #ffffff !important;
    border-color: #8a7b66 !important;
}

.eapps-instagram-feed-posts-grid-load-more:hover .eapps-instagram-feed-posts-grid-load-more-text {
    color: #ffffff !important;
}

.eapps-instagram-feed-posts-grid-load-more-text {
    color: inherit !important;
    transition: all 0.3s ease !important;
}

/* Access */
.access-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .access-wrap {
        flex-direction: row;
        align-items: center;
    }

    .access-info {
        flex: 1;
        padding-right: 2rem;
    }

    .access-map {
        flex: 2;
    }
}

.access-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.access-info p {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.access-info a {
    color: var(--color-text);
    font-weight: 500;
}

.access-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Footer SNS */
.footer-sns {
    margin-bottom: 1.5rem;
}

.footer-sns a {
    display: inline-block;
    color: #fff;
    transition: var(--transition);
}

.footer-sns a:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-sns svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    /* Logo might be dark/colored, make it white for dark footer */
}

.footer-address {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.8rem;
    color: #999;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .container {
        width: 95%;
    }

    .strength-grid,
    .menu-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .fv-copy {
        font-size: clamp(1.8rem, 4.5vw, 2.2rem);
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .fv {
        margin-top: 70px;
        /* Push below fixed header */
        height: auto !important;
        min-height: 0;
        aspect-ratio: 900 / 530;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 0;
        overflow: hidden;
    }

    /* 修正: 画像の全体を表示するように変更 */
    .hero-slide {
        background-position: center center;
        background-size: contain;
        background-repeat: no-repeat;
        transform: none !important;
        /* ズームによる見切れを防止 */
    }

    .fv-content {
        transform: none;
        margin-bottom: 0;
        align-self: center;
        width: 100%;
        animation-delay: 2s;
    }

    .fv-copy {
        font-size: clamp(1.1rem, 5.2vw, 1.8rem);
        white-space: normal;
        margin-bottom: 0.8rem;
        line-height: 1.5;
        padding: 0 2rem;
        width: 100%;
        display: block;
    }

    .fv-copy span {
        display: inline-block;
    }

    .fv br {
        display: block;
    }

    .fv-sub {
        font-size: clamp(0.75rem, 3vw, 1.0rem);
        white-space: normal;
        line-height: 1.5;
        padding: 0 2rem;
        margin-top: 0;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .concept-text {
        font-size: 1rem;
        text-align: left;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .menu-price {
        margin-left: 0;
    }

    .fixed-footer {
        height: 55px;
    }

    .btn-fixed {
        height: 55px;
        font-size: 0.9rem;
    }

    /* Disable hover animation & expand strengths details on mobile touch screens */
    .strength-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }
    
    .strength-card:hover .strength-img img {
        transform: none;
    }
    
    .strength-card .strength-text-expand {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
}

/* Hide Elfsight Branding */
[href*="elfsight.com/instagram-feed-instashow"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}