@import url(reset.css);



/* ==========================================
   CSS変数定義（style.cssの冒頭に追加）
========================================== */
:root {
    /* カラーパレット */
    --primary-color: #1e3a5f;
    --secondary-color: #4a90e2;
    --accent-color: #ff6b35;
    --success-color: #28a745;

    /* テキストカラー */
    --text-color: #333;
    --text-gray: #6c757d;
    --text-light: #999;

    /* 背景カラー */
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;

    /* サイズ・スペース */
    --container-max-width: 1200px;
    --header-height: 60px;
    --border-radius: 8px;
    --border-radius-small: 4px;
    --border-radius-round: 25px;

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* シャドウ */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 初期化・共通設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    vertical-align: bottom;
}

ul {
    list-style-type: none;
}

body {
    font-family: 'Helvetica', 'Arial', YuGothic, "Yu Gothic", "游ゴシック体", "游ゴシック", "Hiragino Kaku Gothic ProN", "HiraKakuPro-W3", "メイリオ", Meiryo, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1;
    background: white;
    color: #777777;
    margin-top: 80px;
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* ===== 中央寄せコンテナ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ヘッダー ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: #d4fff0;
    color: #777777;
    padding: 8px 0;
    /* 上下のパディングを追加 */
    min-height: 70px;
    /* 最小高さを設定 */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 垂直中央揃えを確実にする */
    height: 100%;
    position: relative;
    min-height: 54px;
}

/* ===== ロゴ ===== */
.logo {
    font-size: 1.2em;
    display: flex;
    align-items: center;
    /* 画像とテキストを垂直中央揃え */
    font-weight: 500;
    text-decoration: none;
    color: #777777;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo img {
    height: 85px;
    width: auto;
    margin-right: 10px;
    /* 負のマージンを正の値に変更 */
    transition: transform 0.3s ease;
    display: block;
    /* ブロック要素として表示 */
    /* vertical-alignは削除（block要素では無効のため） */
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    color: #777777;
    white-space: nowrap;
    line-height: 1;
    margin: 0 0 0 -20px;
    /* 行間を調整 */
    /* テキストの改行を防ぐ */
}

/* ===== ハンバーガーメニューの改善 ===== */
.hamburger {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    align-self: center;
    /* 確実に垂直中央に配置 */
}

.hamburger:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #777777;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all .3s ease;
    border-radius: 2px;
}

.hamburger span:first-child {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 19px;
}

.hamburger span:last-child {
    top: 26px;
}

.hamburger.close span:first-child {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

.hamburger.close span:nth-child(2) {
    opacity: 0;
    /* 透明にする */
}

.hamburger.close span:last-child {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

/* ===== PC用ナビゲーション ===== */
nav ul {
    display: flex;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #777777;
    font-size: larger;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.5s;
}

/* nav ul li a:hover {
    text-decoration: underline;
    border-radius: 20px;
} */

/* ===== PC用サブメニュー ===== */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

nav ul li:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    white-space: nowrap;
    padding: 12px 20px;
    color: #777777;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.submenu li a:hover {
    background: #f0f8ff;
    color: #0073b7;
    transform: translateX(4px);
}

/* ===== セクション共通 ===== */
.section {
    background-color: white;
    margin: 20px auto;
    padding: 40px 20px;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section {
    padding: 40px 20px;
    background: white;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #777777;
    border-left: 5px solid #0078d7;
    padding-left: 10px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #777777;
    text-align: center;
}

h2 {
    color: #777777;
    margin-bottom: 20px;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
    background-color: white;
    padding: 12px 0;
    /* border-bottom: 1px solid #e9ecef; */
    /* ヘッダーの高さ分の余白を追加 */
    position: relative;
    z-index: 15;
    /* ヘッダーより下のz-index */
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: #adb5bd;
    font-weight: normal;
}

.breadcrumb-item a {
    color: #0073b7;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.breadcrumb-item a:hover {
    color: #005a8b;
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: #495057;
    font-weight: 500;
}


/* ===== ヒーローセクション ===== */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    /* 800px → 500pxに変更 */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    width: 50%;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
    border: none;
    padding: 0;
}

.hero-text h3 {
    font-size: 1.5em;
}

/* ===== ニュースセクション ===== */
#news {
    background-color: #f9f9f9;
    border-bottom: 1px solid #ccc;
}

.news-box li {
    margin-bottom: 12px;
    font-size: 1em;
    color: #444;
}

.news-box li strong {
    color: #0078d7;
}

/* ===== 動画コンテナ ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* ===== メッセージコンテナ ===== */
.message-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.message-photo img {
    max-width: 400px;
    max-height: 200px;
    border-radius: 8px;
}

.membership-photo {
    width: 90%;
    max-width: 340px;
    max-height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.membership-photo img {
    width: 170%;
    height: auto;
}

.message-text {
    flex: 1;
    font-size: 1em;
    color: #777777;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 300px;
}

.message-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #777777;
}

.message-text p strong {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #777777;
}

/* ===== CTAボタン ===== */
.contact-button {
    display: inline-block;
    background: #0073b7;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 20px;
    transition: background 0.3s;
    align-self: flex-end;
}

.contact-button:hover {
    background: #03c4eb;
}

/* ===== 強みセクション ===== */
.section.strengths h1 {
    font-size: 32px;
    color: #777777;
    margin-bottom: 30px;
}

.section.strengths h2 {
    font-size: 24px;
    color: #777777;
    margin-bottom: 20px;
    margin-top: 20px;
}

.section.strengths p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: left;
}

.strengths-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 40px;
}

