/*
Theme Name: Portfolio Theme
Theme URI: https://example.com/portfolio-theme
Author: Your Name
Author URI: https://example.com
Description: 制作会社のポートフォリオサイト用カスタムテーマ。レスポンシブデザイン、カスタムメニュー、ウィジェット対応。
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: portfolio-theme
Tags: portfolio, responsive, custom-menu, widget-ready, translation-ready
*/

/* ============================================
   カラーパレット - CSS変数
   ============================================ */
:root {
    /* Original Color Variables (for compatibility) */
    --color-main-bg: #FAFAFA;
    --color-text: #222222;
    --color-text-sub: #666666;
    --color-brand: #F6A7C1;
    --color-accent: #E85C88;
    --color-border: #DDDDDD;
    --color-bg-alt: #FFF6F9;
    --color-white: #FFFFFF;

    /* Modern Color Palette */
    --color-primary: #2563eb;
    --color-secondary: #64748b;
    --color-bg: #ffffff;
    --color-text-light: #64748b;

    /* Typography */
    --font-display: 'Tenor Sans', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-mono: 'Courier New', monospace;

    /* スペーシング */
    --spacing-unit: 8px;
    --spacing-xs: calc(var(--spacing-unit) * 1);
    --spacing-sm: calc(var(--spacing-unit) * 2);
    --spacing-md: calc(var(--spacing-unit) * 3);
    --spacing-lg: calc(var(--spacing-unit) * 4);
    --spacing-xl: calc(var(--spacing-unit) * 6);
    --spacing-2xl: calc(var(--spacing-unit) * 8);

    /* その他 */
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* ============================================
   リセット & ベーススタイル
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

/* フォント表示用クラス */
.font-display {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* スクリーンリーダー用テキスト（視覚的に非表示、アクセシビリティ用） */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #FAFAFA !important;
    height: 100%;
    overflow-x: hidden;
    /* 横スクロールを防ぐ（iOS Safari対策） */
    -webkit-overflow-scrolling: touch;
    /* iOS Safari のスムーズスクロール */
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #FAFAFA !important;
    background-image: none !important;
    min-height: 100vh !important;
    height: auto !important;
    color: #222222;
    font-family: 'Noto Sans JP';
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    /* 横スクロールを防ぐ（iOS Safari対策） */
    position: relative;
    /* ヘッダーの基準点を明確にする */
}

/* Comprehensive background override for all page types */
body.home,
body.home.blog,
body.post-type-archive-member,
body.single-member,
body.post-type-archive-works,
body.single-works {
    background: #FAFAFA !important;
    /* Shorthand to override all background properties */
    background-image: none !important;
    background-attachment: fixed !important;
}

/* 見出しタグのフォント指定 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans JP', sans-serif;
}

/* ナビゲーションメニューのフォント指定 */
.main-navigation,
.nav-menu,
.menu {
    font-family: 'Noto Sans JP', sans-serif;
}

/* ヒーローセクションのフォント指定 */
.hero-title,
.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
}

/* main要素のマージン削除 */
main,
.main-content,
.site-content {
    margin: 0;
    padding: 0;
}

/* ヘッダー直後の要素の調整 */
.site-header+* {
    margin-top: 0 !important;
}

/* ============================================
   ヘッダー - 固定ヘッダー
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #FAFAFA !important;
    background-image: none !important;
    opacity: 0;
    /* 初期状態は非表示（本文と一緒にフェードイン） */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #DDDDDD;
    z-index: 9999;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: none;
    box-shadow: none;
    transform: none !important;
    -webkit-transform: translateZ(0);
    /* iOS Safari での固定ヘッダー問題を解決 */
    will-change: transform;
    /* GPU アクセラレーションを有効化 */
}

/* 読み込み完了時（ヘッダーも表示） */
body.is-loaded .site-header {
    opacity: 1 !important;
}

.header-logo {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

.header-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

.site-title a:hover {
    color: var(--color-accent);
}

/* ============================================
   ナビゲーションメニュー
   ============================================ */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* PCヘッダーメニュー：HOMEとNEWSを非表示（5項目のみ） */
@media (min-width: 769px) {

    .main-navigation .menu-item-home,
    .main-navigation .menu-item-news {
        display: none;
    }
}

/* PC版でメニューを確実に表示 */
@media (min-width: 769px) {
    .main-navigation ul.menu {
        display: flex !important;
    }

    .menu-toggle {
        display: none !important;
    }
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* キーボード操作時のみフォーカス表示（マウス操作では表示しない） */
.main-navigation a:focus-visible {
    color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.main-navigation a:focus-visible::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--color-text);
}

/* ============================================
   スマホ用ハンバーガーメニュー
   ============================================ */
@media (max-width: 768px) {

    /* ハンバーガーボタンを表示 */
    .menu-toggle {
        display: block !important;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        z-index: 1001;
        cursor: pointer;
        color: #222;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
        background: rgba(232, 92, 136, 0.1);
    }

    /* クリック後はフォーカススタイルを表示しない */
    .menu-toggle:focus:not(:focus-visible) {
        outline: none;
        background: transparent;
    }

    .menu-toggle span:not(.screen-reader-text) {
        font-size: 24px;
        line-height: 1;
    }

    /* 通常時：メニューを非表示 */
    .main-navigation ul.menu {
        display: none;
        position: fixed;
        top: 50px;
        right: 0;
        width: 280px;
        max-height: calc(100vh - 50px);
        background: #FAFAFA;
        flex-direction: column;
        padding: 20px 30px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    /* メニューが開いている時 */
    .main-navigation.is-open ul.menu {
        display: flex !important;
    }

    .main-navigation ul.menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-navigation ul.menu li:last-child {
        border-bottom: none;
    }

    .main-navigation ul.menu a {
        display: block;
        padding: 18px 0;
        font-size: 16px;
        font-weight: 500;
        color: #222;
    }

    .main-navigation ul.menu a::after {
        display: none;
    }

    /* ヘッダー調整（スマホ版は常時表示） */
    .site-header {
        padding: 0 15px;
        height: 50px;
        background: #FAFAFA !important;
        border-bottom: 1px solid #DDDDDD;
        transform: none !important;
        -webkit-transform: translateZ(0) !important;
        /* iOS Safari での固定ヘッダー問題を解決 */
        will-change: transform;
        /* GPU アクセラレーションを有効化 */
    }

    .header-logo {
        height: 24px;
    }

    /* TOPページでもヘッダーを常時表示 */
    body.home .site-header {
        opacity: 1 !important;
        transform: none !important;
        background: #FAFAFA !important;
    }
}

/* ============================================
   ヒーローセクション
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
}

.hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-placeholder-default {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 少し濃いめのオーバーレイ */
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* TOPページのヒーロー動画には1pxドット網掛けを適用（front-page.phpで上書き） */
body.home .hero-section-rebuild .hero-overlay {
    /* front-page.phpのスタイルが優先されるように、ここでは何も設定しない */
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

/* メインタイトル：ジャンプ率を大きく */
.hero-title {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin: 0 0 32px 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* サブタイトル：対比を強調 */
.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2em;
    margin: 0 0 56px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* CTAボタン：ミニマルデザイン */
.hero-cta {
    /* Mobile: Centered below content */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    /* Slightly smaller on mobile */
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    font-family: var(--font-display);
    margin-top: 40px;
    /* Space from content on mobile */
    position: relative;
    /* Default for mobile */
    z-index: 10;
}

/* Desktop: Absolute Bottom Right */
@media screen and (min-width: 768px) {
    .hero-cta {
        position: absolute;
        bottom: 40px;
        right: 40px;
        margin-top: 0;
        font-size: 24px;
    }
}

/* ボタンホバー：矢印移動 */
.hero-cta:hover {
    gap: 20px;
    opacity: 0.8;
}

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スクロールアニメーション用クラス */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ============================================
   コンテナ & レイアウト
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent !important;
    overflow: visible !important;
}

.site-content {
    flex: 1;
    padding-top: 60px;
    background: transparent !important;
    margin: 0;
    padding: 0;
}

/* ============================================
   WORKSセクション
   ============================================ */
.works-section {
    padding: 80px 0;
    background-color: transparent !important;
    font-family: 'Noto Sans JP', sans-serif;
}

.works-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0;
}

.filter-btn {
    padding: 12px 24px;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Noto Sans JP', sans-serif;
}

.filter-btn:hover,
.filter-btn:focus {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232, 92, 136, 0.3);
    /* フォーカス時の視覚的フィードバック */
}

.filter-btn.active {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.works-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.works-card:nth-child(1) {
    animation-delay: 0.1s;
}

.works-card:nth-child(2) {
    animation-delay: 0.2s;
}

.works-card:nth-child(3) {
    animation-delay: 0.3s;
}

.works-card:nth-child(4) {
    animation-delay: 0.4s;
}

.works-card:nth-child(5) {
    animation-delay: 0.5s;
}

.works-card:nth-child(6) {
    animation-delay: 0.6s;
}

.works-card:nth-child(7) {
    animation-delay: 0.7s;
}

.works-card:nth-child(8) {
    animation-delay: 0.8s;
}

.works-card:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.works-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.works-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9のアスペクト比 */
    overflow: hidden;
    background-color: var(--color-border);
}

.works-card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.works-card-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-border);
    color: var(--color-text-sub);
    font-family: 'Noto Sans JP', sans-serif;
}

