/* ========================================================
   大手町特集ページ スタイルシート (ohotemachi.css)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');


/* --------------------------------------------------------
   1. CSS変数
-------------------------------------------------------- */
:root {
    --primary-color:    #059669;    /* emerald-600 */
    --primary-dark:     #065f46;    /* emerald-800 */
    --primary-light:    #d1fae5;    /* emerald-100 */
    --border-color:     #e2e8f0;
    --text-main:        #333333;
    --text-muted:       #4b5563;    /* gray-600 */
    --green:            #0f7a5b;
    --green-2:          #0d6449;
    --radius:           8px;
    --line:             #e5e7eb;
    --shadow:           0 1px 3px rgba(0,0,0,.1);
    --text:             #1f2937;
    --text-body:        #374151;
    --muted:            #6b7280;
    --border-outer:     #d1d5db;
    --border-card-black:#1f2937;
}


/* --------------------------------------------------------
   2. リセット・ベース
-------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

body {
    margin: 0;
    padding: 0;
}


/* --------------------------------------------------------
   3. レイアウト共通
-------------------------------------------------------- */
.container {
    max-width: 1152px; /* 6xl相当 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-color);
    width: 100%;
    overflow-x: hidden;
}

.section-frame {
    border-radius: 0; /* 四角形 */
    padding: 3rem 2.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    max-width: 100%;
    overflow-x: hidden;
}

.page-wrap {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section { padding: 40px 0; }
.section--tight { padding: 20px 0; }
.section--alt { background: #f9fafb; }
.section--bg-full { background: #f9fafb; padding: 40px 0; }

.section--bg-full__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.mb40 { margin-bottom: 40px; }
.mt40 { margin-top: 40px; }


/* --------------------------------------------------------
   4. メインビジュアル（ヒーローセクション）
-------------------------------------------------------- */
.hero-top-wrapper {
    padding: 1rem 1rem 0;
    max-width: 1152px;
    margin: 0 auto;
}

.hero-content {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    max-width: 100%;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    flex-shrink: 0;
}

.hero-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    z-index: 10;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16,185,129,0.9);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.375;
    letter-spacing: 0.025em;
    margin-bottom: 0.35rem;
}

.hero-description {
    font-size: 0.95rem;
    color: rgb(229,231,235);
    opacity: 0.9;
    display: none;
    line-height: 1.625;
}

.hero-info {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.hero-info-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0,1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(4,120,87);
    font-weight: 700;
    border-bottom: 1px solid rgb(209,250,229);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.hero-info-header.orange {
    color: rgb(234,88,12);
    border-color: rgb(254,215,170);
}

.hero-info-header.blue {
    color: rgb(37,99,235);
    border-color: rgb(191,219,254);
}

.hero-info-header i {
    background: rgb(209,250,229);
    padding: 0.45rem;
    border-radius: 0.375rem;
    font-size: 1.05rem;
}

.hero-info-header.orange i { background: rgb(254,215,170); }
.hero-info-header.blue i   { background: rgb(191,219,254); }

.hero-info-header h2 { font-size: 1.05rem; }

.hero-info-section p {
    font-size: 1.05rem;
    color: rgb(75,85,99);
    line-height: 1.7;
    text-align: justify;
}

.hero-info-section p span {
    font-weight: 700;
    color: rgb(31,41,55);
}

.hero-info-section p span.orange { color: rgb(194,65,12); }

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgb(249,250,251);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgb(243,244,246);
    gap: 1rem;
}

.hero-cta-text {
    font-size: 12px;
    color: rgb(107,114,128);
    font-weight: 500;
    padding: 0 0.25rem;
    text-align: center;
}

.hero-cta-button {
    width: 100%;
    background: rgb(4,120,87);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.hero-cta-button span { font-weight: 500; }

.hero-cta-button:hover {
    background: rgb(5,150,105);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.hero-cta-button i { transition: transform 0.3s; }
.hero-cta-button:hover i { transform: translateX(0.25rem); }

/* ヒーローメディア（サムネイル画像用ヘッダー） */
.hero__media {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #d1d5db;
}

.hero__media img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center 60%;
    filter: saturate(1.05) contrast(1.02);
}

.hero__media__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.78);
}

