/* Custom Font Classes - neguraブランドフォント設定 */
.font-oswald {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
}

.font-noto {
    font-family: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
}

/* ヒーロー「NEGURA」ロゴタイプ - 高級ホテル風セリフ */
.hero-brand-name {
    font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
    font-weight: 600;
}

/* Base styles - フッターを最下部に配置・下の余白なし */
html {
    min-height: 100%;
    min-height: 100vh;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    letter-spacing: 0.01em;
    background-color: #FDF9F1;
    color: #322B29;
    font-family: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
}

body > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* フッターを常に最下部に */
body > main.main-with-footer {
    min-height: calc(100vh - 3.5rem);
}
@media (min-width: 768px) {
    body > main.main-with-footer {
        min-height: calc(100vh - 5rem);
    }
}
body > main.main-with-footer > footer {
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* スマホ：ヒーロー上下の空白をなくし、画像のすぐ下にリード文 */
.hero-first-view {
    overflow: hidden;
}
@media (max-width: 767px) {
    .hero-first-view {
        height: 0;
        padding-bottom: 75%;
        min-height: 0;
    }
    .hero-first-view .hero-first-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    .hero-lead-section {
        padding-top: 1.5rem;
    }
}
@media (min-width: 768px) {
    .hero-first-view .hero-first-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
    }
}

/* SPOT・FOOD：1段・固定幅カード・横スクロール・改行位置統一（縦スクロールバー非表示） */
.spot-grid-wrap,
.food-grid-wrap {
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden;
}
.spot-card,
.food-card {
    width: 280px;
    min-width: 280px;
}
.spot-card .p-4,
.spot-card [class*="p-4"],
.spot-card [class*="p-6"],
.spot-card [class*="p-8"],
.food-card .p-4,
.food-card [class*="p-4"],
.food-card [class*="p-6"],
.food-card [class*="p-8"] {
    width: 100%;
    box-sizing: border-box;
}

/* Header Logo Styles */
header {
    position: relative;
    backdrop-filter: blur(10px);
    background-color: rgba(253, 249, 241, 0.95);
}
.header-logo-link {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.header-logo-img {
    height: 45px;
    min-height: 45px;
    min-width: 146px;
    transform: scale(1.08);
    transform-origin: left center;
}
@media (min-width: 768px) {
    .header-logo-img {
        height: 52px;
        min-height: 52px;
        min-width: 178px;
    }
}

header .logo img {
    height: auto;
    min-height: 32px;
    min-width: 100px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    header .logo img {
        min-height: 40px;
        min-width: 120px;
        max-height: 50px;
    }
}

@media (min-width: 1024px) {
    header .logo img {
        min-height: 50px;
        min-width: 150px;
        max-height: 60px;
    }
}

/* Footer Logo Styles */
.footer-logo {
    height: auto;
    min-height: 32px;
    min-width: 100px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@media (min-width: 768px) {
    .footer-logo {
        min-height: 40px;
        min-width: 120px;
        max-height: 50px;
    }
}

@media (min-width: 1024px) {
    .footer-logo {
        min-height: 50px;
        min-width: 150px;
        max-height: 60px;
    }
}

footer a:hover .footer-logo {
    opacity: 1;
}

/* Vertical writing accent (Hero) */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.bg-beige {
    background-color: #92905D; /* キーカラー（草色） */
}

.bg-beige-dark {
    background-color: #7A7A4A; /* 少し濃い草色 */
}

/* Hero Section */
.hero-section {
    margin-top: 0;
}

.hero-logo {
    height: 120px;
    background: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    mix-blend-mode: normal;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (min-width: 768px) {
    .hero-logo {
        height: 180px;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        height: 240px;
    }
}

@media (min-width: 1280px) {
    .hero-logo {
        height: 307px;
    }
}

@media (min-width: 1536px) {
    .hero-logo {
        height: 410px;
    }
}

/* News Ticker Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.news-content:hover .animate-scroll {
    animation-play-state: paused;
}

/* Concept Section - neguraの説明 */
.concept-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .concept-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (min-width: 1024px) {
    .concept-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.concept-section .max-w-7xl {
    max-width: 1000px;
}

.concept-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .concept-item {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }
}

.concept-item:last-child {
    margin-bottom: 0;
}

.concept-item-image-left {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .concept-item-image-left {
        grid-template-columns: 1fr 1fr;
    }
}

.concept-item-text-left {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .concept-item-text-left {
        grid-template-columns: 1fr 1fr;
    }
}

.concept-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.concept-text-vertical {
    width: 100%;
}

.concept-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.concept-text-vertical {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .concept-text-vertical {
        writing-mode: vertical-rl;
        text-orientation: upright;
    }
}

.vertical-text-content {
    font-size: 14px;
    line-height: 2;
    color: #322B29;
    font-weight: 300;
    margin: 0;
    padding: 0;
    letter-spacing: 0.05em;
    text-align: center;
}

@media (min-width: 768px) {
    .vertical-text-content {
        font-size: 16px;
        line-height: 2.2;
        text-align: left;
    }
}

/* Section Header - FLOOR */
.section-header {
    display: flex;
    align-items: center;
}

.section-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #322B29;
    margin-right: 15px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 40px;
        margin-right: 20px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 48px;
    }
}

.section-title-small {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #322B29;
    margin-right: 15px;
}

@media (min-width: 768px) {
    .section-title-small {
        font-size: 28px;
        margin-right: 20px;
    }
}

@media (min-width: 1024px) {
    .section-title-small {
        font-size: 32px;
    }
}

.section-title-line {
    flex: 1;
    height: 1px;
    background-color: #92905D;
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 鳥の支配人の囁き - フェードイン */
.whisper-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* 高級ホテル風：スクロールでふわっと表示 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 観光カード：控えめなホバー（浮き上がり＋影） */
.luxury-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease;
}

.luxury-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(50, 43, 41, 0.08);
}