.works-card:hover .works-card-thumbnail {
    transform: scale(1.1);
}

.works-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.works-card:hover .works-card-overlay {
    opacity: 1;
}

.works-card-info {
    color: var(--color-white);
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
}

.works-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-white);
    font-family: 'Noto Sans JP', sans-serif;
}

.works-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.works-card-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--color-brand);
    color: var(--color-white);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
}

.works-card-year {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-family: 'Noto Sans JP', sans-serif;
}

.no-works-message {
    text-align: center;
    color: var(--color-text-sub);
    padding: 40px 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ============================================
   最新実績セクション（既存）
   ============================================ */
.latest-works-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 10px;
}

.latest-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.latest-works-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--color-white);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.latest-works-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.latest-works-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.latest-works-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: var(--color-border);
}

.latest-works-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-works-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-border);
    color: var(--color-text-sub);
}

.latest-works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-works-item:hover .latest-works-overlay {
    opacity: 1;
}

.latest-works-item:hover .latest-works-thumbnail {
    transform: scale(1.1);
}

.latest-works-info {
    color: var(--color-white);
    width: 100%;
}

.latest-works-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--color-white);
}

.latest-works-category {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.section-footer {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background-color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 92, 136, 0.3);
}

.no-works-message {
    text-align: center;
    color: var(--color-text-sub);
    padding: 40px 0;
}

/* ============================================
   Service Section
   ============================================ */
/* ============================================
   Service Section (Bento Grid)
   ============================================ */
.service-section {
    padding: 120px 20px;
    background: var(--color-main-bg);
    position: relative;
    overflow: hidden;
}

/* グラスモーフィズム用の背景装飾 */
.service-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(246, 167, 193, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.service-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(232, 92, 136, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.service-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    font-style: normal;
    color: var(--color-text);
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--color-text);
}

/* Bento Grid Layout (Zigzag) */
.bento-grid-section {
    margin-bottom: 120px;
}

.bento-grid-section:last-child {
    margin-bottom: 0;
}

/* Service Grid Layout (3 Columns) */
.service-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
}

.span-2 {
    grid-column: span 2;
}

/* Service Card */
.service-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    /* Slightly sharper for modern look */
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Card Background (Image) */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover .card-bg img {
    transform: scale(1.1);
}

/* Glassmorphism Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.service-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    z-index: 3;
}

.card-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 12px 0;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
    max-width: 90%;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

/* Hover Interaction: Text Slide */
.service-card:hover .card-title {
    transform: translateY(-4px);
}

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

/* View More Button (Optional/Hidden by default, appears on hover or just implied) */
.view-more-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-white);
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.service-card:hover .view-more-icon {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .col-span-2 {
        grid-column: span 2;
    }

    .row-span-2 {
        grid-row: span 1;
    }

    /* Mobile: reduce height */
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        height: 250px;
    }

    .hero-title {
        font-size: 48px;
    }
}



.service-category {
    margin-bottom: 80px;
}

.service-category:last-child {
    margin-bottom: 0;
}

/* カテゴリタイトル */
.category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 40px 0;
    padding-left: 20px;
    border-left: 4px solid var(--color-brand);
}

/* グリッドレイアウト - リズム感のある配置 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* 2列目以降のカードを少し下げる（リズム感） */
.service-cards .service-card:nth-child(2n) {
    margin-top: 40px;
}

/* 4列目以降はさらに下げる */
.service-cards .service-card:nth-child(4n) {
    margin-top: 60px;
}

/* サービスカード：グラスモーフィズム */
.service-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* カードホバー：リフト + シャドウ強化 */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(246, 167, 193, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* カード画像エリア */
.card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* 画像ホバーズーム */
.service-card:hover .card-image img {
    transform: scale(1.08);
}

/* カードオーバーレイ */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(246, 167, 193, 0.85) 0%,
            rgba(232, 92, 136, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .card-overlay {
    opacity: 1;
}

/* CTAテキスト */
.view-more {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.05em;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.service-card:hover .view-more {
    transform: translateY(0);
}

/* カードコンテンツ */
.card-content {
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* カードタイトル */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* カード説明文 */
.card-description {
    font-size: 14px;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Works Page
   ============================================ */
.works-page {
    padding-top: 60px;
    /* ヘッダーの高さ分 */
    min-height: 100vh;
    background-color: var(--color-main-bg);
}

.works-page .page-header {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, rgba(246, 167, 193, 0.1), rgba(232, 92, 136, 0.1));
}

.works-page .page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.works-page .page-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-sub);
    font-family: 'Noto Sans JP', sans-serif;
}

.works-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* カテゴリーフィルター */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 25px;
    color: var(--color-text-sub);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* 実績グリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.work-link {
    display: block;
    text-decoration: none;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0 0.3s ease;
}

.work-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232, 92, 136, 0.2);
}

.work-thumbnail {
    position: relative;
    padding-top: 66.67%;
    /* 3:2 アスペクト比 */
    overflow: hidden;
    background-color: var(--color-border);
}

.work-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-link:hover .work-thumbnail img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(246, 167, 193, 0.9), rgba(232, 92, 136, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-link:hover .work-overlay {
    opacity: 1;
}

.view-detail {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
}

.work-info {
    padding: 20px;
}

.work-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.work-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    margin-right: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.work-date {
    font-size: 12px;
    color: var(--color-text-sub);
    font-family: 'Noto Sans JP', sans-serif;
}

.no-works {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-sub);
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
}


/* ============================================
   サービス紹介セクション（既存）
   ============================================ */
.services-section {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-text);
}

.service-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-sub);
}

/* ============================================
   背景色の強制適用（シンプル版）
   ============================================ */

/* シンプルかつ強力な背景指定 */
html,
body {
    background: #FAFAFA !important;
    background-color: #FAFAFA !important;
    background-image: none !important;
    /* グラデーション画像を確実に消す */
}

.site-wrapper {
    background: transparent !important;
    overflow: visible !important;
}

.site-footer {
    display: block !important;
    /* 確実に表示 */
    background-color: #222222 !important;
    /* ブランドブラックに統一 */
    color: #fff !important;
    position: relative;
    z-index: 10;
}

/* ============================================
   投稿一覧
   ============================================ */
.post-list {
    list-style: none;
}

.post-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.post-title a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--color-accent);
}

.post-meta {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-excerpt {
    margin-bottom: 15px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--color-brand);
}

/* ============================================
   投稿詳細
   ============================================ */