.hero__media__content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    color: #1c1f23;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    background: rgba(15,122,91,0.10);
    border: 1px solid rgba(15,122,91,0.25);
    color: #0f7a5b;
}

.hero__title {
    margin: 10px 0 8px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: 0.02em;
    color: #111827;
}

.hero__copy {
    margin: 0;
    color: #374151;
    line-height: 1.85;
    font-size: 14px;
    max-width: 980px;
}


/* --------------------------------------------------------
   5. セクションナビゲーション（ショートカット）
-------------------------------------------------------- */
.shortcut-inner {
    padding-top: 0;
    padding-bottom: 0;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.shortcut {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0;
    width: 100%;
    box-sizing: border-box;
    background: #f6f6f6;
    border: none;
    border-radius: var(--radius);
    box-shadow: none;
}

.section--shortcut-bg-full .shortcut {
    padding-left: 0;
    padding-right: 0;
}

.shortcut .btn--ghost {
    background: #fff;
    color: var(--green);
    border: 2px solid #37415173;
    font-weight: 500;
    border-radius: var(--radius);
    font-size: 12px;
    margin-left: 8px;
    padding: 2px 4px;
    box-shadow: 2px 2px rgba(12, 96, 8, .20);
}

.shortcut .btn--ghost:hover {
    background: #fff;
    border-color: #dcdcdc;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}


/* --------------------------------------------------------
   6. 共通見出し・タグ・ラベル
-------------------------------------------------------- */
.h2 {
    font-size: 22px;
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--text);
}

.h2--decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 0 10px;
    margin: 0 auto 16px;
    max-width: fit-content;
    background: transparent;
    border: none;
    border-bottom: 1px solid #dcdcdc;
    box-shadow: none;
}

.h2--decor svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
    opacity: .9;
}

.h2--decor span { 
    position: relative; 
    font-weight: 700;
    background: linear-gradient(transparent 60%, rgba(255, 237, 74, 0.5) 60%);
}

.h3 {
    font-size: 18px;
    margin: 0 0 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sub {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 20px;
    text-align: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag--men   { background: #e0f2fe; color: #0369a1; }
.tag--women { background: #fce7f3; color: #be185d; }

.gender-label {
    font-size: 14px;
    font-weight: 900;
    color: var(--text);
    margin-right: 4px;
}

.other-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}

.ranking-gender-grid { display: grid; gap: 18px; }

.icon--men   { color: #2563eb; }
.icon--women { color: #db2777; }


/* --------------------------------------------------------
   7. セクションタイトル
-------------------------------------------------------- */
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.title-bar {
    width: 6px;
    height: 32px;
}

.section-heading {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-main);
    background: linear-gradient(transparent 60%, rgba(255,237,74,0.5) 60%);
    display: inline;
    line-height: 1.8;
}


/* --------------------------------------------------------
   8. エリアガイド
-------------------------------------------------------- */
.area-guide-card {
    background-color: #ffffff;
    border: 1px solid var(--border-outer);
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 4px 15px -3px rgba(0,0,0,0.04);
    font-family: 'Zen Maru Gothic', sans-serif;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
}

.feature-text {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
    line-height: 1.8;
}

.marker-line {
    background: linear-gradient(transparent 70%, #ecfdf5 70%, #d1fae5 95%);
}

.cta-button {
    background-color: var(--primary-dark);
    color: #ffffff;
    width: 100%;
    max-width: 28rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: 'Zen Maru Gothic', sans-serif;
}


/* --------------------------------------------------------
   9. おすすめ駅情報
-------------------------------------------------------- */
.station-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-card {
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-family: 'Zen Maru Gothic', sans-serif;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--border-outer);
}

.info-card-header-group {
    padding: 1rem 1.5rem 1.5rem;
    background-color: #ffffff;
    text-align: center;
}

.info-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    color: #000000;
}

.info-card-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.info-card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.station-list {
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem 1.25rem 1.25rem;
    gap: 0.75rem;
}

.station-photo-banner {
    position: relative;
    display: block;
    cursor: pointer;
    width: 100%;
    height: 80px;
    overflow: hidden;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--border-outer);
    transition: all 0.3s ease;
}

.station-photo-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    transition: transform 0.6s ease;
}

.station-photo-banner:hover img {
    transform: scale(1.08);
    filter: brightness(0.65);
}

.station-name-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}


