/*
  manani@1.0.0（manani-okinawa 専用）。本体サイト https://mananiokinawa.com/ のトーン＆マナー（色・明朝体・余白・四角いボタン）に記事サイトを合わせる。
  本体の site.css の後に読まれ、本体の既存のクラスを上書きする。すべて .theme-manani（body の class）の下。外の読み込みはしない（フォントは OS の明朝）。
  色は本体の global.css（primary #8a8261・secondary #cb9855・sub #73604a）から。白地の小さな文字・白い文字の地色は WCAG AA（4.5:1）に届くよう少し濃くした：
  見出し #7a7256（primary を少し濃く、4.8）、リンク・小さな文字 #73604a（sub、6.0）、ボタン #9c6a32（secondary を濃く、4.6）、帯 #6b6450（primary を濃く、5.9）。primary は線だけ
*/
.theme-manani {
	--brand: #73604a;
	--brand-soft: #f4eee5;
	--accent: #9c6a32;
	--ink: #222222;
	--muted: #666666;
	--line: #dddddd;
	--bg: #f6f6f6;
	--radius: 0;
	--mn-primary: #8a8261;
	--mn-heading: #7a7256;
	--mn-gold: #cb9855;
	--mn-sub: #73604a;
	--mn-band: #6b6450;
	--mn-beige: #f5ebdd;
	--mn-serif: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", YuMincho, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
	--mn-header-h: 100px;
	color: var(--ink);
	background: #fff;
	font-family: var(--mn-serif);
	font-size: 15px;
	line-height: 1.9;
	overflow-wrap: anywhere;
}
.theme-manani a { color: inherit; }
.theme-manani :focus-visible { outline: 2px solid var(--mn-gold); outline-offset: 2px; }
.theme-manani .wrap { max-width: 1150px; padding: 0 20px; }

