/* 御朱印道／共通ヘッダー・基本配色・余白とトップページのスタイル。 */
:root {
  --paper:#faf7ee;
  --paper-light:#fffdf7;
  --ink:#211915;
  --muted:#736a60;
  --red:#a41614;
  --red-dark:#7f100e;
  --gold:#aa874d;
  --line:#ded2bd;
  --container:1320px;
  --section-gap:26px;
  --serif:"Noto Serif CJK JP","Yu Mincho","Hiragino Mincho ProN",serif;
  --sans:"Noto Sans CJK JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
}
*,*::before,*::after {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:100px}
body {padding-top:86px;margin:0;color:var(--ink);background:var(--paper) url('../images/decor/washi-texture.png') repeat;font:14px/1.7 var(--serif);-webkit-font-smoothing:antialiased}
a {color:inherit;text-decoration:none}
a:hover {color:var(--red)}
img {max-width:100%;height:auto;vertical-align:middle}
button,select {font:inherit}
button,a,select {-webkit-tap-highlight-color:transparent}
:focus-visible {outline:3px solid #b77b23;outline-offset:3px}
button {cursor:pointer}
[hidden] {display:none!important}
.section-container {width:min(calc(100% - 64px),var(--container));margin-inline:auto}
.skip-link {position:fixed;top:-110px;left:12px;background:white;padding:12px;z-index:1000}
.skip-link:focus {top:12px}
/* ヘッダー */
.site-header {position:fixed;inset:0 0 auto;z-index:200;height:86px;background:rgba(255,253,247,.95);border-bottom:1px solid rgba(187,153,106,.22);box-shadow:0 2px 16px rgba(75,49,17,.05)}
.site-header::before {content:"";position:absolute;right:14%;top:6px;width:230px;height:62px;background:url('../images/decor/seigaiha.svg') center/140px auto repeat;opacity:.32;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000)}
.header-inner {max-width:1440px;width:calc(100% - 60px);height:100%;margin:auto;display:flex;align-items:center;gap:clamp(14px,2.1vw,34px);justify-content:space-between}
.site-brand {display:flex;flex-shrink:0;width:210px;flex-direction:column;align-items:center;justify-content:center;line-height:1;position:relative;padding-top:4px}
.brand-ink {width:205px;height:62px;object-fit:contain;object-position:center}
.brand-roman {font:700 10px/1.15 Georgia,serif;letter-spacing:1px;margin-top:-4px}
.brand-roman span {color:#bb181a;font-size:16px;vertical-align:middle}
.site-nav {display:flex;align-items:center;gap:clamp(9px,1.55vw,26px);white-space:nowrap;margin-left:auto}
.site-nav a {font:700 clamp(10px,.88vw,13px)/1.45 var(--serif);position:relative;padding:32px 0}
.site-nav a:hover,.site-nav a.active {color:var(--red)}
.site-nav a.active::after {content:"";position:absolute;bottom:20px;left:0;right:0;height:2px;background:var(--red)}
.button {display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 22px;min-height:48px;border-radius:5px;white-space:nowrap;text-align:center;font:700 13px/1.25 var(--serif);letter-spacing:.04em;transition:transform .2s,background .2s,border-color .2s,box-shadow .2s}
.button:hover {transform:translateY(-2px)}
.button span {font-size:20px;font-weight:400;line-height:0}
.button-red {color:#fff;background:linear-gradient(165deg,#c21b17,#94120f);border:1px solid #97100c;box-shadow:0 3px 0 rgba(112,12,8,.18),inset 0 0 0 1px rgba(255,255,255,.15)}
.button-red:hover {color:#fff;background:linear-gradient(145deg,#d02520,#8e100d);box-shadow:0 5px 15px rgba(117,22,12,.22)}
.button-outline {color:#43352c;border:1px solid #ad9577;background:rgba(255,255,255,.43)}
.button-outline:hover {border-color:var(--red);background:#fff9ee}
.header-cta {font-size:12px;min-height:43px;padding:10px 19px;flex-shrink:0}
.menu-button {display:none}
/* ファーストビュー */
.hero {position:relative;isolation:isolate;min-height:560px;overflow:hidden;background:var(--paper-light)}
.hero::before {content:"";position:absolute;z-index:2;inset:0;background:linear-gradient(90deg,var(--paper-light) 0%,rgba(255,252,243,.99) 23%,rgba(255,251,241,.93) 35%,rgba(255,248,233,.42) 49%,rgba(255,248,233,0) 64%);pointer-events:none}
.hero::after {content:"";position:absolute;z-index:2;inset:auto auto -35px -65px;width:340px;height:260px;background:url('../images/decor/seigaiha.svg') center/130px auto repeat;opacity:.48;mask-image:radial-gradient(ellipse at 0% 100%,#000 12%,transparent 70%);pointer-events:none}
.hero-photo {position:absolute;z-index:1;right:0;top:0;bottom:0;width:69%;background-image:url('../images/shrines/mainimg1.jpg.webp');background-size:cover;background-position:58% 45%;filter:saturate(1.1) contrast(1.04)}
.hero-photo::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,246,227,.15),transparent 45%),linear-gradient(0deg,rgba(42,22,5,.15),transparent 40%)}
.hero-inner {position:relative;z-index:5;width:min(calc(100% - 100px),1320px);margin:auto;display:flex;align-items:center;min-height:560px}
.hero-copy {width:54%;padding:20px 0 40px;margin-left:clamp(0px,2vw,28px)}
.hero h1 {font-family:var(--serif);font-weight:800;font-size:clamp(37px,4.1vw,64px);line-height:1.3;letter-spacing:-.04em;margin:0 0 13px;text-shadow:0 2px 3px rgba(255,250,239,.55)}
.hero h1 .hero-intro {font-size:.75em;letter-spacing:.02em}
.hero h1 strong {color:#ad1515;font-size:1.23em;letter-spacing:-.06em;font-weight:900}
.hero h1 .hero-particle {font-size:.83em}
.hero h1 .hero-last {font-size:.74em;letter-spacing:-.04em}
.hero-lead {font-size:clamp(12px,1.06vw,16px);line-height:1.9;font-weight:600;letter-spacing:.04em;margin:0 0 17px;max-width:570px}
.hero-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.hero-actions .button {min-height:45px;font-size:clamp(10px,.92vw,13px);padding:10px clamp(12px,1.2vw,22px)}
.hero-stats {display:flex;align-items:center;gap:clamp(15px,3vw,44px);margin-top:22px}
.stat {display:flex;align-items:center;gap:9px;line-height:1.08}
.stat-mark {font:32px/1 var(--serif);color:#ae8b57;min-width:33px;text-shadow:1px 1px #fcf1d9}
.stat b {font:700 clamp(23px,2.4vw,34px)/1.05 Georgia,var(--serif);display:block}
.stat small {display:block;font-size:11px;font-weight:800;margin-top:3px}
.hero-photo-caption {position:absolute;z-index:4;right:28px;top:32px;color:#fff;writing-mode:vertical-rl;font-size:clamp(15px,1.5vw,22px);letter-spacing:.27em;line-height:1.55;text-shadow:0 2px 7px #120c07,0 0 3px #070201}
.hero-goshuin {position:absolute;right:2%;bottom:-10px;z-index:4;display:flex;align-items:flex-end;gap:2px;transform:rotate(-2deg)}
.hero-goshuin img {width:clamp(84px,9.4vw,146px);height:clamp(119px,13.4vw,195px);object-fit:cover;object-position:center;border:5px solid #fff8e8;box-shadow:0 5px 12px rgba(0,0,0,.28);border-radius:3px;background:white;transform-origin:bottom center;transform:rotate(-4deg)}
.hero-goshuin img:nth-child(2) {transform:rotate(3deg) translateY(-5px)}
.hero-goshuin img:nth-child(3) {transform:rotate(-2deg) translateY(-2px)}
.hero-goshuin img:nth-child(4) {transform:rotate(5deg) translateY(5px)}
.hero-ornament {position:absolute;pointer-events:none;z-index:3;background-repeat:no-repeat}
.hero-ornament-sakura {top:-20px;left:-185px;width:275px;height:275px;background-image:url('../images/decor/sakura-branch.svg');background-size:contain;transform:rotate(-13deg)}
.hero-ornament-cloud {left:-105px;top:42%;width:180px;height:80px;background-image:url('../images/decor/gold-cloud.svg');background-size:contain;opacity:.68}
/* セクション見出しの共通仕様 */
.section {padding:var(--section-gap) 0}
.section-en {display:block;color:var(--gold);font:600 10px/1.4 Georgia,serif;letter-spacing:.23em;margin-bottom:3px}
.section-heading {display:flex;gap:18px;align-items:end;margin-bottom:16px;position:relative}
.section-heading>div:first-child {flex-shrink:0;border-left:3px solid var(--gold);padding-left:13px}
.section-heading h2,.center-heading h2 {margin:0;font:800 clamp(22px,2vw,30px)/1.4 var(--serif);letter-spacing:.04em}
.section-heading>p {flex:1;margin:0 0 3px;font-size:12px;color:#5d554f}
.section-more {color:var(--red);border-bottom:1px solid #c89985;padding-bottom:5px;white-space:nowrap;font-size:12px;font-weight:800;margin-bottom:2px}
.section-more span {font-size:18px;margin-left:6px}
.section-more:hover {color:#e0271b}
/* ルート検索 */
.route-search-section {padding:14px 0 18px;position:relative;background:linear-gradient(90deg,rgba(244,230,198,.30),rgba(255,255,255,.85) 28%,rgba(255,255,255,.85) 72%,rgba(244,230,198,.30)),var(--paper);border-bottom:1px solid rgba(193,165,118,.2)}
.route-search-section::before,.route-search-section::after {content:"";position:absolute;z-index:0;top:0;width:230px;height:100%;background:url('../images/decor/seigaiha.svg') center/112px auto repeat;opacity:.23;pointer-events:none}
.route-search-section::before {left:0;mask-image:linear-gradient(90deg,#000,transparent)}
.route-search-section::after {right:0;mask-image:linear-gradient(270deg,#000,transparent)}
.route-search-section>.section-container {position:relative;z-index:1}
.center-heading {text-align:center;margin-bottom:11px}
.center-heading h2 {font-size:26px}
.center-heading p {margin:3px 0 0;font-size:12px;color:var(--muted)}
.search-form {display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 190px;gap:0;background:#fff;border-radius:6px;border:1px solid #e4d9c4;box-shadow:0 5px 18px rgba(65,45,21,.09);padding:8px}
.filter-field {display:flex;align-items:center;min-width:0;gap:12px;padding:2px 15px;border-right:1px solid #e9e1d7;cursor:pointer}
.filter-icon {font-size:25px;line-height:1;color:#ab8850;min-width:28px;text-align:center}
.filter-text {flex:1;display:flex;flex-direction:column;min-width:0}
.filter-label {font-size:10px;color:#957750;font-weight:800}
.filter-field select {color:#251d17;appearance:none;border:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23756345' stroke-width='2'/%3E%3C/svg%3E") no-repeat right center;font-weight:700;font-size:13px;width:100%;padding:1px 20px 1px 0;cursor:pointer;outline-offset:3px}
.search-submit {width:100%;min-height:52px}
.search-results {margin-top:12px;background:rgba(255,253,248,.98);border:1px solid var(--line);padding:15px;border-radius:6px;box-shadow:0 4px 15px rgba(67,47,26,.08)}
.search-results-top {display:flex;justify-content:space-between;align-items:center;gap:12px}
.search-results-top h3 {font-size:17px;margin:0}
.text-link {color:var(--red);background:none;border:0;text-decoration:underline;font-size:12px;font-weight:700}
.route-results-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:9px 0}
.route-result {display:block;border:1px solid #dfd0b8;background:#fff;padding:11px;border-radius:5px}
.route-result:hover {background:#fff5e8;border-color:var(--gold)}
.route-result small {display:block;color:#9a6840;font-size:10px;margin-bottom:4px}
.route-result-meta {display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:5px}
.route-result-meta small {margin:0}
.route-result-kind {border:1px solid #e0d0b1;border-radius:3px;padding:3px 6px;background:#f7f0e3;color:#6d5339!important;font-weight:800}
.route-search-note {margin:11px 0 4px;font-size:11px;line-height:1.7;color:#655b4b}
.route-result strong {display:block;font-size:14px;line-height:1.4}
.route-result p {font-size:11px;color:#65574a;margin:5px 0 0}
.route-empty {grid-column:1/-1;padding:14px;text-align:center;color:#6b6258}
/* 御朱印ギャラリー */
.gallery-section {position:relative}
.gallery-section::before {content:"";position:absolute;left:0;top:50px;width:120px;height:230px;background:url('../images/decor/sakura-branch.svg') center/contain no-repeat;transform:rotate(13deg) translateX(-55%);pointer-events:none}
.goshuin-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(11px,1.7vw,25px)}
.goshuin-item {display:block;min-width:0}
.goshuin-item img {width:100%;height:clamp(135px,16vw,231px);object-fit:cover;object-position:50% 38%;border-radius:3px;border:1px solid #ede3d5;box-shadow:1px 3px 7px rgba(60,48,34,.17);background:white;transition:transform .23s,box-shadow .23s}
.goshuin-item:hover img {transform:translateY(-5px);box-shadow:0 6px 14px rgba(60,48,34,.2)}
.goshuin-item strong {font-size:14px;display:block;margin-top:7px;line-height:1.3}
.goshuin-item span {display:block;font-size:11px;color:#6a5c4f;line-height:1.5}
/* ブログ記事のカード */
.articles-section {padding-top:10px}
.article-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.article-card {background:#fffdf8;box-shadow:0 2px 11px rgba(61,45,26,.11);border:1px solid rgba(194,175,148,.38);border-radius:4px;overflow:hidden;min-width:0;transition:transform .2s}
.article-card:hover {transform:translateY(-4px)}
.article-image {display:block;height:clamp(135px,14.4vw,205px);overflow:hidden}
.article-image img {width:100%;height:100%;object-fit:cover;object-position:center 28%;transition:transform .3s}
.article-card:hover .article-image img {transform:scale(1.04)}
.article-content {padding:10px 15px 14px}
.article-content time {font:600 11px/1.4 Georgia,serif;color:#765a3f}
.article-content h3 {font-size:clamp(14px,1.16vw,17px);line-height:1.48;margin:2px 0 4px}
.article-content p {color:#6e6255;font-size:12px;line-height:1.7;margin:0 0 6px;min-height:41px}
.tag {font:600 10px/1.5 var(--sans);color:#916c3b;border:1px solid #ddc5a5;display:inline-block;padding:2px 9px;margin:0 4px 0 0;border-radius:20px;background:#fff9ed}
/* 特集エリア */
.special-section {position:relative;isolation:isolate;background:linear-gradient(100deg,rgba(6,31,26,.92),rgba(15,49,37,.87) 43%,rgba(11,36,29,.88)),url('../images/shrines/topmitsaumn.jpg.webp') center 45%/cover;color:#fff;padding:28px 0;overflow:hidden}
.special-section::after {content:"";position:absolute;right:0;bottom:-65px;opacity:.10;background:url('../images/decor/seigaiha.svg') center/160px auto repeat;width:650px;height:260px;pointer-events:none}
.special-layout {position:relative;z-index:1;display:grid;grid-template-columns:minmax(240px,.82fr) minmax(0,2fr);gap:24px;align-items:center}
.special-intro .section-en {color:#e4c486;font-size:11px;margin-bottom:8px}
.special-intro h2 {font-size:clamp(26px,2.9vw,42px);font-weight:800;line-height:1.48;margin:0 0 11px}
.special-intro p {font-size:12px;line-height:1.85;color:#f2e9db;margin:0 0 15px}
.button-gold-outline {color:#f8e6c8;border:1px solid #dcb26c;padding:10px 26px;min-height:41px}
.button-gold-outline:hover {color:white;background:rgba(172,121,63,.2)}
.special-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.feature-card {background:#fdf9ee;color:#261e17;border-radius:4px;overflow:hidden;text-align:center;border:1px solid #dbc59f;box-shadow:0 4px 18px rgba(0,0,0,.2)}
.feature-card:hover {color:var(--red)}
.feature-card img {width:100%;height:clamp(115px,11.5vw,170px);object-fit:cover}
.feature-card>div {padding:9px 10px 10px}
.feature-card h3 {font-size:clamp(15px,1.3vw,19px);margin:0 0 3px}
.feature-card p {font-size:11px;color:#645646;margin:0 0 6px;line-height:1.6;min-height:36px}
.feature-card span {display:block;margin:0 auto;border:1px solid #d0ac72;color:#735327;padding:3px 9px;border-radius:18px;max-width:132px;font-size:11px}
.feature-card span span {display:inline;border:0;padding:0;font-size:15px}
/* テーマ：写真と文字を重ねた5枚 */
.themes-section {position:relative;padding-bottom:16px}
.themes-section::before {content:"";position:absolute;left:-110px;top:25px;width:310px;height:300px;background:url('../images/decor/sakura-branch.svg') center/cover no-repeat;transform:rotate(-22deg);pointer-events:none;opacity:.8}
.theme-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.theme-card {position:relative;display:flex;align-items:center;min-height:108px;border-radius:6px;overflow:hidden;isolation:isolate;box-shadow:0 2px 8px rgba(64,45,28,.14);border:1px solid rgba(206,181,146,.7)}
.theme-card img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;transition:transform .3s}
.theme-card::before {content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,249,232,.06) 0%,rgba(255,251,239,.85) 52%,rgba(255,251,239,.95));z-index:-1}
.theme-card:hover img {transform:scale(1.07)}
.theme-card-text {display:flex;flex-direction:column;justify-content:center;margin-left:auto;width:65%;text-align:center;padding:10px 5px;text-shadow:0 1px 2px rgba(255,255,255,.9)}
.theme-card strong {font-size:clamp(13px,1.22vw,18px);line-height:1.4;white-space:nowrap}
.theme-card small {font:600 10px/1.8 var(--serif);white-space:nowrap}
.theme-gold strong {color:#7b551b}.theme-pink strong {color:#b3285e}.theme-red strong {color:#b3291f}.theme-green strong {color:#327f4d}.theme-cream strong {color:#993d39}
.theme-pink::before {background:linear-gradient(90deg,rgba(255,231,237,.06),rgba(255,232,239,.87) 53%,#fff2f5)}
.theme-red::before {background:linear-gradient(90deg,rgba(247,208,192,.01),rgba(255,230,215,.88) 53%,#ffecdf)}
.theme-green::before {background:linear-gradient(90deg,rgba(226,247,220,.02),rgba(236,251,226,.88) 53%,#f0fae8)}
/* 初心者ガイド */
.howto-section {padding-top:8px;padding-bottom:22px}
.howto-grid {list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0;margin:0}
.howto-grid li+li {border-left:1px solid #dacdb7}
.howto-grid a {display:flex;align-items:center;gap:10px;padding:4px 9px;min-height:65px}
.step-number {font:700 24px/1 Georgia,serif;color:#956e34}
.step-icon {font-size:28px;color:#a0804c;min-width:28px;text-align:center}
.howto-grid strong {font-size:12px;display:block;line-height:1.5}
.howto-grid small {font-size:10px;line-height:1.4;display:block;color:#75695f;margin-top:2px}
.step-arrow {color:#9a6b39;margin-left:auto;font-size:21px}
/* 下段の誘導バナー */
.closing-banner {position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(120deg,rgba(239,209,156,.5),rgba(255,247,229,.89) 38%,rgba(237,204,150,.5)),url('../images/decor/seigaiha.svg') center/200px auto repeat;padding:24px 0;border-top:1px solid #d9bd88;border-bottom:1px solid #d9bd88}
.closing-banner::before {content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 35% 50%,rgba(255,255,255,.85),transparent 42%);z-index:-1}
.closing-layout {display:flex;justify-content:center;align-items:center;gap:clamp(28px,8vw,110px);min-height:111px}
.closing-layout>div {text-align:center}
.closing-layout h2 {font-size:clamp(23px,2.7vw,36px);line-height:1.45;margin:0 0 3px}
.closing-layout h2 strong {color:var(--red);font-size:1.18em}
.closing-layout p {margin:0;font-size:12px}
.closing-layout>.button {z-index:2}
.closing-layout>img {height:150px;width:auto;object-fit:cover;transform:rotate(16deg) translateY(28px);box-shadow:0 5px 14px rgba(51,33,20,.25)}
/* フッター */
.site-footer {background:#fffdf8;border-top:1px solid #e5d5b9}
.footer-main {min-height:94px;display:flex;align-items:center;gap:24px}
.footer-brand {display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:142px}
.footer-brand img {width:140px;height:43px;object-fit:contain}
.footer-brand span {font:700 9px Georgia,serif;letter-spacing:.1em}
.footer-main nav {display:flex;gap:clamp(9px,1.3vw,19px);flex-wrap:wrap;align-items:center;flex:1}
.footer-main nav a {font-size:11px;font-weight:700}
.footer-main small {font-size:10px;color:#777;white-space:nowrap}
.back-to-top {position:fixed;right:15px;bottom:15px;z-index:30;display:grid;place-items:center;width:43px;height:43px;border-radius:50%;color:#fff;background:#a58959;box-shadow:0 4px 12px #4d342c33;opacity:.93;font:700 20px var(--serif)}
.back-to-top:hover {color:white;background:var(--red)}
/* タブレット：余白30px以内・メニューの折り畳みを早めに実施 */
@media(max-width:1150px) {
  .site-header{height:75px}body{padding-top:75px}
  .header-inner{width:calc(100% - 38px);gap:14px}
  .site-brand{width:173px}.brand-ink{width:173px;height:49px}
  .brand-roman{font-size:9px}
  .header-cta{font-size:10px;padding:8px 13px;min-height:39px}
  .site-nav{gap:11px}
  .site-nav a{font-size:10px}
  .site-nav a.active::after{bottom:17px}
  .hero,.hero-inner {min-height:465px}
  .hero-inner{width:calc(100% - 68px)}
  .hero-copy{width:57%;padding-top:12px;padding-bottom:48px}
  .hero h1{font-size:clamp(41px,4.9vw,56px)}
  .hero-goshuin{right:1%}
  .special-layout{grid-template-columns:minmax(200px,.8fr) minmax(0,2fr)}
  .special-cards{gap:10px}
  .footer-main{gap:17px}
}
@media(max-width:900px){
  :root{--section-gap:22px}
  html{scroll-padding-top:65px}
  .site-header{height:67px}body{padding-top:67px}
  .header-inner{width:calc(100% - 30px)}
  .site-brand{width:162px}.brand-ink{width:162px;height:47px}
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fffdf8;padding:10px 20px 18px;box-shadow:0 10px 18px rgba(48,27,15,.12);flex-direction:column;align-items:stretch;gap:0;margin:0;max-height:calc(100vh - 67px);max-height:calc(100dvh - 67px);overflow-y:auto;overscroll-behavior:contain}
  .site-nav.is-open{display:flex}
  .site-nav a{font-size:14px;padding:12px 10px;border-bottom:1px solid #efe7db}
  .site-nav a.active::after{display:none}
  .menu-button{display:flex;order:2;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:transparent;border:1px solid #cbbb9e;border-radius:4px;width:43px;height:43px;padding:0}
  .menu-button span{width:20px;height:2px;border-radius:2px;background:#663f28;transition:transform .2s,opacity .2s}
  .menu-button.is-open span:first-child{transform:translateY(7px) rotate(45deg)}
  .menu-button.is-open span:nth-child(2){opacity:0}
  .menu-button.is-open span:last-child{transform:translateY(-7px) rotate(-45deg)}
  .header-cta{margin-left:auto}
  .section-container{width:calc(100% - 34px)}
  .section-heading{flex-wrap:wrap;gap:5px 14px;margin-bottom:12px}
  .section-heading>p{flex:1 1 40%;font-size:11px}
  .section-more{margin-left:auto}
  .hero,.hero-inner{min-height:460px}
  .hero-inner{width:calc(100% - 50px)}
  .hero-copy{width:63%}
  .hero h1{font-size:36px}
  .hero-photo{width:76%;background-position:52% center}
  .hero::before{background:linear-gradient(90deg,#fffcf6 0%,#fffcf6 21%,rgba(255,251,243,.96) 38%,rgba(255,251,243,.33) 70%,transparent 95%)}
  .hero-goshuin img{width:87px;height:119px}
  .hero-photo-caption{right:12px;font-size:15px}
  .search-form{grid-template-columns:repeat(3,minmax(0,1fr)) 150px}
  .filter-field{padding:2px 9px;gap:4px}.filter-icon{font-size:19px;min-width:21px}
  .filter-field select{font-size:12px}.search-submit{font-size:12px;padding:10px}
  .goshuin-grid{gap:9px}.goshuin-item img{height:160px}
  .goshuin-item strong{font-size:12px}.goshuin-item span{font-size:10px}
  .article-grid{gap:12px}.article-image{height:150px}.article-content{padding:9px}
  .article-content p{font-size:11px}
  .special-layout{grid-template-columns:1fr;gap:12px}
  .special-intro{display:grid;grid-template-columns:1fr auto;column-gap:15px;align-items:center}
  .special-intro .section-en{grid-column:1/-1}
  .special-intro h2{font-size:28px;margin:0}.special-intro p{font-size:11px}
  .special-intro .button{justify-self:end;grid-column:2;grid-row:2 / span 2}
  .feature-card img{height:150px}
  .theme-grid{gap:8px}.theme-card{min-height:85px}.theme-card strong{font-size:12px}.theme-card small{font-size:9px}
  .howto-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .howto-grid li:nth-child(3){border-left:0}.howto-grid a{padding:7px}
  .closing-layout{gap:25px}.closing-layout>img{height:112px}
  .footer-main{padding-block:14px;flex-wrap:wrap;gap:11px}.footer-main nav{flex:1 1 70%}
  .footer-main small{flex:1 1 100%;text-align:center}
}
/* スマートフォン：各セクションの余白を20px以内に統一 */
@media(max-width:640px){
  :root{--section-gap:18px}
  html{scroll-padding-top:68px}
  .site-header{height:65px}body{padding-top:65px}
  .header-inner{width:calc(100% - 24px)}
  .site-brand{width:155px}.brand-ink{width:155px;height:43px}
  .brand-roman{margin-top:-1px;font-size:8px}
  .header-cta{display:none}
  .section-container{width:calc(100% - 28px)}
  .hero{display:flex;flex-direction:column;min-height:0;padding-top:251px;overflow:hidden}
  .hero-photo{top:0;left:0;right:0;bottom:auto;width:100%;height:290px;background-size:cover;background-position:50% 38%}
  .hero::before{inset:0 0 auto;height:290px;background:linear-gradient(0deg,#fffcf6 0%,rgba(255,252,246,.05) 32%,transparent 75%)}
  .hero::after{bottom:0;width:210px;height:160px}
  .hero-photo-caption{top:15px;right:15px;font-size:14px;line-height:1.45}
  .hero-ornament-sakura{top:225px;left:-155px;width:185px;height:185px}
  .hero-ornament-cloud{display:none}
  .hero-inner{min-height:0;width:calc(100% - 30px);display:block;padding:3px 0 13px;z-index:6}
  .hero-copy{width:100%;padding:3px 0 0;margin-left:0}
  .hero h1{font-size:clamp(29px,8.7vw,45px);line-height:1.27;margin:0 0 8px;max-width:560px}
  .hero h1 .hero-intro{font-size:.69em}.hero h1 strong{font-size:1.13em}.hero h1 .hero-last{font-size:.72em}
  .hero-lead{font-size:12px;line-height:1.8;margin:0 0 12px;letter-spacing:0}
  .desktop-only{display:none}
  .hero-actions{gap:6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-actions .button{font-size:11px;min-height:42px;padding:7px 8px;gap:4px}
  .hero-actions .button:first-child{grid-column:1/-1}
  .hero-stats{gap:16px;margin-top:14px;justify-content:space-around}
  .stat{gap:5px}.stat-mark{font-size:22px;min-width:23px}.stat b{font-size:22px}.stat small{font-size:9px}
  .hero-goshuin{top:195px;bottom:auto;right:9px;z-index:4;gap:1px}
  .hero-goshuin img{width:clamp(52px,14.5vw,86px);height:clamp(68px,18vw,108px);border-width:3px}
  .route-search-section{padding:12px 0 14px}
  .center-heading{margin-bottom:9px}.center-heading h2{font-size:22px}.center-heading p{font-size:10px}
  .search-form{grid-template-columns:1fr;gap:0;padding:7px}
  .filter-field{padding:8px 10px;border-right:0;border-bottom:1px solid #ebe0d0;min-height:57px;gap:13px}
  .filter-icon{min-width:26px;font-size:23px}
  .filter-field select{font-size:13px}
  .search-submit{min-height:45px;margin-top:7px}
  .route-results-grid{grid-template-columns:1fr}
  .section-heading{display:grid;grid-template-columns:1fr auto;align-items:end;gap:4px}
  .section-heading>div:first-child{grid-column:1 / -1;padding-left:10px}
  .section-heading h2{font-size:21px}
  .section-heading>p{grid-column:1;grid-row:2;margin:0;font-size:10px;line-height:1.5}
  .section-more{grid-column:2;grid-row:2;font-size:10px}
  .goshuin-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:0 0 7px;scrollbar-width:thin}
  .goshuin-item{flex:0 0 33%;scroll-snap-align:start}
  .goshuin-item img{height:clamp(140px,42vw,188px)}
  .goshuin-item strong{font-size:12px}
  .articles-section{padding-top:9px}
  .article-grid{display:grid;grid-template-columns:1fr;gap:10px}
  .article-card{display:grid;grid-template-columns:37% 1fr;min-height:144px}
  .article-image{height:100%;min-height:144px}
  .article-image img{height:100%;object-fit:cover}
  .article-content{padding:10px}.article-content h3{font-size:14px;margin-bottom:2px}.article-content p{font-size:11px;min-height:0;line-height:1.6}
  .special-section{padding:18px 0}
  .special-intro{display:block;text-align:left}
  .special-intro h2{font-size:28px}.special-intro p{font-size:11px;margin:6px 0 10px}
  .special-intro .button{display:inline-flex;min-height:37px}
  .special-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .feature-card img{height:90px}.feature-card>div{padding:7px 4px}.feature-card h3{font-size:12px}
  .feature-card p{font-size:9px;min-height:57px;line-height:1.45}.feature-card span{font-size:9px;padding:3px}
  .themes-section::before{width:210px;height:215px;left:-145px;top:40px}
  .theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .theme-card{min-height:98px}.theme-card:last-child{grid-column:1 / -1;min-height:91px}
  .theme-card strong{font-size:14px}.theme-card small{font-size:10px}
  .howto-grid{grid-template-columns:1fr;gap:0}
  .howto-grid li+li{border-left:0;border-top:1px solid #e3d9ca}
  .howto-grid a{min-height:58px;gap:12px;padding:8px 4px}
  .step-number{font-size:22px}.step-icon{font-size:26px}
  .howto-grid strong{font-size:13px}.howto-grid small{font-size:11px}
  .closing-banner{padding:17px 0}
  .closing-layout{min-height:130px;justify-content:start;gap:12px;position:relative;padding-right:95px;flex-direction:column;align-items:start}
  .closing-layout>div{text-align:left}
  .closing-layout h2{font-size:24px}.closing-layout p{font-size:10px}
  .closing-layout>.button{font-size:11px;padding:8px 13px;min-height:39px}
  .closing-layout>img{position:absolute;right:4px;bottom:-25px;height:139px;transform:rotate(12deg)}
  .footer-main{display:block;text-align:center;padding:15px 0 52px}
  .footer-brand{width:155px;margin:0 auto 9px}
  .footer-main nav{display:flex;justify-content:center;gap:7px 14px;margin:0 0 11px}
  .footer-main nav a{font-size:10px}
  .back-to-top{bottom:9px;right:9px;width:37px;height:37px;font-size:17px}
}
@media(max-width:365px){
  .hero h1{font-size:29px}
  .hero-stats{gap:8px}.stat-mark{font-size:18px;min-width:19px}.stat b{font-size:19px}
  .hero-goshuin img{width:50px;height:66px}
  .goshuin-item{flex-basis:39%}
  .special-cards{gap:5px}.feature-card img{height:77px}
  .feature-card h3{font-size:11px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* テーマ画像カード／小判・水引・鳥居・若葉・絵馬 */
.theme-card {min-height:106px;box-shadow:0 2px 10px rgba(83,50,28,.12)}
.theme-card img {object-fit:cover;object-position:center}
.theme-card::before {background:linear-gradient(90deg,rgba(255,250,244,.03) 0%,rgba(255,250,241,.12) 34%,rgba(255,250,241,.92) 64%,#fffaf0 100%)}
.theme-card-text {width:66%;min-height:100%;padding:9px 6px 9px 9px;background:transparent;text-shadow:0 1px 2px #fff}
.theme-pink::before {background:linear-gradient(90deg,transparent,rgba(255,238,242,.2) 30%,rgba(255,239,244,.94) 65%,#fff0f3)}
.theme-red::before {background:linear-gradient(90deg,transparent,rgba(255,244,231,.2) 30%,rgba(255,237,222,.94) 65%,#fff1e6)}
.theme-green::before {background:linear-gradient(90deg,transparent,rgba(241,255,235,.2) 30%,rgba(241,255,234,.94) 65%,#f4ffe9)}
.theme-cream::before {background:linear-gradient(90deg,transparent,rgba(255,238,235,.2) 30%,rgba(255,237,232,.94) 65%,#fff1e8)}
@media(max-width:1150px){.theme-card{min-height:94px}.theme-card strong{font-size:clamp(11px,1.35vw,15px)}}
@media(max-width:640px){.theme-card{min-height:102px}.theme-card:last-child{min-height:97px}.theme-card strong{font-size:14px}.theme-card-text{width:68%}}


/* 共通ヘッダーと御朱印ギャラリー */
/* 小さい端末でも画像が縮みすぎない2〜3列グリッド。横スクロールは使いません。 */
.goshuin-grid{align-items:start}
.goshuin-item img{aspect-ratio:3/4;object-fit:contain;object-position:center;background:#fffdf9;height:auto}
@media(max-width:900px){
  .goshuin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:visible;scroll-snap-type:none;padding:0}
  .goshuin-item{flex:initial;scroll-snap-align:none}
  .goshuin-item img{height:auto;aspect-ratio:3/4;object-fit:contain}
}
@media(max-width:640px){
  .goshuin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;overflow:visible;scroll-snap-type:none;padding:0}
  .goshuin-item{min-width:0;flex:auto}
  .goshuin-item img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
}
/* 小規模社寺への応援セクション：落ち着いた深緑と金のアクセント */
.shrine-support{position:relative;isolation:isolate;color:#fdf9ee;background:linear-gradient(110deg,#18382f 0%,#244639 55%,#153029 100%);border-top:3px solid #ba9858;border-bottom:1px solid #bea371;overflow:hidden}
.shrine-support::before{content:"";position:absolute;inset:0;z-index:-1;background:url('../images/decor/seigaiha.svg') left -55px center/168px auto repeat;opacity:.1}
.support-layout{display:flex;align-items:center;gap:22px;min-height:128px}
.support-symbol{flex:0 0 75px;height:75px;border:1px solid #d1b16b;border-radius:50%;display:grid;place-items:center;position:relative;color:#f5e1aa;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 5px rgba(255,250,210,.07);font:700 39px/1 var(--serif)}
.support-symbol-orbit{position:absolute;color:#d7a967;font-size:16px;right:-3px;top:0}
.support-copy{flex:1;min-width:0}
.support-copy .section-en{color:#ddba76;letter-spacing:.18em;font-size:11px;margin-bottom:7px}
.support-copy h2{font-size:clamp(20px,2.2vw,29px);line-height:1.42;letter-spacing:.03em;margin:0 0 6px}
.support-copy p{color:#f2e9dc;font-size:12px;line-height:1.7;margin:0}
.support-mobile-break{display:none}
.button-support{flex:0 0 auto;background:transparent;border:1px solid #d7bb7c;color:#f6e8ce;min-height:42px}
.button-support:hover{color:#fff;background:rgba(255,255,255,.12)}
/* 見本に合わせた金の和柄・山並み背景。既存の装飾SVGを流用。 */
.closing-banner{background-image:linear-gradient(100deg,rgba(234,185,99,.50),rgba(255,250,231,.79) 36%,rgba(243,202,133,.52)),url('../images/decor/washi-texture.png'),url('../images/decor/seigaiha.svg');background-position:center,center,center;background-size:auto,auto,175px auto;padding:24px 0;min-height:171px;border-color:#cda465}
.closing-banner::before{background:radial-gradient(ellipse at 36% 50%,rgba(255,253,241,.84),transparent 52%),url('../images/decor/gold-cloud.svg') -40px center/260px auto no-repeat;opacity:.83}
.closing-mountain{position:absolute;inset:0;z-index:-1;background:linear-gradient(165deg,transparent 45%,rgba(181,120,54,.28) 45.3%,rgba(207,161,89,.27) 70%,transparent 70.3%) center bottom/100% 100%,linear-gradient(25deg,transparent 54%,rgba(167,114,46,.23) 54.3%,rgba(218,175,98,.28) 76%,transparent 76.3%) 100% 100%/76% 100% no-repeat;pointer-events:none}
.closing-layout{position:relative;justify-content:space-between;gap:22px;min-height:121px;padding-right:260px}
.closing-copy{flex:1;text-align:center}
.closing-copy h2{font-size:clamp(26px,2.85vw,39px)}
.closing-copy p{font-size:12px}
.closing-layout>.button{flex-shrink:0;border:2px solid #fff7e5;outline:1px solid #ab1912;box-shadow:0 4px 12px rgba(84,37,24,.18)}
/* 見本の黒地に花柄の御朱印帳を写真に依存しない装飾として制作。 */
.closing-book{position:absolute;right:-60px;top:-47px;width:245px;height:232px;transform:rotate(-17deg);background:radial-gradient(ellipse at 15% 30%,rgba(208,153,53,.29),transparent 34%),radial-gradient(ellipse at 87% 79%,rgba(172,47,27,.35),transparent 38%),#161616;border:5px solid #2b1b15;border-left:10px solid #6b4521;box-shadow:0 8px 19px rgba(50,30,16,.5);overflow:hidden}
.closing-book::before{content:"";position:absolute;inset:9px;border:2px solid #b68a46;opacity:.65;background:url('../images/decor/sakura-branch.svg') left bottom/220px auto no-repeat;filter:sepia(1) saturate(1.5)}
.book-pattern{position:absolute;font-size:57px;line-height:1;color:#c34838;text-shadow:1px 1px #d7a961,-2px 2px #986432}
.book-pattern-a{top:7px;left:24px}.book-pattern-b{bottom:13px;left:53px;font-size:44px;color:#be9c57}.book-pattern-c{top:20px;right:8px;font-size:48px}
.book-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;writing-mode:vertical-rl;text-orientation:upright;padding:14px 8px;background:#f6f1e3;border:3px double #4b423a;color:#211914;box-shadow:0 2px 9px #0008;font:800 27px/1.1 var(--serif);letter-spacing:.13em}
@media(max-width:900px){.support-layout{gap:16px}.closing-layout{padding-right:172px}.closing-book{width:184px;height:192px;right:-34px;top:-30px}.book-label{font-size:22px}.book-pattern{font-size:45px}}
@media(max-width:640px){
 .support-layout{gap:12px;min-height:0;flex-wrap:wrap;padding-block:18px}
 .support-symbol{flex:0 0 53px;height:53px;font-size:28px}
 .support-copy{flex:1 1 calc(100% - 70px)}
 .support-copy .section-en{font-size:9px;margin-bottom:4px}
 .support-copy h2{font-size:19px;line-height:1.45}
 .support-mobile-break{display:block}
 .support-copy p{font-size:11px}
 .button-support{margin-left:65px;min-height:37px;font-size:11px;padding:8px 18px}
 .closing-banner{padding:20px 0;min-height:175px}
 .closing-layout{padding-right:115px;min-height:142px;gap:8px;align-items:flex-start}
 .closing-copy{text-align:left;flex:initial}
 .closing-copy h2{font-size:clamp(21px,6vw,27px)}
 .closing-copy p{font-size:10px}
 .closing-layout>.button{min-height:39px;font-size:10px;padding:7px 9px;white-space:normal;max-width:230px}
 .closing-book{right:-55px;top:4px;width:148px;height:155px;transform:rotate(-13deg);border-width:4px 4px 4px 7px}
 .book-label{font-size:18px;padding:9px 5px}
 .book-pattern{font-size:34px}
}

/* ===== 神社・寺院向け無料CMS／HTMLテンプレートを並列で案内 ===== */
.support-layout{min-height:108px}
.support-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-bottom:18px}
.support-service{min-width:0;padding:17px 20px 16px;border:1px solid rgba(222,192,130,.56);border-radius:7px;background:rgba(255,253,247,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.support-service-cms{background:rgba(231,213,166,.12);border-color:#bfa46c}
.support-service-type{display:block;font:700 10px/1.4 Georgia,serif;letter-spacing:.12em;color:#e5c990;margin-bottom:5px}
.support-service h3{margin:0 0 5px;font-size:clamp(15px,1.32vw,19px);line-height:1.45;color:#fff9eb}
.support-service p{font-size:12px;line-height:1.65;color:#f5ebda;margin:0 0 12px}
.support-service-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.support-service-actions a{font-size:12px;font-weight:700;line-height:1.3;border-radius:4px;min-height:38px;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;text-align:center;transition:background .15s,color .15s}
.support-service-detail{border:1px solid #d3bd89;color:#f7e9cb;background:transparent}
.support-service-detail:hover{background:rgba(255,255,255,.12);color:#fff}
.support-service-download{border:1px solid #f4e8ce;background:#faf0d9;color:#234234}
.support-service-download:hover{background:#fff;color:#1b3b30}
@media(max-width:900px){.support-services{gap:12px}.support-service{padding:14px}.support-service-actions a{font-size:11px;padding:9px 10px}}
@media(max-width:640px){
 .support-layout{min-height:0;padding-bottom:14px}
 .support-primary-link{margin-top:0}
 .support-services{grid-template-columns:minmax(0,1fr);gap:12px;padding-bottom:18px}
 .support-service{padding:13px 14px}
 .support-service h3{font-size:16px}
 .support-service p{font-size:11px;margin-bottom:10px}
 .support-service-actions a{flex:1 1 125px;font-size:11px;min-height:40px}
}
/* 小型画面でダウンロードのボタン名が途中改行しないようにする */
@media(max-width:640px){
  .support-service-actions{gap:7px}
  .support-service-actions a{flex:1 1 100%;white-space:nowrap}
}