/* --------------------------------------------------------
   10. ランキングセクション
-------------------------------------------------------- */
.rank {
    position: relative;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.rank .rank__img {
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 110px;
    background: #f2f2f2;
    border-bottom: 1px solid var(--line);
}

.rank__img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

#staff-lines .rank__img { height: 180px; }

.rank__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.rank__body > .btn { margin-top: auto; }

.rank__no {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.rank__no--1 {
    background: linear-gradient(145deg, #e8c547 0%, #c9a227 50%, #a88622 100%);
    border: 3px solid #f0d878;
    box-shadow: 0 4px 14px rgba(201,162,39,.45);
}

.rank__no--2 {
    background: linear-gradient(145deg, #e8e8e8 0%, #b8b8b8 50%, #909090 100%);
    border: 3px solid #f0f0f0;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.rank__no--3 {
    background: linear-gradient(145deg, #e0a050 0%, #c17d3a 50%, #9a6029 100%);
    border: 3px solid #e8b870;
    box-shadow: 0 4px 14px rgba(193,125,58,.35);
}

.rank__name {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 900;
}

.rank__line {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.rank__reason {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-body);
    font-weight: 500;
}

/* ランキング ボタン */
.rank__body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: .2s ease;
    user-select: none;
}

.rank__body .btn--primary {
    background: var(--green);
    color: #fff;
    border-color: transparent;
}

.rank__body .btn--primary:hover {
    background: var(--green-2);
    box-shadow: 0 4px 12px rgba(15,122,91,.2);
}

.rank__body .btn--ghost {
    background: #fff;
    color: var(--green);
    border-color: var(--line);
}

.rank__body .btn--ghost:hover {
    background: #f6f6f6;
    border-color: rgba(15,122,91,.25);
}

.rank__body .btn--sm {
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13px;
}

.rank__body .btn--icon svg {
    width: 18px;
    height: 18px;
}

/* ランキング スライダー共通 */
.mySwiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px; /* ドットのための余白 */
    display: block !important;
    position: relative; /* ボタンの基準点 */
}

.rank-grid.swiper-wrapper {
    display: flex !important;
    gap: 0 !important;
}

.rank.swiper-slide {
    height: auto;
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
}


/* --------------------------------------------------------
   11. スタッフ居住路線
-------------------------------------------------------- */
.staff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.staff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: #ffffff;
    border: 1px solid var(--border-outer);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.staff-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.staff-route-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-outer);
}

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

.staff-card-body {
    padding: 1.5rem;
    position: relative;
}

.rank-bg-text {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 50px;
    font-weight: 900;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    transform: rotate(5deg);
}

.color-1 { background-image: linear-gradient(to bottom right, #d1fae5, #a7f3d0); }
.color-2 { background-image: linear-gradient(to bottom right, #f1f5f9, #cbd5e1); }
.color-3 { background-image: linear-gradient(to bottom right, #ecfdf5, #d1fae5); }

.staff-card-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.route-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.route-underline {
    width: 2.5rem;
    height: 3px;
    margin: 0 0 1.25rem;
    border-radius: 2px;
}

.theme-emerald-line { background-color: #10b981; }
.theme-slate-line   { background-color: #64748b; }

.voice-bubble {
    text-align: left;
    margin-top: 1rem;
    padding: 1.25rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: #ffffff;
    border-radius: 16px; /* 吹き出し風の丸み */
    position: relative;
}

.theme-emerald-bg { background-color: rgba(240,253,244,0.6); }
.theme-slate-bg   { background-color: rgba(248,250,252,0.6); }

.voice-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.voice-badge {
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    border-radius: 4px;
}

.theme-emerald .voice-badge { background-color: var(--primary-color); }
.theme-slate .voice-badge   { background-color: #64748b; }
.theme-emerald .voice-icon  { color: #10b981; }
.theme-slate .voice-icon    { color: #94a3b8; }

.voice-comment {
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    margin: 0;
}

/* 路線ランキング「この路線で探す」ボタン */
.staff-card-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: .2s ease;
    user-select: none;
    margin-top: 1rem;
    width: 100%;
}

.staff-card-content .btn--primary {
    background: var(--green);
    color: #fff;
    border-color: transparent;
}

.staff-card-content .btn--primary:hover {
    background: var(--green-2);
    box-shadow: 0 4px 12px rgba(15,122,91,.2);
}

.staff-card-content .btn--sm {
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13px;
}


/* --------------------------------------------------------
   12. お部屋探しポイント（Tips）
-------------------------------------------------------- */
.tips-container {
    max-width: 1152px;
    margin: 0px auto 0;
    background: #fff;
    padding: 40px 30px;
}

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

.tips-header h2 {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.6;
}

.tips-header .highlight-green {
    color: var(--brand-green);
    display: inline;
    margin-top: 5px;
    background: linear-gradient(transparent 60%, rgba(255,237,74,0.5) 60%);
    line-height: 1.8;
}

.tips-header .underline {
    width: 40px;
    height: 3px;
    background: var(--brand-green);
    margin: 15px auto 0;
    border-radius: 2px;
}

.tips-block {
    margin-bottom: 60px;
}

.tips-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #1a1a1a;
}

/* 丸数字の設定：色を確実に適用 */
.num-circle {
    width: 36px;
    height: 36px;
    background-color: #12845e; /* 直接指定することで確実に反映 */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.tips-content p {
    line-height: 1.8;
    color: #4b5563;
    padding-top: 10px;
}

/* 例：のグレーボックス */
.tips-example-box {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    color: #64748b;
}

.tips-example-box p {
    margin: 0;
    font-size: 15px;
}

.tips-bold-green {
    color: #12845e; /* 直接指定 */
    font-weight: bold;
    text-decoration: underline;
}

.tips-sub-text {
    font-size: 14px;
    font-style: italic;
    color: #94a3b8;
    margin-top: 15px;
}

/* アドバイスブロック：外側の縦線を無くし背景のみに */
.advice-box {
    background-color: #e9f5f0; /* var(--brand-green-light) */
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: none !important; /* 縦線を強制的に非表示 */
}

.advice-title {
    color: #12845e;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Tips アコーディオン */
.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    background: #fff;
    margin-bottom: 20px;
    margin-top: 10px;
    cursor: pointer;
}

.accordion-icon {
    color: #12845e;
    font-size: 20px;
    border: 1px solid #12845e;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-content {
    display: none;
    padding: 0 20px 20px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -20px;
    margin-bottom: 20px;
    background: #fff;
}

.accordion-content.is-open { display: block; }

.accordion-content ul li { padding-top: 10px; }

.accordion-content ul li strong {
    font-weight: 600;
    color: #1a202c;
}

.accordion-btn.is-open .accordion-icon { transform: rotate(45deg); }


/* --------------------------------------------------------
   13. よくあるご質問（FAQ）
-------------------------------------------------------- */
.otemachi-card.faq-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px 0;
}

.otemachi-accordion { padding: 0 24px 24px; }

.otemachi-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
}

.otemachi-accordion-trigger {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.otemachi-accordion-icon {
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    color: #12845e;
    border: 1.5px solid #12845e;
    border-radius: 50%;
    transition: transform 0.3s;
}

.otemachi-accordion-trigger.is-open .otemachi-accordion-icon {
    transform: rotate(45deg);
    background-color: #12845e;
    color: #fff;
}

.otemachi-accordion-content {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid #edf2f7;
    padding-top: 18px;
}

/* FAQ（detailsタグ使用） */
.faq { display: grid; gap: 12px; }

.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq details summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    list-style: none;
    display: block;
    color: var(--text);
    font-size: 14px;
}

.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::marker { display: none; }

.summary__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.summary__label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.summary__label > span:not(.summary__icon) {
    min-width: 0;
    flex: 1;
}

.summary__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(15,122,91,.06);
    color: var(--green);
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    margin-top: 1px;
    font-weight: 700;
}

.summary__hint {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #fafafa;
    color: var(--muted);
    transition: .2s ease;
}

.faq details[open] .summary__hint { transform: rotate(180deg); }
.faq details summary:hover { background: #fafafa; cursor: pointer; }
.faq details summary:focus-visible { outline: 2px solid rgba(15,122,91,.2); outline-offset: 2px; }

.faq__a {
    padding: 0 20px 18px;
    color: var(--text-body);
    line-height: 1.85;
    font-size: 14px;
}


/* --------------------------------------------------------
   14. フッター
-------------------------------------------------------- */
.page-footer {
    background-color: #0f172a;
    color: #ffffff;
    padding: 4rem 1rem;
    text-align: center;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
}

.copyright {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}


/* --------------------------------------------------------
   15. Swiperページネーション共通
-------------------------------------------------------- */
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #2563eb !important;
}

.station-info-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--green);
}


/* ========================================================
   レスポンシブ
   ======================================================== */

/* --------------------------------------------------------
   PC小（640px以上）
-------------------------------------------------------- */
@media (min-width: 640px) {
    .hero-top-wrapper .hero-content .hero-cta { flex-direction: row; }
    .hero-top-wrapper .hero-content .hero-cta-text { text-align: left; }
    .hero-top-wrapper .hero-content .hero-cta-button { width: auto; }
}

/* --------------------------------------------------------
   PC中（768px以上）
-------------------------------------------------------- */
@media (min-width: 768px) {
    .feature-grid       { grid-template-columns: repeat(3, 1fr); }
    .station-info-grid  { grid-template-columns: repeat(3, 1fr); }
    .ranking-grid       { grid-template-columns: repeat(2, 1fr); }
    .staff-grid         { grid-template-columns: repeat(3, 1fr); }
    .rank-grid          { grid-template-columns: repeat(3, 1fr); }
    .hero-top-wrapper .hero-content .hero-info-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* --------------------------------------------------------
   PC大（769px以上）：スライダーをGridに戻す
-------------------------------------------------------- */
@media (min-width: 769px) {
    .station-info-mobile-slider {
        display: none !important;
    }

    .rank-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 16px;
    }

    .mySwiper {
        overflow: visible;
        padding-bottom: 0;
    }

    .rank-grid.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        gap: 16px !important;
        transform: translate3d(0,0,0) !important; /* スライド位置をリセット */
    }

    .rank.swiper-slide {
        width: auto !important;
        margin-right: 0 !important;
    }

    /* PCでは不要な要素を隠す */
    .mySwiper .swiper-pagination,
    .mySwiper .swiper-button-prev,
    .mySwiper .swiper-button-next {
        display: none !important;
    }
}

/* --------------------------------------------------------
   PC最大（1024px以上）
-------------------------------------------------------- */
@media (min-width: 1024px) {
    .hero-top-wrapper .hero-content { flex-direction: row; }
    .hero-top-wrapper .hero-content .hero-image-wrapper { width: 30%; height: auto; }
    .hero-top-wrapper .hero-content .hero-text-wrapper { justify-content: center; }
    .hero-top-wrapper .hero-content .hero-title { font-size: 24px; margin-bottom: 0.5rem; }
    .hero-top-wrapper .hero-content .hero-description { display: block; font-size: 15px; }
    .hero-top-wrapper .hero-content .hero-info { padding: 2rem; }
    .hero-top-wrapper .hero-content .hero-info-grid { gap: 2rem; }
    .hero-top-wrapper .hero-content .hero-info-header h2 { font-size: 14px; }
    .hero-top-wrapper .hero-content .hero-info-header i { font-size: 1.2rem; }
    .hero-top-wrapper .hero-content .hero-info-section p { font-size: 12px; }
}

/* --------------------------------------------------------
   スマホ（768px以下）
-------------------------------------------------------- */
@media (max-width: 768px) {

    /* ベース */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container,
    .section,
    .section-frame,
    .hero-top-wrapper,
    .shortcut-inner,
    .section--bg-full__inner {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* レイアウト調整 */
    .section-frame {
        padding: 1.5rem 1rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* ヒーロー */
    .hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); }

    .thumbnail-header-overlay { height: 350px; }
    .thumbnail-title          { font-size: 1.8rem; }
    .thumbnail-subtitle       { font-size: 0.95rem; }

    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero__title      { font-size: 24px; }
    .hero__media img  { height: 300px; }

    /* 見出し・テキスト */
    .section-heading {
        font-size: 20px !important;
    }

    .hero-cta-text {
        font-size: 10px !important;
    }

    .h2--decor span { font-size: 16px; }

    .tips-title {
        font-size: 14px !important;
        margin-bottom: 0px !important;
    }

    .sub { font-size: 12px !important; }

    .num-circle {
        height: 25px !important;
        width: 25px !important;
    }

    /* --- Tips セクション SP デザイン改善（フォント・サイズ変更なし） --- */

    /* コンテナ：薄グレー背景にしてセクション全体を引き締める */
    .tips-container {
        padding: 20px 12px 28px !important;
        background: #f4f7f5 !important;
        border-radius: 0 !important;
    }

    /* セクション見出し（h2--decor）周りの余白 */
    .tips-container .h2--decor {
        margin-bottom: 20px !important;
    }

    /* 各ブロック：白カード＋上部グリーンライン＋影でしっかり区切る */
    .tips-block {
        margin-bottom: 20px !important;
        background: #fff !important;
        border: none !important;
        border-top: 4px solid #12845e !important;
        border-radius: 10px !important;
        padding: 0 0 4px !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.08) !important;
        overflow: hidden;
    }

    /* タイトル行：グリーン薄背景で帯状に */
    .tips-title {
        margin-bottom: 0 !important;
        line-height: 1.6 !important;
        padding: 14px 16px !important;
        background: linear-gradient(to right, #e8f5f0, #f4faf7) !important;
        border-bottom: 1px solid #d1ede3 !important;
        gap: 10px !important;
    }

    /* 丸数字をタイトル帯に合わせてサイズ統一 */
    .num-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 4px rgba(18,132,94,0.3) !important;
    }

    /* 本文エリアにパディング */
    .tips-content {
        padding: 14px 16px 16px !important;
    }

    /* 本文の行間 */
    .tips-content p {
        padding-top: 4px !important;
        line-height: 2 !important;
        margin: 0 0 8px !important;
    }

    /* 例ボックス：左線＋薄背景 */
    .tips-example-box {
        padding: 12px 14px !important;
        margin: 10px 0 !important;
        background: #f0faf5 !important;
        border-left: 3px solid #12845e !important;
        border-radius: 0 6px 6px 0 !important;
        color: #2d6a52 !important;
    }

    /* アドバイスボックス：アイコン風の帯 */
    .advice-box {
        padding: 12px 14px !important;
        margin-top: 12px !important;
        border-radius: 8px !important;
        background: #e8f5f0 !important;
        border-left: 3px solid #12845e !important;
    }

    .advice-title {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    /* アコーディオンボタン：グリーン系のアウトライン */
    .accordion-btn {
        padding: 12px 14px !important;
        margin-top: 12px !important;
        margin-bottom: 0 !important;
        border-radius: 6px !important;
        background: #f0faf5 !important;
        border: 1px solid #a7d9c5 !important;
        color: #0d6449 !important;
    }

    /* アコーディオンアイコン */
    .accordion-icon {
        border-color: #12845e !important;
        color: #12845e !important;
    }

    /* アコーディオン中身 */
    .accordion-content {
        padding: 14px 14px 14px !important;
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        border-radius: 0 0 6px 6px !important;
        border-color: #a7d9c5 !important;
        background: #fafffe !important;
    }

    .accordion-content ul {
        padding-left: 18px !important;
        margin: 0 !important;
    }

    .accordion-content ul li {
        padding-top: 10px !important;
        line-height: 1.9 !important;
    }

    /* sub テキスト（リード文）中央揃えで余白 */
    .tips-container .sub--no-wrap {
        text-align: center !important;
        padding: 0 4px 4px !important;
        color: #4b5563 !important;
    }
    .rank-grid          { grid-template-columns: 1fr; }
    .rank, .rank-grid, .info-card { max-width: 100%; }

    /* 画像 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* ショートカットボタン */
    .shortcut {
        gap: 8px;
        padding: 12px 8px;
        justify-content: center;
    }

    .shortcut .btn--ghost {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
        margin-left: 0 !important;
    }

/* --- おすすめ駅情報スライダー - スマホのみ表示 --- */
.station-info-grid { 
    display: none !important; 
}

.station-info-mobile-slider { 
    display: block !important; 
    width: 100% !important;
    overflow: visible !important; /* 横揺れ防止 */
}

.station-info-swiper {
    width: 100% !important;
    overflow: visible !important; /* 左右のチラ見せに必須 */
    padding: 0 !important;
    padding: 0 40px !important; 
    box-sizing: border-box !important;
}

/* ★ここを修正：枠（slide）と中身（card）の両方を90%に固定 */
.station-info-swiper .swiper-slide,
.station-info-swiper .info-card {
    width: 100% !important; /* 画面幅の90% */
    flex-shrink: 0 !important;
    height: auto !important;
    display: block !important; /* 消えるのを防止 */
}

.station-info-swiper .swiper-pagination {
    bottom: 0 !important;
    position: relative !important; /* ドットをカードの下に配置 */
    margin-top: 20px !important;
    text-align: center;
}

.station-info-swiper .swiper-pagination-bullet {
    background: var(--green, #0f7a5b) !important;
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.station-info-swiper .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--green, #0f7a5b) !important;
}

    /* ランキングスライダー - スマホ調整 */
    .mySwiper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important; /* ボタンを外に出すならvisible */
    }

    .rank.swiper-slide {
        width: 100% !important; /* 1枚集中なので100% */
        padding: 0 10px; /* カードが画面端にくっつかないよう少し隙間 */
        flex-shrink: 0 !important;
    }

    /* 左右のボタン調整：バナー画像あたりに配置 */
    .mySwiper .swiper-button-prev,
    .mySwiper .swiper-button-next {
        color: #fff !important;
        background: rgba(0,0,0,0.3);
        width: 35px !important;
        height: 35px !important;
        border-radius: 50%;
        top: 35% !important; /* バナーの位置に高さを調整 */
        z-index: 10;
    }

    .mySwiper .swiper-button-prev { left: 15px !important; }
    .mySwiper .swiper-button-next { right: 15px !important; }

    .mySwiper .swiper-button-prev::after,
    .mySwiper .swiper-button-next::after {
        font-size: 16px !important;
        font-weight: bold;
    }

    /* レスポンシブ：旧otemachi系クラス */
    .otemachi-rank-3col,
    .otemachi-rank-2col           { grid-template-columns: 1fr; }
    .otemachi-card-title,
    .otemachi-card-body           { padding-left: 18px; padding-right: 18px; }
    .otemachi-rank-grid           { padding-left: 0; padding-right: 0; }
    .otemachi-accordion           { padding-left: 18px; padding-right: 18px; }
}


/* --------------------------------------------------------
   スタッフお部屋探し依頼ボタン
-------------------------------------------------------- */
.otemachi-staff-request-wrap {
    display        : flex;
    justify-content: center;
    margin         : 30px auto;
    padding        : 0 20px;
}

.otemachi-staff-request-btn {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 12px;
    width          : 100%;
    max-width      : 480px;
    height         : 70px;
    padding        : 10px 25px;
    background     : #12845e;
    box-shadow     : 6px 6px rgba(12, 96, 68, .22);
    color          : #fff;
    font-size      : 1.8rem;
    font-weight    : 700;
    font-family    : "Zen Maru Gothic", serif;
    text-decoration: none;
    letter-spacing : 0.05em;
    line-height    : 1.2;
    transition     : 0.3s;
    cursor         : pointer;
}

.otemachi-staff-request-btn::before {
    content            : "";
    display            : block;
    width              : 20px;
    height             : 14px;
    background-image   : url(../img/common/icon_mail.webp);
    background-position: center;
    background-size    : contain;
    background-repeat  : no-repeat;
    flex-shrink        : 0;
}

.otemachi-staff-request-btn:hover {
    transform : translate(6px, 6px);
    box-shadow: none;
    color     : #fff;
    opacity   : 1;
}

@media screen and (max-width: 960px) {
    .otemachi-staff-request-btn {
        height   : 60px;
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------
   パンクズの調整
-------------------------------------------------------- */
@media (min-width: 769px) {
    .breadcrumb{
        padding-left: 20px;
    }
}

/* --------------------------------------------------------
   モーダル表示中のスクロール固定
   （iOS Safariでもbody背景スクロールを防ぐ）
-------------------------------------------------------- */
body.scroll-stop {
    overflow: hidden !important;
    touch-action: none; /* iOS: タッチによるスクロールを無効化 */
}


/* 特集ページかつ、PC表示の場合 */
.title.is-otemachi {
    font-size: 28px !important; /* 他のスタイルに負けないよう !important を付けるとより確実です */
}

/* 特集ページかつ、スマホ表示（767px以下）の場合 */
@media screen and (max-width: 767px) {
    .title.is-otemachi {
        font-size: 22px !important;
    }
}
/* --- 共通設定 --- */
.sp-only {
    display: none;
}

@media screen and (max-width: 767px) {
    /* 改行を有効にする */
    .sp-only {
        display: block;
    }

    /* h2全体のレイアウト調整 */
    .h2--decor {
        display: flex !important;     /* 横並びを維持 */
        justify-content: center !important; /* 横方向の真ん中寄せ */
        align-items: center !important;    /* 縦方向の真ん中寄せ（アイコンと文字の高さを揃える） */
        text-align: left;             /* テキスト自体の揃えは左（アイコンの横にピタッと付くように） */
    }

    /* テキスト部分の調整 */
    .h2--decor span {
        display: inline-block;        /* blockにせず、中身に応じた幅にする */
        text-align: left;             /* 2行になった際、文字の開始位置を揃える */
        line-height: 1.4;             /* 行間を少し整える */
    }
    
    /* アイコン（SVG）の調整 */
    .h2--decor svg {
        flex-shrink: 0;               /* アイコンが潰れないように固定 */
        margin-right: 10px !important; /* 文字との間に適切な隙間を作る */
        margin-bottom: 0 !important;   /* 縦並び用の余白を消す */
    }
}
/* 0324修正 アンカーリンク調整 */
#search {
    scroll-behavior: smooth;
  }
#areas,
#ranking,
#otemachi-tips,
#faq,
#staff-lines,
#listings{
  scroll-margin-top: 80px; /* ヘッダー実測に合わせて調整 */
}
#listings-sp{
    scroll-margin-top: 160px;
}