/* #########################################################
   wp.css
   WordPress 用の追加分（下層ページ・本文・一覧・フッターメニュー）
   ※ 元デザインの CSS（base / layout / sections / motion）には手を入れていません
   ######################################################### */

/* ---------- 下層ページの見出し ---------- */
.page-section {
  min-height: 70vh;
}

.page-section .sec-head {
  margin-bottom: 1rem;
}

.entry-date {
  margin: -.4rem 0 1.4rem;
  color: var(--ink-soft);
  font-family: var(--num);
  font-size: .9rem;
  letter-spacing: .06em;
}

/* ---------- 本文（ブロックエディタ） ---------- */
.entry-content {
  margin-top: 1.6rem;
  font-size: .94rem;
  line-height: 1.95;
}

.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content h2 {
  margin-top: 2.4em;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.5;
}

.entry-content h3 {
  margin-top: 2em;
  padding-left: .7em;
  border-left: 4px solid var(--lime);
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.5;
}

html[data-theme="night"] .entry-content h2,
html[data-theme="night"] .entry-content h3 {
  color: var(--ink);
}

.entry-content a:not(.btn) {
  color: var(--lime-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.entry-content th,
.entry-content td {
  padding: .6em .8em;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  background: var(--th);
}

.entry-content blockquote {
  padding: 1em 1.2em;
  border-left: 3px solid var(--lime);
  background: var(--sub);
}

.entry-content figcaption {
  margin-top: .4em;
  color: var(--ink-soft);
  font-size: .8rem;
}

/* ---------- 記事一覧 ---------- */
.post-list {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.post-list a {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.2rem;
  padding: 1rem .2rem;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}

.post-list a:hover {
  background: var(--hover);
}

.post-list time {
  color: var(--lime-ink);
  font-family: var(--num);
  letter-spacing: .06em;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 2rem;
}

.nav-links .page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--num);
}

.nav-links .current {
  border-color: var(--navy-fill);
  background: var(--navy-fill);
  color: #fff;
}

/* ---------- フッターメニュー ---------- */
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin-top: 1.4rem;
  font-size: .8rem;
}

.foot-nav a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* =========================================================
   下層ページ共通
   ========================================================= */

/* ---------- パンくず ---------- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-size: .74rem;
}

.crumbs li + li::before {
  content: "›";
  margin-right: .5rem;
  color: var(--line-strong);
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.crumbs a:hover {
  color: var(--lime-ink);
}

/* ---------- 小見出し ---------- */
.sub-h,
.related-h {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 2.6rem 0 1rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.sub-h::after,
.related-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

html[data-theme="night"] .sub-h,
html[data-theme="night"] .related-h {
  color: var(--ink);
}

/* ---------- タグ（カテゴリー表示） ---------- */
.tag {
  display: inline-block;
  padding: .15em .7em;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.6;
}

a.tag:hover {
  background: var(--lime);
  color: var(--navy-deep);
}

/* ---------- 一覧へ戻る ---------- */
.back-link {
  margin-top: 2.4rem;
  font-size: .86rem;
  font-weight: 700;
}

.back-link a {
  color: var(--navy);
}

.back-link a:hover {
  color: var(--lime-ink);
}

html[data-theme="night"] .back-link a {
  color: var(--ink);
}

/* ---------- 下部の相談ボックス ---------- */
.sub-cta {
  padding: 0 clamp(1.2rem, 3vw, 2.6rem) 3.4rem;
}

.sub-cta .contact-box {
  margin-top: 0;
}

.sub-cta-en {
  color: var(--lime);
  font-family: var(--num);
  font-size: .74rem;
  letter-spacing: .16em;
}

.contact-box .sub-cta-title {
  margin-top: .3rem;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.5;
  opacity: 1;
}


/* =========================================================
   コラム
   ========================================================= */

/* ---------- カテゴリー切り替え ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}

.chips a {
  padding: .35em 1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  font-size: .8rem;
  transition: background .25s, color .25s, border-color .25s;
}

.chips a:hover {
  border-color: var(--navy);
}

.chips a[aria-current] {
  border-color: var(--navy-fill);
  background: var(--navy-fill);
  color: #fff;
}

/* ---------- カード一覧 ---------- */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.card a {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 1rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}

.card a:hover {
  border-color: var(--navy);
  background: var(--hover);
  transform: translateY(-2px);
}

.card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card a:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.card-meta time {
  color: var(--ink-soft);
  font-family: var(--num);
  font-size: .82rem;
  letter-spacing: .06em;
}

.card-title {
  color: var(--navy);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.5;
}

html[data-theme="night"] .card-title {
  color: var(--ink);
}

.card-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 1件目は大きく（一覧のみ） */
.cards:not(.cards-sm) .card:first-child a {
  grid-template-columns: 1fr;
  padding: 0 0 1.1rem;
  overflow: hidden;
}

.cards:not(.cards-sm) .card:first-child .card-img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.cards:not(.cards-sm) .card:first-child .card-body {
  padding: 0 1.1rem;
}

.cards:not(.cards-sm) .card:first-child .card-title {
  font-size: 1.15rem;
}

/* 関連記事は小さく */
.cards-sm .card a {
  grid-template-columns: 30% 1fr;
}

.cards-sm .card-text {
  display: none;
}

/* ---------- 記事 ---------- */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-family: var(--num);
  font-size: .86rem;
  letter-spacing: .04em;
}

.entry-meta .updated {
  font-size: .78rem;
}

