@charset "utf-8";
/* 平成造園 サイトの見た目。
   旧サイトの WordPress テーマ cloudtpl_218_responsive（Cloud template http://c-tpl.com/ 、
   CSS・HTML・デザインは GPL）の配色・寸法・画像に寄せて作り直したもの。
   旧テーマは 960px 固定・640px 以下でスマホ表示。ここでは 960px 以下でも崩れないよう幅を割合にしている。
   借りた画像は /assets/legacy/（一覧と差し替え候補は static/assets/legacy/README.md）。 */

:root {
  --text: #76520d;          /* 旧テーマの本文の茶色 */
  --link: #6f9142;
  --link-hover: #506f27;
  --green: #34981a;         /* ロゴの緑 */
  --green-mid: #44a031;
  --leaf: #c7e57e;          /* 枠線の黄緑 */
  --line: #e3e3e3;
  --th-bg: #f7f7f7;
  --todo-bg: #ffe14d;
  --todo-ink: #5a4500;
}

/* ---------------------------------------------------------------- 基本 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: #ece3d4 url(legacy/img_back1.jpg);
  font-size: 13px;
  font-family: verdana, "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", Meiryo, arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #f19cc1; outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 中央の白い帯（960px）と、その外のベージュ */
#backs { background: url(legacy/bg.png) repeat-y 50% 0; }
#page { max-width: 1006px; margin: 0 auto; }

/* ---------------------------------------------------------------- ヘッダー */
#headerDesc { max-width: 960px; margin: 0 auto; }
#headerDescArea {
  position: relative;
  max-width: 960px;
  height: 108px;
  margin: 0 auto;
  background: url(legacy/headbg.jpg) no-repeat 50% 100%;
  background-size: cover;
}
#headerDescArea::after { content: ""; display: block; clear: both; }
.h-logo { float: left; margin: 10px 0 0 10px; }
.h-logo a { position: relative; display: block; width: 300px; color: #444; }
.h-logo a:hover { text-decoration: none; }
.h-logo img { display: block; width: 300px; height: auto; }
/* 旧ロゴでは画像に焼き込まれていた許可番号の行。番号が変わるので文字で重ねる */
.h-license {
  position: absolute; left: 57px; top: 1px;
  font-size: 12.5px; line-height: 1.3; color: #444; letter-spacing: .02em; white-space: nowrap;
}
.h-tel { float: right; margin: 10px 10px 0 0; }
.h-tel img { display: block; width: 300px; height: auto; }

/* ---------------------------------------------------------------- メニュー（緑の帯） */
#navi { position: relative; height: 86px; background: url(legacy/navi_bg.png) no-repeat 50% 50%; }
#naviArea { max-width: 960px; margin: 0 auto; }
#gNav { display: flex; }
#gNav li { flex: 1 1 0; padding-top: 13px; text-align: center; }
#gNav a {
  display: block; height: 64px; padding-top: 14px;
  color: #fff; font-size: 14px; line-height: 1.45; text-decoration: none;
  background: url(legacy/gNav_li_bg.png) 50% 0;
}
#gNav a span { display: block; font-size: 12px; }
#gNav a:hover, #gNav a[aria-current="page"] { color: #fff; background-position: 50% -64px; text-decoration: none; }

