/* --- デザインシステム トークン & カスタムプロパティ --- */
:root {
    /* 優しいボディーワークカラーパレット (HSL) */
    --color-bg-primary: #fcfbfa;       /* 温かみのある極薄のウォームクリーム */
    --color-bg-secondary: #f3f1ed;     /* 少し濃いめのストーンベージュ */
    --color-sage: #687e8c;             /* セージグリーン（呼吸を促すおだやかな色） */
    --color-sage-light: #8ca0ad;
    --color-sage-dark: #4c5e6b;
    --color-accent-gold: #c3a67d;      /* 柔らかいアースゴールド */
    --color-text-dark: #2c3539;        /* 濃いチャコール（真っ黒を避ける） */
    --color-text-muted: #6b7280;       /* ミュートグレー */
    --color-white: #ffffff;
    
    /* フォントファミリー */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Outfit', sans-serif;
    
    /* 共通シャドウ & エフェクト */
    --shadow-sm: 0 2px 4px rgba(104, 126, 140, 0.05);
    --shadow-md: 0 4px 15px rgba(104, 126, 140, 0.08);
    --shadow-lg: 0 10px 30px rgba(104, 126, 140, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- ベースリセット & レイアウト --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif-font {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    color: var(--color-sage-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent-gold);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- ヘッダー & ナビゲーション --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(252, 251, 250, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

.site-header.scrolled .header-container {
    height: 64px;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
}

.site-logo span {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.9rem;
    display: block;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 16px; /* 22pxから16pxに縮小し、折り返しを強力に防止 */
}

.nav-link {
    font-size: 0.86rem; /* 0.9remから0.86remに微調整し、よりエレガントかつコンパクトに */
    font-weight: 500;
    color: var(--color-text-dark);
    letter-spacing: 0.04em;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* 言語切り替えトグル */
.lang-toggle {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-secondary);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(104, 126, 140, 0.1);
}

.lang-btn {
    border: none;
    background: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-text-muted);
}

.lang-btn.active {
    background-color: var(--color-sage);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text-dark);
}

/* --- ボタンコンポーネント --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-sage);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-sage-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-sage);
    color: var(--color-sage);
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--color-accent-gold);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
    background-color: #b2936a;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- ヒーローセクション --- */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    overflow: hidden;
    text-align: center;
}

.hero-bg-accent {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(104,126,140,0.06) 0%, rgba(252,251,250,0) 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 24px;
    display: block;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.3;
    color: var(--color-text-dark);
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    animation: slideUp 1s ease-out;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: slideUp 1.2s ease-out;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideUp 1.4s ease-out;
}

/* --- セクション共通レイアウト --- */
.section {
    padding: 100px 0;
}

.section-bg-alt {
    background-color: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* --- スケジュールウィジェット（開催日案内） --- */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.schedule-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(104, 126, 140, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--color-sage);
}

.schedule-card.featured::before {
    background-color: var(--color-accent-gold);
}

.schedule-card.full::before {
    background-color: var(--color-text-muted);
}

.schedule-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.event-tag {
    background-color: var(--color-bg-secondary);
    color: var(--color-sage-dark);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
}

.event-slots {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent-gold);
}

.schedule-card.full .event-slots {
    color: var(--color-text-muted);
}

.event-title {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
}

.event-meta {
    list-style: none;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.event-meta li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.event-meta li i {
    color: var(--color-sage);
    font-size: 0.95rem;
    width: 16px;
}

.card-btn {
    width: 100%;
}

/* --- 体験談カルーセル（変容の物語） --- */
.stories-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.story-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(104, 126, 140, 0.03);
    display: none; /* JSでスライド制御 */
    animation: fadeIn 0.6s ease;
}

.story-card.active {
    display: block;
}

.story-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    position: relative;
}

.story-quote::before {
    content: "“";
    font-size: 4rem;
    font-family: serif;
    color: rgba(195, 166, 125, 0.2);
    position: absolute;
    top: -24px;
    left: -20px;
    line-height: 1;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.story-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-sage);
    border: 1px solid rgba(104, 126, 140, 0.1);
}

.author-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.author-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    background: var(--color-white);
    border: 1px solid rgba(104, 126, 140, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    color: var(--color-sage-dark);
    font-size: 1.1rem;
}

.carousel-btn:hover {
    background-color: var(--color-sage);
    color: var(--color-white);
    border-color: var(--color-sage);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--color-accent-gold);
    width: 24px;
    border-radius: 4px;
}

/* --- セッションアコーディオン --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(104, 126, 140, 0.04);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background-color: rgba(104, 126, 140, 0.02);
}

.accordion-title-box h3 {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.accordion-title-box span {
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    font-weight: 500;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    color: var(--color-text-muted);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-accent-gold);
}

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-item.active .accordion-content {
    padding: 0 30px 30px 30px;
    border-top: 1px solid rgba(104, 126, 140, 0.05);
}

.accordion-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.accordion-text p {
    margin-bottom: 12px;
}

.accordion-text ul {
    list-style: none;
    margin-top: 12px;
    padding-left: 4px;
}

.accordion-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.accordion-text ul li::before {
    content: "•";
    color: var(--color-accent-gold);
    position: absolute;
    left: 4px;
    font-size: 1.2rem;
    line-height: 1;
}

/* --- ブロググリッド --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(104, 126, 140, 0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-img-box {
    width: 100%;
    height: 200px;
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-img-box i {
    font-size: 3rem;
    color: rgba(104, 126, 140, 0.2);
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    display: block;
}

.blog-title {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    height: 3em;
    overflow: hidden;
}

.blog-readmore {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-sage-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-readmore:hover {
    color: var(--color-accent-gold);
}

/* --- お申し込みフォーム専用 --- */
.booking-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(104, 126, 140, 0.03);
}