.single-post .post-content {
    line-height: 1.8;
    margin-bottom: 30px;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-content h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.single-post .post-content h3 {
    font-size: 20px;
    margin: 25px 0 12px 0;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* ============================================
   WORKS Page Styles (Redesign)
   ============================================ */

/* Filter Menu (Minimal Text) */
.works-filter {
    margin-bottom: 4rem;
    padding: 0;
}

.works-filter {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.works-filter ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.works-filter li {
    margin: 0;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 16px;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active,
.works-filter li.current-cat .filter-btn {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

/* Works Grid (2 Columns) */
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 col */
    gap: 4rem;
    /* Gap 16 equivalent approx */
    margin-bottom: 6rem;
    min-height: 50vh;
    /* Prevent footer jump */
    justify-content: start;
    /* Align grid items to start */
    align-content: start;
    transition: opacity 0.3s ease;
    /* Fade transition for filtering */
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Desktop: 2 col */
        gap: 5rem;
        /* Larger gap */
    }
}

/* Work Card */
.work-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.4s ease;
    opacity: 1;
    transform: scale(1);
    /* For Tailwind-like group hover if needed, but using CSS hover */
}

.work-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    /* Prevent clicks while hiding */
}

.work-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 1.5rem;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Play Icon Overlay */
.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 24px;
    padding-left: 4px;
    /* Visual adjustment for triangle */
}

/* Card Meta */
.work-card-meta {
    text-align: left;
}

.work-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.work-card-category {
    font-family: var(--font-display);
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal Styles */
.works-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.works-modal.active {
    opacity: 1;
    visibility: visible;
}

.works-modal-content {
    width: 100%;
    max-width: 900px;
    background: transparent;
    position: relative;
    color: #fff;
}

.works-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.works-modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
    margin-bottom: 2rem;
}

.works-modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.works-modal-info {
    text-align: left;
}

.works-modal-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 1rem;
}

.works-modal-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.works-modal-credits {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 13px;
}

.credit-item {
    display: block;
    margin-bottom: 0.5rem;
}

/* Modal Credit Visibility */
.work-credit-label,
.modal-credit dt,
.credit-role {
    color: #d1d5db !important;
    /* Tailwind gray-300 */
    font-weight: 500;
    margin-right: 0.5rem;
}

.work-credit-name a,
.modal-credit dd a,
.credit-name,
.credit-name a {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: #555;
    transition: color 0.3s ease;
}

.credit-name:hover,
.credit-name a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   ページネーション
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.pagination .current {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* ============================================
   ウィジェット
   ============================================ */
.widget {
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 4px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

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

/* ============================================
   フッター
   ============================================ */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    text-decoration: none;
    color: var(--color-white);
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--color-brand);
}

/* ============================================
   実績一覧ページ (archive-works.php)
   ============================================ */
.works-archive {
    padding: 40px 0;
    margin-top: 80px;
}

.works-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.works-archive-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-text);
}

.works-archive-description {
    font-size: 16px;
    color: var(--color-text-sub);
    max-width: 800px;
    margin: 0 auto;
}

.works-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s;
    outline: none;
}

.filter-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.filter-btn.active {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.works-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.works-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.works-item-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: var(--color-border);
}

.works-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.works-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-border);
    color: var(--color-text-sub);
}

.works-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.works-item:hover .works-item-overlay {
    opacity: 1;
}

.works-item:hover .works-thumbnail {
    transform: scale(1.1);
}

.works-item-info {
    color: var(--color-white);
    width: 100%;
}

.works-item-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--color-white);
}

.works-item-categories {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.works-pagination {
    margin-top: 40px;
}

/* ============================================
   実績詳細ページ (single-works.php)
   ============================================ */
.single-works {
    margin-bottom: 40px;
    margin-top: 80px;
}

.works-header {
    margin-bottom: 30px;
}

.works-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-text);
}

.works-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.works-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.works-category-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.works-category-tag:hover {
    opacity: 0.8;
    color: var(--color-white);
}

.works-production-date {
    font-size: 14px;
    color: var(--color-text-sub);
}

.works-production-date .meta-label {
    font-weight: 500;
    margin-right: 5px;
}

.works-hero {
    margin-bottom: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.works-hero-image {
    width: 100%;
}

.works-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.works-hero-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
}

.works-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.works-video-container iframe,
.works-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.works-content {
    margin-bottom: 60px;
}

.works-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 60px;
}

.works-description p {
    margin-bottom: 20px;
}

.works-description h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.works-description h3 {
    font-size: 20px;
    margin: 25px 0 12px 0;
}

.works-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.works-credits {
    margin-top: 0;
    margin-bottom: 60px;
    padding: 30px;
    background-color: var(--color-bg-alt);
    border-radius: 8px;
}

.works-credits-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #333;
}

.works-credits-content .member-link {
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #222;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.works-credits-content .member-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.works-section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-text);
}

.works-credits-table {
    width: 100%;
    border-collapse: collapse;
}

.works-credits-table tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.works-credits-table tbody tr:last-child {
    border-bottom: none;
}

.works-credits-table td {
    padding: 12px 0;
    vertical-align: top;
}

.credit-role {
    font-weight: 500;
    width: 40%;
    color: var(--color-text);
}

.credit-name {
    color: var(--color-text-sub);
}

/* Single Works コンテナ（サイドバー削除後の中央寄せレイアウト） */
.single-works-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.single-works-content {
    width: 100%;
}

/* リッチナビゲーション（サムネイル背景エフェクト付き） */
.works-nav-rich {
    margin-top: 60px;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid #eee;
    background: transparent;
    border: none;
    border-top: 1px solid #eee;
    box-shadow: none;
    border-radius: 0;
    height: auto;
    min-height: 0;
}

.works-nav-rich-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    height: auto;
    min-height: 0;
    gap: 20px;
}

.works-nav-rich-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    background: transparent !important;
    border: none;
    box-shadow: none;
    border-radius: 8px;
    padding: 0;
    height: auto;
    min-height: 200px;
    color: #FAFAFA;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.works-nav-rich-link:hover {
    background: transparent !important;
    color: #E85C88;
}

.works-nav-rich-link.works-nav-prev {
    text-align: left;
    justify-content: flex-start;
}

.works-nav-rich-link.works-nav-next {
    text-align: right;
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.works-nav-rich-empty {
    flex: 1;
    min-width: 0;
}

/* 背景サムネイル画像 */
.works-nav-rich-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.works-nav-rich-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, filter 0.5s ease;
    opacity: 0;
    filter: blur(0);
}

.works-nav-rich-link:hover .works-nav-rich-image {
    opacity: 0.6;
    filter: blur(8px);
}

.works-nav-rich-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.works-nav-rich-link:hover .works-nav-rich-overlay {
    opacity: 1;
}

/* テキストと矢印（前面表示） */
.works-nav-rich-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 2rem 2.5rem;
    width: 100%;
    height: 100%;
}

.works-nav-rich-link.works-nav-prev .works-nav-rich-content {
    justify-content: flex-start;
}

.works-nav-rich-link.works-nav-next .works-nav-rich-content {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.works-nav-rich-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #FAFAFA;
    transition: all 0.3s ease;
}

.works-nav-rich-link:hover .works-nav-rich-arrow {
    color: #E85C88;
    transform: translateX(-8px);
}

.works-nav-rich-link.works-nav-next:hover .works-nav-rich-arrow {
    transform: translateX(8px);
}

.works-nav-rich-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.works-nav-rich-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FAFAFA;
    transition: color 0.3s ease;
}

.works-nav-rich-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 0.25rem;
    color: #FAFAFA;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .works-nav-rich-title {
        font-size: 1.25rem;
    }
}

.works-nav-rich-link:hover .works-nav-rich-label {
    color: #E85C88;
}

.works-nav-rich-link:hover .works-nav-rich-title {
    color: #E85C88;
}