/* ---------------------------------------------------------------- トップの大きな写真 */
#mainImg { max-width: 960px; margin: -9px auto 0; }
#imgArea { position: relative; }
.slider { position: relative; overflow: hidden; aspect-ratio: 960 / 300; background: #dfe9cf; }
.slider .slides, .slider .slides li { position: absolute; inset: 0; margin: 0; padding: 0; }
.slider .slides li { opacity: 0; transition: opacity 1.4s ease; }
.slider .slides li.is-active { opacity: 1; }
.slider .slides img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider .arrow {
  position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); cursor: pointer;
}
.slider .arrow::before {
  content: ""; position: absolute; top: 11px; width: 9px; height: 9px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
}
.slider .prev { left: 12px; }
.slider .prev::before { left: 13px; transform: rotate(-135deg); }
.slider .next { right: 12px; }
.slider .next::before { left: 9px; transform: rotate(45deg); }
.slider .dots { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; }
.slider .dots button {
  width: 12px; height: 12px; margin: 0 4px; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: rgba(255, 255, 255, .35); cursor: pointer;
}
.slider .dots button[aria-current="true"] { background: #fff; }

/* ---------------------------------------------------------------- 本文と左の欄 */
#contents { max-width: 960px; margin: 10px auto 0; }
#contents::after { content: ""; display: block; clear: both; }

/* トップ：写真の下の3つの枠 */
.contentsBox { display: flex; gap: 10px; margin: 0 15px 20px; }
.contentsBox .box {
  flex: 1 1 0; min-width: 0; font-size: 12px; padding: 10px; margin: 0;
  border: 1px solid var(--leaf); border-left-width: 6px; background: #fff;
}
.contentsBox .box::after { content: ""; display: block; clear: both; }
.contentsBox .box img { float: left; width: 50px; height: 50px; object-fit: cover; margin: 0 10px 0 0; }
.contentsBox .box a { display: block; }
.contentsBox .box p { margin-top: 2px; }

#main { float: right; width: 72.9167%; /* 700/960 */ }
#sub { float: left; width: 23.9583%; /* 230/960 */ }

/* 緑の帯の見出し（旧 #main h2） */
#main > h2, #main .pagetitle {
  color: #fff; font-size: 1.2em; font-weight: normal;
  min-height: 40px; padding: 8px 10px 7px 16px; margin: 0 0 10px;
  background: url(legacy/bg-h2.png) no-repeat 0 0; background-size: 100% 100%;
}
#main .pagetitle { font-size: 1.25em; }
#main > h2 a, #main > h2 a:hover { color: #fff; }
#main > .lead { padding: 0 10px 10px; font-size: 13.5px; }

/* パンくず */
#breadcrumb { padding: 2px 10px 10px; font-size: 12px; }
#breadcrumb ol { display: flex; flex-wrap: wrap; }
#breadcrumb li + li::before { content: ">"; margin: 0 .5em; color: var(--text); }

/* 本文 */
.entry { padding: 0 10px 20px; font-size: 13px; line-height: 1.6; }
.entry p { margin: 0 0 1.5em; }
.entry ul, .entry ol { margin: 0 0 1em; }
.entry ul:not(.sekou-list) li, .arw-list li { padding: 2px 0 2px 10px; background: url(legacy/list-arw.png) no-repeat 0 .75em; }
.entry ol { padding-left: 1.6em; }
.entry ol li { list-style: decimal; padding: 2px 0; }
/* 本文の中の見出し：h2＝黄緑の帯（旧 #main h3）、h3＝緑の文字に下線（旧 h3.nomal）、h4＝緑の文字 */
.entry h2 {
  color: #fff; font-size: 1.1em; font-weight: normal;
  min-height: 32px; padding: 7px 10px 6px 50px; margin: 24px 0 12px;
  background: url(legacy/bg-h3_A.png) no-repeat 0 0; background-size: 100% 100%;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.entry h2:first-child { margin-top: 0; }
.entry h3, #main h3.nomal, #main > h2.nomal {
  color: var(--green-mid); font-size: 1.15em; font-weight: normal;
  padding: 5px 0 4px 2px; margin: 20px 0 10px; border-bottom: 2px solid var(--green-mid);
}
.entry h4, #main h4 { color: var(--link); font-size: 14px; font-weight: normal; margin: 0 0 10px; }
.entry img { max-width: 100%; height: auto; }
.entry table { width: 100%; margin: 15px 0; font-size: 13px; }
.entry th, .entry td { padding: 10px; text-align: left; vertical-align: top; }
.entry th { background: var(--th-bg); border: 1px solid var(--line); border-right: 0; font-weight: normal; width: 25%; }
.entry td { border: 1px solid var(--line); border-left: 0; }
.entry hr { display: none; }

