/* RETOUR ポータル型トップ（.rs-portal-page のときだけ） */

/* Cocoon の投稿向け要素をトップでは出さない */
.rs-portal-page .article-header .entry-title,
.rs-portal-page .sns-share,
.rs-portal-page .sns-follow,
.rs-portal-page .date-tags,
.rs-portal-page .author-info,
.rs-portal-page .article-footer,
.rs-portal-page .under-entry-content,
.rs-portal-page .breadcrumb,
.rs-portal-page .entry-content .toc { display: none; }
.rs-portal-page .main { padding-top: 0; }
.rs-portal-page .entry-content { margin-top: 0; }

.rs-portal { --rs-line-green: #2f8f5b; }
.rs-portal a { text-decoration: none; }

/* ヒーロー＋検索 */
.rsp-hero {
	position: relative;
	margin: 0 0 2.6em;
	min-height: 360px;
	display: flex;
	align-items: flex-end;
	background: #6b645c center / cover no-repeat;
	border-radius: 4px;
	overflow: hidden;
}
.rsp-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 18, 15, .42); }
.rsp-hero-in { position: relative; padding: 2.2em 2.2em 2em; width: 100%; color: #fff; }
.rs .rsp-title { font-size: 1.9em; line-height: 1.35; margin: 0 0 .3em; padding: 0; border: none; background: none; color: #fff; font-weight: bold; }
.rsp-lead { margin: 0 0 1.3em; font-size: 1em; opacity: .95; }
.rsp-search { display: flex; flex-wrap: wrap; gap: .6em; align-items: flex-end; background: rgba(255, 255, 255, .96); padding: .9em 1em; border-radius: 4px; color: var(--rs-ink); max-width: 760px; }
.rsp-search label { display: flex; flex-direction: column; font-size: .8em; color: var(--rs-sub); flex: 1 1 160px; }
.rsp-search select { margin-top: .25em; font-size: 1.15em; padding: .5em .6em; border: 1px solid var(--rs-line); border-radius: 3px; background: #fff; color: var(--rs-ink); }
.rsp-search button { flex: 1 1 220px; padding: .85em 1.2em; border: none; border-radius: 3px; background: var(--rs-accent); color: #fff; font-weight: bold; font-size: 1em; cursor: pointer; }
.rsp-search button:hover { background: var(--rs-accent-dark); }

/* セクション見出し（テーマのh2装飾は使わず、ポータルらしく細い線だけ） */
.rsp-sec { margin: 0 0 2.8em; }
.rsp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; border-bottom: 2px solid var(--rs-ink); margin: 0 0 1em; padding-bottom: .35em; }
.rs .rsp-head h2 { margin: 0; padding: 0; background: none; border: none; font-size: 1.25em; color: var(--rs-ink); }
.rs .rsp-head h2::before, .rs .rsp-head h2::after { display: none; }
.rsp-head a { font-size: .88em; color: var(--rs-accent-dark); white-space: nowrap; }
.rsp-head a::after { content: " ›"; }

/* 路線図（全駅・横スクロール可） */
.rsp-line-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 .4em; }
.rsp-line { list-style: none; margin: 0; padding: 0 0 .4em; display: grid; grid-template-columns: repeat(var(--rsp-n, 5), minmax(58px, 1fr)); position: relative; min-width: calc(var(--rsp-n, 5) * 58px); }
.rsp-line::before { content: ""; position: absolute; left: calc(50% / var(--rsp-n, 5)); right: calc(50% / var(--rsp-n, 5)); top: 13px; height: 6px; background: var(--rs-line-green); border-radius: 3px; }
.rsp-line li { margin: 0; padding: 0; text-align: center; position: relative; }
.rsp-line a { display: flex; flex-direction: column; align-items: center; padding: 0 .1em .6em; color: var(--rs-ink); border-radius: 4px; }
.rsp-line a:hover { background: var(--rs-soft); }
.rsp-dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 6px solid var(--rs-line-green); position: relative; z-index: 1; margin-bottom: .45em; box-sizing: border-box; }
.rsp-line .is-local .rsp-dot { width: 20px; height: 20px; border-width: 4px; margin-top: 6px; margin-bottom: .7em; border-color: #7fbf9a; }
.rsp-st { font-size: .9em; font-weight: bold; writing-mode: vertical-rl; letter-spacing: .08em; }
.rsp-line .is-local .rsp-st { font-weight: normal; color: var(--rs-sub); }
.rsp-legend { font-size: .78em; color: var(--rs-sub); margin: 0 0 1.4em; }
.rsp-lg-rapid, .rsp-lg-local { display: inline-block; vertical-align: middle; border-radius: 50%; background: #fff; margin: 0 .35em 0 0; box-sizing: border-box; }
.rsp-lg-rapid { width: 14px; height: 14px; border: 4px solid var(--rs-line-green); }
.rsp-lg-local { width: 10px; height: 10px; border: 3px solid #7fbf9a; }

/* カード */
.rsp-cards { display: grid; gap: 1em; }
.rsp-cards-4 { grid-template-columns: repeat(4, 1fr); }
.rsp-cards-3 { grid-template-columns: repeat(3, 1fr); }
.rsp-card { display: flex; flex-direction: column; border: 1px solid var(--rs-line); border-radius: 4px; background: #fff; color: var(--rs-ink); padding: 1em 1.1em; }
.rsp-card:hover { border-color: var(--rs-accent); }
.rsp-card-t { font-weight: bold; line-height: 1.5; }
.rsp-card-v { font-size: 1.25em; font-weight: bold; color: var(--rs-accent-dark); margin-top: .3em; }
.rsp-card-s { font-size: .78em; color: var(--rs-sub); }
.rsp-post-card { padding: 0 0 .9em; overflow: hidden; }
.rsp-post-img { display: block; aspect-ratio: 16 / 9; background: var(--rs-soft); margin-bottom: .7em; overflow: hidden; }
.rsp-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rsp-post-card .rsp-card-t, .rsp-post-card time { padding: 0 1em; }
.rsp-post-card time { font-size: .78em; color: var(--rs-sub); margin-top: .4em; }

/* 2列 */
.rsp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.rsp-two > div { min-width: 0; }

@media (max-width: 900px) {
	.rsp-two { grid-template-columns: 1fr; gap: 0; }
	.rsp-cards-4 { grid-template-columns: repeat(2, 1fr); }
	.rsp-cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.rsp-hero { min-height: 0; margin-left: -4px; margin-right: -4px; }
	.rsp-hero-in { padding: 1.4em 1em 1em; }
	.rs .rsp-title { font-size: 1.32em; }
	.rsp-cards-3 { grid-template-columns: 1fr; }
}

/* ポータルの下に続く本文（ルトゥールについて等）もポータルの見出しに揃える */
.rs-portal-page .entry-content > h2 { background: none; border: none; border-bottom: 2px solid #333; padding: 0 0 .35em; font-size: 1.25em; margin: 0 0 1em; }
.rs-portal-page .entry-content > h2::before, .rs-portal-page .entry-content > h2::after { display: none; }

/* テーマのリスト余白を打ち消す（路線図） */
.entry-content .rs ol.rsp-line { padding-left: 0; margin-left: 0; }
@media (max-width: 600px) {
	.rsp-line-wrap::after { content: "← 横にスクロールで全駅 →"; display: block; text-align: center; font-size: .72em; color: #8a8278; margin-top: .2em; }
}

/* ---- カードの立体感（影・角丸・ホバー） ---- */
.rs-prop, .rsp-card { border: 1px solid #e2d9cb; border-radius: 12px; box-shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 18px rgba(60, 40, 10, .09); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.rs-prop:hover, .rsp-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60, 40, 10, .08), 0 12px 28px rgba(60, 40, 10, .16); border-color: var(--rs-accent); }
.rs-props, .rsp-cards { gap: 1.4em; }
.rs-prop-img { position: relative; border-bottom: 1px solid #ece4d7; background: #f1ece3; }
.rs-prop-img--plan { background: #fff; }
.rs-prop-img--plan img { object-fit: contain; padding: 10px; box-sizing: border-box; }
.rs-prop-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(40, 30, 20, .78); color: #fff; font-size: .78em; font-weight: bold; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.rs-prop-body { padding: .9em 1.1em 1.1em; gap: .15em; }
.rs-prop-rent { font-size: 1.4em; }
.rs-prop-t { border-top: 1px dashed #e2d9cb; padding-top: .55em; margin-top: .55em; line-height: 1.6; }
.rsp-post-card { border-radius: 12px; }
.rsp-post-img { border-bottom: 1px solid #ece4d7; }
@media (max-width: 600px) { .rs-props, .rsp-cards { gap: 1em; } }

/* ---- 駅カードにも立体感 ---- */
.rs-stations { gap: 1.3em 1.1em; }
.rs-stations a { background: #fff; border: 1px solid #e2d9cb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 18px rgba(60, 40, 10, .09); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; padding-bottom: .8em; height: 100%; box-sizing: border-box; }
.rs-stations a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60, 40, 10, .08), 0 12px 28px rgba(60, 40, 10, .16); border-color: var(--rs-accent); }
.rs-stations a:hover img { opacity: 1; }
.rs-stations-img { border-radius: 0; margin-bottom: .65em; border-bottom: 1px solid #ece4d7; }
.rs-stations-name, .rs-stations-loc, .rs-stations-rent, .rs-stations-credit { padding: 0 .85em; }
.rs-stations-name { font-size: 1.1em; }
.rs-stations-rent { color: var(--rs-accent-dark); font-weight: bold; font-size: .92em; margin-top: .2em; }
@media (max-width: 600px) { .rs-stations { gap: .9em .7em; } .rs-stations-name, .rs-stations-loc, .rs-stations-rent { padding: 0 .65em; } }

.rs-prop-notice { background: #fff8e8; border: 1px solid #ecd9a8; border-left: 5px solid #c9822e; border-radius: 8px; padding: .7em 1em; font-size: .9em; line-height: 1.7; margin: 1em 0; }
.rs-prop-listnote { margin-top: .9em; }