.strength-card {
    background-color: #e0f2f1;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #009688;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1 1 calc(25% - 15px);
    min-width: 250px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.strength-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.strength-card h3 {
    color: #004d40;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.strength-card p {
    font-size: 0.95em;
    color: #333;
    flex-grow: 1;
}

/* ===== サービス内容 ===== */
.services ul {
    list-style-type: disc;
    padding-left: 20px;
}

.services li {
    margin-bottom: 10px;
}

/* ===== 取り組みの流れ ===== */
.process img {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
}

.process ol {
    padding-left: 20px;
}

.process li {
    margin-bottom: 10px;
}

/* ==========================================
   価格発生プロセスセクション（PRICE.HTML専用）
========================================== */

/* プロセスコンテナ */
.process_container {
    margin: 0 auto;
    padding: 20px 32px;
    max-width: var(--container-max-width);
    background: var(--white);
}

.process_timing {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.process_timing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    /* background: var(--secondary-color); */
}

.process_timingtext {
    text-align: left;
    font-size: 14px;
    margin-bottom: 30px;
    color: #777777;
}

/* プロセスステップ */
.process_steps {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px 0;
    overflow-x: visible;
    gap: 1px;
    flex-wrap: nowrap;
    margin-top: 20px;
}

.process_step {
    background: var(--white);
    border: 2px solid #ddd;
    padding: 12px 4px;
    width: calc((100% - 13px) / 14);
    min-width: 70px;
    max-width: 85px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-color);
    position: relative;
    writing-mode: vertical-rl;
    text-orientation: upright;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
}

.process_step_number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border: 3px solid var(--white);
    box-shadow: 0 3px 12px rgba(0, 115, 183, 0.3);
    z-index: 2;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.process_step_content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process_step_title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.3;
}

.process_step-text {
    display: none;
}

/* 特別なステップのスタイル */
.process_step.milestone {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.process_step.milestone .process_step_number {
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.process_step.milestone .process_step_title {
    color: var(--white);
}

.process_step.completed {
    background: var(--bg-light);
    color: var(--success-color);
    border-color: var(--success-color);
}

.process_step.completed .process_step_number {
    background-color: var(--success-color);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.process_step.completed .process_step_title {
    color: var(--success-color);
}

/* 料金発生情報ボックス */
.p_rate_timing_info-box h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.p_rate_timing_info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p_rate_timing_info-box li {
    position: relative;
    padding-left: 56px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}

.p_rate_timing_info-box li:last-child {
    margin-bottom: 0;
}

.p_rate_timing_info-box .num {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* プロセス説明文のスタイル調整 */
.process_container p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    text-align: left;
}

/* ===== 料金体系 ===== */
.pricing ul {
    list-style-type: none;
    padding-left: 0;
}

.pricing li {
    margin-bottom: 10px;
}

.pricing strong {
    font-weight: bold;
}

.lead-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: left;
    max-width: 900px;
    /* margin-left: 65px; */
    /* margin-right: auto; */
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00695c;
}

.testimonials-section-title {
    font-size: 1.4em;
    color: #00695c;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    border: none;
    padding: 0;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-top: 40px;
}

/* .testimonial-card {
    background-color: #f1f8f6;
    border-left: 5px solid #009688;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex: 1 1 calc(50% - 15px);
    min-width: 400px;
    max-width: 100%;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-photo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 5px;
    width: 100%;
    /* コンテナも統一幅に */
    height: 300px;
    /* コンテナも統一高さに */
}

.testimonial-doctor-img {
    width: 100%;
    /* 統一幅 */
    height: 280px;
    /* 統一高さ */
    object-fit: cover;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    font-size: 1.1em;
    font-weight: bold;
    color: #00695c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2f1;
}

.testimonial-text {
    font-size: 0.95em;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    text-align: right;
    color: #00695c;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0f2f1;
}

/* ===== お客様の声（元の3列レイアウト用スタイル） ===== */
.section.testimonials h1 {
    font-size: 32px;
    color: #777777;
}

/* 2列表示に変更：元の3列カードスタイルを2列に修正 */
.section.testimonials .testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.section.testimonials .testimonial-card {
    background-color: #f1f8f6;
    border-left: 5px solid #009688;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1 1 calc(50% - 15px);
    min-width: 350px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section.testimonials .testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #777;
    flex-grow: 1;
}

.section.testimonials .testimonial-author {
    text-align: right;
    color: #00695c;
    font-weight: bold;
    line-height: 1.4;
}

.testimonial-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: block;
    border: 2px solid #009688;
}

/* ===== 会報誌・PDFダウンロード機能 ===== */
.section-title {
    font-size: 28px;
    color: #777777;
    margin-bottom: 16px;
    text-align: left;
}

.section-description {
    font-size: 16px;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.magazine-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

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

.filter-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    background: white;
}

.search-box {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    width: 200px;
}

.latest-issue {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4fff0 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid #00695c;
    position: relative;
    overflow: hidden;
}

.latest-badge {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9em;
}

.latest-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

.latest-preview img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.latest-info {
    flex: 1;
}

.latest-info h3 {
    font-size: 1.8em;
    color: #00695c;
    margin-bottom: 12px;
}

.latest-info .issue-meta {
    color: #666;
    margin-bottom: 16px;
    font-size: 1em;
}

.latest-info .issue-summary {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.archive-header {
    text-align: center;
    margin: 60px 0 40px;
}

.archive-title {
    font-size: 2em;
    color: #777777;
    margin-bottom: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073b7;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.download-btn:hover {
    background: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 183, 0.3);
}

.download-btn.large {
    padding: 16px 32px;
    font-size: 1.1em;
}

.download-icon {
    width: 16px;
    height: 16px;
}

.loading-message,
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results {
    font-style: italic;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.issue-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
}

.issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.issue-preview {
    flex: 0 0 35%;
    height: 280px;
    overflow: hidden;
}

.issue-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.issue-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.issue-info {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.issue-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #00695c;
    margin-bottom: 8px;
}

.issue-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.issue-summary {
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.9em;
}

/* ===== 入会方法 ===== */
.join-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

.join-steps li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 40px;
    background: #f0f8f7;
    padding: 16px;
    border-radius: 8px;
}

.join-steps li::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ccc;
}

.join-steps li:last-child::after {
    content: none;
}

/* ===== 代表者メッセージページ ===== */
.message-section {
    padding: 40px 20px;
    background: white;
    max-width: 1000px;
    margin: 0 auto;
}

.representative-photo {
    text-align: center;
    margin-bottom: 40px;
}

.representative-photo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.representative-message {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1em;
    color: #555;
    text-align: left;
}