.entry-thumb {
  overflow: hidden;
  margin-top: 1.6rem;
  border-radius: 6px;
}

.entry-thumb img {
  width: 100%;
  height: auto;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2rem;
}

.entry-tags a {
  color: var(--ink-soft);
  font-size: .78rem;
}

.entry-tags a::before {
  content: "#";
}

.page-links {
  margin-top: 1.6rem;
  font-family: var(--num);
}

/* ---------- 前後の記事 ---------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: 2.6rem;
}

.post-nav > span {
  display: block;
}

.post-nav a {
  display: block;
  height: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color .3s;
}

.post-nav a:hover {
  border-color: var(--navy);
}

.post-nav small {
  display: block;
  margin-bottom: .2rem;
  color: var(--lime-ink);
  font-size: .7rem;
}

.post-nav .next {
  grid-column: 2;
  text-align: right;
}


/* =========================================================
   店舗
   ========================================================= */

/* ---------- 店舗一覧 ---------- */
.stores {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.store-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.store-card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.store-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.store-card-img:hover img {
  transform: scale(1.04);
}

.store-card-body {
  padding: 1.2rem 1.2rem 1.3rem;
}

.store-card-name {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
}

html[data-theme="night"] .store-card-name {
  color: var(--ink);
}

.store-card-name a:hover {
  color: var(--lime-ink);
}

.store-card-text {
  margin-top: .4rem;
  color: var(--ink-soft);
  font-size: .84rem;
}

.store-card-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

/* ---------- 店舗情報の表 ---------- */
.info {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: .35rem 1rem;
  margin-top: .9rem;
  font-size: .84rem;
}

.info dt {
  color: var(--ink-soft);
}

.info-lg {
  gap: 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.info-lg dt,
.info-lg dd {
  padding: .8rem .2rem;
  border-bottom: 1px solid var(--line);
}

.info-lg dt {
  font-weight: 700;
}

.info-lg a {
  color: var(--lime-ink);
  font-family: var(--num);
  font-size: 1.1em;
  font-weight: 700;
}

/* ---------- 店舗ページ ---------- */
.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.store-map {
  overflow: hidden;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.store-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

html[data-theme="night"] .store-map iframe {
  filter: grayscale(.4) brightness(.85);
}

.entry-content-tight {
  margin-top: 0;
}

/* ---------- 店舗リンク（ほかの店舗・トップの店舗から探す） ---------- */
.store-links {
  display: grid;
  gap: .6rem;
  margin-top: .8rem;
}

.store-links a {
  position: relative;
  display: block;
  padding: .9rem 2.4rem .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color .3s, background .3s;
}

.store-links a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--lime-ink);
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.store-links a:hover {
  border-color: var(--navy);
  background: var(--hover);
}

.store-links b {
  display: block;
  color: var(--navy);
  font-size: .94rem;
}

html[data-theme="night"] .store-links b {
  color: var(--ink);
}

.store-links small {
  color: var(--ink-soft);
  font-size: .76rem;
}

.front-stores {
  margin-top: 2rem;
}


/* =========================================================
   メニュー・フッターのリンク追加分
   ========================================================= */

.drawer-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: 1rem;
}

.drawer-nav .drawer-sub a {
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.drawer-nav .drawer-sub a:hover {
  padding-left: .9rem;
  border-color: var(--navy);
}

.drawer-nav .drawer-sub a span {
  width: auto;
  font-size: .68rem;
  letter-spacing: .14em;
}

/* 下層ページでは、トップのセクション番号を強調しない */
body:not(.home) .drawer-nav ol a[aria-current] {
  color: var(--navy);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin-top: 1.4rem;
  font-size: .86rem;
  font-weight: 700;
}

.foot-links a {
  color: var(--navy);
}

html[data-theme="night"] .foot-links a {
  color: var(--ink);
}

.foot-links a:hover {
  color: var(--lime-ink);
}

/* ---------- 管理バー表示時：固定パネルの高さ調整 ---------- */
@media (min-width: 861px) {
  .admin-bar .panel-fixed {
    top: 32px;
    height: calc(100vh - 32px);
  }
  .admin-bar .drawer {
    top: 32px;
  }
}

/* ---------- WordPress 標準クラス ---------- */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- 下線を消すリンク ---------- */
.card a,
.chips a,
.post-nav a,
.store-card a,
.store-links a,
.foot-links a,
.drawer-sub a,
.back-link a,
a.tag {
  text-decoration: none;
}


/* =========================================================
   料金表（見出しごとの表）
   ========================================================= */
.price-groups {
  display: grid;
  gap: 1.6rem;
  margin-top: 1rem;
}

.price-cat {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.5;
}

.price-cat::before {
  content: "";
  flex: none;
  width: .55rem;
  height: 1.1rem;
  border-radius: 2px;
  background: var(--lime);
}

html[data-theme="night"] .price-cat {
  color: var(--ink);
}

.price-group .table-wrap {
  margin-top: .55rem;
}

/* 項目名の列（th）は本文と同じ見た目に */
.price-group tbody th {
  padding: .75rem .9rem;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 500;
  text-align: left;
  white-space: normal;
}

.price-group tbody tr:first-child th,
.price-group tbody tr:first-child td {
  border-top: 0;
}

.price-group tbody th small {
  display: inline-block;
  margin-left: .5em;
  padding: .05em .6em;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  font-size: .68rem;
  font-weight: 700;
  vertical-align: .1em;
}

.price-group tbody tr:nth-child(even) {
  background: var(--sub);
}