.booking-success {
    text-align: center;
    padding: 40px 0;
}

.booking-success i {
    font-size: 4rem;
    color: var(--color-accent-gold);
    margin-bottom: 24px;
}

.booking-success h3 {
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.booking-success p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(104, 126, 140, 0.2);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    background-color: var(--color-bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(104, 126, 140, 0.1);
    background-color: var(--color-white);
}

.form-control[readonly] {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    display: block;
}

/* スパムハニーポット対策 */
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

/* --- ブログ記事詳細 --- */
.post-header {
    text-align: center;
    padding-top: 150px;
    padding-bottom: 50px;
}

.post-meta-info {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.post-title-main {
    font-size: 2.6rem;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.post-eyecatch {
    max-width: 900px;
    margin: 0 auto 50px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
    background-color: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-body {
    max-width: 750px;
    margin: 0 auto 80px auto;
    font-size: 1.05rem;
    line-height: 2.0;
    color: var(--color-text-dark);
}

.post-content-body p {
    margin-bottom: 30px;
    text-align: justify;
}

/* --- 管理画面レイアウト（ポータル／ダッシュボード） --- */
.admin-body {
    background-color: #f0f2f5;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 管理画面サイドバー */
.admin-sidebar {
    width: 260px;
    background-color: #2c3539;
    color: var(--color-white);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    z-index: 100;
}

.admin-logo {
    padding: 0 24px;
    margin-bottom: 40px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    letter-spacing: 0.1em;
}

.admin-logo span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    display: block;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.admin-menu {
    list-style: none;
    flex-grow: 1;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.admin-menu-link:hover, .admin-menu-item.active .admin-menu-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-left: 4px solid var(--color-accent-gold);
}

.admin-menu-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.admin-logout {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* 管理画面メインコンテンツ */
.admin-content-area {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.admin-title p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ダッシュボードカード */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(104, 126, 140, 0.1);
    color: var(--color-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* アクセス解析グラフセクション */
.admin-chart-box {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container-inner {
    position: relative;
    height: 300px;
    width: 100%;
}

.admin-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.table-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.table-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-table th {
    font-weight: 600;
    color: var(--color-text-muted);
}

/* 統合管理ポータル（グリッド） */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portal-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(104, 126, 140, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.portal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(104, 126, 140, 0.1);
    color: var(--color-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.portal-card.log .portal-icon {
    background-color: rgba(195, 166, 125, 0.1);
    color: var(--color-accent-gold);
}

.portal-name h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.portal-name span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.portal-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* AIエディタレイアウト */
.editor-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.editor-main-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.ai-panel-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-panel-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-sage-dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}

.ai-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.ai-btn-gemini {
    background-color: #f0f4f9;
    color: #0b57d0;
    border-color: #d3e3fd;
}

.ai-btn-gemini:hover {
    background-color: #e0e8f6;
}

.ai-btn-imagen {
    background-color: #fdf5e6;
    color: var(--color-accent-gold);
    border-color: #faebd7;
}

.ai-btn-imagen:hover {
    background-color: #faf0e6;
}

/* 模擬ローディング表示 */
.ai-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(104, 126, 140, 0.1);
    border-top: 5px solid var(--color-sage);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.ai-suggestion-box {
    background-color: #f7fafc;
    border: 1px solid rgba(104, 126, 140, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.85rem;
    white-space: pre-line;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

/* AI生成イメージ表示 */
.ai-image-preview-container {
    display: none;
    margin-top: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 150px;
    position: relative;
}

.ai-image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- フッター --- */
.site-footer {
    background-color: var(--color-bg-secondary);
    padding: 60px 0;
    border-top: 1px solid rgba(104, 126, 140, 0.05);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-nav-link {
    color: var(--color-text-dark);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

/* --- アニメーション効果キーフレーム --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- メディアクエリ（レスポンシブ） --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .accordion-header {
        padding: 20px 24px;
    }
    
    .editor-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-table-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .site-header {
        height: auto;
    }
    
    .header-container {
        height: 70px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none; /* スマホトグル用 */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-primary);
        flex-direction: column;
        padding: 30px 24px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid rgba(104, 126, 140, 0.05);
        gap: 20px;
        align-items: stretch;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .lang-toggle {
        align-self: center;
        margin-top: 10px;
    }
    
    .hero-section {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .story-card {
        padding: 30px;
    }
    
    .story-quote {
        font-size: 1.1rem;
    }
    
    .booking-container {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        padding: 20px 0;
    }
    
    .admin-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-menu-link {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .admin-content-area {
        padding: 20px;
        height: auto;
    }
    
    .post-title-main {
        font-size: 1.8rem;
    }
    
    .post-eyecatch {
        height: 250px;
    }
    
    /* モバイルではフッターメニューを非表示にする (レイアウト崩れの防止) */
    .footer-nav {
        display: none;
    }
}

/* タブレット・小画面デスクトップ用のメニュー折り返し防止調整 */
@media (min-width: 769px) and (max-width: 1280px) {
    .nav-menu {
        gap: 10px; /* ギャップをさらに狭めて1行に収める */
    }
    .nav-link {
        font-size: 0.8rem; /* フォントを少し小さく */
        letter-spacing: 0.02em;
    }
    .site-logo {
        font-size: 1.15rem; /* ロゴを若干コンパクトに */
    }
    .site-logo span {
        font-size: 0.7rem;
    }
}
