/* =====================
   Base Styles
===================== */
body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- ヘッダー --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #007bff;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* --- フッター --- */
.site-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px auto 10px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
}

.footer-links li {
    display: inline;
}

a {
    text-decoration: none;
    color: #1e90ff;
    margin: 0 10px;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    font-size: 0.9rem;
    color: #666;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    padding: 1rem 0 0 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1em;
}

.breadcrumb-list li::after {
    content: ">";
    margin: 0 0.1em;
    color: #aaa;
}

.breadcrumb-list li:last-child::after {
    content: "";
}
.breadcrumb-list a {
    color: #1d4ed8;
    text-decoration: none;
}


/* Hero */
.hero {
    background: linear-gradient(to right, #1e3a8a, #2563eb);
    color: #fff;
    text-align: center;
    padding: 2rem 0.5rem;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

h2 {
    margin : 0;
    font-size: 1.4rem;
    border-left: 4px solid #2563eb;
    padding-left: 8px;
    color: #2563eb;
}

.page-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    border-left: 4px solid #2563eb;
    padding-left: 8px;
    color: #2563eb;
}

.search-form input {
    padding: 10px;
    width: 400px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    background-color: #f9fafb; /* 薄グレー背景 */
    outline: none;
    color: #111;
    font-size: 1rem;
}

.search-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.search-form button {
    padding: 10px 16px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.search-form button:hover {
    background-color: #1e40af;
}


/* Features */
.features {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    gap: 20px;
    padding : 2rem 1rem;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex: 1;
    text-align: center;
    color: #333;
}

/* actress list */
.feature-section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    margin-top: 1rem;
}

.feature-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.feature-actress-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .feature-actress-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-actress-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

.feature-actress-card {
    position: relative; /* ランクを重ねるために必要 */
    text-align: center;
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    overflow: hidden;
}

.feature-actress-card:hover {
    background-color: #e6f2ff;
    transform: translateY(-2px);
}

.feature-actress-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.feature-score-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 6px;
    z-index: 2;
}

.feature-actress-card .name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-button-face {
    margin-top: 0.5rem;
    border: none;
    outline: none;
    display: inline-block;
    padding: 6px 12px;
    background-color: #28a745;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* ボタンのホバー効果 */
.detail-button-face:hover {
    background-color: #218838;
}


/* 共通スタイル：キーワード・ジャンル */
.keyword-section,
.tag-section {
    background-color: #ffffff;
    padding: 2rem 1rem;
    border-top: 1px solid #ddd;
    margin: 2rem 1rem;
}

.keyword-section .container,
.tag-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    text-align: left;
}

.keyword-list,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}


.keyword-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9rem;
    background-color: #ebf8ff;           /* 薄い青 */
    border: 1px solid #90cdf4;           /* 明るいブルー */
    color: #2b6cb0;                      /* 濃いブルー */
    transition: background-color 0.2s;
}

.keyword-list a:hover {
    background-color: #bee3f8;           /* ホバー時 少し濃く */
}

.tag-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9rem;
    background-color: #f0fff4;           /* 薄い緑 */
    border: 1px solid #9ae6b4;           /* 明るいグリーン */
    color: #2f855a;                      /* 濃いグリーン */
    transition: background-color 0.2s;
}

.tag-list a:hover {
    background-color: #c6f6d5;           /* ホバー時 少し濃く */
}


