/*
Theme Name: Sorane
Theme URI: https://sorane.jp/
Author: Sorane -空寝- HEAD SPA
Author URI: https://sorane.jp/
Description: カスタムテーマ for Sorane -空寝- HEAD SPA
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sorane
*/

/* =========================================
   1. CORE SETTINGS
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg-color: #f2f2f0; /* 背景色（フレーム色） */
    --text-color: #1a1a1a;
    --accent-color: #a89060;

    --font-mincho: 'Shippori Mincho', serif;
    --font-gothic: 'Noto Sans JP', sans-serif;

    --header-height-pc: 60px;
    --frame-width-pc: 50px;
    --frame-width-sp: 20px;
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-gothic);
    line-height: 2.0;
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-mincho); font-weight: 500; margin: 0; line-height: 1.4; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }


/* =========================================
   2. STANDARD STICKY HEADER (PC/SP)
   ========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 50px; /* SPの高さ */
    background-color: var(--bg-color); /* 背景色と同化させる */
    z-index: 1000;
    display: flex; justify-content: flex-end; align-items: center;
    padding: 0 20px;
}
@media (min-width: 768px) {
    .site-header {
        height: var(--header-height-pc);
        padding: 0 50px; /* 左右のフレーム幅に合わせる */
        justify-content: space-between;
    }
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* ヘッダーナビゲーション */
.header-nav {
    position: fixed;
    top: 50px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 50px);
    background-color: var(--bg-color);
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}
.header-nav.active {
    right: 0;
}
.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 40px 0;
}
.header-nav li {
    margin: 0;
    padding: 0;
}
.header-nav a {
    display: block;
    font-family: var(--font-mincho);
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 16px 30px;
    transition: all 0.3s;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.header-nav a:hover {
    background: rgba(0, 0, 0, 0.03);
}
/* アクティブなメニュー項目 */
.header-nav .current-menu-item > a,
.header-nav .current_page_item > a,
.header-nav .current-menu-ancestor > a,
.header-nav .current_page_ancestor > a {
    color: var(--accent-color);
    background: rgba(168, 144, 96, 0.05);
}

@media (min-width: 768px) {
    .header-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        box-shadow: none;
        overflow: visible;
    }
    .header-nav ul {
        display: flex;
        gap: 30px;
        align-items: center;
        padding: 0;
    }
    .header-nav a {
        font-size: 0.9rem;
        padding: 0 0 5px 0;
        border: none;
        position: relative;
    }
    .header-nav a:hover {
        opacity: 0.6;
        background: none;
    }
    .header-nav .current-menu-item > a,
    .header-nav .current_page_item > a,
    .header-nav .current-menu-ancestor > a,
    .header-nav .current_page_ancestor > a {
        background: none;
    }
    .header-nav .current-menu-item > a::after,
    .header-nav .current_page_item > a::after,
    .header-nav .current-menu-ancestor > a::after,
    .header-nav .current_page_ancestor > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--accent-color);
    }
}

/* PC用予約ボタン：ヘッダー内に収める */
.header-btn-pc {
    display: none; /* SPでは消す */

    /* シンプルな枠線ボタンスタイル */
    border: 1px solid #1a1a1a;
    background-color: transparent;
    color: #1a1a1a;

    padding: 8px 24px;
    font-family: var(--font-mincho);
    font-size: 0.85rem;
    letter-spacing: 0.1em;

    /* カクカクしすぎないよう、ごく僅かに丸める（高級感） */
    border-radius: 2px;

    transition: all 0.3s ease;
}
.header-btn-pc:hover {
    background-color: #1a1a1a;
    color: #fff;
}
@media (min-width: 768px) {
    .header-btn-pc { display: inline-block; }
}


/* =========================================
   3. HERO SECTION (ヘッダーの下から開始)
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    /* ヘッダーの高さ分、トップを空ける（マージン確保） */
    padding-top: 50px;
    background-color: var(--bg-color);
}
@media (min-width: 768px) {
    .hero { padding-top: var(--header-height-pc); }
}

/* 画像エリアの枠組み */
/* フレームは左右と下のみ（上はヘッダーと一体化） */
.hero-frame {
    position: relative;
    width: calc(100% - 40px); /* 左右の余白分引く */
    height: calc(100dvh - 90px); /* ヘッダー分 + 下余白分を引く */
    margin: 0 auto 20px; /* 下に少し余白 */

    overflow: hidden;
    background-color: #000;

    /* ほんの少し角を落とすことで、全体の「カクカク感」を緩和 */
    border-radius: 2px;
}
@media (min-width: 768px) {
    .hero-frame {
        width: calc(100% - 100px); /* PCの左右余白 (50px * 2) */
        height: calc(100dvh - var(--header-height-pc) - 50px);
        margin: 0 auto 50px;
    }
}

/* スライドショー */
.hero-slideshow { width: 100%; height: 100%; position: relative; z-index: 0; }
.slide-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.05);
    animation: kenBurns 24s infinite;
}
/* 画像フィルター（文字視認性UP） */
.slide-item::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0, 0.3);
}