/* Works CTA Section (Conversion) */
.works-cta-section {
    padding: 90px 20px 75px;
    background-color: #222222;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

.works-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.works-cta-title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.works-cta-text {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.works-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.works-cta-btn:hover {
    background-color: #fff;
    color: #000;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .single-works-container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .works-nav-rich-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .works-cta-section {
        padding: 60px 20px 50px;
    }
    
    .works-cta-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .works-cta-text {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }
    
    .works-cta-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .works-hero {
        margin-bottom: 40px;
    }
    
    .works-content {
        margin-bottom: 40px;
    }
    
    .works-description {
        margin-bottom: 40px;
    }
    
    .works-credits {
        margin-bottom: 40px;
    }
}

    .works-nav-rich-link {
        min-height: 160px;
    }

    .works-nav-rich-content {
        padding: 1.5rem;
    }

    .works-nav-rich-link.works-nav-prev,
    .works-nav-rich-link.works-nav-next {
        justify-content: space-between;
        flex-direction: row;
    }

    .works-nav-rich-link.works-nav-next {
        flex-direction: row-reverse;
    }

    .works-nav-rich-title {
        white-space: normal;
        line-height: 1.5;
    }
}

/* 旧スタイル（後方互換性のため残す） */
.works-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.works-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.works-nav-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.works-nav-link:hover {
    background-color: #222;
    border-color: #222;
    color: var(--color-white);
}

.works-nav-previous .works-nav-link {
    text-align: left;
}

.works-nav-next .works-nav-link {
    text-align: right;
    flex-direction: row-reverse;
}

.works-nav-arrow {
    font-size: 24px;
    font-weight: bold;
    margin: 0 15px;
}

.works-nav-content {
    flex: 1;
}

.works-nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.works-nav-link:hover .works-nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.works-nav-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.works-nav-link:hover .works-nav-title {
    color: var(--color-white);
}

.related-works-widget {
    margin-bottom: 40px;
}

.related-works-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-works-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.related-works-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-works-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

.related-works-link:hover {
    color: var(--color-accent);
}

.related-works-thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-works-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   レスポンシブデザイン
   ============================================ */
/* タブレット対応 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        padding: 16px 36px;
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Service Section - タブレット対応 */
    .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

    .section-title {
        font-size: 48px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    /* Works Page - タブレット対応 */
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 55px;
        padding: 0 30px;
    }

    .header-logo {
        height: 26px;
    }

    .main-navigation ul {
        gap: 30px;
    }

    /* スマホハンバーガーメニュー：全7項目を表示 */
    .main-navigation .menu-item-home,
    .main-navigation .menu-item-news {
        display: block;
    }

    .hero-section {
        height: 100vh;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-cta {
        padding: 16px 32px;
        font-size: 14px;
    }

    .works-section {
        padding: 60px 0;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* このセクションの.works-filterスタイルは下記の2978行目以降で上書きされます */

    /* Service Section - スマートフォン対応 */
    .service-section {
        padding: 80px 20px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* SPではリズム感の調整を無効化 */
    .service-cards .service-card:nth-child(2n),
    .service-cards .service-card:nth-child(4n) {
        margin-top: 0;
    }

    .section-title {
        font-size: 48px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-description {
        font-size: 13px;
    }

    /* グラスモーフィズムの調整（SPでは少し濃く） */
    .service-card {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    /* Works Page - スマートフォン対応 */
    .works-page .page-title {
        font-size: 36px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* セクションヘッダーの余白調整 */
    .section-header {
        margin-bottom: 30px !important;
    }

    /* カテゴリボタンの2列グリッド表示 */
    .works-filter {
        padding: 0 20px;
    }

    .works-filter {
        list-style: none !important;
        display: block !important;
    }
    
    .works-filter ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        justify-items: stretch;
    }
    
    /* works-filterがul要素の場合の直接スタイル */
    ul.works-filter {
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    @media (max-width: 768px) {
        ul.works-filter {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 10px !important;
            width: 100%;
            padding: 0 20px !important;
            justify-items: stretch;
        }
    }

    .works-filter li {
        width: 100% !important;
        margin: 0 !important;
    }

    .filter-btn {
        width: 100% !important;
        font-size: 11px !important;
        padding: 10px 0 !important;
        text-align: center;
        margin: 0 !important;
    }
    
    /* member-filter-btnのモバイル対応 */
    .member-filter-btn {
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.5rem 0.5rem !important;
        white-space: nowrap !important;
        text-align: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    .related-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-works-section,
    .services-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .latest-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .works-archive {
        margin-top: 70px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .works-archive-title {
        font-size: 28px;
    }

    .works-title {
        font-size: 28px;
    }

    .works-nav-links {
        grid-template-columns: 1fr;
    }

    .works-nav-next .works-nav-link {
        flex-direction: row;
        text-align: left;
    }

    /* モーダルウィンドウの可読性改善（スマホ時） */
    .works-modal-content {
        width: 90% !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }

    .works-modal-info {
        padding: 20px !important;
    }

    .works-modal-title {
        font-size: 20px !important;
        margin-bottom: 1rem;
    }

    /* スマホモーダル内のテキスト可読性改善 (Final) */
    .modal-content .modal-credits,
    .modal-content .modal-description,
    .modal-content .modal-body,
    .works-modal-content .works-modal-description,
    .works-modal-content .works-modal-credits,
    .works-modal-info .works-modal-description,
    .works-modal-info .works-modal-credits,
    .modal-info .modal-desc,
    .modal-info .modal-credits,
    #m-modal .modal-credits,
    #m-credit,
    #m-modal .modal-desc,
    #m-desc {
        line-height: 1.5 !important;
        font-size: 0.9rem !important;
        /* 少し小さくして情報を収める */
        text-align: left !important;
        letter-spacing: 0.05em !important;
        /* 文字間を少し開けて読みやすく */
    }

    /* リセット：<br>タグのスタイルを初期化 */
    /* クレジット欄の改行は維持する */
    #modal-credits-text br,
    .modal-info .modal-credits br,
    .works-modal-content .works-modal-credits br,
    .works-modal-info .works-modal-credits br,
    #m-modal .modal-credits br,
    #m-credit br {
        display: block !important;
        content: "" !important;
        height: 0.8em !important;
        margin: 0 !important;
    }
    
    /* 説明文の改行も維持 */
    .modal-body br,
    .modal-info .modal-desc br,
    .works-modal-content .works-modal-description br,
    .works-modal-info .works-modal-description br,
    #m-modal .modal-desc br,
    #m-desc br {
        display: block !important;
        content: "" !important;
        height: 0.5em !important;
        margin: 0 !important;
    }

    /* スマホモーダル：メンバー名リンク（シンプル版） */
    /* モバイルでのメンバーリンクのスタイル */
    .modal-content .member-link,
    .modal-info .member-link,
    .works-modal-content .member-link,
    .works-modal-info .member-link,
    #m-modal .member-link,
    #m-credit .member-link {
        display: inline !important;
        font-size: inherit !important;
        font-weight: normal !important;
        color: #fff !important;
        text-decoration: underline !important;
        text-underline-offset: 3px !important;
        line-height: 1.6 !important;
    }
    
    .modal-content .member-link:hover,
    .modal-info .member-link:hover,
    .works-modal-content .member-link:hover,
    .works-modal-info .member-link:hover,
    #m-modal .member-link:hover,
    #m-credit .member-link:hover {
        color: #ea8e8e !important;
    }

    /* タイムスタンプ等のリンクも色を統一 */
    .modal-content a[href*="timestamp"],
    .modal-info a[href*="timestamp"],
    .works-modal-content a[href*="timestamp"],
    .works-modal-info a[href*="timestamp"],
    #m-modal a[href*="timestamp"] {
        color: inherit !important;
        text-decoration: underline !important;
        opacity: 0.8 !important;
    }

    /* ベースのテキスト */
    /* クレジット欄全体のスタイル */
    .modal-content .modal-credits,
    .modal-info .modal-credits,
    .works-modal-content .works-modal-credits,
    .works-modal-info .works-modal-credits,
    #m-modal .modal-credits,
    #m-credit {
        line-height: 2 !important;
        text-align: left !important;
        color: #ddd !important;
        font-size: 0.9rem !important;
        /* 縦並びで見やすく */
    }

    /* RECENT WORKSモーダルの説明文も調整 */
    #m-modal .modal-desc,
    #m-desc {
        line-height: 1.6 !important;
        color: #ccc !important;
        /* インラインスタイルを上書き */
    }

    /* RECENT WORKSモーダルの本文内の<p>タグのマージンを調整 */
    #m-desc p {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-block-start: 0 !important;
        margin-block-end: 0 !important;
        padding: 0 !important;
        line-height: 1.6 !important;
    }

    #m-desc p+p {
        margin-top: 0.5em !important;
        /* 段落間の間隔を最小限に */
    }

    #m-desc p:last-child {
        margin-bottom: 0 !important;
    }

    /* 空の<p>タグを非表示 */
    #m-desc p:empty {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* <br>タグの余分な間隔を削除 */
    #m-desc br {
        line-height: 1.6 !important;
    }

    /* その他のリンクの見栄え */
    .modal-content a:not(.member-link),
    .works-modal-content a:not(.member-link),
    .works-modal-info a:not(.member-link),
    .modal-info a:not(.member-link),
    #m-desc a:not(.member-link) {
        color: #aaddff !important;
        /* 視認性の高い水色 */
        text-decoration: underline !important;
        word-break: break-all !important;
        /* URL等がはみ出さないように */
    }

    .works-modal-close {
        top: 10px !important;
        right: 10px !important;
        font-size: 24px !important;
        z-index: 10;
    }

    .works-nav-arrow {
        margin: 0 10px;
    }

    .single-works {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .site-header {
        height: 50px;
        padding: 0 20px;
    }

    .header-logo {
        height: 24px;
    }

    .main-navigation ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 9998;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-open .main-navigation ul {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-open {
        overflow: hidden;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 9999;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    /* Hamburger Animation */
    .nav-open .menu-toggle span {
        /* Simple text change or icon swap logic can go here if using text, 
           but for a robust solution, we often use CSS shapes. 
           Since the current HTML uses a text "☰", we can just change color or content if needed.
           For now, let's ensure it's visible on top of the white overlay. */
        color: #000;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        height: 100vh;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-cta {
        padding: 16px 32px;
        font-size: 14px;
    }

    .works-section {
        padding: 40px 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .works-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .works-card-title {
        font-size: 16px;
    }

    .works-card-category-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .works-card-year {
        font-size: 12px;
    }

    /* Service Section - スマートフォン対応 */
    .service-section {
        padding: 80px 20px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: 48px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-description {
        font-size: 13px;
    }

    .latest-works-section,
    .services-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .latest-works-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-works-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 20px 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-description {
        font-size: 13px;
    }

    .works-archive {
        margin-top: 60px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .works-archive-title {
        font-size: 24px;
    }

    .works-title {
        font-size: 24px;
    }

    .works-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .works-credits {
        padding: 20px;
    }

    .credit-role {
        width: 35%;
        font-size: 14px;
    }

    .credit-name {
        font-size: 14px;
    }

    .single-works {
        margin-top: 60px;
    }
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 20px 40px;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* フッターナビ */
.footer-navigation {
    margin-bottom: 0;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

/* ホバー：下線アニメーション */
.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brand);
    transition: width 0.3s ease;
}

.footer-menu a:hover::after {
    width: 100%;
}

.footer-menu a:hover {
    color: var(--color-white);
}

/* SNSボタン */
.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 40px 0;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

/* フッターボトム */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-brand);
}

/* Service Section 修正 */
.service-section .section-subtitle {
    display: none;
    /* サブタイトルを非表示 */
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 20px !important;
        /* 下部を30px → 20pxに削減（全ページ統一） */
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* フッターの余白をコンパクトに（全ページ統一） */
    .footer-main {
        margin-bottom: 20px !important;
    }

    .footer-social {
        flex-direction: column;
        margin-bottom: 15px !important;
        /* SNSボタンエリアの下余白を統一 */
    }

    .social-button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 15px !important;
        /* フッターボトムの上余白を統一 */
    }

    .footer-bottom-content {
        padding-bottom: 10px !important;
        /* フッターボトムコンテンツの下余白を統一 */
    }
}

/* =========================================
   About Page Styles - スタイリッシュ版
========================================= */

.about-page {
    padding-top: 60px;
    background-color: var(--color-main-bg);
}

.main-content {
    background-color: transparent !important;
}

/* ヒーローセクション */
.about-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, rgba(246, 167, 193, 0.1), rgba(232, 92, 136, 0.1));
    z-index: 0;
}