/* ===== フォーム ===== */
main {
    padding: 40px 20px;
}

.form-container {
    max-width: 720px;
    width: 100%;
    padding: 24px;
    background-color: #fff;
    /* border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    margin: 0 auto;
}

.description {
    text-align: center;
    color: #555;
    margin-bottom: 24px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 12px;
    font-weight: bold;
    color: #333;
}

label span {
    color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0073b7;
    box-shadow: 0 0 0 2px rgba(0, 115, 183, 0.2);
}

textarea {
    resize: vertical;
}

/* ===== 氏名・フリガナセクション（既存のaddress-sectionスタイルを継承） ===== */
.name-section {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.name-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.name-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.name-field label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
    margin-top: 0;
    font-weight: normal;
}

.name-field input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.name-field input:focus {
    outline: none;
    border-color: #0073b7;
    box-shadow: 0 0 0 2px rgba(0, 115, 183, 0.2);
}

/* ===== メールアドレスセクション（既存のzip-input-groupスタイルを参考） ===== */
.email-section {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.email-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.email-local {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-domain {
    flex: 1;
    min-width: 140px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-local:focus,
.email-domain:focus {
    outline: none;
    border-color: #0073b7;
    box-shadow: 0 0 0 2px rgba(0, 115, 183, 0.2);
}

.email-separator {
    color: #333;
    font-weight: normal;
    font-size: 1.2em;
}


/* ===== 郵便番号・住所セクション ===== */
.address-section {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.zip-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.zip-input {
    width: 60px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.zip-input:focus {
    outline: none;
    border-color: #0073b7;
    box-shadow: 0 0 0 2px rgba(0, 115, 183, 0.2);
}

.zip-input-group span {
    color: #333;
    font-weight: normal;
}

select {
    background-color: white;
    cursor: pointer;
}

select:hover {
    border-color: #0073b7;
}

fieldset {
    margin-top: 16px;
    border: none;
    padding: 0;
}

legend {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

fieldset label {
    display: block;
    margin: 4px 0;
    font-weight: normal;
}

button {
    margin-top: 20px;
    padding: 12px;
    background-color: #0073b7;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #005b94;
}

.contact-info {
    margin-top: 32px;
    font-size: 0.95rem;
    color: #444;
}


/* 姓名フィールドのスタイル */
.name-group {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

.name-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.name-field label {
    margin-top: 0;
    margin-bottom: 6px;
}

.name-field input {
    margin-top: 0;
}

/* 電話番号フィールドのスタイル */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.phone-input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.phone-input:focus {
    outline: none;
    border-color: #0073b7;
    box-shadow: 0 0 0 2px rgba(0, 115, 183, 0.2);
}

.phone-input-group span {
    color: #333;
    font-weight: normal;
}

/* ===== 会社概要 ===== */
#about {
    margin-bottom: 60px;
    margin-top: 0;
    border: none;
    padding: 40px 20px;
    border-radius: 5px;
    box-shadow: none;
    background: white;
}

.about-table-container {
    margin-bottom: 40px;
}

.about-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0;
    border: 2px solid #777777;
    border-collapse: collapse;
    background: white;
}

.about-table th,
.about-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #ddd;
    font-weight: 500;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 0.95em;
}

.about-table th {
    width: 25%;
    background-color: #f8f9fa;
    color: #777777;
    font-weight: 600;
}

.about-table td {
    width: 75%;
    color: #555;
}

.about-table td a {
    color: #0073b7;
    text-decoration: none;
}

.about-table td a:hover {
    text-decoration: underline;
}

.business-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.business-list li {
    margin-bottom: 8px;
    color: #555;
}

.access-section {
    margin-top: 40px;
    padding-bottom: 20px
}

.access-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #00695c;
    border-left: 5px solid #0078d7;
    padding-left: 10px;
}

.access-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.google-map {
    flex: 1;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nearest-station {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073b7;
}

.nearest-station h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #00695c;
}

.nearest-station ul {
    list-style: none;
    padding: 0;
}

.nearest-station li {
    margin-bottom: 12px;
    color: #555;
}

.nearest-station strong {
    font-weight: 600;
    color: #333;
}

/* ===== プライバシーポリシー ===== */
#privacy-policy {
    margin-top: 0;
    padding: 40px 20px;
    background: white;
    box-shadow: none;
}

#privacy-policy h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #00695c;
    text-align: center;
}

.privacy-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073b7;
}

.privacy-section h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #00695c;
    border: none;
    padding: 0;
}