/* ---- ヘッダー（本体の .site-header と同じ寸法） ---- */
.theme-manani .mn-header { position: sticky; top: 0; z-index: 50; background: #fff; color: #666; box-shadow: 0 1px 0 rgb(0 0 0 / 6%); }
.theme-manani .mn-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 40px, 1150px); height: var(--mn-header-h); margin-inline: auto; }
.theme-manani .mn-logo { margin: 0; line-height: 0; }
.theme-manani .mn-logo a { display: block; }
.theme-manani .mn-logo img { display: block; width: 165px; height: auto; }
.theme-manani .mn-nav__list, .theme-manani .mn-nav__sub, .theme-manani .mn-spnav ul, .theme-manani .mn-footer ul { margin: 0; padding: 0; list-style: none; }
.theme-manani .mn-nav__list { display: flex; }
.theme-manani .mn-nav__item { position: relative; }
.theme-manani .mn-nav__parent { display: block; padding: 0 20px; line-height: var(--mn-header-h); font-size: 14px; white-space: nowrap; cursor: default; text-decoration: none; }
.theme-manani a.mn-nav__parent { cursor: pointer; }
.theme-manani .mn-nav__item:last-child .mn-nav__parent { padding-right: 0; }
.theme-manani .mn-nav__item--blog .mn-nav__parent { color: var(--mn-sub); }
.theme-manani .mn-nav__item--blog .mn-nav__parent::after { content: ""; display: block; height: 1px; margin-top: -30px; margin-bottom: 29px; background: var(--mn-gold); }
.theme-manani .mn-nav__sub { position: absolute; top: 100%; left: 0; min-width: 230px; visibility: hidden; opacity: 0; transition: opacity .2s; background: var(--mn-band); line-height: 1.6; }
.theme-manani .mn-nav__item:nth-last-child(-n+2) .mn-nav__sub { left: auto; right: 0; }
.theme-manani .mn-nav__item:hover .mn-nav__sub, .theme-manani .mn-nav__item:focus-within .mn-nav__sub { visibility: visible; opacity: 1; }
.theme-manani .mn-nav__sub a { display: block; padding: 14px 20px; color: #fff; text-decoration: none; white-space: nowrap; font-size: 14px; }
.theme-manani .mn-nav__sub a:hover, .theme-manani .mn-nav__sub a:focus-visible { background: var(--mn-sub); }
.theme-manani .mn-nav__item:hover .mn-nav__parent, .theme-manani .mn-nav__item:focus-within .mn-nav__parent { color: var(--mn-sub); }
.theme-manani .mn-header__blog, .theme-manani .mn-spnav { display: none; }

/* ---- 一覧の見出し帯（本体のページ上部の帯 .signage：写真に白い明朝） ---- */
.theme-manani main.wide { padding-bottom: 40px; }
.theme-manani .list-hero { position: relative; display: flex; align-items: center; min-height: 300px; padding: 40px 0; background: #d9d4c8 url("assets/hero.webp") center / cover no-repeat; color: #fff; text-align: center; text-shadow: 2px 2px 10px rgb(0 0 0 / 55%); }
.theme-manani .list-hero::before { content: ""; position: absolute; inset: 0; background: rgb(60 50 35 / 28%); }
.theme-manani .list-hero .wrap { position: relative; width: 100%; }
.theme-manani .list-hero h1 { font-size: 46px; font-weight: 400; line-height: 1.5; letter-spacing: .04em; }
.theme-manani .list-hero h1 small { display: block; margin: 4px 0 0; color: #fff; font-size: 15px; }
.theme-manani .list-hero p { margin: 10px 0 0; color: #fff; font-size: 16px; }

/* カテゴリの切り替え（四角い枠。選択中は濃い茶） */
.theme-manani .cats { justify-content: center; gap: 10px; margin: 36px 0 16px; }
.theme-manani .cats a { padding: 6px 18px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: #555; font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s; }
.theme-manani .cats a:hover { border-color: var(--mn-gold); color: var(--mn-sub); }
.theme-manani .cats a.on { background: var(--mn-sub); border-color: var(--mn-sub); color: #fff; font-weight: 400; }
.theme-manani .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; margin: 30px auto 70px; }

/* カード */
.theme-manani .cards { gap: 36px 28px; }
.theme-manani .card-a { border: 0; border-radius: 0; background: transparent; }
.theme-manani .card-a .photo { height: auto; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #e9e3d8, #cfc6b4); transition: opacity .3s; }
.theme-manani .card-a:hover .photo { opacity: .85; }
.theme-manani .card-a div { padding: 14px 2px 0; }
.theme-manani .card-a h3 { margin: 8px 0 6px; font-size: 18px; font-weight: 400; line-height: 1.6; }
.theme-manani .card-a:hover h3 { color: var(--mn-sub); }
.theme-manani .card-a p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.theme-manani .card-a small { color: var(--muted); }
.theme-manani .cat { padding: 2px 10px; border-radius: 0; background: var(--brand-soft); color: var(--mn-sub); font-size: 12px; font-weight: 400; letter-spacing: .04em; }
.theme-manani .tags span { border-radius: 0; background: #fff; }
.theme-manani .pager a, .theme-manani .pager span { border-radius: 0; padding: 8px 14px; }
.theme-manani .pager a:hover { border-color: var(--mn-gold); }
.theme-manani .pager .on { background: var(--mn-sub); border-color: var(--mn-sub); }

/* 右の列 */
.theme-manani .side .cta-side { border-radius: 0; background: var(--accent); padding: 20px 18px; font-weight: 400; font-size: 16px; letter-spacing: .04em; transition: background-color .2s; }
.theme-manani .side .cta-side:hover { background: var(--mn-sub); }
.theme-manani .side .cta-side small { font-size: 12px; opacity: .95; }
.theme-manani .side .box { border: 0; border-top: 1px solid var(--mn-primary); border-radius: 0; padding: 16px 2px 20px; }
.theme-manani .side .box h3 { margin-bottom: 10px; color: var(--mn-heading); font-size: 17px; font-weight: 400; letter-spacing: .04em; }
.theme-manani .side .box a { color: var(--mn-sub); }
.theme-manani .side .box a:hover { text-decoration: underline; }

/* ---- 記事・事例のページ ---- */
.theme-manani .crumb { margin: 0; padding: 18px 0 16px; border-bottom: 1px solid #eee; color: #555; font-size: 12px; line-height: 1.6; }
.theme-manani .crumb a { color: var(--mn-sub); text-decoration: none; }
.theme-manani .crumb a:hover { text-decoration: underline; }
.theme-manani .crumb + .layout { margin-top: 40px; }
.theme-manani .post h1, .theme-manani article h1 { color: var(--mn-heading); font-size: 30px; font-weight: 400; line-height: 1.5; letter-spacing: .02em; }
.theme-manani .post .cat { margin-bottom: 14px; }
.theme-manani .meta { color: var(--muted); }
.theme-manani .post .hero, .theme-manani .emdash-image img { border-radius: 0; }
.theme-manani .lead { margin: 22px 0; padding: 18px 22px; border: 0; border-radius: 0; background: var(--mn-beige); line-height: 2; }
.theme-manani .toc { margin: 26px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.theme-manani .toc b { color: var(--mn-heading); font-weight: 400; font-size: 16px; letter-spacing: .04em; }
.theme-manani .toc ol { padding-left: 1.4em; }
.theme-manani .toc a { color: var(--mn-sub); }
.theme-manani .toc a:hover { text-decoration: underline; }
.theme-manani article h2, .theme-manani .post h2 { margin: 48px 0 18px; padding: 0 0 10px; border-bottom: 1px solid var(--mn-gold); color: var(--mn-heading); font-size: 24px; font-weight: 400; line-height: 1.6; }
.theme-manani article h3 { margin: 32px 0 10px; color: var(--mn-sub); font-size: 19px; font-weight: 400; }
.theme-manani .post p { margin: 0 0 1.2em; line-height: 2; }
.theme-manani .post a:not(.cat) { color: var(--mn-sub); }
.theme-manani .post .related a, .theme-manani .post .cta-box a { color: inherit; }
.theme-manani .emdash-image figcaption { color: var(--muted); }

/* 問い合わせの帯（本体の講座の囲みのベージュと、四角い金のボタン） */
.theme-manani .cta-box { margin: 44px 0; padding: 30px 32px; border-radius: 0; background: var(--mn-beige); color: var(--ink); }
.theme-manani .cta-box h3 { color: var(--mn-heading); font-size: 22px; font-weight: 400; }
.theme-manani .cta-box p { opacity: 1; color: #444; font-size: 14px; }
.theme-manani .cta-box a, .theme-manani .post .cta-box a { min-width: 200px; padding: 10px 24px; border-radius: 0; background: var(--accent); color: #fff; font-weight: 400; text-align: center; letter-spacing: .04em; transition: background-color .2s; }
.theme-manani .cta-box a:hover { background: var(--mn-sub); }

/* 発信元（ロゴの紋章を丸に） */
.theme-manani .author { border-top: 1px solid var(--line); }
.theme-manani .author i { background: #fff url("assets/emblem.png") center / 86% no-repeat; border: 1px solid var(--line); }
.theme-manani .author a { color: var(--mn-sub); }

/* 関連する記事 */
.theme-manani .post .related-h { color: var(--mn-heading); font-size: 22px; font-weight: 400; border: 0; }
.theme-manani .related a { border: 0; border-radius: 0; background: transparent; font-size: 14px; }
.theme-manani .related .photo { height: auto; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #e9e3d8, #cfc6b4); }
.theme-manani .related a div:not(.photo) { padding: 10px 2px; }
.theme-manani .related a:hover div:not(.photo) { color: var(--mn-sub); }

/* 事例（業種 retreat では「プログラム」） */
.theme-manani .tagline span { border-radius: 0; border-color: var(--mn-gold); color: var(--mn-sub); font-weight: 400; }
.theme-manani .ba .photo { border-radius: 0; }
.theme-manani .ba-label { border-radius: 0; font-weight: 400; }
.theme-manani .spec th, .theme-manani .spec td { border-color: var(--line); padding: 12px 15px; }
.theme-manani .spec th { background: #efefef; font-weight: 400; }
.theme-manani .steps-g li { border-radius: 0; border-color: var(--line); }
.theme-manani .steps-g b { color: var(--mn-sub); font-weight: 400; }
.theme-manani .voice { border-radius: 0; background: var(--mn-beige); }
.theme-manani .voice b { color: var(--mn-sub); font-weight: 400; }

/* ---- 1 列のページ（問い合わせ・固定ページ・404・プライバシー） ---- */
.theme-manani main.narrow { max-width: 800px; padding: 60px 20px 90px; }
.theme-manani main.narrow > h1, .theme-manani main.narrow > article > h1 { margin: 0 0 30px; color: var(--mn-heading); font-size: 34px; font-weight: 400; line-height: 1.4; text-align: center; letter-spacing: .04em; }
.theme-manani main.narrow > p { line-height: 2; }
.theme-manani main.narrow > h1 + p:last-child { text-align: center; }
.theme-manani main.narrow > p a, .theme-manani main.narrow article a { color: var(--mn-sub); }
.theme-manani main.narrow > .lead { background: transparent; padding: 0; text-align: center; }

/* 問い合わせフォーム（四角い欄と、本体の金のボタン） */
.theme-manani .contact-form label { font-weight: 400; margin-top: 18px; }
.theme-manani .contact-form input, .theme-manani .contact-form textarea { border: 1px solid #c8c2b6; border-radius: 0; padding: 12px 14px; background: #fff; }
.theme-manani .contact-form input:focus, .theme-manani .contact-form textarea:focus { border-color: var(--mn-gold); outline: 2px solid rgb(203 152 85 / 35%); outline-offset: 0; }
.theme-manani .contact-form .agree a { color: var(--mn-sub); }
.theme-manani .contact-form button { justify-self: center; min-width: 240px; margin-top: 24px; padding: 12px 28px; border-radius: 0; background: var(--accent); font-weight: 400; letter-spacing: .08em; transition: background-color .2s; }
.theme-manani .contact-form button:hover { background: var(--mn-sub); }
.theme-manani .req { border-radius: 0; background: #a8432c; font-weight: 400; }
.theme-manani .form-alert { border-radius: 0; background: var(--mn-beige); }
.theme-manani .form-done h2 { color: var(--mn-heading); font-weight: 400; text-align: center; }

/* プライバシーポリシー（この記事サイトは本体の /privacy-policy/ へ 301。なくなったとき用に本体の帯の見出しに寄せる） */
.theme-manani .policy h2 { padding: 8px 16px; border: 0; background: var(--mn-band); color: #fff; font-size: 18px; font-weight: 400; }

/* ---- フッター（本体と同じ：写真の上のメニュー・ロゴ・茶色の帯とコピーライト） ---- */
.theme-manani .mn-footer { margin-top: 0; }
.theme-manani .mn-footer__nav { position: relative; min-height: 370px; color: #fff; background: #5a5345 url("assets/footer.webp") center / cover no-repeat; }
.theme-manani .mn-footer__nav::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 38%); }
.theme-manani .mn-footer__inner { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 30px 0; width: min(100% - 40px, 1150px); margin-inline: auto; padding: 50px 0; font-size: 12px; text-shadow: 0 1px 2px rgb(0 0 0 / 70%), 0 0 8px rgb(0 0 0 / 45%); }
.theme-manani .mn-footer__group { padding-right: 10px; }
.theme-manani .mn-footer__title { margin: 0 0 12px; font-size: 14px; letter-spacing: .04em; }
.theme-manani .mn-footer__group li { line-height: 2.4; }
.theme-manani .mn-footer__nav a { color: #fff; text-decoration: none; }
.theme-manani .mn-footer__nav a:hover { text-decoration: underline; }
.theme-manani .mn-footer__logo { display: flex; justify-content: center; padding: 18px 0 4px; }
.theme-manani .mn-footer__logo img { display: block; width: 100px; height: auto; }
.theme-manani .mn-footer__operator { margin: 0; padding: 4px 20px 20px; color: #555; font-size: 12px; line-height: 1.9; text-align: center; }
.theme-manani .mn-footer__operator small { font-size: 11px; color: var(--muted); }
.theme-manani .mn-footer__bar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 70px; background: var(--mn-band); color: #fff; }
.theme-manani .mn-footer__instagram { position: absolute; left: max(20px, calc((100% - 1150px) / 2)); display: block; color: #fff; line-height: 0; }
.theme-manani .mn-footer__instagram svg { display: block; }
.theme-manani .mn-footer__copy { margin: 0; font-size: 12px; text-align: center; }
.theme-manani .mn-footer__copy small { font-size: inherit; }

/* ---- タブレット ---- */
@media (max-width: 1100px) {
	.theme-manani .mn-nav__parent { padding: 0 12px; font-size: 13px; }
	.theme-manani .mn-footer__inner { grid-template-columns: repeat(4, 1fr); }
}

/* ---- 1 列（本体の site.css の 860px に合わせる） ---- */
@media (max-width: 860px) {
	.theme-manani .layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---- メニューが入らない幅から、本体のスマホと同じ開閉（<details>。JS なし） ---- */
@media (max-width: 960px) {
	.theme-manani { --mn-header-h: 55px; }
	.theme-manani .mn-header__inner { width: auto; margin: 0 0 0 16px; gap: 0; }
	.theme-manani .mn-nav { display: none; }
	.theme-manani .mn-header__blog { display: block; margin-left: auto; padding: 0 16px; color: var(--mn-sub); font-size: 13px; letter-spacing: .08em; line-height: var(--mn-header-h); text-decoration: none; }
	.theme-manani .mn-spnav { display: block; }
	.theme-manani .mn-spnav__button { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; border-left: 1px solid #ddd; cursor: pointer; list-style: none; }
	.theme-manani .mn-spnav__button::-webkit-details-marker { display: none; }
	.theme-manani .mn-spnav__icon, .theme-manani .mn-spnav__icon::before, .theme-manani .mn-spnav__icon::after { display: block; width: 22px; height: 3px; background: #333; }
	.theme-manani .mn-spnav__icon { position: relative; }
	.theme-manani .mn-spnav__icon::before, .theme-manani .mn-spnav__icon::after { content: ""; position: absolute; left: 0; }
	.theme-manani .mn-spnav__icon::before { top: -7px; }
	.theme-manani .mn-spnav__icon::after { top: 7px; }
	.theme-manani .mn-spnav[open] .mn-spnav__icon { background: transparent; }
	.theme-manani .mn-spnav[open] .mn-spnav__icon::before { top: 0; transform: rotate(45deg); }
	.theme-manani .mn-spnav[open] .mn-spnav__icon::after { top: 0; transform: rotate(-45deg); }
	.theme-manani .mn-spnav__panel { position: absolute; top: var(--mn-header-h); left: 0; right: 0; max-height: calc(100svh - var(--mn-header-h)); overflow-y: auto; background: var(--mn-band); color: #fff; line-height: 1.6; }
	.theme-manani .mn-spnav__parent { display: block; padding: 12px 16px 4px; font-size: 12px; letter-spacing: .06em; }
	.theme-manani .mn-spnav__panel a { display: block; padding: 12px 16px 12px 32px; border-bottom: 1px solid rgb(255 255 255 / 20%); color: #fff; text-decoration: none; }
}

/* ---- スマホ（本体と同じく 767px 以下） ---- */
@media (max-width: 767px) {
	.theme-manani .wrap { padding: 0 16px; }
	.theme-manani .mn-logo img { width: 50px; height: 50px; }
	.theme-manani .list-hero { min-height: 220px; padding: 30px 0; }
	.theme-manani .list-hero h1 { font-size: 30px; }
	.theme-manani .list-hero p { font-size: 14px; }
	.theme-manani .cats { justify-content: flex-start; gap: 8px; margin-top: 24px; }
	.theme-manani .cats a { padding: 4px 12px; font-size: 13px; }
	.theme-manani .layout { gap: 40px; margin-bottom: 50px; }
	.theme-manani .post h1, .theme-manani article h1 { font-size: 24px; }
	.theme-manani article h2, .theme-manani .post h2 { font-size: 21px; }
	.theme-manani .cta-box { padding: 24px 20px; }
	.theme-manani .cta-box a { width: 100%; }
	.theme-manani main.narrow { padding: 40px 16px 70px; }
	.theme-manani main.narrow > h1, .theme-manani main.narrow > article > h1 { font-size: 26px; }
	.theme-manani .contact-form button { width: 100%; }
	.theme-manani .mn-footer__inner { grid-template-columns: 1fr 1fr; padding: 40px 0; }
	.theme-manani .mn-footer__bar { flex-direction: column; gap: 6px; padding: 14px 16px; }
	.theme-manani .mn-footer__instagram { position: static; }
}

/* ---- 印刷・リーダー：本文だけ（メニュー・フッター・問い合わせの帯を出さない） ---- */
@media print {
	.theme-manani .mn-nav, .theme-manani .mn-spnav, .theme-manani .mn-header__blog, .theme-manani .mn-footer, .theme-manani .side, .theme-manani .cta-box, .theme-manani .cats { display: none; }
	.theme-manani .mn-header { position: static; box-shadow: none; }
	.theme-manani .layout { display: block; }
	.theme-manani .list-hero { min-height: 0; background: none; color: #000; text-shadow: none; }
	.theme-manani .list-hero h1, .theme-manani .list-hero p { color: #000; }
}
