@charset "utf-8";
/* 新RWS の上書き。現行の見た目（reset・common・style）はそのまま読み、外の部品（Swiper・modaal・jQuery）を外した分だけをここで補う。
   style 属性は使わない（CSP の nonce が効かないため）。 */

/* 文字：外のフォント（Google Fonts）を読まない代わりに、端末の日本語フォントを使う */
body, .nav, footer { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif; }

/* 現行は JS で .lazy に on を付けて浮かび上がらせていた。動きの部品を外したので最初から見せる */
.lazy { opacity: 1 !important; transform: none !important; }

/* 版番号（Skill app-version §3：右上・小さくグレー・改行しない・選択不可） */
.nav { position: relative; }
.app-version { position: absolute; top: 2px; right: 8px; color: #94a3b8; white-space: nowrap; user-select: none; pointer-events: none; z-index: 5; line-height: 1; }
.app-version .pc { display: none; font-size: 11px; }
.app-version .sm { display: inline; font-size: 10px; }
@media (min-width: 768px) {
  .app-version .pc { display: inline; }
  .app-version .sm { display: none; }
}

/* 横に流す一覧（現行の Swiper の代わり）：指でなぞって横へ送る。スクロールの吸着で1枚ずつ止まる */
.swiper { overflow: hidden; }
.swiper .swiper-wrapper,
.movie-slider .swiper-wrapper,
.area-slider .swiper-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin: 0;
}
.swiper .swiper-slide,
.movie-slider .swiper-slide,
.area-slider .swiper-slide { flex: 0 0 81%; scroll-snap-align: center; }
@media (min-width: 768px) {
  .swiper .swiper-wrapper, .movie-slider .swiper-wrapper, .area-slider .swiper-wrapper { gap: 20px; }
  .swiper .swiper-slide, .movie-slider .swiper-slide, .area-slider .swiper-slide { flex-basis: 58%; }
}
.area-slider:not(.swiper) .swiper-wrapper { flex-wrap: wrap; overflow: visible; }

/* 開け閉め（現行の slideToggle の代わり） */
.openTable.is-open, .detail-tabs .selectSearch_box.is-open, .selectSearch_box.is-open { display: block; }
.selectPc .tab-group { display: contents; }

/* ログインの案内（現行の modaal の代わり） */
.rws-modal[hidden] { display: none; }
.rws-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rws-modal__body { position: relative; background: #fff; border-radius: 8px; max-width: 420px; width: 100%; padding: 32px 20px 24px; }
.rws-modal .modal_close { position: absolute; top: 4px; right: 10px; font-size: 28px; line-height: 1; background: none; border: 0; cursor: pointer; }
html.modal-open { overflow: hidden; }

/* フォルダに保存のモーダル（現行の modaal の箱の大きさ・角丸。中身の部品は style.css の .modaal-content-container の下） */
.rws-modal__body.rws-save-modal { padding: 0; max-width: 450px; border-radius: 10px; overflow: hidden; }
@media screen and (max-width: 767px) { .rws-modal__body.rws-save-modal { max-width: 365px; } }
.rws-save-modal .saveSelect { position: relative; }
.rws-save-modal .saveSelect .selectBox { max-width: 100%; }
/* 応答を待っている間のボタン（二重押しを止める） */
.is-busy { pointer-events: none; opacity: 0.6; }

/* ログアウトは POST の送信ボタン（見た目は現行のリンクと同じ） */
.logout-form { margin: 0; }
.logout-form button { background: none; border: 0; padding: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }

/* 改行をそのまま見せる（現行の nl2br） */
.pre-line { white-space: pre-line; }
.indent-3em { margin-left: 3em; }
.gold-txt { color: #b39632; }
.footer-subsidy { margin-top: 20px; }
.empty-result { padding: 24px 0; text-align: center; color: #666; }

/* 動画の埋め込み：16:9 で幅いっぱい */
.movie-detail-iframe { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.movie-detail-iframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 離脱のお誘いは計測の仕組みが開くまで出さない */
.p-exit-popup { display: none; }
.p-exit-popup.is-active { display: flex; }

/* 記事（旧 WordPress の受け皿） */
.article-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.article-cats a { display: inline-block; padding: 4px 12px; border: 1px solid #006643; border-radius: 999px; color: #006643; font-size: 1.3rem; text-decoration: none; }
.article-cats a.active { background: #006643; color: #fff; }
.article-list { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0; list-style: none; }
@media (min-width: 768px) { .article-list { grid-template-columns: repeat(3, 1fr); } }
.article-card a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #f3f3f3; }
.article-card__cat { font-size: 1.1rem; color: #006643; }
.article-card__title { font-size: 1.5rem; font-weight: 600; line-height: 1.5; }
.article-card__date { font-size: 1.1rem; color: #888; }
.article-detail { padding-top: 24px; padding-bottom: 24px; }
.article-detail__meta { display: flex; gap: 12px; font-size: 1.2rem; color: #888; }
.article-detail__meta a { color: #006643; }
.article-detail__title { font-size: 2.2rem; line-height: 1.5; margin: 8px 0 16px; }
.article-detail__eyecatch { width: 100%; border-radius: 8px; margin-bottom: 16px; }
.article-detail__body { font-size: 1.5rem; line-height: 1.9; overflow-wrap: anywhere; }
.article-detail__body img { max-width: 100%; height: auto; }
.article-detail__body h2 { font-size: 1.9rem; margin: 28px 0 12px; border-left: 4px solid #006643; padding-left: 10px; }
.article-detail__body h3 { font-size: 1.7rem; margin: 22px 0 10px; }
.article-detail__body p { margin: 0 0 14px; }

/* 会員の画面（登録・ログイン・再設定・プロフィール）。現行の CakePHP の入力の部品が出していた分を補う */
.basic .edit_input-budget { text-align: right; padding-right: 3em; }
.basic .edit_confirm .link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.basic .cf-turnstile { margin: 16px auto 0; text-align: center; min-height: 65px; }