/* ABOUTページ専用のhero-content（TOPページのスタイルを上書き） */
.about-hero .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    text-align: center;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.about-hero .hero-title {
    font-size: 96px;
    font-weight: 300;
    color: var(--color-text);
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.08em;
}

.about-hero .hero-subtitle {
    font-size: 18px;
    color: var(--color-text-sub);
    margin-top: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.2em;
}

/* MVVセクション */
.mvv-section {
    padding: 120px 0;
}

.mvv-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 各MVVアイテム */
.mvv-item {
    margin-bottom: 200px;
    position: relative;
}

.mvv-item.mission,
.mvv-item.vision {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

/* 左側のラベル部分 */
.mvv-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    position: sticky;
    top: 100px;
}

.mvv-label-en {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans JP', sans-serif;
}

.mvv-label-ja {
    font-size: 12px;
    color: var(--color-text-sub);
    font-family: 'Noto Sans JP', sans-serif;
}

/* 右側のコンテンツ部分 */
.mvv-content {
    padding-top: 10px;
}

.mvv-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.mvv-text {
    font-size: 18px;
    color: var(--color-text-sub);
    line-height: 2.0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Value (BLOOM) セクション */
.mvv-item.value {
    margin-top: 200px;
}

.mvv-item.value .mvv-label {
    margin-bottom: 60px;
}

/* BLOOM Statement */
.bloom-statement {
    margin-bottom: 60px;
    text-align: center;
}

.bloom-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bloom-word {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-brand);
    letter-spacing: 0.1em;
}

.bloom-kanji {
    font-size: 18px;
    color: var(--color-text-sub);
    font-weight: 400;
}

.bloom-statement .mvv-title {
    font-size: 28px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.bloom-statement .mvv-text {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-sub);
}

/* BLOOM Values */
.bloom-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.bloom-value-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bloom-value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bloom-letter {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: var(--color-brand);
    opacity: 0;
    animation: fadeInScale 0.6s forwards;
}

.bloom-letter.animate {
    opacity: 1;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bloom-content {
    flex: 1;
}

.bloom-value-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.bloom-value-ja {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-sub);
    margin-left: 10px;
}

.bloom-value-text {
    font-size: 16px;
    color: var(--color-text-sub);
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 会社概要セクション */
.company-info-section {
    padding: 150px 0;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-main-bg) 100%);
}

.company-info-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.company-info-section .section-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-sub);
    text-align: center;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.1em;
    /* text-transform: uppercase; 削除（見出しはTitle Case） */
}

.company-info-section .section-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 10px 0 60px;
    font-family: 'Noto Sans JP', sans-serif;
}