.slide-item:nth-child(1) { background-image: url('assets/images/hero-01.jpg'); animation-delay: 0s; }
.slide-item:nth-child(2) { background-image: url('assets/images/hero-02.jpg'); animation-delay: 8s; }
.slide-item:nth-child(3) { background-image: url('assets/images/hero-03.jpeg'); animation-delay: 16s; }

@keyframes kenBurns {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; }
    33.33% { opacity: 1; }
    38.33% { opacity: 0; transform: scale(1.15); }
    100% { opacity: 0; transform: scale(1.15); }
}

/* 霧（下部のみ） */
.hero-mist {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 60%, rgba(244,244,242,0.9) 100%);
    /* ↑背景色に合わせて霧の色を調整(白ではなくbg-colorに近づける) */
}

/* 影（Shadows） */
.hero-shadows {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    pointer-events: none; opacity: 0.3; mix-blend-mode: multiply;
    background-image: radial-gradient(circle at 90% 10%, rgba(0,0,0,0.4), transparent 50%);
    filter: blur(20px);
    animation: shadowSway 10s infinite alternate;
}
@keyframes shadowSway { 0% { transform: translateX(0); } 100% { transform: translateX(10px); } }

/* ノイズ */
.hero-noise {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3;
    opacity: 0.05; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* FV コンテンツ (中央配置) */
.hero-content {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    color: #fff;
}

.hero-title {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-en {
    font-family: var(--font-mincho);
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.hero-title-jp {
    font-family: var(--font-mincho);
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    margin-bottom: 30px;
    display: block;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero-line {
    width: 0; height: 1px;
    background: var(--accent-color);
    margin: 0 auto 30px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-line.visible { width: 60px; }

.hero-tagline {
    font-family: var(--font-gothic);
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.95;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* スクロール */
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10; color: rgba(255,255,255,0.8); font-size: 0.7rem; letter-spacing: 0.2em;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, #fff, transparent); animation: scrollAnim 2s infinite; }
@keyframes scrollAnim { 0% { height: 0; transform-origin: top; } 50% { height: 40px; transform-origin: top; } 51% { height: 40px; transform-origin: bottom; } 100% { height: 0; transform-origin: bottom; } }

@media (max-width: 768px) {
    .hero-title-en { font-size: 3.2rem; }
    .hero-title-jp { font-size: 1rem; }
    /* スマホはスクロール位置を少し上げる（下部ボタン回避） */
    .scroll-down { bottom: 90px; }
}


/* =========================================
   4. SP FLOATING BUTTON
   ========================================= */
.fab-sp {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px; /* 左右マージン */
    z-index: 200;

    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 16px 0;

    font-family: var(--font-mincho);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-decoration: none;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 4px; /* ここも少し角丸 */
    transform: translateY(100px); /* 初期隠し */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fab-sp.visible { transform: translateY(0); }
@media (min-width: 768px) { .fab-sp { display: none; } }


/* =========================================
   5. SECTIONS & ANIMATIONS
   ========================================= */
.blur-in { opacity: 0; filter: blur(10px); transition: all 1.2s ease; }
.blur-in.visible { opacity: 1; filter: blur(0); }
.fade-up { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.reveal-img-box { position: relative; overflow: hidden; opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.reveal-img-box.visible { opacity: 1; transform: translateY(0); }
.reveal-img-box::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-color); transform: scaleX(1); transform-origin: right; transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1); z-index: 2; }
.reveal-img-box.visible::after { transform: scaleX(0); transform-origin: left; transition-delay: 0.1s; }
.reveal-img-box img { transform: scale(1.1); transition: transform 1.5s ease-out; }
.reveal-img-box.visible img { transform: scale(1); }

section { padding: 100px 0; }
.intro { background: var(--bg-color); text-align: center; padding-top: 80px; }
.intro-lead { font-family: var(--font-mincho); font-size: 1.6rem; margin-bottom: 2.5rem; display: block; color: var(--accent-color); }
.intro-text { color: #555; text-align: justify; display: inline-block; max-width: 600px; font-size: 1rem; }

.method { background-color: #e5e5e5; }
.menu { background: var(--bg-color); }
.section-title { font-size: 2.2rem; text-align: center; margin-bottom: 4rem; color: #1a1a1a; letter-spacing: 0.15em; font-family: var(--font-mincho); }
.method-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 768px) { .method-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.method-img-wrap { width: 100%; aspect-ratio: 16/10; margin-bottom: 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.05); overflow: hidden; }
.method-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.method-item h3 { font-size: 1.3rem; border-bottom: 1px solid var(--accent-color); padding-bottom: 0.5rem; margin-bottom: 1rem; display: inline-block; }

.menu-item { border-bottom: 1px solid #ddd; padding: 40px 0; display: flex; flex-direction: column; gap: 10px; transition: background 0.3s; }
@media (min-width: 768px) {
    .menu-item { flex-direction: row; justify-content: space-between; align-items: center; padding: 50px 20px; }
    .menu-item:hover { background: rgba(0,0,0,0.02); }
}
.menu-name { font-family: var(--font-mincho); font-size: 1.5rem; color: #1a1a1a; display: block; margin-bottom: 0.5rem; margin-top: 0; font-weight: 500; }
.menu-desc { margin: 0; }
.menu-price { font-family: var(--font-mincho); font-size: 1.3rem; color: var(--accent-color); }

.location { background: #fff; text-align: center; padding-bottom: 120px; }
.shop-info p { margin-bottom: 0.5rem; color: #444; }


/* =========================================
   6. NEWS SECTION (お知らせ)
   ========================================= */
.news { background: #fff; }
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s;
}
.news-item:first-child {
    padding-top: 0;
}
.news-item:hover {
    padding-left: 8px;
    background: rgba(168, 144, 96, 0.02);
}
.news-date {
    font-family: var(--font-mincho);
    font-size: 0.85rem;
    color: #888;
    min-width: 100px;
}
.news-content {
    flex: 1;
}
.news-title {
    font-family: var(--font-mincho);
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    font-weight: 500;
    line-height: 1.6;
    transition: color 0.3s;
}
.news-item:hover .news-title {
    color: var(--accent-color);
}
.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}
.news-link {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #1a1a1a;
    font-family: var(--font-mincho);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}
.news-link:hover {
    background-color: #1a1a1a;
    color: #fff;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 10px;
    }
    .news-date {
        min-width: auto;
    }
}

/* ページネーション */
.pagination {
    margin-top: 60px;
    text-align: center;
}
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-mincho);
    font-size: 0.85rem;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.pagination .prev,
.pagination .next {
    font-size: 0.8rem;
}

/* 投稿がない場合 */
.no-posts {
    text-align: center;
    color: #888;
    padding: 60px 0;
    font-family: var(--font-mincho);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}


/* =========================================
   9. お知らせ専用（シンプルリスト）
   ========================================= */
.news-simple-list {
    max-width: 800px;
    margin: 0 auto;
}
.news-simple-item {
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.3s;
}
.news-simple-item a {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    align-items: center;
}
.news-simple-item:hover {
    background: rgba(168, 144, 96, 0.02);
}
.news-simple-date {
    font-family: var(--font-mincho);
    font-size: 0.85rem;
    color: #888;
    min-width: 90px;
    flex-shrink: 0;
}
.news-simple-title {
    font-family: var(--font-mincho);
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s;
}
.news-simple-item:hover .news-simple-title {
    color: var(--accent-color);
}
@media (max-width: 768px) {
    .news-simple-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }
    .news-simple-date {
        min-width: auto;
    }
    .news-simple-title {
        font-size: 0.95rem;
    }
}


/* =========================================
   10. コラム専用（カード形式）
   ========================================= */
.blog-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 100%;
    }
}
.blog-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s;
}
.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.blog-card-link {
    display: block;
    color: inherit;
}
.blog-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f5f5f5;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
}
.blog-card-image-placeholder span {
    font-family: var(--font-mincho);
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 0.1em;
}
.blog-card-content {
    padding: 24px;
}
.blog-card-date {
    font-family: var(--font-mincho);
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 12px;
}
.blog-card-title {
    font-family: var(--font-mincho);
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0 0 12px;
    transition: color 0.3s;
}
.blog-card:hover .blog-card-title {
    color: var(--accent-color);
}
.blog-card-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================
   7. FOOTER
   ========================================= */
footer {
    padding: 50px 30px 30px;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    border-top: 1px solid #ddd;
    background: #fff;
}
.footer-nav {
    margin-bottom: 30px;
}
.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li {
    margin: 0;
    padding: 0;
}
.footer-nav a {
    font-family: var(--font-mincho);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}
.footer-nav a:hover {
    opacity: 0.6;
}
/* アクティブなメニュー項目 */
.footer-nav .current-menu-item > a,
.footer-nav .current_page_item > a,
.footer-nav .current-menu-ancestor > a,
.footer-nav .current_page_ancestor > a {
    color: var(--accent-color);
    font-weight: 500;
}


/* =========================================
   8. ARCHIVE & SINGLE PAGES
   ========================================= */
.page-header {
    text-align: center;
    padding: 140px 0 50px;
    background: var(--bg-color);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent-color);
}
.page-title {
    font-family: var(--font-mincho);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #1a1a1a;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    .page-title {
        font-size: 1.6rem;
    }
}
.archive-list {
    background: #fff;
    padding: 60px 0 100px;
}
.archive-list .container {
    max-width: 800px;
}
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 100px;
    background: #fff;
}
.post-header {
    margin-bottom: 3rem;
}
.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}
.post-title {
    font-size: 2.2rem;
    line-height: 1.5;
}
.post-content {
    line-height: 2;
}
.post-content h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}
.post-content h3 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
}
.post-content p {
    margin-bottom: 1.5rem;
}
.post-content img {
    margin: 2rem auto;
}