/* --- 女優動画一覧 --- */
.actress-video-list {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.actress-video-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.actress-info {
    width: 160px;
    text-align: center;
}

.actress-info img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.actress-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* ボタン2つを横並びにするラッパー */
.actress-button-group {
    display: flex;
    justify-content: center;
    gap: 1rem; /* ボタン同士の間隔をしっかりとる */
    margin-top: 0.5rem;
    flex-wrap: wrap; /* スマホ時に折り返しOK */
}

/* 共通ボタンスタイル */
.info-detail-button,
.info-detail-button-face {
    display: inline-block;
    width: 140px; /* 明示的に幅を揃える */
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* aタグ用 */
.info-detail-button {
    background-color: #2563eb;
    color: white;
    border: none;
}

/* formボタン用 */
.info-detail-button-face {
    background-color: #28a745;
    color: white;
    border: none;
}

/* form自体をボタンに近づける（リセット） */
.actress-button-group form {
    margin: 0;
    padding: 0;
}

.video-scroll {
    flex: 1;
    overflow-x: auto;
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.video-card {
    min-width: 330px;
    max-width: 330px;
    flex-shrink: 0;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: #aaa;
}

.video-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 0.85rem;
    color: #333;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* 最大2行表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;          /* 1.4em × 2行分 */
    font-weight: bold;
    margin: 0.3rem 0;
}

/* --- 検索フォームタブ --- */
.tab-section {
    margin: 2rem auto;

}

.tab-buttons {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
    margin-bottom: -1px;
}

.tab-button {
    padding: 0.6rem 1.2rem;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.tab-button.active {
    background: #ffffff;
    border-bottom: 1px solid white;
    z-index: 3;
}

.tab-button:hover {
    background: #e2e8f0;
}

.tab-content-wrapper {
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
    z-index: 1;
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* --- 検索フォーム --- */
.search-form-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-form-secondary input[type="text"] {
    flex: 1 1 250px;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form-secondary input[type="text"]:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
    outline: none;
}

.search-form-secondary button {
    padding: 0.6rem 1.2rem;
    background-color: #3182ce;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form-secondary button:hover {
    background-color: #2563eb;
}

/* --- かなリスト --- */
.kana-table {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kana-row {
    display: flex;
    gap: 0.5rem;
}

.kana-link {
    display: inline-block;
    padding: 4px 8px;
    min-width: 24px;
    text-align: center;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.kana-link:hover {
    background-color: #3182ce;
    color: #fff;
}


/* --- ページネーション --- */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination-nav ul {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap; /* 一行に収まらなければ自動で折り返し */
    justify-content: center;
}
.pagination-nav li {
    list-style: none;
}
.pagination-nav li a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    background-color: white;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.pagination-nav li a:hover {
    background-color: #3182ce;
    color: #fff;
    border-color: #3182ce;
}

.pagination-nav li .active {
    background-color: #3182ce;
    color: #fff;
    border-color: #3182ce;
}


.face-search-tabs {
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.face-tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.face-tab-button {
    flex: 1;
    padding: 0.8rem;
    font-weight: bold;
    background: #f7f7f7;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.face-tab-button.active {
    background: #fff;
    border-bottom: 2px solid #3182ce;
    color: #3182ce;
}

.face-tab-content {
    display: none;
    padding: 1rem;
}

.face-tab-content p {
    margin: 5px 0;
    color: #000000;
}

.face-tab-content.active {
    display: block;
}

/* --- 女優動画アップロードページ --- */
.face-upload-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
    text-align: center;
}

.face-upload-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
    border-left: none;
    padding: 0;

}

.face-upload-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

.face-upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.face-upload-instruction {
    color: #888;
    font-size: 1rem;
    line-height: 1.6;
}

.face-upload-actions {
    margin-top: 1.5rem;
}

.face-upload-button {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.face-upload-button:hover {
    background-color: #2563eb;
}









.face-upload-area {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 8px;
    height: auto;
    min-height: 200px;
    min-width: 300px;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 1rem;
}

.face-upload-area input[type="file"] {
    display: none;
}

.face-upload-content {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}

.face-preview {
    background-color: #fafafa;
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.face-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    z-index: 1;
}

.face-upload-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.9rem;
    pointer-events: none;
    white-space: nowrap;
}











/* 顔検索結果 */
.face-search-result-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

.face-search-result {
    padding: 0;
}

.uploaded-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.uploaded-preview h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.uploaded-preview img {
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.face-result-section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    margin-top: 1rem;
}

.face-result-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.face-result-actress-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .face-result-actress-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .face-result-actress-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

.face-result-actress-card {
    position: relative; /* ← これが必要！ */
    text-align: center;
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.face-result-score {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 6px;
    z-index: 2;
}

.face-result-actress-card:hover {
    background-color: #e6f2ff;
    transform: translateY(-2px);
}

.face-result-actress-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.face-result-name {
    font-size: 14px;
    font-weight: 600;
}

/* 女優 */
.actress-detail-wrapper {
    padding: 5px 0 0 0;
    background-color: #f9f9f9;
    font-family: sans-serif;
}

.actress-detail-title-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.actress-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* スマホ対応 */
}

/* 左：プロフィール */
.actress-profile {
    flex: 1 1 300px;
    max-width: 350px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
}

.profile-name {
    font-size: 22px;
    margin-bottom: 12px;
}






.vote-card {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.vote-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.vote-button-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.like-button {
    width: 100%;
    background-color: #f44336;
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.like-button:hover {
    background-color: #d32f2f;
}

.like-button-status {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

.vote-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.vote-stats, .user-vote {
    flex: 1 1 30%;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 5px;
}

.vote-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
}

.vote-rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 4px;
}

.vote-total {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
}

.vote-text {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 16px;
}

.mypage-button {
    display: inline-block;
    margin-top: 8px;
    background-color: #4CAF50;
    color: #fff;
    padding: 6px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
}

.mypage-button:hover {
    background-color: #388e3c;
}










.profile-info-wrapper {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.profile-info {
    list-style: none;
    padding: 0 1rem;
    margin: 0;
    flex: 1 1 300px; /* 横幅最小300pxで柔軟に広がる */
}

.profile-info li {
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.profile-buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* ボタンが複数ある場合の余白 */
}

.profile-buttons .face-search-form {
    width: 100%;
}

.profile-buttons .face-search-form button.detail-button-face {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-buttons .face-search-form button.detail-button-face:hover {
    background-color: #218838;
}



/* 右：似ている女優 */
.similar-actresses-wrapper {
    max-width: 1200px;
    padding: 20px;
    margin: 40px auto 20px auto;
}

.similar-actresses {
    background-color: #fff;
    line-height: 1.6;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

}

.similar-actresses h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    border-left: 4px solid #2563eb;
    padding-left: 8px;
    color: #2563eb;
}


.similar-actress-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.no-similar-p {
    min-height: 100px;
}

.similar-actress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;

    position: relative;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 7px;
}

.similar-actress-card:hover {
    transform: scale(1.05);
}

.similar-actress-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}

.similar-actress-card .name {
    font-size: 0.9rem;
    color: #333;
}

.similarity-score {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 6px;
}


.actress-videos-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2563eb;
    border-left: 4px solid #2563eb;
    padding-left: 8px;
}

.video-thumb-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.video-thumb-wrapper img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}

.video-date-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #2563eb; /* 濃い青系 */
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 10px;
    border-bottom-left-radius: 8px;
    z-index: 2;
}

.video-scroll-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
}

.actress-video-card {
    flex: 0 0 auto;
    width: 260px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.actress-video-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 4px;
}

.actress-video-card:hover {
    transform: scale(1.05);
}

.actress-video-card-title {
    margin-top: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 動画詳細 */
.detail-pickup-video-section {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-pickup-video-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-pickup-video-thumb img {
    width: 320px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.detail-pickup-video-info {
    flex: 1;
    min-width: 260px;
}

.release-status {
    color: #e53935;      /* 赤色 */
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.detail-pickup-video-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: bold;
    margin-top: 0;
    color: #333;
    border-left: none;
    padding-left: 0;
}

.detail-pickup-video-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.detail-pickup-video-description {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 12px;
}

.detail-pickup-video-tags {
    margin-bottom: 12px;
}

.detail-pickup-video-btn-wrapper {
    width: 100%;
    text-align: right;
}


.detail-pickup-tag {
    display: inline-block;
    background-color: #eef3ff;
    color: #2563eb;
    padding: 4px 10px;
    margin: 4px 6px 4px 0;
    font-size: 0.8rem;
    border-radius: 16px;
}

.detail-pickup-watch-button {
    background-color: #e63946;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.detail-pickup-watch-button:hover {
    background-color: #d32f2f;
}

/* サンプル動画 */
.video-detail-wrapper {
    max-width: 1200px;
    margin: 20px auto 20px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 左：動画 */
.video-player-column {
    flex: 1 1 640px;
    min-height: 300px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 右：情報ボックス */
.video-meta-box {
    flex: 1 1 300px;
    font-size: 0.95rem;
    color: #333;
}

.video-meta-box h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-left: 4px solid #2563eb;
    padding-left: 0.5rem;
    color: #2563eb;
}

.video-meta-box p {
    margin-bottom: 0.75rem;
}

/* 共通 */
.responsive-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.66%; /* 720:480 = 3:2 比率 */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

/* 中のiframe */
.responsive-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* PC時：高さ固定でプレイヤーが縮まないようにする */
@media (min-width: 1024px) {
    .responsive-iframe-wrapper {
        padding-bottom: 0;
        height: 480px; /* DMM動画の高さに合わせる */
    }
}

.video-actress-mini {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0.75rem;
}

.video-actress-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.video-actress-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-actress-name {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.video-actress-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}

.video-actress-link:hover {
    text-decoration: underline;
}








/* 女優紹介セクション */
.actress-introduction {



    flex: 1 1 600px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 750px;
}

.actress-introduction .actress-introduction-inner {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.actress-introduction h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-left: 4px solid #ff6699;
    padding-left: 10px;
    color: #333;
}

.actress-tags {
    margin-top: 10px;
}

.actress-tags .tag {
    display: inline-block;
    background-color: #ffe0eb;
    color: #c2185b;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 0.85rem;
}

/* 人気作品ランキング */
.mu-works-ranking,
.popular-works-ranking {
    max-width: 1200px;
    margin: 0 auto 20px auto;
}
.mu-works-ranking-inner,
.popular-works-ranking-inner {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.mu-works-ranking h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    margin-top: 0;
    border-left: 4px solid #ff4081;
    padding-left: 10px;
    color: #d81b60;
}

.popular-works-ranking h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    border-left: 4px solid #ec407a;
    padding-left: 10px;
    color: #d81b60;
}

.mu-list,
.ranking-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mu-item-with-thumb,
.ranking-item-with-thumb {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px dashed #eee;
    padding: 10px 0;
}

.mu-thumb img,
.ranking-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mu-info,
.ranking-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
    flex: 1;
}

.mu-info-sp {
    text-align: right;
    font-size: 0.8rem;

}

.mu-number,
.rank-number {
    font-weight: bold;
    color: #ec407a;
}

.mu-info a,
.ranking-info a {
    color: #d81b60;
    text-decoration: none;
    line-height: 1.3;
}

.mu-info a:hover,
.ranking-info a:hover {
    text-decoration: underline;
}

.mu-link-icon,
.rank-link-icon {
    margin-left: 4px;
    font-size: 0.85rem;
}

.mu-hidden,
.ranking-hidden {
    display: none;
}

.mu-show-more,
.ranking-show-more {
    text-align: center;
    margin-top: 10px;
}
#show-more-mu,
#show-more-ranking {
    padding: 8px 16px;
    font-size: 0.95rem;
    background-color: #ec407a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.site-button-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.site-button {
    display: inline-block;
    background-color: #e91e63;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    flex: 1 1 200px; /* 最小幅200pxで伸縮可能 */
}

.site-plan-button {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    flex: 1 1 200px; /* 最小幅200pxで伸縮可能 */
}


.plan-heading {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
}

.site-plan-text-list {
    list-style: disc inside;
    padding-left: 20px;
    margin: 0;
}

.site-plan-text-list li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.site-plan-text-list a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.2s;
}

.site-plan-text-list a:hover {
    color: #0056b3;
}

.site-button:hover {
    background-color: #c2185b;
}

@media (max-width: 600px) {
    .site-button-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
}












/* 関連ニュース */
.actress-news-section {
    margin: 40px 0 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.actress-news-section .actress-news-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.actress-news-section h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
    color: #222;
}

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

.news-item {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 0.95rem;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
    min-width: 110px;
    white-space: nowrap;
    background-color: #e0e7ff;
    padding: 2px 6px;
    border-radius: 4px;
}

.news-list a {
    color: #1d4ed8;
    text-decoration: none;
    flex: 1;
}

.news-list a:hover {
    text-decoration: underline;
}

.news-link-icon {
    margin-left: 4px;
    font-size: 0.85rem;
}



/* ランキング */
.rank-act-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.rank-act-inner {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rank-act-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #333;
    text-align: center;
}

.rank-act-description {
    font-size: 1rem;
    margin-bottom: 24px;
    text-align: center;
    color: #666;
}

.rank-act-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-act-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
    gap: 16px;
    flex-wrap: wrap;
}