.company-info-grid {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.company-info-list {
    margin: 0;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item dt {
    flex-shrink: 0;
    width: 30%;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    font-family: 'Noto Sans JP', sans-serif;
    text-align: left;
}

.info-item dd {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-sub);
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    text-align: left;
}

.company-name-en {
    margin-left: 12px;
    font-size: 14px;
    opacity: 0.6;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .about-hero {
        height: 60vh;
        min-height: 400px;
    }

    .about-hero .hero-title {
        font-size: 72px;
    }

    .mvv-item.mission,
    .mvv-item.vision {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mvv-label {
        position: static;
        margin-bottom: 20px;
    }

    .mvv-title {
        font-size: 36px;
    }

    .bloom-word {
        font-size: 56px;
    }

    .bloom-value-item {
        grid-template-columns: 80px 1fr;
        gap: 40px;
        padding: 40px;
    }

    .bloom-letter {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
        min-height: 300px;
    }

    .about-hero .hero-title {
        font-size: 48px;
    }

    .mvv-section {
        padding: 80px 20px;
    }

    .mvv-item {
        margin-bottom: 80px;
    }

    .mvv-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .bloom-word {
        font-size: 42px;
    }

    .bloom-statement .mvv-title {
        font-size: 24px;
    }

    .bloom-value-item {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

    .bloom-letter {
        margin: 0 auto;
    }

    .info-item {
        flex-direction: column;
    }

    .info-item dt {
        width: 100%;
        margin-bottom: 5px;
    }

    .section-title {
        font-size: 42px;
    }

    .company-info-grid {
        padding: 40px 30px;
    }

    .info-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 25px 0;
    }

    /* ABOUTページ MVVエリアのスマホ調整 */
    /* 1. MVVエリア（Mission, Vision, Value）の余白と改行修正 */
    .mvv-label {
        flex: 0 0 100px !important;
        /* スマホでは100pxに変更 */
        margin-bottom: 12px !important;
        /* 10-15px程度に極端に小さく */
        min-height: auto !important;
        padding: 5px 0 !important;
        /* パディングを削減 */
    }

    /* 背景の英語文字（MISSION等）のエリアの高さを抑える */
    .mvv-en {
        font-size: 40px !important;
        /* 40px程度に縮小 */
        line-height: 1 !important;
        /* 高さが出ないように */
        min-height: auto !important;
        padding: 0 !important;
        top: -20px !important;
        /* 位置を調整 */
    }

    /* 日本語見出しの調整 */
    .mvv-head {
        font-size: 1.4rem !important;
        /* 22-24px (1.4rem) に縮小 */
        line-height: 1.4 !important;
        /* 行間を詰める */
        margin-bottom: 15px !important;
        word-break: keep-all !important;
        /* 単語の途中での不自然な改行を防ぐ */
        overflow-wrap: break-word !important;
    }

    /* 日本語小見出しとメイン見出しの間の余白を半分に */
    .mvv-ja-label {
        margin-bottom: 8px !important;
        /* 元の余白から半分程度に */
    }

    /* MISSION下のスペースを小さく */
    .mvv-content {
        padding-top: 5px !important;
        /* 元の20pxから5pxに大幅に削減 */
    }

    /* セクション間の余白 */
    .mvv-row {
        margin-bottom: 60px !important;
        /* 各MVVブロック間を60pxに */
    }

    .section-block {
        margin-bottom: 0px !important;
        padding: 0px 20px !important;
    }

    /* Company Infoのtopを60px空ける（最後のsection-blockがCompany Infoの場合） */
    .section-block:last-of-type {
        margin-top: 60px !important;
    }

    .mvv-section {
        padding-bottom: 60px !important;
    }

    .mvv-item {
        margin-bottom: 60px !important;
        /* 元の80pxから60pxに */
    }

    /* 2. Company Info（会社概要）のデザイン整理 */
    .company-info dl dt,
    .company-info-grid dt,
    .info-item dt,
    .info-term {
        font-size: 0.8rem !important;
        color: #888 !important;
        /* 薄いグレー */
        margin-bottom: 5px !important;
        font-weight: normal !important;
    }

    /* Company Infoの下線を1本に統一（重複を防ぐ） */
    .info-item {
        border-bottom: none !important;
        /* 親要素の線を削除して2重線を防ぐ */
        padding: 15px 0 !important;
        /* パディングも調整 */
    }

    .company-info dl dd,
    .company-info-grid dd,
    .info-item dd,
    .info-desc {
        font-size: 0.95rem !important;
        margin-left: 0 !important;
        /* インデント解除 */
        margin-bottom: 25px !important;
        /* 次の項目との余白 */
        font-weight: 500 !important;
        border-bottom: 1px solid #eee !important;
        /* 薄い線を入れて区切りを明確に（1本のみ） */
        padding-bottom: 10px !important;
        width: 100% !important;
        /* 右端まで伸びるように */
        display: block !important;
        /* ブロック要素にして幅を確保 */
    }

    /* 最後の要素は線なし */
    .company-info dl dd:last-child,
    .company-info-grid dd:last-child,
    .info-item dd:last-child,
    .info-item:last-child .info-desc {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 3. VALUE（行動指針）リストの調整 */
    .value-card {
        margin-bottom: 20px !important;
        /* カード間の余白を20pxに */
    }

    .value-grid {
        gap: 20px !important;
        /* グリッドのgapも20pxに */
    }

    /* 4. Our Methodセクションの調整 */
    .method-card .method-img {
        margin-bottom: 0 !important;
    }

    .method-num {
        margin-top: 15px !important;
        /* 数字と画像の間隔を適度に */
        display: block !important;
    }

    /* NEWSページのスマホ調整 */
    /* 1. ページタイトルのスマホサイズ調整（全ページ共通） */
    .page-title {
        font-size: 42px !important;
        /* 4remから42pxに変更 */
    }

    /* ABOUTページのタイトルサイズを他のページと統一 */
    .hero-main {
        font-size: 42px !important;
        /* スマホ時のみ42pxに強制 */
        line-height: 1.2 !important;
        /* 行間を調整 */
    }

    /* 2. NEWSアーカイブの余白調整 */
    .news-archive-container {
        padding: 60px 20px !important;
        /* スマホ表示時の余白を調整 */
    }
}

/* ============================================
   MEMBER Page Styles
   ============================================ */
.member-page-header {
    text-align: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, rgba(246, 167, 193, 0.1), rgba(232, 92, 136, 0.1));
    margin-bottom: 60px;
}

.member-page-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.member-page-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #666;
}

/* Filter Buttons (Unified with Works) */
.member-filter-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    /* text-gray-400 */
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    /* テキストの改行を防止 */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.member-filter-btn:hover,
.member-filter-btn.active {
    color: #000;
    background: transparent;
}

.member-filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #000;
}

/* Member Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 cols */
    gap: 1rem;
    /* スマホではgapを小さく */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
    /* カテゴリフィルターとの間隔 */
    padding: 0 10px 80px;
    /* スマホではパディングを小さく（親要素の.containerにもpaddingがあるため） */
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

/* スマホ版の追加調整 */
@media (max-width: 767px) {

    /* .containerのパディングを小さく */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .member-grid {
        padding: 0 5px 80px;
        /* 親要素の.containerにもpaddingがあるため、さらに小さく */
        gap: 0.75rem;
        /* さらにgapを小さく */
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2列を強制 */
    }

    /* スマホでアイコンサイズを統一 */
    .member-card {
        min-width: 0 !important;
        width: 100% !important;
    }

    .member-card-image-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .member-card-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* 画像の固定サイズ属性を無効化 */
    .member-card-image-wrapper img[width],
    .member-card-image-wrapper img[height] {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 768px) {
    .member-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Tablet: 4 cols */
        gap: 40px 20px !important;
        padding: 0 20px 80px;
        /* タブレット以上では元のパディングに戻す */
    }
}

@media (min-width: 1024px) {
    .member-grid {
        grid-template-columns: repeat(5, 1fr);
        /* PC: 5 cols */
        gap: 60px 30px !important;
    }
}

/* Member Card */
.member-card {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    /* グリッドの列幅を統一 */
    width: 100%;
    /* グリッドの列幅を統一 */
}

.member-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    /* rounded-xl */
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #f0f0f0;
    /* ブランドカラーの枠線アニメーション用 */
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    min-width: 0;
    /* グリッドの列幅を統一 */
    max-width: 100%;
    /* グリッドの列幅を統一 */
}

