/* アップルリラ 独自CSS（base.css の上に足す分） */

/* 入浴の流れスライダー（Smart Slider 3 の代わり）
 * v0.1.1: スライドの中身（奏音の Smart Slider の中身＝画像＋Step＋見出し＋説明）を入れても
 *         PCで崩れないようにした。中身の .alignfull は全幅（-50vw）前提なので、スライドの中では打ち消す。 */
.slider-wrapper ss3-force-full-width { display: block; width: auto !important; transform: none !important; }
.ar-flow-slider { position: relative; overflow: hidden; box-sizing: border-box; width: min(1200px, 100vw); max-width: none; left: 50%; margin: 0 0 0 calc(min(1200px, 100vw) / -2); padding: 0; }
.ar-flow-slider .ar-flow-track { display: flex; transition: transform .8s ease; }
.ar-flow-slider .ar-flow-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 40px 64px; }
.ar-flow-slider .ar-flow-slide > img { display: block; width: 100%; height: auto; }
.ar-flow-slide .alignfull { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.ar-flow-slide .bathing-process { width: 100% !important; }
.ar-flow-slide .wp-block-columns { gap: 40px; align-items: flex-start !important; }
.ar-flow-slide .wp-block-column { flex: 1 1 0; min-width: 0; }
.ar-flow-slide .wp-block-image { margin: 0; }
.ar-flow-slide .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 768 / 573; object-fit: cover; }
.ar-flow-slide p, .ar-flow-slide h2 { margin-top: 0; margin-bottom: 0; }
.ar-flow-slide .flow-step-title { margin: 0 0 .2em; }
.ar-flow-slide .wp-block-buttons { margin-top: 1.2em; }
.ar-flow-slider button { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; padding: 0; background: transparent; color: #5a4a3a; font-size: 40px; line-height: 44px; cursor: pointer; z-index: 2; }
.ar-flow-slider .ar-flow-prev { left: 4px; }
.ar-flow-slider .ar-flow-next { right: 4px; }
@media (max-width: 781px) {
	.ar-flow-slider .ar-flow-slide { padding: 24px 36px; }
	.ar-flow-slide .wp-block-columns { flex-direction: column; gap: 16px; }
	.ar-flow-slide .wp-block-column { flex-basis: auto; width: 100%; }
	.ar-flow-slider button { top: 30%; width: 32px; font-size: 32px; }
	.ar-flow-slider .ar-flow-prev { left: 0; }
	.ar-flow-slider .ar-flow-next { right: 0; }
}


/* v0.1.1: 下層ページ（ACCESS など）用。奏音の ACCESS（2026-10-02時点）で使われていて base.css に無かった規則だけを抜き出したもの */
.wp-block-image.alignfull img, .wp-block-image.alignwide img { height: auto; width: 100%; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { border: 1px solid; padding: 0.5em; }
.wp-block-image.alignfull img { display: block; }
@media (min-width: 1px) { .has-sidebar .site-content .wp-block-image.alignfull, .has-sidebar .site-content .wp-block-image.alignwide, body .wp-block-image.alignfull, body .wp-block-image.alignwide { padding-right: 0px; padding-left: 0px; } }
table { width: 100%; border-top: 1px solid var(--site-border-gray); border-collapse: collapse; border-spacing: 0px; word-break: break-word; }
tr { border-left: 1px solid var(--site-border-gray); }
td, th { padding: 0.5em 1em; border-right: 1px solid var(--site-border-gray); border-bottom: 1px solid var(--site-border-gray); }
iframe, video { max-width: 100%; border: 0px; }
.is-wide .content__main { max-width: 100%; }

/* v0.1.2（2026-10-02 門田さん指示・iPhoneで確認）
 * 1. ご入浴料金の上の余白を半分に（スマホ。奏音の 10em → 5em）
 * 2. NEWS／よくあるご質問／お客様の声の見出しの線が文字に重なる → 線を文字のすぐ後ろに並べる（781px以下。PCは今のまま）
 * 3. NEWS の一覧を中央寄せ（スマホ） */
@media screen and (max-width: 767px) {
	.bathing-fee { padding-top: 5em; }
}
@media screen and (max-width: 781px) {
	.news-title, .question-title, .voice-title { display: flex; align-items: center; gap: 16px; width: auto; }
	.news-title::after, .question-title::after, .voice-title::after { position: static; flex: 0 0 80px; width: 80px; }
	.news-container .wp-block-latest-posts li { text-align: center; margin-right: 0 !important; }
	.news-container .wp-block-latest-posts__featured-image img { margin-left: auto; margin-right: auto; }
}

/* v0.1.3: スマホの NEWS を2列に（門田さん指示。横幅いっぱい） */
@media screen and (max-width: 781px) {
	.news-container .wp-block-latest-posts.is-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px 12px; margin-left: 0 !important; margin-right: 0 !important; padding: 0; }
	.news-container .wp-block-latest-posts.is-grid li { width: auto !important; margin: 0 !important; padding: 0 0 12px; }
	.news-container .wp-block-latest-posts__featured-image { margin: 0 0 .5em !important; }
	.news-container .wp-block-latest-posts__featured-image a { display: block; }
	.news-container .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
	.news-container .wp-block-latest-posts__post-title { font-size: 15px; }
}
.ar-news-empty { text-align: center; }

/* v0.1.4: NEWS の写真を 4:3 に（PCも） */
.news-container .ar-news-list .wp-block-latest-posts__featured-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* ===== v0.1.5: お知らせ一覧・記事ページ ===== */
.ar-news-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); min-height: 400px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, #e9dfd4 0%, #f5efe9 100%); box-sizing: border-box; padding: 0 16px 56px; }
.ar-news-hero__inner { text-align: center; }
.ar-news-hero__title { margin: 0; font-size: 44px; letter-spacing: .12em; line-height: 1.2; color: #5a4a3a; }
.ar-news-hero__sub { margin: .3em 0 0; font-size: 15px; letter-spacing: .2em; color: #6f6153; }
.ar-news { max-width: 1100px !important; margin: 0 auto !important; padding: 56px 0 80px !important; }
.ar-news-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0 0 40px; padding: 0; }
.ar-news-cats a { display: inline-block; padding: .45em 1.2em; border: 1px solid #c9bcae; border-radius: 999px; color: #5a4a3a; text-decoration: none; font-size: 14px; }
.ar-news-cats a.is-current, .ar-news-cats a:hover { background: #8b6b52; border-color: #8b6b52; color: #fff; }
.ar-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.ar-news-card__link { display: block; color: #333; text-decoration: none; }
.ar-news-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.ar-news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: .8em 0 .3em; font-size: 13px; color: #777; }
.ar-news-card__cat { display: inline-block; padding: .1em .7em; border-radius: 3px; background: #f2eee9; color: #8b6b52; font-size: 12px; text-decoration: none; }
.ar-news-card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.ar-news-card__link:hover .ar-news-card__title { color: #8b6b52; }
.ar-news-pager { margin-top: 56px; }
.ar-news-pager ul { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ar-news-pager a, .ar-news-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .6em; border: 1px solid #c9bcae; border-radius: 4px; color: #5a4a3a; text-decoration: none; box-sizing: border-box; }
.ar-news-pager .current { background: #8b6b52; border-color: #8b6b52; color: #fff; }
.ar-news-more { margin: 32px 0 0; text-align: center; }
.ar-news-more a, .ar-article__back a { display: inline-block; padding: .7em 2.4em; border: 1px solid #8b6b52; border-radius: 999px; color: #8b6b52; text-decoration: none; letter-spacing: .1em; }
.ar-news-more a:hover, .ar-article__back a:hover { background: #8b6b52; color: #fff; }
/* 記事 */
.ar-article { max-width: 800px; margin: 0 auto; }
.ar-article__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #777; }
.ar-article__title { margin: .4em 0 1em; font-size: 26px; line-height: 1.5; color: #333; }
.ar-article__eyecatch { margin: 0 0 2em; }
.ar-article__eyecatch img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ar-article__body { font-size: 16px; line-height: 2; color: #333; }
.ar-article__body p { margin: 0 0 1.5em; }
.ar-article__body h2 { margin: 2.4em 0 1em; padding: .4em 0 .4em .8em; border-left: 4px solid #8b6b52; font-size: 21px; line-height: 1.5; }
.ar-article__body h3 { margin: 2em 0 .8em; padding-bottom: .3em; border-bottom: 1px solid #ddd2c6; font-size: 18px; }
.ar-article__body img { max-width: 100%; height: auto; }
.ar-article__body ul, .ar-article__body ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.ar-article__body a { color: #8b6b52; }
.ar-article__nav { display: flex; justify-content: space-between; gap: 16px; max-width: 800px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid #e6ddd3; font-size: 14px; }
.ar-article__nav a { color: #5a4a3a; text-decoration: none; }
.ar-article__next { text-align: right; margin-left: auto; }
.ar-article__back { margin: 40px 0 0; text-align: center; }
.ar-related { margin-top: 72px; }
.ar-related__title { margin: 0 0 24px; font-size: 20px; text-align: center; letter-spacing: .1em; }
@media screen and (max-width: 781px) {
	.ar-news-hero { min-height: 350px; padding-bottom: 28px; }
	.ar-news-hero__title { font-size: 32px; }
	.ar-news { padding: 32px 0 56px !important; }
	.ar-news-cats { margin-bottom: 28px; }
	.ar-news-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
	.ar-news-card__title { font-size: 14px; }
	.ar-article__title { font-size: 21px; }
	.ar-article__body { font-size: 15px; line-height: 1.9; }
	.ar-article__nav { flex-direction: column; }
	.ar-article__next { text-align: left; margin-left: 0; }
}

/* v0.1.6: ヘッダーの高さとロゴを半分に（門田さん指示）。PC 300→150px／スマホ 200→100px */
.site-header .site-title img, .site-header .custom-logo { width: 150px !important; height: auto; }
.site-header .site-branding { padding-top: 10px !important; padding-bottom: 8px !important; }
.ar-news-hero { min-height: 260px; padding-bottom: 44px; }
@media screen and (max-width: 768px) {
	.site-header .site-title img, .site-header .custom-logo { width: 100px !important; }
}
@media screen and (max-width: 781px) {
	.ar-news-hero { min-height: 210px; padding-bottom: 24px; }
}

/* v0.1.7: スマホのメニュー（門田さん指示）
 * 1. 開いたメニューがロゴの下に隠れていた → メニューをロゴより上に出す
 *    （原因: 開いたときの z-index が 10、ロゴの .site-branding が 9998）
 * 2. メニューの背景に薄い黒を敷く（奏音の追加CSSが背景を透明にしていた）
 * 3. メニューボタンを画面の右上に固定して、スクロールしてもついてくる */
@media (max-width: 768px) {
	.global-nav__toggle { position: fixed !important; top: 10px !important; right: 10px !important; z-index: 10002 !important; width: 48px; height: 48px; padding: 6px 0 0 !important; border-radius: 8px !important; background-color: rgba(0, 0, 0, .45) !important; color: #fff !important; }
	.global-nav__toggle .ys-icon, .global-nav__toggle svg { display: block; margin: 0 auto; }
	.global-nav__toggle::after { margin-top: 0 !important; color: #fff; }
	.global-nav, .global-nav__toggle.is-open + .global-nav { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 10001 !important; padding: 80px 2em 2em !important; background-color: rgba(0, 0, 0, .78) !important; }
}

/* v0.1.8: 左下についてくる「ご予約はこちらから」（アップルフィットと同じ位置・大きさ。色 #be9c91） */
.ar-reserve-btn { position: fixed; left: 0; bottom: 24px; z-index: 990; display: flex; align-items: center; gap: 10px; width: 230px; height: 70px; padding: 0 18px 0 22px; box-sizing: border-box; border-radius: 0 12px 12px 0; background-color: #be9c91; color: #fff !important; text-decoration: none !important; font-size: 16px; font-weight: 700; letter-spacing: 0; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateX(-20px); transition: opacity .4s, transform .4s, visibility .4s, background-color .3s; }
.ar-reserve-btn.is-show { opacity: 1; visibility: visible; transform: none; }
.ar-reserve-btn:hover { background-color: #a8857a; }
.ar-reserve-btn__icon { flex: 0 0 auto; }
@media screen and (max-width: 768px) {
	.ar-reserve-btn { bottom: 16px; width: 190px; height: 54px; padding: 0 12px 0 14px; font-size: 13px; gap: 8px; }
	.ar-reserve-btn__icon { width: 28px; height: 20px; }
}

/* v0.1.12 (2026-10-17 門田さん): メニューからページ内の各項目（#canon-section など）へ移動するとき、滑らかにスクロールする。
 * 「動きを減らす」設定の端末では従来どおり一瞬で移動する。 */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