.rank-act-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e91e63;
    width: 50px;
    text-align: center;
}

.rank-act-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.rank-act-info {
    flex: 1;
}

.rank-act-name {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.rank-act-ruby {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
}

.rank-act-detail-button {
    padding: 6px 16px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
}

.rank-act-detail-button:hover {
    background-color: #1a47c1;
}

.rank-act-intro {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行表示 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.rank-act-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.rank-act-intro.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.rank-act-read-more-button {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    margin-top: 10px;
}



.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-inner {
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #e91e63;
}

.error-page p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.back-home-button {
    padding: 10px 20px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.favorite-toggle-button {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.favorite-toggle-button.active {
    background-color: #fce4ec;
    color: #d81b60;
}
.favorite-toggle-button:hover {
    background-color: #e0e0e0;
}




.favorites-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
}

.favorites-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    color: #222;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.favorites-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.favorites-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.favorites-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-bottom: 10px;
}

.favorites-name {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
}

.favorites-empty {
    text-align: center;
    color: #888;
    margin-top: 40px;
    font-size: 1rem;
}

.hidden {
    display: none;
}

.remove-favorite-button {
    margin-top: 8px;
    padding: 4px 10px;
    font-size: 0.85rem;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-favorite-button:hover {
    background-color: #c62828;
}



.mypage-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 1rem;
}

.mypage-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    border-left: none;
}

.mypage-section {
    width: 100%;
    margin-bottom: 40px;
    padding: 0;
}

.mypage-box-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mypage-box {
    flex: 1 1 calc(50% - 60px); /* 横2列、間隔考慮 */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    min-width: 280px;
}


.mypage-section-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.mypage-description {
    font-size: 15px;
    margin-bottom: 15px;
    color: #555;
}

.mypage-link-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mypage-link-button:hover {
    background-color: #0056b3;
}




.like-history-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.like-history-wrapper {
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
}

.like-history-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.like-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.like-history-item {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.like-history-item:hover {
    background-color: #f3f4f6;
}

.like-history-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding: 0.75rem;
}

.like-history-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
}