.section, .sectionBorder { padding: 10px 10px 10px 5px; margin: 0 0 20px; font-size: 13px; }
.sectionBorder { padding: 5px 20px 10px; }
.section p { margin: 0 0 1em; padding: 0 5px; }
.imgR { float: right; margin: 0 0 10px 15px; }
.border_gr { border: 1px solid #dcdcdc; }
.greeting::after { content: ""; display: block; clear: both; }

/* 施工事例の並び（旧トップと同じ：写真・題名・「くわしく見る」） */
.sekou { padding: 20px 20px 0; }
.sekou-list { display: flex; flex-wrap: wrap; margin: 0 0 10px; padding: 0; }
.sekou-item { width: calc(100% / 3); padding: 0 10px; margin: 0 0 40px; text-align: center; }
.sekou-item[hidden] { display: none; }
.sekou-item__img { display: block; width: 150px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 6px; overflow: hidden; background: #eef3e2; }
.sekou-item__img img { width: 100%; height: 100%; object-fit: cover; }
.sekou-item__img .noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: #9aa88a; font-size: 12px; }
.sekou-item__link { display: block; min-height: 3em; font-size: 12.5px; line-height: 1.5; }
.sekou-item__meta { display: block; margin: 2px 0 6px; font-size: 11px; color: #8a7a5a; }
.sekou-item__meta .tag { margin-left: 6px; }
.sekou-item__btn { display: block; max-width: 170px; margin: 0 auto; }
.sekou-item__btn a {
  position: relative; display: block; padding: 5px 18px; color: #fff; font-size: 12px; text-align: center;
  background: var(--link); text-decoration: none;
}
.sekou-item__btn a::after {
  content: ""; position: absolute; top: 50%; right: 6px; width: 12px; height: 12px; margin-top: -6px;
  background: url(legacy/sekou-arr.png) no-repeat 0 0; background-size: 100%;
}
.sekou-item__btn a:hover { opacity: .85; color: #fff; }

.tag { display: inline-block; font-size: 11px; padding: 0 6px; border: 1px solid var(--leaf); background: #f5fbe6; color: var(--link); border-radius: 3px; }

/* 施工事例の絞り込みボタン */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.filters button {
  font: inherit; font-size: 12px; padding: 4px 12px; cursor: pointer;
  color: var(--link); background: #fff; border: 1px solid var(--leaf);
}
.filters button[aria-pressed="true"] { color: #fff; background: var(--link); border-color: var(--link); }

/* 矢印つきの一覧（お知らせなど） */
.arw-list { margin: 0; padding: 0; font-size: 13px; }
.arw-list li { margin: 4px 0; }

/* 採用情報への緑のボタン（旧 .recruit__link） */
.recruit__link { text-align: center; margin: 10px 0 0 !important; }
.recruit__link a, .btn {
  position: relative; display: inline-block; min-width: 200px; padding: 10px 28px 10px 18px;
  color: #fff; font-size: 16px; text-align: center; background: var(--green); text-decoration: none;
}
.recruit__link a::after, .btn::after {
  content: ""; position: absolute; top: 50%; right: 9px; width: 12px; height: 12px; margin-top: -6px;
  background: url(legacy/sekou-arr.png) no-repeat 0 0; background-size: 100%;
}
.recruit__link a:hover, .btn:hover { opacity: .85; color: #fff; text-decoration: none; }
.btn.ghost, .btn.light { background: var(--link); }
.btn .arrow { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.btn-row.center { justify-content: center; margin: 30px 0 30px; }
.list-more { padding: 0 10px 20px; text-align: right; }
.list-more a { padding-left: 10px; background: url(legacy/list-arw.png) no-repeat 0 50%; }

/* お知らせ・樹木のご紹介・スタッフブログの一覧（旧サイトと同じ：帯の題名・日付・本文の頭） */
.list-post { margin: 0 0 18px; }
.entry .list-post h2 { margin: 0 0 4px; }
.entry .list-post h2 a, .entry .list-post h2 a:hover { color: #fff; }
.list-post .post-date { padding: 0 5px 6px; }
.list-body::after { content: ""; display: block; clear: both; }
.list-thumb { float: left; margin: 0 14px 6px 4px; }
.list-thumb img { width: 110px; height: 110px; object-fit: cover; padding: 3px; border: 1px solid #e6e6e6; background: #fff; }
.entry .list-body p { margin: 0 0 6px; }
.entry .list-body .list-more { padding: 0; }

/* 記事 */
.post-date { padding: 0 15px 10px; text-align: right; font-weight: bold; color: #858585; font-size: 13px; }
.post-date .tag { margin-left: 8px; font-weight: normal; }
.archive-note { padding: 8px 12px; background: #ffffcc; border: 1px solid #ece48d; font-size: 12.5px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; padding: 10px; margin: 0 0 10px; font-size: 12.5px; border-top: 1px dashed var(--leaf); }
.post-nav a { max-width: 48%; }
.post-nav .prev::before { content: "« "; }
.post-nav .next::after { content: " »"; }
.other_category_Box { margin: 0 10px 20px; padding: 10px; background: #ffffcc; font-size: 12px; }
#main > h2.nomal { min-height: 0; background: none; margin: 20px 10px 10px; padding-left: 2px; }
.other_category_Box .thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.other_category_Box .thumbs a { width: 100px; line-height: 1.4; }
.other_category_Box .thumbs img { width: 70px; height: 70px; object-fit: cover; display: block; margin-bottom: 3px; }

/* 記事の中の写真のまとまり（1枚=大きく／2枚=2列／3枚以上=3列） */
.gal { display: grid; gap: 8px; margin: 8px 0 14px; }
.gal.n1 { grid-template-columns: minmax(0, 520px); }
.gal.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gal a { display: block; }
.gal img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; padding: 4px; background: #fff; border: 1px solid #e6e6e6; }

/* 固定ページの部品 */
.box { padding: 12px 15px; margin: 0 0 1em; border: 1px solid var(--leaf); border-left-width: 6px; background: #fff; }
.box h3 { margin-top: 0; }
.box.notice { background: #f8fdeb; }
.box.warn { background: #fffbe6; border-color: #e8c35a; }
.message::after { content: ""; display: block; clear: both; }
.message > img { float: left; width: 200px; margin: 0 15px 10px 0; }
.sign { text-align: right; font-weight: bold; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; padding: 4px; background: #fff; border: 1px solid #e6e6e6; }
.photo-row figcaption { font-size: 12px; margin-top: 2px; }
.entry .steps { counter-reset: s; padding: 0; }
.entry .steps li {
  counter-increment: s; list-style: none; position: relative;
  padding: 10px 10px 10px 50px; margin: 0 0 8px; background: #f5fbe6; border-left: 6px solid var(--leaf);
}
.entry .steps li::before {
  content: counter(s); position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; line-height: 26px;
  text-align: center; border-radius: 50%; color: #fff; background: var(--link); font-weight: bold;
}
.entry .steps li b { display: block; color: var(--link); }
.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.2em; }
.highlights > div { padding: 12px; border: 1px solid var(--leaf); border-left-width: 6px; background: #fff; }
.highlights b { display: block; color: var(--green); font-size: 20px; line-height: 1.3; }
.highlights span { font-size: 12.5px; }
.cta-box { padding: 15px; margin: 1em 0; background: #f5fbe6; border: 1px solid var(--leaf); text-align: center; }
.cta-box .btn-row { justify-content: center; }
.cols { columns: 2; column-gap: 24px; }
.cols li { break-inside: avoid; }
.tel-big { font-size: 20px; font-weight: bold; color: var(--green); }

/* よくある質問（旧サイトの Q・A の札と、黄緑のリボンの見出し h4.ribbon） */
.entry h2.ribbon {
  position: relative; min-height: 0; color: var(--link); background: var(--leaf); font-size: 16px; line-height: 1.2;
  text-shadow: none; margin: 20px 25px 14px 0; padding: 12px 5px 10px 50px; border-radius: 22px 0 0 22px;
}
.entry h2.ribbon::before {
  content: ""; position: absolute; top: 50%; left: 14px; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: #ddf4bc; box-shadow: 1px 1px 1px #777 inset;
}
.entry h2.ribbon::after {
  content: ""; position: absolute; top: 0; right: -22px; width: 0; height: 0;
  border: 20px solid var(--leaf); border-right-color: transparent; border-top-width: 20px; border-bottom-width: 20px;
}
.qa-list { margin: 0 0 1.5em; }
.qa-list details { margin: 0 0 30px; padding: 0; }
.qa-list summary {
  list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; gap: 10px;
  padding-right: 30px; font-weight: normal; color: var(--text);
}
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::before { content: ""; flex: 0 0 40px; height: 40px; background: url(legacy/icon-q.jpg) no-repeat 0 0; background-size: 100%; }
.qa-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: url(legacy/icon-arr.png) no-repeat 0 0; background-size: 100%; transition: transform .2s;
}
.qa-list details[open] summary::after { transform: rotate(180deg); }
.qa-list .a { position: relative; margin: 10px 0 0; padding-left: 50px; min-height: 40px; }
.qa-list .a::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: url(legacy/icon-a.jpg) no-repeat 0 0; background-size: 100%; }

/* ---------------------------------------------------------------- 左の欄 */
#sub .side-btn { margin: 0 0 6px; }
#sub .side-btn img { display: block; width: 100%; }
#sub .side-btn a:hover img { opacity: .85; }
#sub .boxS { margin: 14px 0 0; }
#sub .side-h {
  color: #fff; font-size: 1.15em; font-weight: normal; min-height: 35px; padding: 7px 10px 6px 16px;
  background: url(legacy/bg-side-h3.png) no-repeat 0 0; background-size: 100% 100%;
}
#sub .side-h a, #sub .side-h a:hover { color: #fff; }
#sub ul { padding: 5px 10px 10px; font-size: 12px; }
#sub ul li { padding: 5px 0 5px 9px; margin: 5px 0; border-bottom: 1px dashed var(--leaf); background: url(legacy/list-arw.png) no-repeat 0 50%; }
#sub .gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 8px 6px 6px; }
#sub .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
#sub .gallery a:hover img { opacity: .8; }
/* 記事検索（旧サイトと同じ：入力欄＋「検索」ボタン） */
.searchform { display: flex; gap: 4px; padding: 8px 10px 6px; }
.searchform input { flex: 1 1 auto; min-width: 0; padding: 3px 5px; font: inherit; font-size: 13px; border: 1px solid #b9b9b9; background: #fff; }
.searchform button { flex: 0 0 auto; padding: 3px 9px; font: inherit; font-size: 12px; cursor: pointer; color: #333; background: #efefef; border: 1px solid #b9b9b9; }
.search-page .searchform { max-width: 460px; padding: 0 0 10px; }
.search-status { font-weight: bold; }
.search-results { padding: 0 !important; }
.entry .search-results li { list-style: none; padding: 10px 0 10px 10px; border-bottom: 1px dashed var(--leaf); background-position: 0 1.2em; }
.search-results .meta { display: block; font-size: 12px; color: #8a7a5a; }
.search-results p { margin: 2px 0 0; font-size: 13px; }
#sub .side-text { padding: 8px 10px 4px; font-size: 12px; }
#sub .side-link { padding: 0 10px 6px; font-size: 12px; }
#sub .side-link a { padding-left: 9px; background: url(legacy/list-arw.png) no-repeat 0 50%; }

/* ---------------------------------------------------------------- フッター */
#footer { clear: both; margin-top: 20px; background: url(legacy/bg_footer.png) no-repeat 50% 0; }
#footer a, #footer a:visited { color: #fff; }
#footerContents { max-width: 960px; min-height: 200px; margin: 0 auto; padding: 30px 0 14px; color: var(--text); }
#footerContents .box a, #footerContents .box a:visited { color: inherit; }
#footerContents .boxes { display: flex; justify-content: center; gap: 10px; }
#footerContents .box { width: 300px; padding: 10px; margin: 0; border: 0; background: none; font-size: 12px; line-height: 1.7; }
#footerContents .box strong { font-weight: normal; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; padding: 14px 0 0; font-size: 13px; }
.footer-nav li { padding: 0 10px; border-right: 1px solid #aac854; line-height: 1.2; margin: 3px 0; }
.footer-nav li:last-child { border-right: 0; }
#footer .copyright { color: #707070; text-align: center; padding: 10px 10px 16px; font-size: 12px; }

/* ---------------------------------------------------------------- 試作版の目印・写真の拡大 */
mark.todo {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px;
  background: var(--todo-bg); color: var(--todo-ink); font-size: 11px; font-weight: bold; line-height: 1.6;
  vertical-align: middle; cursor: help;
}
.preview-flag {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; padding: 6px 12px; border-radius: 999px;
  background: var(--todo-bg); color: var(--todo-ink); font-size: 12px; font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2); text-decoration: none;
}
.preview-flag:hover { color: var(--todo-ink); text-decoration: underline; }
.review-table td:first-child { white-space: nowrap; }
dialog.lightbox { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: #111; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: calc(96vh - 48px); margin: 0 auto; }
dialog.lightbox .bar { display: flex; justify-content: center; gap: 8px; padding: 8px; }
dialog.lightbox button { font: inherit; font-size: 13px; padding: 6px 14px; border: 0; border-radius: 3px; background: #fff; color: #333; cursor: pointer; }

/* ---------------------------------------------------------------- 幅が狭いとき */
@media (max-width: 960px) {
  #headerDescArea { height: auto; min-height: 108px; padding-bottom: 14px; }
  .h-logo, .h-tel { width: min(300px, 48%); }
  .h-logo a, .h-logo img, .h-tel img { width: 100%; }
  .h-license { font-size: min(12.5px, 2vw); left: 19%; }
  .entry h2 { background-size: cover; background-position: left center; }
  #navi { height: auto; background: none; }
  #gNav li { padding-top: 0; }
  #gNav a { height: auto; padding: 10px 0; background-size: 100% 200%; }
  #gNav a:hover, #gNav a[aria-current="page"] { background-position: 0 100%; }
  #mainImg { margin-top: 0; }
  #main { padding-right: 8px; }
  #sub { padding-left: 8px; }
}

/* 旧テーマのスマホ表示（640px 以下）：メニューは2〜3列、左の欄は本文の下 */
@media (max-width: 640px) {
  body { font-size: 14px; }
  #headerDescArea { padding-bottom: 8px; background-position: center bottom; }
  .h-logo { margin: 6px 0 0 6px; }
  .h-tel { margin: 6px 6px 0 0; }
  #headerDescArea { min-height: 0; }
  #gNav { flex-wrap: wrap; }
  #gNav li { flex: 0 0 33.3333%; }
  #gNav a { font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
  #contents { margin-top: 8px; }
  .contentsBox { flex-direction: column; margin: 0 8px 14px; }
  #main, #sub { float: none; width: auto; padding: 0 8px; }
  #sub { margin-top: 10px; }
  #sub { display: flex; flex-wrap: wrap; column-gap: 6px; }
  #sub .side-btn { width: calc(50% - 3px); margin: 0 0 6px; }
  #sub .boxS { flex: 0 0 100%; }
  #sub .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sekou-item { width: 50%; padding: 0 6px; }
  .entry { padding: 0 4px 16px; font-size: 14px; }
  .entry table.stack th, .entry table.stack td { display: block; width: 100% !important; }
  .entry table.stack th { border-bottom: 0; border-right: 1px solid var(--line); }
  .entry table.stack td { border-left: 1px solid var(--line); }
  .message > img { float: none; display: block; margin: 0 auto 10px; }
  .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights { grid-template-columns: 1fr; }
  .cols { columns: 1; }
  .imgR { float: none; display: block; margin: 0 auto 10px; }
  #footer { background-size: cover; background-position: center top; }
  #footerContents { padding: 22px 10px 10px; }
  #footerContents .boxes { flex-direction: column; align-items: center; gap: 0; }
  #footerContents .box { width: 100%; max-width: 360px; }
  .footer-nav li { margin: 6px 0; }
  #footer .copyright { background: #fff; }
}
@media (max-width: 400px) {
  #gNav li { flex-basis: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