.privacy-section p {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.privacy-section a {
    color: #0073b7;
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

/* ===== プロセスセクション ===== */
.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.process-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.process-steps {
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(50% - 1px);
    width: 2px;
    height: calc(100% - 80px);
    background-color: #0073b7;
}

.process-step {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step-number {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #0073b7;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.process-step-content {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-step:nth-child(odd) .process-step-content {
    margin-left: calc(50% + 30px);
}

.process-step:nth-child(even) .process-step-content {
    margin-right: calc(50% + 30px);
}

.process-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.process-step-text {
    color: #666;
    line-height: 1.6;
}

/* ===== フッター ===== */
footer {
    background-color: #d4fff0;
    color: #777777;
    padding: 50px 0;
    min-height: 200px;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .logo {
    font-size: 1.4em;
    font-weight: 500;
}

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

.footer-menu>li {
    position: relative;
}

.footer-menu>li>a {
    color: #777777;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
}

.footer-menu>li>a:hover {
    text-decoration: underline;
}

footer .submenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0);
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0);
    box-shadow: none;
}

footer .submenu li {
    margin-bottom: 6px;
}

footer .submenu li a {
    color: #777777;
    font-size: 0.8em;
    text-decoration: none;
    display: block;
    padding: 6px 12px;
}

footer p {
    font-size: 0.85em;
    margin-top: 40px;
    color: #777777;
    text-align: center;
}

/* ここから */
/* ===== タブレット用レスポンシブ (768px) ===== */
@media (max-width: 768px) {
    body {
        margin-top: 80px;
        /* ヘッダー高さに合わせて調整 */
    }

    header {
        padding: 6px 0;
        min-height: 75px;
    }

    header .container {
        min-height: 63px;
        align-items: center
    }

    .logo img {
        height: 75px;
        /* margin-right: -12px; */
    }

    .logo {
        font-size: 1.1em;
    }

    .hamburger {
        width: 36px;
        height: 36px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }

    .hamburger span:first-child {
        top: 10px;
    }

    .hamburger span:nth-child(2) {
        top: 17px;
    }

    .hamburger span:last-child {
        top: 24px;
    }

    .hamburger.close span:first-child,
    .hamburger.close span:last-child {
        top: 17px;
    }

    .breadcrumb {
        padding: 10px 0;
        margin-top: 75px;
        /* タブレット用のヘッダー高さに合わせて調整 */
    }

    .breadcrumb-list {
        font-size: 0.85em;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 6px;
    }

    /* ヒーローセクション */
    .hero {
        height: 350px;
        /* 450px → 350pxに変更 */
    }

    .hero-text {
        width: 75%;
        padding: 18px;
    }

    .hero-text h2 {
        font-size: 2.1em;
        margin-bottom: 8px;
    }

    .hero-text h3 {
        font-size: 1.3em;
    }

    /* 動画グリッド（タブレット用2列） */
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* セクション共通 */
    .section {
        margin: 15px;
        padding: 30px 18px;
    }

    section {
        padding: 30px 18px;
        margin: 8px;
    }

    h1 {
        font-size: 2.2em;
        margin-bottom: 25px;
    }

    section h2 {
        font-size: 1.6em;
        margin-bottom: 18px;
    }

    /* メッセージコンテナ */
    .message-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .message-photo img {
        max-width: 100%;
        max-height: 250px;
    }

    .message-text {
        min-width: auto;
        font-size: 0.95em;
    }

    /* 強みセクション */
    .strengths-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 30px;
    }

    .strength-card {
        flex: none;
        width: 100%;
        max-width: 450px;
        padding: 25px;
    }

    .section.strengths h1 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .section.strengths h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .section.strengths p {
        font-size: 15px;
        margin-bottom: 35px;
    }

    /* お客様の声セクション */
    .testimonial-content {
        text-align: center;
        width: 100%;
    }


    .testimonials-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        min-width: auto;
        max-width: 500px;
        margin: 0 auto;
    }


    .testimonial-doctor-img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .testimonial-header {
        text-align: center;
        line-height: 1.4;
    }

    .testimonial-text {
        text-align: left;
        /* 本文は読みやすさのため左寄せ */
        line-height: 1.6;
    }

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

    .testimonial-photo {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    /* 代表者メッセージ */
    .representative-photo img {
        max-width: 100%;
    }

    .representative-message {
        font-size: 1.05em;
        margin-bottom: 25px;
    }

    /* 会社概要テーブル */
    .about-table {
        font-size: 0.9em;
    }

    .about-table th,
    .about-table td {
        padding: 12px 10px;
        font-size: 0.95em;
    }

    .about-table th {
        width: 28%;
    }

    .about-table td {
        width: 72%;
    }

    /* アクセス情報 */
    .access-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        min-height: auto;
        /* 最小高さを自動に */
    }

    .google-map {
        flex: none;
        /* flex: 1を無効化 */
        width: 100%;
        min-height: 250px;
        max-height: 300px;
        /* 最大高さを制限 */
        height: 250px;
        /* 固定高さを設定 */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        /* 下マージンを削除 */
    }

    .google-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        /* ブロック要素として表示 */
    }


    .nearest-station {
        flex: none;
        /* flex: 1を無効化 */
        width: 100%;
        padding: 18px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #0073b7;
        margin-top: 0;
        /* 上マージンを削除 */
    }

    /* フォーム */
    .form-container {
        max-width: 100%;
        padding: 20px 25px 20px 5px;
        margin: 10px;
    }

    .zip-input-group {
        flex-wrap: wrap;
        gap: 6px;
    }

    .zip-input {
        width: 55px;
        padding: 10px;
        font-size: 16px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px;
        padding: 12px 10px;
    }

    .name-group {
        flex-direction: column;
        gap: 0;
    }

    .name-field {
        margin-bottom: 12px;
    }

    .phone-input-group {
        flex-wrap: wrap;
        gap: 6px;
    }

    .phone-input {
        width: 70px;
        padding: 10px;
        font-size: 16px;
    }

    /* 氏名・フリガナ・メールアドレスセクション（タブレット用） */
    .name-section,
    .email-section {
        padding: 0;
        background: transparent;
        border-left: none;
    }

    .name-input-group {
        justify-content: flex-start;
        gap: 10px;
    }

    .email-input-group {
        justify-content: flex-start;
        gap: 6px;
    }

    .email-local {
        min-width: 100px;
    }

    .email-domain {
        min-width: 120px;
    }

    /* 会報誌セクション */
    .magazine-section {
        padding: 30px 15px;
    }

    .latest-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .latest-preview img {
        width: 150px;
        height: 200px;
    }

    .latest-info h3 {
        font-size: 1.6em;
    }

    .filter-container {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .search-box {
        width: 100%;
        max-width: 350px;
    }

    .issues-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    /* プロセス */
    .process-steps::before {
        display: none;
    }

    .process-step {
        display: block;
        margin-bottom: 20px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #0073b7;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .process-step:nth-child(even) {
        flex-direction: initial;
    }

    .process-step-number {
        display: none;
    }

    .process-step-content {
        margin: 0 !important;
        padding: 20px;
        background: transparent;
        box-shadow: none;
    }

    .process-step-title {
        font-size: 1.2rem;
        color: #0073b7;
    }

    .process-step-text {
        font-size: 0.95em;
    }

    .process_container {
        padding: 60px 15px;
    }

    .process_timing {
        font-size: 24px;
    }

    .process_steps {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        padding-left: 60px;
        padding-top: 0;
        padding-bottom: 0;
        gap: 6px;
        overflow-x: visible;
    }

    .process_step {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        width: 100%;
        max-width: 280px;
        height: 55px;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        font-size: 13px;
    }

    .process_step_number {
        position: absolute;
        top: 50%;
        left: -40px;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        font-size: 12px;
        border: 2px solid var(--white);
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    .process_step_content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 100%;
        text-align: left;
    }

    .process_step_title {
        font-size: 13px;
        font-weight: 600;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .process_step_text {
        display: block;
        font-size: 11px;
        color: var(--text-gray);
        line-height: 1.3;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    /* フッター */
    .footer-menu {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer-menu>li>a {
        font-size: 0.95em;
        padding: 10px 15px;
    }
}

/* ===== スマートフォン用レスポンシブ (480px) ===== */
@media (max-width: 480px) {
    body {
        margin-top: 70px;
        font-size: 12px;
    }

    .container {
        padding: 0 15px;
    }



    /* ヘッダー・ナビゲーション */
    header {
        padding: 4px 0;
        min-height: 65px;
    }

    header .container {
        min-height: 57px;
        align-items: center
    }

    .logo img {
        height: 65px;
        margin-right: -10px;
    }

    .logo {
        font-size: 1.0em;
    }

    .logo span {
        font-size: 0.9em;
        margin: 0 auto;
    }

    .hamburger {
        width: 32px;
        height: 32px;
    }

    .hamburger span {
        width: 18px;
        height: 1.5px;
    }

    .hamburger span:first-child {
        top: 9px;
    }

    .hamburger span:nth-child(2) {
        top: 15px;
    }

    .hamburger span:last-child {
        top: 21px;
    }

    .hamburger.close span:first-child,
    .hamburger.close span:last-child {
        top: 15px;
    }

    /* ヒーローセクション */
    .hero {
        height: 250px;
        /* 350px → 250pxに変更 */
    }

    .hero-text {
        width: 90%;
        padding: 15px;
    }

    .hero-text h2 {
        font-size: 1.7em;
        margin-bottom: 6px;
    }

    .hero-text h3 {
        font-size: 1.1em;
    }

    /* セクション共通 */
    .section {
        margin: 10px;
        padding: 20px 15px;
    }

    section {
        padding: 20px 15px;
        margin: 5px;
    }

    h1 {
        font-size: 1.9em;
        margin-bottom: 20px;
    }

    section h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    /* メッセージコンテナ */
    .message-container {
        gap: 20px;
    }

    .message-photo img {
        max-width: 100%;
        max-height: 200px;
    }

    .message-text {
        font-size: 0.9em;
        line-height: 1.7;
    }

    .message-text h3 {
        font-size: 18px;
    }

    .contact-button {
        padding: 10px 18px;
        font-size: 0.9em;
        margin-top: 15px;
    }

    /* 強みセクション */
    .strength-card {
        max-width: 100%;
        padding: 20px;
    }

    .strength-card img {
        height: 150px;
    }

    .strength-card h3 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .strength-card p {
        font-size: 0.9em;
    }

    .section.strengths h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section.strengths h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .section.strengths p {
        font-size: 14px;
        margin-bottom: 25px;
        padding: 0 5px;
    }

    /* お客様の声セクション */
    /* .lead-text {
        font-size: 0.95em;
        padding: 15px;
        margin-bottom: 25px;
        margin-left: 0;
        margin-right: 0;
    } */

    /* リードテキストの調整 */
    .lead-text {
        font-size: 0.9em;
        padding: 12px;
        margin: 0 0 25px 0;
        line-height: 1.6;
    }

    /* セクションタイトルの調整 */
    .testimonials-section-title {
        font-size: 1.0em;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 5px;
        line-height: 1.4;
    }

    .testimonials-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    /* カード全体のレスポンシブ対応 */
    .testimonial-card {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        padding: 15px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0;
        box-sizing: border-box;
    }

    /* 写真部分の調整 */
    .testimonial-photo {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin-bottom: 8px;
        align-self: center;
    }

    .testimonial-doctor-img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* コンテンツ部分の調整 */
    .testimonial-content {
        width: 100%;
        text-align: center;
    }

    /* ヘッダーの調整 */
    .testimonial-header {
        font-size: 0.95em;
        margin-bottom: 12px;
        text-align: center;
        line-height: 1.4;
    }

    /* テキスト部分の調整 */
    .testimonial-text {
        font-size: 0.85em;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: left;
        /* 読みやすさのため本文は左寄せ */
    }

    /* 著者情報の調整 */
    .testimonial-author {
        font-size: 0.8em;
        text-align: center;
        margin-top: 10px;
    }



    /* 代表者メッセージ */
    .message-section {
        padding: 30px 15px;
    }

    .representative-photo {
        margin-bottom: 30px;
    }

    .representative-message {
        font-size: 1.0em;
        margin-bottom: 20px;
        line-height: 1.7;
    }

    /* 会社概要テーブル */
    .about-table {
        font-size: 0.8em;
        border: 1px solid #777777;
    }

    .about-table th,
    .about-table td {
        padding: 8px 6px;
        font-size: 0.85em;
        line-height: 1.4;
    }

    .about-table th {
        width: 30%;
        font-size: 0.8em;
    }

    .about-table td {
        width: 70%;
    }

    .business-list {
        padding-left: 15px;
    }

    .business-list li {
        margin-bottom: 5px;
        font-size: 0.85em;
    }

    /* アクセス情報 */
    .access-section h2 {
        font-size: 1.5em;
    }

    .google-map {
        min-height: 200px;
        height: 200px;
        border-radius: 6px;
    }

    .nearest-station {
        padding: 15px;
        border-radius: 6px;
    }

    .nearest-station h3 {
        font-size: 1.0em;
        margin-bottom: 10px;
    }

    .nearest-station li {
        margin-bottom: 8px;
        font-size: 0.85em;
        line-height: 1.4;
    }

    /* フォーム */
    .form-container {
        padding: 15px;
        margin: 5px;
    }

    .description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    label {
        font-size: 0.9em;
        margin-top: 10px;
    }

    .zip-input {
        width: 45px;
        padding: 8px;
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        padding: 10px 8px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 0.9em;
        margin-top: 18px;
    }

    /* 氏名・フリガナ・メールアドレスセクション（スマートフォン用） */
    .name-section,
    .email-section {
        padding: 0;
        margin: 15px 0;
        background: transparent;
        border-left: none;
    }

    .name-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .name-field {
        width: 100%;
    }

    .name-field input {
        font-size: 16px;
        /* iOS Safari のズーム防止 */
        padding: 12px 10px;
    }

    .email-input-group {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .email-local,
    .email-domain {
        min-width: auto;
        font-size: 16px;
        /* iOS Safari のズーム防止 */
        padding: 12px 10px;
    }

    .email-local {
        flex: 1;
        min-width: 120px;
    }

    .email-domain {
        flex: 1;
        min-width: 140px;
    }

    .phone-input {
        width: 60px;
        padding: 8px;
        font-size: 14px;
    }

    /* 会報誌セクション */
    .magazine-section {
        padding: 25px 10px;
    }

    .section-title {
        font-size: 1.6em;
    }

    .section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .latest-issue {
        padding: 20px;
        margin-bottom: 30px;
    }

    .latest-badge {
        top: 8px;
        right: 15px;
        padding: 6px 15px;
        font-size: 0.8em;
    }

    .latest-preview img {
        width: 120px;
        height: 160px;
    }

    .latest-info h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .latest-info .issue-meta {
        font-size: 0.9em;
        margin-bottom: 12px;
    }

    .latest-info .issue-summary {
        font-size: 0.85em;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .download-btn.large {
        padding: 12px 20px;
        font-size: 0.8em;
    }

    .filter-container {
        padding: 15px;
        gap: 12px;
    }

    .filter-group {
        gap: 6px;
    }

    .filter-group label {
        font-size: 0.85em;
    }

    .filter-group select {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .search-box {
        width: 100%;
        max-width: 250px;
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .archive-title {
        font-size: 1.3em;
    }

    .issues-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .issue-card {
        border-radius: 8px;
        flex-direction: row;
    }

    .issue-preview {
        flex: 0 0 30%;
        height: 220px;
    }

    .issue-info {
        padding: 15px;
    }

    .issue-title {
        font-size: 1.0em;
        margin-bottom: 6px;
    }

    .issue-meta {
        font-size: 0.8em;
        margin-bottom: 10px;
    }

    .issue-summary {
        font-size: 0.85em;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .download-btn {
        padding: 8px 15px;
        font-size: 0.85em;
        gap: 6px;
    }

    .download-icon {
        width: 14px;
        height: 14px;
    }

    /* プロセス */
    .process-step-content {
        padding: 15px;
    }

    .process-step-title {
        font-size: 1.0rem;
        margin-bottom: 8px;
    }

    .process-step-text {
        font-size: 0.85em;
        line-height: 1.5;
    }

    /* 入会方法 */
    .join-steps {
        font-size: 14px;
        max-width: 100%;
        margin: 0 0 20px;
    }

    .join-steps li {
        padding: 12px;
        margin-bottom: 15px;
    }

    /* フッター */
    footer {
        padding: 30px 0;
    }

    footer .logo {
        font-size: 1.2em;
        text-align: center;
    }

    .footer-menu {
        gap: 8px;
    }

    .footer-menu>li>a {
        font-size: 0.85em;
        padding: 8px 12px;
    }

    footer p {
        font-size: 0.8em;
        margin-top: 25px;
    }

    .breadcrumb {
        padding: 8px 0;
        margin-top: 65px;
        /* スマートフォン用のヘッダー高さに合わせて調整 */
    }

    .breadcrumb-list {
        font-size: 0.8em;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 4px;
    }
}

/* ===== モバイルナビゲーション (960px以下) ===== */
@media (max-width: 960px) {
    .hamburger {
        display: flex;
        /* display: block から display: flex に変更 */
        margin: 20px;
    }

    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #e8f5e8 0%, #d4fff0 100%);
        z-index: 1000;
        padding-top: 100px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    nav.open {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        align-items: center;
        padding: 0 20px;
    }

    nav ul li {
        width: 100%;
        margin-bottom: 12px;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.3);
        opacity: 0;
        transform: translateX(-30px);
        animation: slideInImproved 0.4s ease forwards;
    }

    nav ul li:nth-child(1) {
        animation-delay: 0.1s;
    }

    nav ul li:nth-child(2) {
        animation-delay: 0.15s;
    }

    nav ul li:nth-child(3) {
        animation-delay: 0.2s;
    }

    nav ul li:nth-child(4) {
        animation-delay: 0.25s;
    }

    nav ul li:nth-child(5) {
        animation-delay: 0.3s;
    }

    nav ul li:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 1);
    }

    nav ul li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 24px;
        font-size: 1.1em;
        font-weight: 600;
        color: #2c3e50;
        text-decoration: none;
        border: none;
        transition: all 0.3s ease;
        position: relative;
    }

    nav ul li a:hover {
        background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
        color: #1565c0;
        text-shadow: 0 1px 2px rgba(21, 101, 192, 0.1);
        border-radius: 12px;
        margin: 0;
    }

    .has-submenu>a::after {
        content: '+';
        font-size: 1.8em;
        font-weight: bold;
        color: #1565c0;
        transition: transform 0.3s ease;
        text-shadow: 0 1px 2px rgba(21, 101, 192, 0.2);
    }

    .has-submenu.submenu-open>a::after {
        transform: rotate(45deg);
        /* color: #d32f2f; */
    }

    .has-submenu.submenu-open>a {
        background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
        color: #1565c0;
        border-radius: 12px;
    }

    nav .submenu {
        display: none;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        margin: 0;
        padding: 0;
        border-top: 2px solid #1565c0;
        position: static;
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    nav .submenu li {
        background: transparent;
        margin-bottom: 0;
        box-shadow: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(21, 101, 192, 0.15);
        animation: none;
        opacity: 1;
        transform: none;
    }

    nav .submenu li:last-child {
        border-bottom: none;
    }

    nav .submenu li a {
        padding: 16px 32px 16px 52px;
        font-size: 1em;
        font-weight: 500;
        color: #34495e;
        justify-content: flex-start;
        background: transparent;
        position: relative;
    }

    nav .submenu li a::before {
        content: '→';
        position: absolute;
        left: 28px;
        color: #1565c0;
        font-weight: bold;
        font-size: 1.1em;
        transition: all 0.3s ease;
    }

    nav .submenu li a::after {
        display: none;
    }

    nav .submenu li a:hover {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        color: #1565c0;
        padding-left: 56px;
        text-shadow: 0 1px 2px rgba(21, 101, 192, 0.1);
        border-radius: 8px;
        margin: 2px 8px;
    }

    nav .submenu li a:hover::before {
        left: 32px;
        transform: scale(1.2);
    }
}

@keyframes slideInImproved {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== PC用表示制御 ===== */
@media (min-width: 961px) {
    .hamburger {
        display: none !important;
    }

    nav {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        z-index: auto !important;
        padding: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    nav ul {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        max-width: none !important;
        align-items: center !important;
        padding: 0 !important;
    }

    nav ul li {
        width: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        position: relative;
    }

    .hero {
        position: relative;
        width: 100%;
        height: 80vh;
        /* 100vh → 60vhに変更（画面高さの60%） */
        min-height: 400px;
        /* 600px → 400pxに変更 */
        max-height: 500px;
        /* 最大高さを追加制限 */
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .hero-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        color: white;
        text-align: center;
        padding: 40px 60px;
        background-color: rgba(87, 87, 87, 0.7);
        border-radius: 15px;
        width: auto;
        max-width: 800px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        opacity: 0.8;
    }

    .hero-text h2 {
        font-size: 2.8em;
        /* 3.2em → 2.8emに調整 */
        margin-bottom: 20px;
        color: white;
        border: none;
        padding: 0;
        font-weight: 700;
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-text h3 {
        font-size: 1.6em;
        /* 1.8em → 1.6emに調整 */
        font-weight: 400;
        line-height: 1.5;
        margin-top: 15px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
}

/* ===== 320px以下の超小型デバイス用追加調整 ===== */
@media (max-width: 320px) {
    body {
        margin-top: 65px;
        font-size: 11px;
    }

    header {
        padding: 3px 0;
        min-height: 60px;
    }

    header .container {
        min-height: 54px;
        align-items: center
    }

    .logo img {
        height: 55px;
        margin-right: -8px;
    }

    .logo {
        font-size: 0.9em;
    }

    .hamburger {
        width: 30px;
        height: 30px;
    }

    .hamburger span {
        width: 16px;
        height: 1.5px;
    }

    .hamburger span:first-child {
        top: 8px;
    }

    .hamburger span:nth-child(2) {
        top: 14px;
    }

    .hamburger span:last-child {
        top: 20px;
    }

    .hamburger.close span:first-child,
    .hamburger.close span:last-child {
        top: 14px;
    }

    .hero {
        height: 200px;
        /* 300px → 200pxに変更 */
    }

    .hero-text {
        width: 95%;
        padding: 12px;
    }

    .hero-text h2 {
        font-size: 1.4em;
    }

    .hero-text h3 {
        font-size: 1.0em;
    }

    .section {
        margin: 8px;
        padding: 15px 12px;
    }

    h1 {
        font-size: 1.6em;
        margin-bottom: 18px;
    }

    .section.strengths h1 {
        font-size: 20px;
    }

    .section.strengths h2 {
        font-size: 16px;
    }

    .section.strengths p {
        font-size: 13px;
        padding: 0;
    }

    .strength-card {
        padding: 15px;
    }

    .strength-card img {
        height: 130px;
    }

    .contact-button {
        padding: 8px 15px;
        font-size: 0.8em;
    }

    .form-container {
        padding: 12px;
        margin: 3px;
    }

    .zip-input {
        width: 40px;
        padding: 8px;
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        padding: 8px 6px;
        font-size: 12px;
    }

    /* 氏名・フリガナ・メールアドレスセクション（超小型画面用） */
    .name-section,
    .email-section {
        padding: 0;
        background: transparent;
        border-left: none;
    }

    .name-field input {
        padding: 10px 8px;
        font-size: 14px;
    }

    .email-local,
    .email-domain {
        padding: 10px 8px;
        font-size: 14px;
        min-width: 100px;
    }

    .email-separator {
        font-size: 1em;
    }

    .phone-input {
        width: 50px;
        padding: 8px;
        font-size: 12px;
    }

    .about-table th,
    .about-table td {
        padding: 6px 4px;
        font-size: 0.8em;
    }

    .latest-preview img {
        width: 100px;
        height: 130px;
    }

    .latest-info h3 {
        font-size: 1.2em;
    }

    .download-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .download-btn.large {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .issues-grid {
        gap: 12px;
    }

    .issue-preview {
        height: 140px;
    }

    .issue-info {
        padding: 12px;
    }

    .testimonial-card {
        padding: 12px;
        gap: 10px;
    }

    .testimonial-photo {
        width: 70px;
        height: 70px;
    }

    .testimonial-doctor-img {
        width: 70px;
        height: 70px;
    }

    .testimonial-header {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .testimonial-text {
        font-size: 0.8em;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .testimonial-author {
        font-size: 0.75em;
    }

    .lead-text {
        font-size: 0.85em;
        padding: 10px;
        margin-bottom: 20px;
    }

    .testimonials-section-title {
        font-size: 0.95em;
        margin-bottom: 18px;
        padding: 0 3px;
    }

    .representative-message {
        font-size: 0.95em;
    }

    footer .logo {
        font-size: 1.1em;
    }

    .footer-menu>li>a {
        font-size: 0.8em;
        padding: 6px 10px;
    }
}

/* ===== 印刷用スタイル ===== */
@media print {
    body {
        margin-top: 0;
        font-size: 12pt;
        color: #000;
        background: white;
    }

    header,
    .hamburger,
    nav,
    footer,
    .contact-button,
    .download-btn {
        display: none;
    }

    .hero-text {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }

    .section,
    section {
        box-shadow: none;
        border: 1px solid #ccc;
        margin: 10px 0;
        break-inside: avoid;
    }

    .testimonial-card,
    .strength-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .video-wrapper {
        display: none;
    }

    .about-table {
        border: 2px solid #000;
    }

    .about-table th,
    .about-table td {
        border: 1px solid #000;
    }

    .process-step {
        break-inside: avoid;
    }
}

/* ===== アクセシビリティ向上 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ダークモード対応 ===== */
@media (prefers-color-scheme: dark) {
    .form-container {
        background-color: #f8f9fa;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        background-color: white;
        color: #333;
    }
}

/* ===== 高解像度ディスプレイ対応 ===== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== フォーカス・ホバー状態の向上 ===== */
.contact-button:focus,
.download-btn:focus,
button:focus {
    outline: 2px solid #0073b7;
    outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(0, 115, 183, 0.3);
}

/* ===== スムーズスクロール強化 ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===== 追加のユーティリティクラス ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

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

.mb-small {
    margin-bottom: 10px;
}

.mb-medium {
    margin-bottom: 20px;
}

.mb-large {
    margin-bottom: 30px;
}

/* ===== 追加レスポンシブ調整 ===== */
@media (max-width: 480px) and (min-width: 391px) {
    .hero {
        height: 300px;
        /* 380px → 300pxに変更 */
    }

    .hero-text {
        width: 85%;
    }

    .hero-text h2 {
        font-size: 1.8em;
    }

    .section.strengths h1 {
        font-size: 26px;
    }

    .latest-preview img {
        width: 130px;
        height: 170px;
    }

    .testimonial-doctor-img {
        width: 75px;
        height: 75px;
    }

    .process_container {
        padding: 40px 10px;
    }

    .process_step {
        height: 40px;
        max-width: 200px;
        padding: 4px 6px;
        font-size: 11px;
    }

    .process_step_number {
        left: -28px;
        width: 22px;
        height: 22px;
        font-size: 9px;
    }

    .process_timing {
        font-size: 20px;
    }

    .p_rate_timing_info-box li {
        padding-left: 44px;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .p_rate_timing_info-box .num {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }

    /* 2. 会報誌セクションの修正 */
    @media (max-width: 480px) {
        .latest-content {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }

        .latest-preview img {
            width: 100px;
            height: 130px;
        }

        .latest-info {
            width: 100%;
            max-width: 100%;
        }

        .latest-info h3 {
            font-size: 1.3em;
            line-height: 1.3;
        }
    }

    /* 3. フィルターコンテナの修正 */
    @media (max-width: 480px) {
        .filter-container {
            padding: 15px 10px;
            gap: 12px;
        }

        .filter-group {
            width: 100%;
            max-width: 200px;
        }

        .filter-group select {
            width: 100%;
            min-width: 0;
            font-size: 0.9em;
        }

        .search-box {
            width: 100%;
            max-width: 200px;
            min-width: 0;
        }
    }

    /* 4. testimonial-cardの修正 */
    @media (max-width: 480px) {
        .testimonial-card {
            min-width: auto;
            max-width: 100%;
            width: 100%;
            padding: 15px;
            margin: 0 5px;
        }
    }

    /* 5. issue-cardの修正 */
    /* 幅391px〜480px：2カラムグリッド + カード内は横並び（左画像、右テキスト） */
    @media (min-width: 391px) and (max-width: 480px) {
        .magazine-section .issues-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 10px;
            padding: 0 5px;
        }

        .magazine-section .issue-card {
            flex-direction: row !important;
        }

        .magazine-section .issue-preview {
            flex: 0 0 40% !important;
            height: 140px;
        }

        .magazine-section .issue-info {
            flex: 1;
            padding: 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .magazine-section .issue-title {
            font-size: 0.85em;
        }

        .magazine-section .issue-meta {
            font-size: 0.75em;
        }

        .magazine-section .issue-summary {
            font-size: 0.75em;
            line-height: 1.3;
            margin-bottom: 8px;
        }

        .magazine-section .download-btn {
            padding: 6px 10px;
            font-size: 0.75em;
        }
    }

    /* 幅480px以下：1カラムグリッド + カード内は縦積み */
    @media (max-width: 480px) {
        .issues-grid {
            grid-template-columns: 1fr;
            gap: 15px;
            padding: 0 5px;
        }

        .issue-card {
            flex-direction: column;
        }

        .issue-preview {
            flex: none;
            width: 100%;
            height: 200px;
        }

        .issue-info {
            padding: 15px;
        }
    }

    /* 6. 全体的なコンテナ修正 */
    @media (max-width: 480px) {
        .container {
            padding: 0 10px;
            max-width: 100%;
        }

        .magazine-section {
            padding: 25px 5px;
        }

        .section {
            margin: 10px 5px;
            padding: 20px 10px;
        }
    }

    /* 7. 長いテキストの折り返し */
    @media (max-width: 480px) {

        .issue-title,
        .testimonial-header,
        .latest-info h3 {
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        .download-btn {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
        }
    }

    /* 8. 特定の幅制御 */
    @media (max-width: 390px) {
        * {
            max-width: 100%;
            box-sizing: border-box;
        }

        .hero-text {
            width: 95%;
            padding: 12px;
            max-width: calc(100vw - 20px);
        }

        .latest-issue {
            margin: 0 5px;
            padding: 15px 10px;
        }

        .latest-badge {
            right: 10px;
            font-size: 0.75em;
            padding: 4px 10px;
        }
    }

    /* 9. 320px以下の超小型画面 */
    @media (max-width: 320px) {
        .container {
            padding: 0 5px;
        }

        .magazine-section {
            padding: 20px 3px;
        }

        .filter-container {
            padding: 10px 5px;
            flex-direction: column;
            align-items: stretch;
        }

        .filter-group,
        .search-box {
            width: 100%;
            max-width: none;
        }

        .latest-content {
            padding: 0 5px;
        }

        .download-btn {
            font-size: 0.8em;
            padding: 8px 12px;
            max-width: 180px;
        }
    }

    /* 10. 画像の制御 */
    @media (max-width: 480px) {
        img {
            max-width: 100%;
            height: auto;
        }

        .issue-preview img,
        .latest-preview img,
        .testimonial-doctor-img {
            width: 100%;
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }
    }
}