/* タイムライン画像：ホバーでわずかにズーム */
.luxury-img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.luxury-img-zoom:hover img {
    transform: scale(1.04);
}

/* ヒーロー：ロゴ＋NEGURA のページ表示時フェードイン */
.hero-brand-fade-in {
    position: relative;
    opacity: 0;
    animation: hero-brand-fade-in 2s ease-out forwards;
}

/* ヒーロー：ロゴ直下に中心があるハイライト（光）、境目はぼかし */
.hero-brand-logo-wrap {
    position: relative;
}

.hero-brand-highlight {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(160%, 1000px);
    height: min(140%, 560px);
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse 65% 75% at 50% 50%,
        rgba(255, 253, 251, 0.38) 0%,
        rgba(255, 253, 251, 0.2) 35%,
        rgba(255, 253, 251, 0.08) 55%,
        transparent 72%
    );
    filter: blur(16px);
    -webkit-filter: blur(16px);
    pointer-events: none;
    z-index: 0;
}

.hero-brand-logo-wrap > span {
    position: relative;
    z-index: 1;
}

@keyframes hero-brand-fade-in {
    to {
        opacity: 1;
    }
}

/* ヒーロー：NEGURA画像を真っ白に */
.hero-brand-logo-text {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

/* Service Card */
.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Smooth Scroll（html の scroll-behavior は Base styles で指定） */

/* Container adjustments */
.max-w-7xl {
    max-width: 1280px;
}

/* Image utilities */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Gallery main image animation */
@keyframes gallery-main-next {
    0% {
        transform: translateX(80px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes gallery-main-prev {
    0% {
        transform: translateX(-80px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.gallery-main-anim-next {
    animation: gallery-main-next 0.8s ease forwards;
}

.gallery-main-anim-prev {
    animation: gallery-main-prev 0.8s ease forwards;
}

/* Gallery track animation (3枚まとめてスワイプ感を出す) */
@keyframes gallery-track-next {
    0% {
        transform: translateX(80px) scale(0.97);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes gallery-track-prev {
    0% {
        transform: translateX(-80px) scale(0.97);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

.gallery-track-anim-next {
    animation: gallery-track-next 0.8s ease forwards;
}

.gallery-track-anim-prev {
    animation: gallery-track-prev 0.8s ease forwards;
}

/* Footer styling */
footer a {
    transition: color 0.3s ease;
}

/* Airbnb埋め込みまわり：ページ背景と揃える */
#airbnb-embed-container,
#airbnb-embed-container .airbnb-embed-frame,
#airbnb-embed-container iframe {
    background-color: #FCFBF7 !important;
}

/* Floor item spacing */
.floor-item {
    padding-bottom: 0;
    border-bottom: none;
}

.floor-item:not(:last-child) {
    margin-bottom: 0;
}

/* Map (Access) section - 枠付きレイアウト */
.access-section {
    background-color: #FCFBF7;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .access-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (min-width: 1024px) {
    .access-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #322B29;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ねぐらができるまで：ら・がの線を葉っぱに */
.h2-leaf-char {
    position: relative;
    display: inline-block;
}

.h2-leaf-char::before {
    content: "";
    position: absolute;
    width: 0.55em;
    height: 0.9em;
    background-color: #92905D;
    border-radius: 50% 50% 50% 50%;
    pointer-events: none;
}

.h2-leaf-char::after {
    content: "";
    position: absolute;
    width: 0.05em;
    height: 0.7em;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    pointer-events: none;
}

.h2-leaf-char-ra::before {
    top: -0.45em;
    left: 0.05em;
    transform: rotate(-25deg);
}

.h2-leaf-char-ga::before {
    top: -0.45em;
    right: -0.05em;
    left: auto;
    transform: rotate(45deg);
}

.h2-leaf-char-ra::after {
    top: -0.3em;
    left: 0.23em;
    transform: rotate(-25deg);
}

.h2-leaf-char-ga::after {
    top: -0.3em;
    right: 0.15em;
    transform: rotate(45deg);
}

/* Mobile Bottom Navigation（コンテンツ用の余白は main にのみ） */
@media (max-width: 767px) {
    body > main {
        padding-bottom: 64px; /* モバイルナビゲーションの高さ分 */
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .concept-item {
        gap: 30px;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .concept-item {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .section-title-small {
        font-size: 24px;
    }
}

/* Text selection */
::selection {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Focus styles - キーボード操作時のみアウトライン表示（マウス時は非表示） */
a:focus,
button:focus {
    outline: none;
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
}

/* Smooth transitions */
a,
button {
    transition: all 0.3s ease;
}

/* Letter spacing adjustments */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

/* Line height adjustments */
p {
    line-height: 1.8;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* ================================================================
   ブランドギミック追加
   1. 葉・枝アニメーション  2. ひょっこり鳥  3. 線画プレースホルダー
================================================================ */

/* 1. 葉の揺れ（既存 h2-leaf-char::before の transform を上書き） */
@keyframes leaf-sway-ra {
    0%, 100% { transform: rotate(-25deg); }
    50%       { transform: rotate(-15deg) scale(1.06); }
}
@keyframes leaf-sway-ga {
    0%, 100% { transform: rotate(45deg); }
    50%       { transform: rotate(35deg) scale(1.06); }
}
.h2-leaf-char-ra::before { animation: leaf-sway-ra 4s ease-in-out infinite; }
.h2-leaf-char-ga::before { animation: leaf-sway-ga 5s ease-in-out infinite; }

/* インライン枝SVGの揺れ */
@keyframes branch-sway {
    0%, 100% { transform: rotate(0deg); }
    50%       { transform: rotate(2.5deg); }
}
.h2-branch-svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    opacity: 0.28;
    animation: branch-sway 6s ease-in-out infinite;
    transform-origin: 0% 80%;
}

/* 2. ひょっこり鳥（隠れ穴ギミック） */
.section-bird-peek {
    position: relative;
    height: 56px;
    display: flex;
    justify-content: center;
    margin-top: -28px;
    z-index: 20;
    pointer-events: none;
}
.peek-hole {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #2C2421;
    box-shadow: inset 0 5px 14px rgba(0,0,0,0.55), 0 2px 8px rgba(50,43,41,0.14);
    cursor: pointer;
    pointer-events: all;
    flex-shrink: 0;
}
.peek-bird {
    position: absolute;
    width: 34px;
    height: 34px;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    object-fit: contain;
    transition: bottom 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.peek-hole:hover .peek-bird,
.peek-hole.is-peeking .peek-bird { bottom: 4px; }

/* about セクション：画像のはみ出し・見切れ防止 */
#about {
    overflow-x: hidden;
}
/* ねぐらについて：巣・鳥を上の文字にも下の文字にもかからない位置に配置 */
#about .max-w-4xl > h2:first-of-type {
    margin-top: 5rem;
}
/* about セクション専用の巣＋ひょっこり位置調整（パソコン表示サイズで常に固定） */
.about-nest.peek-hole {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    position: absolute;
    pointer-events: auto;
    right: 0;
    top: -40px;
}
.about-nest .peek-bird {
    width: 66px;
    height: 66px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 27px;
    opacity: 0;
    pointer-events: none;
    transition: bottom 0.48s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.1s ease-out;
}
.about-nest.peek-hole::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: auto;
}
.about-nest-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.about-nest:hover .peek-bird,
.about-nest.is-peeking .peek-bird {
    opacity: 1;
    transition: bottom 0.48s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
}
/* フェードイン後の鳥を巣画像の中央に配置（120pxの中央 = 60px、鳥66pxの半分33px → bottom: 27px） */
@media (max-width: 767px) {
    .about-nest:hover .peek-bird,
    .about-nest.is-peeking .peek-bird { bottom: 27px; }
}
@media (min-width: 768px) {
    .about-nest:hover .peek-bird,
    .about-nest.is-peeking .peek-bird { bottom: 27px; }
}
