/* パンノコトモリス 共通スタイル */

:root {
  /* 森のグリーン（ロゴ・リンクの色。変えるときはここだけ差し替える） */
  --color-accent: #2F6A43;

  --color-bg: #F7F2E7;        /* 生成りの白（看板の地色） */
  --color-surface: #FCF9F2;   /* カード・タイル */
  --color-text: #4A3326;      /* こげ茶 */
  --color-text-sub: #7A6454;  /* 補足の文字 */
  --color-line: #E2D7C3;      /* 罫線 */
  --color-block: #EAE1CF;     /* 写真がない枠の無地ブロック */
  --color-chip: #D6B887;      /* 配置図：チップ */
  --color-chip-dot: #A9814F;  /* 配置図：チップの粒 */
  --color-soil: #9E7F63;      /* 配置図：土のまま */
  --color-area: #EFE7D8;      /* 配置図：お店・道路などの周り */

  --font-base: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --max-width: 720px;
  --gutter: 16px;
  --radius: 10px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

img { max-width: 100%; display: block; }

a { color: var(--color-accent); text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3 { font-weight: 800; line-height: 1.45; letter-spacing: 0.02em; margin: 0; }

/* 見出しは文節で折り返す（対応ブラウザのみ） */
h1, h2, h3, .hero-sub, .closing { word-break: auto-phrase; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

[hidden] { display: none !important; }

/* ---------- ヘッダー ---------- */

.site-header {
  border-bottom: 1px solid var(--color-line);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 12px;
  padding-bottom: 8px;
}

/* ロゴ（式ロックアップ） */
.logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.25;
  min-height: var(--tap);
  justify-content: center;
}

.logo-main {
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-nav ul {
  list-style: none;
  margin: 0 -8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---------- 本文まわり ---------- */

main { padding-bottom: 48px; }

.section { padding-top: 40px; }

.section-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.page-title {
  font-size: 26px;
  margin: 32px 0 20px;
}

.sub-title {
  font-size: 18px;
  margin: 32px 0 12px;
}

.lead { font-size: 17px; }

.note {
  font-size: 15px;
  color: var(--color-text-sub);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.button:hover { opacity: 0.9; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 700;
}

.actions { margin-top: 24px; }

/* ---------- 写真枠（写真がないときは無地ブロック） ---------- */

.photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-block);
}

.photo--wide { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1 / 1; }

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-sub);
}

/* 写真B のラベル（写真の左下・右下） */
.photo-label {
  position: absolute;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(252, 249, 242, 0.88);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.photo-label--left { left: 6px; }
.photo-label--right { right: 6px; }

/* ---------- トップ：メインビジュアル ---------- */

.hero { padding-top: 16px; }

/* 大見出し → 小見出し → 写真 の順 */
.hero-title {
  margin: 12px 0 0;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.hero-sub {
  margin: 6px 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-sub);
}

.hero .photo { margin-bottom: 20px; }

/* ---------- トップ：くらべてみよう ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.compare figure { margin: 0; }

.compare figcaption {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.compare .photo-empty { font-size: 12px; }
.compare .photo-label { font-size: 11px; bottom: 4px; padding: 0 4px; }
.compare .photo-label--left { left: 4px; }
.compare .photo-label--right { right: 4px; }

/* ---------- トップ：4つの入口 ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
}

.tile:hover { border-color: var(--color-text-sub); }

.tile-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.tile-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-sub);
}

/* ---------- 日誌の一覧 ---------- */

.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.log-list li { border-bottom: 1px solid var(--color-line); }

.log-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
  color: var(--color-text);
  text-decoration: none;
}

.log-list-text { flex: 1; min-width: 0; }

.log-date {
  display: block;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

.log-title {
  display: block;
  font-weight: 700;
  line-height: 1.6;
}

.log-hitokoto {
  display: block;
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.log-thumb {
  flex: 0 0 72px;
  width: 72px;
  border-radius: 6px;
}

.status {
  padding: 16px 0;
  color: var(--color-text-sub);
}

/* ---------- 日誌の詳細 ---------- */

.article-date {
  font-size: 15px;
  color: var(--color-text-sub);
  margin: -12px 0 20px;
}

.article-photos {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.article-photos figure { margin: 0; }

.article-photos figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-text-sub);
}

.article-photos .photo--square { max-width: 480px; }

.article-body h2 { font-size: 20px; margin: 28px 0 10px; }
.article-body h3 { font-size: 18px; margin: 24px 0 8px; }
.article-body ul, .article-body ol { margin: 0 0 1em; padding-left: 1.5em; }
.article-body blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--color-line);
  color: var(--color-text-sub);
}
.article-body figure { margin: 0 0 1.5em; }
.article-body figure img { border-radius: var(--radius); }
.article-body figcaption { font-size: 14px; color: var(--color-text-sub); margin-top: 6px; }