.member-card-image {
    width: 100% !important;
    /* 強制的に100%に統一 */
    height: 100% !important;
    /* 強制的に100%に統一 */
    object-fit: cover;
    /* 常時カラー表示（grayscaleを削除） */
    transition: transform 0.4s ease;
    display: block;
    /* インライン要素の余白を削除 */
}

.member-card:hover .member-card-image {
    transform: scale(1.05);
}

/* ホバー時にブランドカラーの枠線アニメーション */
.member-card:hover .member-card-image-wrapper {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(232, 92, 136, 0.3);
    animation: borderGlow 2s ease-in-out infinite;
}

/* 枠線が光るアニメーション */
@keyframes borderGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(232, 92, 136, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(232, 92, 136, 0.6);
    }
}

.member-card-info {
    text-align: center;
}

.member-card-name {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

/* h4タグでも同じスタイルを適用（SEO最適化のためh4を使用） */
.member-card-info h4.member-card-name {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.member-card-role {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #9ca3af;
    /* text-gray-400 */
}

/* ============================================
   Single Member Page Styles
   ============================================ */
.single-member-page .container {
    max-width: 1152px;
    /* max-w-6xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.single-member-page .grid {
    display: grid;
}

@media (min-width: 768px) {
    .single-member-page .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .single-member-page .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .single-member-page .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .single-member-page .sticky {
        position: sticky;
        top: 5rem;
        /* top-20 */
    }
}

.single-member-page .gap-12 {
    gap: 3rem;
}

.single-member-page .space-y-12>*+* {
    margin-top: 3rem;
}

/* Tailwind Utilities Replacements */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-6xl {
    max-width: 72rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-12 {
    gap: 3rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-16>*+* {
    margin-top: 4rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

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

.justify-start {
    justify-content: flex-start;
}

.inline-flex {
    display: inline-flex;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-40 {
    width: 10rem;
}

.h-40 {
    height: 10rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.max-w-none {
    max-width: none;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.overflow-hidden {
    overflow: hidden;
}

.object-cover {
    object-fit: cover;
}

.bg-white {
    background-color: #fff;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-display {
    font-family: var(--font-display);
}

.font-sans {
    font-family: var(--font-body);
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-black {
    color: #000;
}

.text-blue-600 {
    color: #2563eb;
}

.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.pl-6 {
    padding-left: 1.5rem;
}

.pr-4 {
    padding-right: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.sticky {
    position: sticky;
}

.top-24 {
    top: 6rem;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:text-blue-600 {
    color: #2563eb;
}

.hover\:text-black:hover {
    color: #000;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.brightness-75 {
    filter: brightness(0.75);
}

.group:hover .group-hover\:brightness-75 {
    filter: brightness(0.75);
}

.col-span-full {
    grid-column: 1 / -1;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-pink-200 {
    --tw-gradient-from: #fbcfe8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251, 207, 232, 0));
}

.to-pink-400 {
    --tw-gradient-to: #f472b6;
}

.text-white {
    color: #fff;
}

.stroke-2 {
    stroke-width: 2;
}

/* Responsive Utilities */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .md\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .md\:col-span-8 {
        grid-column: span 8 / span 8;
    }

    .md\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:justify-start {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-9 {
        grid-column: span 9 / span 9;
    }
}

/* Prose Styles */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7777778;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 700;
}

.prose h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-size: 1.25em;
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose strong {
    font-weight: 600;
}

.prose a {
    color: #2563eb;
    text-decoration: underline;
}

.prose a:hover {
    color: #1d4ed8;
}

/* ============================================
   画面の高さが足りない時に白くなるのを防ぐ
   ============================================ */
html {
    background-color: #FAFAFA !important;
}

body {
    background-color: #FAFAFA !important;
}

/* ============================================
   レイアウトのリセットとフッター表示
   ============================================ */

/* Flexboxレイアウトを解除して通常フローに戻す */
body {
    display: block !important;
    /* Flex解除 */
    position: relative;
    min-height: 100vh;
    padding-bottom: 0 !important;
}

/* コンテンツエリアの高さ確保 */
.site-wrapper,
#page,
main {
    width: 100%;
    background: transparent !important;
}

/* フッターを強制的に表示 */
.site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #222 !important;
    color: #fff !important;
    width: 100%;
    padding: 40px 20px;
    position: relative;
    z-index: 999;
}

/* ホームページ限定のフッター強制表示 */
.home .site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ▼▼▼ フッター配色強制統一 ▼▼▼ */
.site-footer,
footer,
#forced-footer-wrapper {
    background-color: #222222 !important;
    color: #ffffff !important;
}

/* フッター内のリンク色も白に */
.site-footer a,
footer a {
    color: #ffffff !important;
    text-decoration: none;
}

/* 特定のページで白書き換えされるのを防ぐ */
body .site-footer {
    background-color: #222222 !important;
}

/* HTML/Bodyの背景色確保 */
html {
    background-color: #FAFAFA !important;
}

/* ============================================
   Works Archive Restoration (Grid & Modal)
   ============================================ */
/* グリッド調整 */
.works-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    /* 上下左右の余白 */
    max-width: 1200px;
    margin: 40px auto;
}

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

/* アイテム本体 */
.work-item {
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.work-item:hover {
    opacity: 0.9;
    transform: translateY(-4px);
    /* 少し浮く */
}

/* サムネイル画像 */
.work-thumb {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    /* 比率固定 */
    background-color: #eee;
    margin-bottom: 16px;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-item:hover .work-thumb img {
    transform: scale(1.05);
    /* ズームエフェクト */
}

/* No Image Box */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder::after {
    content: 'In Fleur';
    color: #bbb;
    font-family: 'Tenor Sans';
}

/* テキスト周り */
.work-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.4;
}

.work-cat-name {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
}

.work-year {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.05em;
    margin: 0;
}

/* モーダル全体（背景の幕） */
#work-modal,
.work-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    /* より濃い黒 */
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* スマホでの余白 */
}

/* モーダルの中身（黒い箱） */
.work-modal-content {
    background: #111;
    /* 真っ黒に近いグレー */
    color: #fff;
    /* 白文字 */
    width: 100%;
    max-width: 960px;
    /* 動画サイズに合わせて広めに */
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    /* 角丸は控えめに */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* モーダルのスクロールバー（薄く目立たなく） */
.work-modal-content::-webkit-scrollbar {
    width: 8px;
}

.work-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.work-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.work-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Firefox用のスクロールバースタイル */
.work-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* メンバーモーダルのスクロールバー */
#m-modal>div {
    max-height: 90vh;
    overflow-y: auto;
}

#m-modal>div::-webkit-scrollbar {
    width: 8px;
}

#m-modal>div::-webkit-scrollbar-track {
    background: transparent;
}

#m-modal>div::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#m-modal>div::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

#m-modal>div {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* 動画エリア（16:9固定） */
.modal-media {
    width: 100%;
    background: #000;
    position: relative;
    /* アスペクト比を強制固定 */
    padding-top: 56.25%;
    /* 16:9 (9 / 16 * 100) */
    height: 0;
    overflow: hidden;
}

.modal-media iframe,
.modal-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    /* 見切れないように収める */
}

/* 画像の場合は高さをなりゆきにする（padding hackを解除） */
.modal-media:has(img) {
    padding-top: 0;
    height: auto;
}

.modal-media img {
    position: relative;
    /* 画像は通常配置 */
    height: auto !important;
}


/* テキスト情報エリア */
.modal-info {
    padding: 40px;
    text-align: left;
}

/* カテゴリ */
.modal-cat {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.85rem;
    color: #aaa;
    /* 薄いグレー */
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

/* タイトル */
.modal-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #fff;
}

/* スマホ版ではさらに小さく */
@media (max-width: 768px) {
    .modal-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

/* 小さなスマホではさらに小さく */
@media (max-width: 480px) {
    .modal-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

/* クレジット欄 */
.modal-credits {
    font-size: 0.95rem;
    color: #ddd;
    /* やや明るいグレー */
    padding: 20px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    margin-bottom: 30px;
    line-height: 2.2;
    /* 縦並びで見やすく */
}

/* クレジット内のテキスト - 縦並び表示 */
.modal-credits-text,
#modal-credits-text {
    line-height: 2.2;
}

/* メンバーリンク（重要） */
.member-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
    font-weight: 500;
}

.member-link:hover {
    color: #ea8e8e;
    /* ホバー時はピンク */
}

/* タイムコードリンク（YouTube LIVE用） */
.timestamp-link {
    color: #4a9eff;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.timestamp-link:hover {
    color: #6bb3ff;
    text-decoration-color: #6bb3ff;
}

/* 説明文 */
.modal-desc {
    font-size: 0.95rem;
    line-height: 2.0;
    color: #ccc;
}

/* モーダル内の一般的なリンク（Xリンクなど） */
.modal-info a:not(.member-link):not(.timestamp-link),
.modal-desc a {
    color: #6bb3ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s;
}

.modal-info a:not(.member-link):not(.timestamp-link):hover,
.modal-desc a:hover {
    color: #8ec5ff;
}

/* 訪問済みリンクも同じ色に */
.modal-info a:not(.member-link):not(.timestamp-link):visited,
.modal-desc a:visited {
    color: #6bb3ff;
}

.modal-info a:not(.member-link):not(.timestamp-link):visited:hover,
.modal-desc a:visited:hover {
    color: #8ec5ff;
}

/* モーダルナビゲーション */
.modal-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.modal-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.modal-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6bb3ff;
    color: #6bb3ff;
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.modal-nav-btn:hover:not(:disabled) svg {
    transform: translateX(0);
}

.modal-nav-prev:hover:not(:disabled) svg {
    transform: translateX(-3px);
}

.modal-nav-next:hover:not(:disabled) svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .modal-navigation {
        margin-top: 30px;
        padding-top: 20px;
    }

    .modal-nav-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .modal-nav-btn span {
        display: none;
    }
}

/* 閉じるボタン */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 2rem;
    opacity: 0.7;
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    /* タッチターゲットサイズを確保（モバイルUX改善） */
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* フィルタボタンの基本スタイル */
.filter-btn {
    display: inline-block;
    padding: 8px 24px;
    margin: 0 5px;
    background: #fff;
    color: #888;
    /* 通常時はグレー */
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

/* ホバー時 & アクティブ時 */
.filter-btn:hover,
.filter-btn.active {
    background-color: #222 !important;
    /* 強制適用 */
    color: #fff !important;
    /* 白文字 */
    border-color: #222 !important;
}

/* Sticky Footer & Global Background Settings */
html {
    height: 100%;
    background: #FAFAFA !important;
}

body {
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    background: #FAFAFA !important;
    margin: 0;
}

.site-wrapper {
    flex: 1 !important;
    width: 100%;
}

.site-footer {
    width: 100%;
    background: #111 !important;
    color: #fff !important;
}

/* ============================================
   reCAPTCHAバッジの非表示（全ページ共通）
   ============================================ */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ============================================
   プライバシーポリシーページのスタイル
   ============================================ */

/* プライバシーポリシーページのコンテナ */
.privacy-policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* プライバシーポリシーページのタイトル */
.privacy-policy-title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.05em;
    color: #222;
    margin-bottom: 40px;
    text-align: center;
}

/* プライバシーポリシーページの本文 */
.privacy-policy-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.9; /* 可読性向上のため行間を少し広げる */
    color: #333;
}

/* 見出しのスタイル */
.privacy-policy-text h2,
.privacy-policy-text h3,
.privacy-policy-text h4 {
    font-family: 'Tenor Sans', sans-serif;
    color: #222;
    margin-top: 50px; /* 見出し前の余白を増やす */
    margin-bottom: 20px; /* 見出し後の余白を増やす */
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.6; /* 見出しの行間を適切に設定 */
}

.privacy-policy-text h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 60px; /* h2は最初の見出しなので、さらに余白を増やす */
}

.privacy-policy-text h2:first-of-type {
    margin-top: 40px; /* 最初のh2は少し余白を減らす */
}

.privacy-policy-text h3 {
    font-size: 1.4rem;
    margin-top: 40px;
}

.privacy-policy-text h4 {
    font-size: 1.2rem;
    margin-top: 30px;
}

/* 段落のスタイル */
.privacy-policy-text p {
    margin-bottom: 1.5em; /* 段落間の余白を増やして可読性を向上 */
    line-height: 1.9; /* 段落内の行間も適切に設定 */
}

/* リストのスタイル */
.privacy-policy-text ul,
.privacy-policy-text ol {
    margin: 2em 0; /* リスト前後の余白を増やす */
    padding-left: 2.5em; /* インデントを少し増やす */
    line-height: 1.9; /* リスト全体の行間を設定 */
}

.privacy-policy-text li {
    margin-bottom: 1em; /* リスト項目間の余白を増やす */
    line-height: 1.9; /* リスト項目内の行間を設定 */
    padding-left: 0.5em; /* リスト項目内の左パディングを追加 */
}

/* ネストされたリストのスタイル */
.privacy-policy-text ul ul,
.privacy-policy-text ol ol,
.privacy-policy-text ul ol,
.privacy-policy-text ol ul {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    padding-left: 2em;
}

/* リスト項目内の段落 */
.privacy-policy-text li > p {
    margin-bottom: 0.8em;
    margin-top: 0.5em;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .privacy-policy-container {
        padding: 0 20px;
        /* 左右にパディングを入れて端が切れないように */
    }

    .privacy-policy-title {
        font-size: 42px !important;
        /* 他のページタイトルと統一 */
        margin-bottom: 30px;
    }

    .privacy-policy-text {
        font-size: 0.95rem;
        line-height: 1.85; /* スマホでも読みやすい行間 */
    }

    .privacy-policy-text p {
        margin-bottom: 1.3em; /* スマホでは少し余白を減らす */
    }

    .privacy-policy-text h2 {
        font-size: 1.5rem;
        margin-top: 40px; /* スマホでも適切な余白 */
        margin-bottom: 18px;
    }

    .privacy-policy-text h2:first-of-type {
        margin-top: 30px; /* 最初のh2は少し余白を減らす */
    }

    .privacy-policy-text h3 {
        font-size: 1.2rem;
        margin-top: 35px;
        margin-bottom: 15px;
    }

    .privacy-policy-text h4 {
        font-size: 1.1rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .privacy-policy-text ul,
    .privacy-policy-text ol {
        margin: 1.5em 0; /* スマホでは少し余白を減らす */
        padding-left: 2em; /* スマホではインデントを減らす */
    }

    .privacy-policy-text li {
        margin-bottom: 0.9em; /* スマホでは少し余白を減らす */
        line-height: 1.85;
    }
}

/* Model Plans リスト行間調整 */
.plan-list li {
    margin-bottom: 12px !important;
    /* 項目ごとの間隔を広げる */
    line-height: 1.6;
    /* 文字自体の行間も少しゆったりさせる */
}

/* 最後の項目だけ余白を消す */
.plan-list li:last-child {
    margin-bottom: 0 !important;
}

/* 料金表示の上の余白を追加 */
.plan-price {
    margin-top: 24px !important;
    /* リストとの距離をしっかり取る */
}

/* Restore Montserrat for Hero Title */
.hero-title-main {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

/* Base Scroll Settings (Ensure visibility) */
html,
body {
    overflow-y: auto;
}

/* --- Custom Scrollbar (Webkit) --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FAFAFA;
    /* Site background color */
}

::-webkit-scrollbar-thumb {
    background: var(--color-brand);
    /* #F6A7C1 */
    border-radius: 10px;
    opacity: 0.8;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
    /* #E85C88 */
}