.like-history-info {
    flex-grow: 1;
}

.like-history-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.like-history-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.like-history-empty {
    text-align: center;
    color: #9ca3af;
}





.ranking-type-section {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.ranking-type-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-left: none;
}

.ranking-type-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.ranking-button {
    flex: 1 1 200px;
    max-width: 280px;
    text-decoration: none;
    padding: 0.75rem 1rem;
    background-color: #2563eb; /* blue-600 */
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.ranking-button:hover {
    background-color: #1d4ed8; /* blue-700 */
}

@media (max-width: 640px) {
    .ranking-type-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-button {
        width: 100%;
    }
}








/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {

    .actress-introduction {
        padding: 20px;
        font-size: 0.95rem;
    }
    .mu-works-ranking,
    .popular-works-ranking,
    .actress-news-section {
        padding: 10px;
        font-size: 0.95rem;
    }

    .site-button {
        flex: none;
    }
    .actress-tags .tag {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-bottom: 5px;
    }

    .ranking-list li,
    .news-list li {
        font-size: 0.9rem;
    }



    /* 動画詳細 */
    .detail-pickup-video-container {
        flex-direction: column;
        align-items: center;
    }

    .detail-pickup-video-thumb {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .detail-pickup-video-thumb img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 6px;
    }

    .favorite-button-wrapper {
        margin-top: 3rem;
        padding-top: 3rem;
    }

    .detail-pickup-video-info {
        text-align: left;
    }


    /* 検索フォーム */
    .search-form input {
        width: 200px;
    }

    .face-tab-content p {
        font-size: 0.8rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 1rem;
        flex-direction: column;
        background: #fff;
        border: 1px solid #ccc;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .features {
        flex-direction: column;
        gap: 16px;
    }

    .detail-pickup-watch-button {
        width: 83%;
        font-size: 1.1rem;
    }
    /* actress-video-list */
    .actress-video-row {
        flex-direction: column;
        align-items: center;
    }

    .actress-info {
        width: 100%;
        text-align: center;
    }

    .video-scroll {
        width: 100%;
    }

    /* kana-list */
    .kana-table {
        flex-direction: column;
        gap: 0.75rem;
    }

    .kana-row {
        flex-wrap: nowrap;
        flex-direction: row;
    }

    /* pagination-nav */
    .pagination-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
    }
    .pagination-nav li {
        flex-shrink: 0;
    }

    .uploaded-preview img {
        width: auto;
        max-width: 100%;
    }

    /* 女優小生 */
    .actress-detail-container {
        flex-direction: column;
        gap: 20px;
    }

    .actress-profile,
    .similar-actresses {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 16px !important; /* 少し小さくして余白も確保 */
        box-sizing: border-box;   /* パディング込みで幅を管理 */
    }

    .similar-actresses-wrapper {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;   /* パディング込みで幅を管理 */
        padding: 0;
    }

    .actress-detail-wrapper {
        padding: 20px !important;
    }

    .similar-actress-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px 0;
    }

    .similar-actress-card {
        width: 43%;
        box-sizing: border-box;
        margin-bottom: 12px;
    }

    .similar-actress-card img {
        width: 100%;
        height: auto;
        max-width: 100px;
        max-height: 100px;
        margin: 0 auto 8px;
    }

    .similar-actress-card .name {
        font-size: 0.85rem;
    }

    .video-scroll-list {
        overflow-x: scroll;
    }

    .actress-video-card {
        width: 200px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    /* 動画詳細 */
    .video-detail-wrapper {
        flex-direction: column;
    }

    .video-meta-box {
        width: 100%;
    }

    .video-player-column {
        flex: 1 1 100%;
        width: 100%;
        height: 300px !important;
        padding-bottom: 0 !important;
    }

    .responsive-iframe-wrapper {
        height: 300px !important;
        padding-bottom: 0 !important; /* ← これが生きてると効かないので打ち消す */
    }

    .responsive-iframe {
        height: 300px !important;
    }

    .rank-act-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-act-number {
        width: auto;
    }

    .rank-act-thumbnail img {
        width: 100px;
        height: 100px;
    }

    .profile-info-wrapper {
        flex-direction: column;
    }

    .profile-info {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}


.face-howto-section {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 2rem auto;
    max-width: 1200px;
}

.howto-box-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.howto-box {
    background: #f5f5f5;
    flex: 1 1 calc(50% - 100px); /* 横2列、間隔考慮 */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-width: 280px;
}

.face-howto-section h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    border-left: none;
}

.face-howto-section .face-howto-link {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    font-weight: bold;
    text-decoration: underline;
}




.face-howto-guide {
    background: #fff9f2;
    border: 1px solid #f7c59f;
    border-radius: 10px;
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto 1.5rem auto;
}

.face-howto-guide h2 {
    font-size: 1.2rem;
    color: #d35400;
    margin-bottom: 10px;
}

.face-howto-guide ol {
    padding-left: 1.2rem;
    color: #444;
}

.face-howto-guide li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.face-howto-guide .note {
    font-size: 0.85rem;
    color: #d35400;
    margin-top: 10px;
}



/* ローディングオーバーレイ */
#loading-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* 表示状態用クラス（JSで付け外し） */
#loading-overlay.active {
    display: flex;
}

/* ローディングスピナー全体 */
.loading-spinner {
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* スピナー（円） */
.spinner-circle {
    width: 48px;
    height: 48px;
    border: 5px solid #ccc;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px auto;
}

/* テキスト */
.spinner-text {
    font-size: 1rem;
    color: #333;
}

/* 回転アニメーション */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* フェードイン */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