/* ---------- 雑草ページ ---------- */

.watch-list { margin: 0; }

.watch-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.watch-list div:first-child { border-top: 1px solid var(--color-line); }

.watch-list dt { font-weight: 800; }
.watch-list dd { margin: 0; }

.layout-map {
  width: 100%;
  height: auto;
  max-width: 560px;
  display: block;
  margin: 0 auto;
}

.layout-map .area { fill: var(--color-area); stroke: var(--color-line); }
.layout-map .pill { fill: var(--color-surface); }
.layout-map .chip { fill: var(--color-chip); }
.layout-map .soil { fill: var(--color-soil); }
.layout-map .divider { stroke: var(--color-text); stroke-width: 2; stroke-dasharray: 6 4; }
.layout-map .outline { fill: none; stroke: var(--color-text); stroke-width: 1.5; }
.layout-map text {
  fill: var(--color-text);
  font-family: var(--font-base);
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}
.layout-map .chip-dot { fill: var(--color-chip-dot); }
.layout-map .dir { fill: var(--color-text-sub); font-size: 14px; }

/* ---------- コストページ ---------- */

.calc {
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.calc label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.calc-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc input {
  width: 9em;
  min-height: var(--tap);
  padding: 6px 12px;
  border: 1px solid var(--color-text-sub);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 18px;
}

.calc-results {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.calc-results div {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--color-bg);
}

.calc-results dt { font-size: 15px; color: var(--color-text-sub); }
.calc-results dd { margin: 0; font-size: 24px; font-weight: 800; }

.calc-formula {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--color-text-sub);
}

.caution {
  margin-top: 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-text-sub);
  background: var(--color-surface);
  font-size: 15px;
}

/* ---------- つくる人の想い ---------- */

.closing {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 56px 0 24px;
}

/* ---------- 案内役（人物＋ふきだし） ---------- */

.guide {
  display: grid;
  grid-template-columns: 17% 1fr;
  align-items: start;
  gap: 4px;
  margin: 8px 0 28px;
}

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

.guide-bubble {
  position: relative;
  margin-top: 6%;              /* 人物の手のあたりの高さにそろえる */
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
}

.guide-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
  transform: rotate(45deg);
}

.guide-bubble p { margin: 0; }
.guide-bubble p + p { margin-top: 0.8em; }

/* ---------- 写真 ---------- */

.photo-wide {
  margin: 0 0 24px;
}


.photo-wide figcaption { margin-top: 6px; font-size: 13px; color: var(--color-text-sub); }

.photo-wide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 縦長の写真：切らずに、トップと同じ縮尺（パソコンでは幅 420px まで） */
.photo-wide.photo-tall img { aspect-ratio: 4 / 5; object-fit: contain; max-width: 420px; margin: 0 auto; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
}

.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 3 / 2; }

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.guide--small { grid-template-columns: 13% 1fr; }
.guide--small .guide-bubble { margin-top: 3%; }

.guide-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-accent);
}
.guide-bubble .guide-label + p { margin-top: 2px; }

@media (min-width: 640px) {
  .guide { grid-template-columns: 105px 1fr; gap: 8px; }
  .guide-bubble { margin-top: 28px; }
  .guide--small { grid-template-columns: 75px 1fr; }
  .guide--small .guide-bubble { margin-top: 14px; }
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 32px 0 40px;
  font-size: 15px;
}

.site-footer .logo-main { font-size: 20px; }

.site-footer p { margin: 8px 0 0; }

.footer-tagline { font-weight: 700; }

@media (min-width: 640px) {
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 20px; }
  .compare { gap: 16px; }
  .compare .photo-label { font-size: 12px; bottom: 6px; padding: 1px 6px; }
  .compare .photo-empty { font-size: 14px; }
  .tiles { gap: 16px; }
  .tile-name { font-size: 20px; }
  .article-photos { grid-template-columns: 3fr 2fr; align-items: start; }
}

/* ---------- 下書き ---------- */

/* 下書き（※）は SHOW_DRAFTS が false のとき隠す */
html[data-drafts="off"] [data-draft] { display: none !important; }

/* 見出しの上の小さなラベル */
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}
.page-eyebrow { margin: 28px 0 -20px; }

/* トップ：大見出しまわり */
.hero-copy { padding-top: 8px; }
.hero-sub--draft { margin-top: -8px; color: var(--color-text-sub); font-weight: 700; }
.hero-visual { margin: 0 0 20px; }
.hero-visual figcaption { margin-top: 6px; font-size: 13px; color: var(--color-text-sub); }
.warm-intro h2 { font-size: 22px; margin: 4px 0 12px; }
.warm-intro .button { margin-top: 4px; }

/* トップ：各セクションの写真 */
.editorial-photo { margin: 16px 0 20px; }
.editorial-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
/* 縦長の写真は切らずに、そのままの比率で少し小さめに */
.editorial-photo--tall img { aspect-ratio: 4 / 5; object-fit: contain; max-width: 420px; margin: 0 auto; }
.editorial-photo figcaption { margin-top: 6px; font-size: 13px; color: var(--color-text-sub); }
.brand-roles { margin: 0 0 20px; padding: 4px 0; border-top: 1px solid var(--color-line); }
.brand-roles div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
.brand-roles dt { flex: 0 0 5.5em; font-weight: 800; }
.brand-roles dd { margin: 0; }
.journal-preview { margin-top: 32px; }
.journal-preview h3 { font-size: 18px; margin: 0 0 10px; }
.journal-preview .text-link { margin-top: 8px; }
.draft-context { font-size: 15px; color: var(--color-text-sub); }

/* 下書きブロック（※付きの追加案） */
.draft-notice {
  margin: 20px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #F3E9D2;
  color: #6B5533;
  font-size: 14px;
  line-height: 1.7;
}
.draft-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: #8A6D3B; }
.draft-section { margin-top: 40px; padding-top: 24px; border-top: 1px dashed #D9C79E; }
.draft-section .section-title { font-size: 20px; }
.draft-facts { margin: 0 0 16px; border-top: 1px solid var(--color-line); }
.draft-facts div { padding: 10px 0; border-bottom: 1px solid var(--color-line); }
.draft-facts dt { font-weight: 800; font-size: 15px; }
.draft-facts dd { margin: 0; font-size: 15px; color: var(--color-text-sub); }
.draft-steps { margin: 0 0 16px; padding-left: 1.4em; }
.draft-pending {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #F3E9D2;
  color: #6B5533;
  font-size: 14px;
  line-height: 1.7;
}
.draft-photo { margin: 16px 0; }
.draft-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.draft-photo figcaption { margin-top: 6px; font-size: 13px; color: var(--color-text-sub); }
.draft-faq h3 { font-size: 17px; margin: 20px 0 8px; }
.draft-faq details { border-top: 1px solid var(--color-line); }
.draft-faq details:last-child { border-bottom: 1px solid var(--color-line); }
.draft-faq summary { min-height: var(--tap); padding: 10px 0; font-weight: 700; cursor: pointer; }
.draft-faq details p { margin: 0 0 12px; font-size: 15px; color: var(--color-text-sub); }

/* 来店案内の地図 */
.access-map { margin: 16px 0; border-radius: var(--radius); overflow: hidden; }
.access-map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* トップへ戻る */
.back-navigation { margin: 20px 0 -12px; font-size: 15px; }
.back-navigation--bottom { margin: 32px 0 0; }
.back-navigation a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; font-weight: 700; }

/* 下書き（※）の見出しに置き換えられているあいだは、元の見出しを隠す */
html[data-drafts="on"] .final-copy { display: none; }


/* ---------- 相談フォーム ---------- */

.contact-form { margin-top: 24px; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.required {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: middle;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--color-text-sub);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.field .calc-input input { width: 8em; }

.field textarea { resize: vertical; }

.field-note {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--color-text-sub);
}

/* 迷惑メール対策の見えない欄 */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  padding: 10px 14px;
  border-left: 4px solid #B5473A;
  background: #F8E9E6;
  color: #7A2E25;
  font-size: 15px;
}

.contact-form .button { border: 0; cursor: pointer; }
.contact-form .button:disabled { opacity: .6; cursor: default; }

.contact-done { margin-top: 24px; }
