/* =========================================================
   旅するものづくり工房 / Tabisuru Makers Lab
   共通スタイルシート
   ブランドの起点：本番サイト public_html/logo.svg と背景色 #d09433
   ========================================================= */

/* つなぎゴシック（Zen角ゴシックNをもとにした角丸・墨だまりフォント / SIL OFL） */
@font-face {
  font-family: "TsunagiGothic";
  src: url("/assets/fonts/TsunagiGothic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- ブランドカラー（現行ロゴの背景色 #d09433 を起点に設計） --- */
  --color-primary: #d09433;      /* メインの琥珀色（現行ロゴ背景色） */
  --color-primary-dark: #a97620; /* ホバー・強調用の濃色 */
  --color-primary-tint: #f3e3c4; /* 薄い琥珀（背景の差し色） */

  --color-accent: #4b6455;       /* 差し色：くすんだ苔緑（自然・手仕事の温度感） */
  --color-accent-dark: #364a3d;

  --color-ink: #2b2420;          /* 本文用の温かみのある黒 */
  --color-ink-soft: #5c5248;     /* 補足テキスト用のやわらかい黒 */

  --color-paper: #fbf6ee;        /* 紙・木のような背景色 */
  --color-paper-alt: #f3e9d8;    /* セクション切り替え用の背景色 */
  --color-line: #e4d5b7;         /* 罫線・ボーダー */
  --color-white: #ffffff;

  --font-heading: "TsunagiGothic", "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;

  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 12px 28px -14px rgba(43, 36, 32, 0.35);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700; /* 細い字が読みにくいので、本文はNoto Sans JPのBoldに統一 */
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.5;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.2em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-paper-alt);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--color-accent-dark);
  background: rgba(75, 100, 85, 0.1);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5em;
}

.section-lead {
  color: var(--color-ink); /* 通常の段落と同じ濃さにそろえる（薄いと細く見えるため） */
  max-width: 640px;
}

/* ---------- ボタン（全種類を共通の見た目に統一） ----------
   ふだんは白地＋黒の文字と枠。マウスを重ねる／タップすると黒地＋白い文字になる。
   .btn--primary / .btn--outline / .btn--on-dark はクラス名だけ残してあり、見た目の差はない。 */
.btn,
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover,
.btn:focus-visible,
.sns-link:hover,
.sns-link:focus-visible {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex: none;
}

/* 色のついた面の上（トップの大きな写真・フッター）だけは、白抜きのボタンにする。
   ふだんは透明＋白い枠と文字、重ねる／タップすると白地＋黒い文字に反転する。 */
.btn--on-dark {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.9);
}
.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-white);
}

/* ---------- ヘッダー ---------- */
.site-header {
  /* backdrop-filter は使わない：filter/backdrop-filter を持つ祖先要素は
     position:fixed な子要素（.site-nav）の containing block になってしまい、
     モバイルメニューがヘッダー内に閉じ込められる不具合の原因になるため。 */
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.97);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink);
}

.site-logo__mark {
  width: 150px;
  height: auto;
}

.site-logo__text {
  line-height: 1.2;
}
.site-logo__text small {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.1em;
  color: var(--color-ink-soft);
  font-weight: 400;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--color-paper);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.site-nav.is-open {
  transform: translateX(0);
}
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-nav__list a {
  display: block;
  padding: 16px 8px;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-line);
}
.site-nav__list a.is-current {
  color: var(--color-primary-dark);
}
.site-nav__cta {
  margin-top: 24px;
}

@media (min-width: 1000px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    inset: auto;
    transform: none;
    padding: 0;
    background: transparent;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 22px; /* 「これまでのプロジェクト」で長くなったぶん、1000px幅でも余裕を持たせる */
  }
  .site-nav__list a {
    padding: 4px 0;
    border-bottom: none;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .site-nav__cta {
    margin-top: 0;
  }
}

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 72px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-active {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(208, 148, 51, 0.62);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__slide-caption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  display: inline-block;
  width: max-content;
  max-width: calc(100% - 40px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero__slide-caption:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 640px) {
  .hero__slide-caption {
    right: 14px;
    bottom: 12px;
    font-size: 0.7rem;
  }
}

.hero__logo {
  width: min(320px, 70vw);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  max-width: 100%;
}

.hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 2;
}
@media (min-width: 900px) {
  /* パソコンでは「…地域らしさを読み解き、カタチにする。」までを1行に収める */
  .hero p {
    max-width: 900px;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 56px 0;
}
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
}

/* ---------- カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 560px) {
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1000px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* スマホでは写真を左に小さく置く横長カードにして、縦に間延びさせない */
@media (max-width: 559px) {
  .card-grid--3,
  .card-grid--4 {
    gap: 14px;
    margin-top: 24px;
  }
  .card-grid--3 .card,
  .card-grid--4 .card {
    flex-direction: row;
  }
  .card-grid--3 .card__photo,
  .card-grid--4 .card__photo {
    flex: 0 0 38%;
    aspect-ratio: auto;
    min-height: 130px;
  }
  .card-grid--3 .card__body,
  .card-grid--4 .card__body {
    padding: 2px 0 0 14px;
  }
  .card-grid--3 .card__title,
  .card-grid--4 .card__title {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .card-grid--3 .card__desc,
  .card-grid--4 .card__desc {
    font-size: 0.82rem;
    line-height: 1.6;
  }
}

.card {
  background: none;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  transform: translateY(-4px);
}

.card__photo {
  aspect-ratio: 4 / 3;
  background: var(--color-primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 0; /* 余白があると写真のまわりに薄い縁取りが出るので付けない */
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card__body {
  padding: 14px 2px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__meta {
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.card__title {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.card__desc {
  color: var(--color-ink-soft);
  font-size: 0.93rem;
  margin-bottom: 0;
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* ---------- YouTube動画グリッド ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-ink);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- 実写真フレーム ---------- */
.photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 写真プレースホルダー（全体共通） ---------- */
.photo-placeholder {
  background: var(--color-primary-tint);
  border: 1px dashed var(--color-primary-dark);
  border-radius: var(--radius-md);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  min-height: 200px;
}

/* ---------- フッター（メインの黄色。お試し。戻すなら background を var(--color-ink) に） ---------- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0 28px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.site-footer__brand {
  max-width: 340px;
}

.site-footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer__note {
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.site-footer__cta {
  margin-bottom: 14px;
}
.site-footer__mail {
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.site-footer__mail a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}
.social-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- 支援・パートナー クレジット帯 ---------- */
.credit-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .credit-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
.credit-strip__item {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px;
}
.credit-strip__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  background: rgba(75, 100, 85, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.credit-strip__item p {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin: 0 0 12px;
}
.credit-strip__link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit-strip__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  min-height: 60px;
}
.credit-strip__partner-link {
  display: flex;
  align-items: center;
}
.credit-strip__partner-logo {
  height: 52px;
  width: auto;
  transition: opacity 0.2s ease;
}
.credit-strip__partner-link:hover .credit-strip__partner-logo {
  opacity: 0.75;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- 汎用ユーティリティ ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.two-col {
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .two-col--reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .two-col--reverse > *:first-child {
    order: 2;
  }
}

.divider {
  height: 1px;
  background: var(--color-line);
  border: none;
  margin: 48px 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  background: var(--color-paper-alt);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink-soft);
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-box {
  background: var(--color-paper-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

.equipment-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
@media (min-width: 700px) {
  .equipment-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.equipment-item {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.equipment-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.equipment-item p {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--color-line);
  margin-top: 16px;
  padding-left: 24px;
}
.timeline__item {
  position: relative;
  padding-bottom: 28px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-paper);
}
.timeline__date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.form-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.form-embed iframe {
  width: 100%;
  height: 1100px;
  border: none;
  display: block;
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
}
.form-row .req {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: middle;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.form-row textarea {
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.contact-form button[type="submit"] {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.contact-methods {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
@media (min-width: 700px) {
  .contact-methods {
    grid-template-columns: repeat(3, 1fr);
  }
}
.contact-method {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.contact-method h3 {
  font-size: 0.98rem;
}
.contact-method p {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

.support-banner {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 700px) {
  .support-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.support-banner__figure {
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
}
.support-banner__figure span {
  font-size: 1rem;
  font-weight: 400;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- 「社会にはワクワクが咲くタネが落ちている」 ----------
   ポートフォリオ（プロフィール.ai 3ページ目）の配色とイラストをそのまま使う。
   緑 #4c7748 と 琥珀 #d79831 の2色で塗り分けるのがこのブロックの肝。 */
:root {
  --tane-amber: #d79831;
  --tane-green: #4c7748;
  --tane-ink: #231916;
}
.section--tane {
  overflow-x: clip;
}
.tane-head {
  text-align: left;
}
@media (min-width: 821px) {
  /* パソコン表示：「大切にしていること」の枠は左、大きな見出しだけ中央 */
  .tane-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .tane-head .tane-title {
    align-self: stretch;
    text-align: center;
  }
}
.tane-title {
  /* 「社会には／ワクワク／が咲く／タネ／が落ちている」が、スマホでもできるだけ1行に収まる大きさ */
  font-size: min(2.5rem, calc((100vw - 32px) / 25));
  font-weight: 900;
  line-height: 1.3;
  color: var(--tane-green);
  margin: 0.5em 0 1.1em; /* 上に少し余白：ぽんと跳ねた文字が肩書きに重ならないように */
  text-wrap: balance;
}
.tane-part {
  display: inline-block;
  white-space: nowrap; /* 極端に狭いときだけ、このかたまりの間で改行する */
}
.tane-title em {
  font-style: normal;
  color: var(--tane-amber);
  font-size: 1.75em;
  line-height: 1;
  letter-spacing: 0.03em;
}
.tane-lead {
  max-width: 860px;
  margin: 0 0 3rem;
  color: var(--color-ink); /* 他の本文と同じ色・同じ大きさ */
}
.tane-lead mark {
  font-size: 1em;
  white-space: nowrap;
  background: none;
  color: var(--tane-amber);
  font-weight: 900;
}
.tane-steps {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 590fr 537fr 376fr 617fr; /* 画像の縦横比に合わせ、地面の線が途切れず1本につながる */
  width: 100vw;
  max-width: 1400px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.tane-step {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.tane-step__title {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  color: var(--tane-ink);
  margin: 0 0 0.8em;
}
.tane-step__desc {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tane-ink);
  margin: 0 0 1.6rem;
  padding: 0 8px;
  text-wrap: balance;
}
.tane-step img {
  margin-top: auto;
  width: 100%;
  height: auto;
}
.tane-more {
  margin: 1.5rem 0 0;
}
.tane-story {
  max-width: 640px;
  margin: 1rem auto 0;
}
.tane-story p {
  color: var(--color-ink-soft);
}
@media (max-width: 820px) {
  /* 狭い幅では1列に積み、図の両端をフェードさせて「切られた感」を出さない */
  .tane-steps {
    grid-template-columns: 1fr;
    width: auto;
    max-width: 520px;
    margin: 0 auto;
    transform: none;
    row-gap: 40px;
  }
  .tane-step img {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }
}


/* ---------- プロフィール：肩書き → 写真 → 名前 → 本文 の順に中央で積む ---------- */
.section--profile {
  padding: 40px 0 16px;
}
.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.profile__photo {
  width: min(100%, 460px);
  aspect-ratio: 4 / 3;
  margin: 0 0 20px;
}
.profile .section-title {
  margin-bottom: 0.4em;
}
.profile .section-lead {
  max-width: 640px;
  margin: 0;
  text-align: left;
}

/* パソコン：肩書きは写真の上で左寄せ。その下に、左に顔写真・右に名前と本文 */
@media (min-width: 800px) {
  .profile {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: auto auto auto auto;
    align-items: start;
    column-gap: 48px;
  }
  .profile .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }
  .profile__photo {
    grid-column: 1;
    grid-row: 2 / span 3;
    width: 100%;
    margin: 0;
    align-self: center;
  }
  .profile .section-title,
  .profile .profile__affil,
  .profile .section-lead {
    grid-column: 2;
    justify-self: start;
  }
  .profile .section-title {
    grid-row: 2;
    align-self: end;
  }
  .profile .profile__affil {
    grid-row: 3;
  }
  .profile .section-lead {
    grid-row: 4;
    align-self: start;
  }
}

/* ---------- 写真（メイン1枚） ---------- */
.photo-frame--wide {
  aspect-ratio: 3 / 2;
}

/* ---------- ページ最下部の相談導線（大きな色ブロックにしない） ---------- */
.section--cta {
  border-top: 1px solid var(--color-line);
  padding: 40px 0;
}
.cta-line {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 700px) {
  .cta-line {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}
.cta-line__title {
  font-family: var(--font-heading); /* 他の見出しと同じフォント */
  font-weight: 500; /* ただし長い一文なので、太字（700）ではなく中太にする */
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.cta-line__text {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

/* ---------- フッターの紹介文 ---------- */
.site-footer__about {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-white);
}

.hero h1,
.hero p {
  text-shadow: 0 1px 14px rgba(90, 61, 15, 0.35);
}

/* ---------- プロジェクト年表（プロジェクト紹介ページ） ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.project-row {
  display: grid;
  gap: 20px;
  scroll-margin-top: 90px;
}
.project-row__photo {
  aspect-ratio: 16 / 9;
}
.project-row__no {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.project-row__title {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin: 0 0 12px;
  line-height: 1.45;
}
.project-meta {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}
.project-meta div {
  display: flex;
  gap: 12px;
}
.project-meta dt {
  font-weight: 700;
  color: var(--color-accent-dark);
  white-space: nowrap;
}
.project-meta dt::after {
  content: "：";
}
.project-meta dd {
  margin: 0;
}
.project-row__body p {
  font-size: 1rem; /* 他の本文（16px）と同じ大きさ */
}
.project-row__link {
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 800px) {
  .project-row {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
  }
  .project-row:nth-child(even) .project-row__photo {
    order: 2;
  }
}

/* ---------- できること・機材紹介 ---------- */
.drawing-block {
  margin-top: 40px;
}
.drawing-block__title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-ink-soft);
}
.drawing-block__img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* 図面の白地を、ページの紙色になじませる */
}
.equip-group {
  font-size: 1.15rem;
  margin: 44px 0 0;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}
.equipment-item__photo {
  margin-top: 14px;
  aspect-ratio: 16 / 9;
}
.equip-feature {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.equip-feature .equipment-list {
  margin-top: 0;
}
@media (min-width: 800px) {
  .equip-feature {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
  .equipment-list--single {
    grid-template-columns: 1fr;
  }
}
.equip-feature__photo {
  aspect-ratio: 1 / 1;
}

/* プロフィール本文の下は、次の見出しとの間を詰める */
.section--profile + .section--tane {
  padding-top: 16px;
}

/* パソコン：フッターの説明文も、トップの説明文と同じ4行の改行で表示する。
   ロゴ＋説明文を1段目に広げ、サイトマップと連絡先は2段目に置く。 */
@media (min-width: 900px) {
  .site-footer__brand {
    max-width: none;
    flex-basis: 100%;
  }
  .site-footer__about {
    font-size: 0.95rem;
    line-height: 2;
  }
}

/* ---------- 進行中・予定／出展・受賞（プロジェクト紹介ページ） ---------- */
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.status-pill--award {
  background: var(--color-primary-dark);
}
.status-pill--show {
  background: var(--color-accent);
}
.ongoing-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
@media (min-width: 700px) {
  .ongoing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ongoing-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.ongoing-card__title {
  font-size: 1.2rem;
  margin: 12px 0 10px;
}
.ongoing-card .project-meta {
  margin: 0;
}
.record-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
@media (min-width: 700px) {
  .record-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.record-card__photo {
  aspect-ratio: 3 / 2;
}
.record-card__body {
  padding-top: 14px;
}
.record-card__title {
  font-size: 1.1rem;
  margin: 10px 0 8px;
}
.record-card__title a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.record-card .project-meta {
  margin: 0;
}

/* ---------- お問い合わせフォームの送信結果 ---------- */
.form-status {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  font-size: 0.95rem;
}
.form-status[hidden] {
  display: none;
}
.form-status.is-error {
  border-left-color: #b3402f;
}
.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-form [hidden] { display: none !important; }

/* 「 」で強調したい語：ワクワクと同じオレンジ色（本文中では <mark class="hl">） */
mark.hl {
  background: none;
  color: var(--tane-amber);
  font-weight: 900;
}

/* ---------- SNS（トップページ） ---------- */
.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* 名前は「滑川寛」と「Hiro Namekawa」のかたまりごとに改行し、Hiro / Namekawa の間では絶対に折り返さない */
.name-ja,
.name-en {
  display: inline-block;
  white-space: nowrap;
}

/* 見出しの手動改行（パソコンのときだけ） */
.br-pc {
  display: none;
}
@media (min-width: 800px) {
  .br-pc {
    display: inline;
  }
}

/* ---------- 写真の自動切り替え ----------
   次の写真を「前の写真の上に」ゆっくり重ねる。前の写真は、重なり終わるまで消さない
   （同時に両方を半透明にすると、途中で一瞬うっすら暗く／背景が透けて見えるため）。
   どちらの写真もごくゆるやかに拡大し続け、切り替わりの瞬間に動きが途切れない。 */
.photo-frame--slides {
  position: relative;
  background: var(--color-primary-tint);
}
.photo-frame--slides img {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
}
.photo-frame--slides img:first-child {
  opacity: 1; /* JS が動くまで（または動かない環境）は1枚目を出す */
}
.photo-frame--slides.is-running img:first-child:not(.is-current):not(.is-prev) {
  opacity: 0;
}
.photo-frame--slides img.is-prev {
  opacity: 1;
  z-index: 1;
  animation: slide-drift 10s linear forwards;
}
.photo-frame--slides img.is-current {
  opacity: 1;
  z-index: 2;
  transition: opacity 2.4s ease-in-out;
  animation: slide-drift 10s linear forwards;
}
@keyframes slide-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-frame--slides img.is-prev,
  .photo-frame--slides img.is-current {
    animation: none;
  }
}

/* ページ冒頭の説明文（ページ見出しの下の一文）は、太字にしない */
.page-hero p {
  font-weight: 500;
}

/* ---------- 「工房について」ページ ---------- */
.section--profile.section--alt {
  padding-bottom: 48px;
}
.story-h {
  font-size: 1.2rem;
  margin: 2.4rem 0 0.7rem;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}
.story-figure {
  aspect-ratio: 16 / 9;
  margin: 0 0 1.1rem;
}
.about-prose {
  max-width: 760px;
  margin: 1rem 0 0;
}
.aim-list {
  margin-top: 36px;
}

/* ボタンを説明文の下に並べる案内（「工房について」ページの最下部） */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* 「工房について」：写真と文章の上端をそろえる／ストーリーの本文は左寄せのまま幅だけ絞る */
@media (min-width: 800px) {
  .two-col--top {
    align-items: start;
  }
}
.story-body {
  max-width: 820px;
}

/* ---------- タネ（図の中の丸）を押せる・ぽんと飛び出す ---------- */
.tane-figure {
  position: relative;
  margin-top: auto;
  width: 100%;
}
.tane-figure img {
  margin-top: 0;
  display: block;
}
.seed-dot {
  position: absolute;
  width: max(34px, var(--w));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.seed-dot.has-seed::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px solid var(--tane-amber);
  animation: seed-ring 2.6s ease-out infinite;
  pointer-events: none;
}
.seed-dot:focus-visible {
  outline: 2px solid var(--tane-ink);
  outline-offset: 2px;
}
.seed-dot.is-wiggle {
  animation: seed-wiggle 0.6s ease;
}
@keyframes seed-ring {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes seed-wiggle {
  0%   { transform: translate(-50%, -50%) scale(1); }
  30%  { transform: translate(-50%, -62%) scale(1.25); }
  55%  { transform: translate(-50%, -46%) scale(0.92); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.seed-bubble {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  border: 2px solid var(--tane-ink);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--tane-ink);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%);
  animation: seed-pop 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.seed-bubble__thumb {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--tane-amber) center / cover no-repeat;
}
@keyframes seed-pop {
  0%   { opacity: 0; transform: translate(-50%, -40%) scale(0.3); }
  16%  { opacity: 1; transform: translate(-50%, -150%) scale(1.12); }
  26%  { transform: translate(-50%, -140%) scale(1); }
  78%  { opacity: 1; transform: translate(-50%, -160%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(0.95); }
}
.seed-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: rgba(43, 36, 32, 0.5);
}
.seed-overlay[hidden] {
  display: none;
}
.seed-card {
  position: relative;
  width: min(100%, 380px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px); /* iPhoneのSafariは、100vh だと下のバーの裏まで含んで切れるため dvh を使う */
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}
.seed-overlay.is-open .seed-card {
  animation: seed-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes seed-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.85); }
  to   { opacity: 1; transform: none; }
}
.seed-card__photo {
  aspect-ratio: 16 / 10;
  background: var(--color-primary-tint);
}
.seed-card__photo[hidden] {
  display: none;
}
.seed-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seed-card__body {
  padding: 18px 22px 24px;
}
.seed-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tane-amber);
  color: var(--color-white);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.seed-card__title {
  font-size: 1.25rem;
  margin: 0 0 2px;
  color: var(--tane-green);
}
.seed-card__place {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
}
.seed-card__text {
  margin: 0;
  font-size: 0.92rem;
}
.seed-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .seed-dot.has-seed::before {
    animation: none;
  }
}

/* パソコン表示：本文のかたまりは中央に置き、文字は左から始める（左に寄って見えないように）。
   ※ .tane-lead の基本指定（margin: 0 0 3rem）より後に書かないと上書きされない */
@media (min-width: 821px) {
  .tane-lead {
    width: fit-content; /* かたまりを文章の幅に合わせて、ページの中央に置く */
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* 文字そのものは、段落として左から始める */
  }
}

/* 「工房の名前に込めた意味」の囲み（工房についてページ） */
.meaning {
  margin-top: 2.4rem;
  padding: 20px 24px;
  background: var(--color-white);
  border-left: 4px solid var(--tane-amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.meaning__label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
}
.meaning__line {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.9;
}

/* ---------- 「タネをクリックして拾ってみよう」の案内（図の下。試し。不要なら .tane-hint を丸ごと消す） ---------- */
.tane-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 1.4rem 0 0;
  color: var(--tane-green);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.tane-hint__dot {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid var(--tane-ink);
  border-radius: 50%;
  background: var(--tane-amber);
}
.tane-hint__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--tane-amber);
  animation: seed-ring 2.6s ease-out infinite;
}
.tane-hint__tap {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .tane-hint__click {
    display: none;
  }
  .tane-hint__tap {
    display: inline;
  }
}
@media (max-width: 820px) {
  .tane-hint {
    justify-content: flex-start;
    margin: 0.6rem 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tane-hint__dot::after {
    animation: none;
  }
}

/* 写真の下のキャプション（工房についてページのストーリー） */
.story-caption {
  margin: -0.6rem 0 1.6rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}
/* 「活動レポート」「プロジェクトページ」のように、リンクが2つ並ぶときの間隔 */
.credit-strip__link + .credit-strip__link {
  margin-left: 18px;
}

/* 名前の下の所属（大学院・研究会） */
.profile__affil {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
}

/* ---------- 機材ページ：注釈・機材写真 ---------- */
.equip-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.equipment-item__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-top: 14px;
}
.equipment-item__imgs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.equipment-item__imgs img {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
.equipment-item__img--wide {
  aspect-ratio: 16 / 9;
}
.equip-plain {
  margin-top: 16px;
}
.equipment-item__img--sander {
  width: 58%;
  aspect-ratio: auto;
  margin-left: auto;
  margin-right: auto;
}
/* 長めの見出しを、13インチ級のPC幅でも1行に収める（動的レイヤーの大きな見出しより優先） */
.section-title.section-title--fit,
html.dyn .section-title.section-title--fit {
  font-size: clamp(1.5rem, 4.2vw, 2.7rem);
}

/* ---------- 折り返しの整え ----------
   見出しは行の長さをそろえ、「材」だけが次の行に落ちるような短い行を作らない。
   本文は最後の行が極端に短くならないようにする。対応していないブラウザでは今までどおり。 */
h1, h2, h3, h4,
.card__title, .project-row__title, .cta-line__title, .story-h {
  text-wrap: balance;
  word-break: auto-phrase;
}
p, li {
  text-wrap: pretty;
}

/* ---------- たびもの通信（ブログ） ---------- */
.report-grid {
  margin-top: 0;
}
@media (min-width: 640px) {
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .report-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.report__inner {
  max-width: 760px;
}
.report__back {
  margin: 0 0 28px;
  font-size: 0.9rem;
}
.report__back a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report__date {
  display: block;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.04em;
}
.report__title {
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  line-height: 1.5;
  margin: 8px 0 28px;
}
.report__body {
  font-size: 1rem;
  line-height: 2;
}
.report__body p {
  margin: 0 0 1.6em;
}
.report__body h2 {
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  margin: 2.6em 0 0.9em;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
  line-height: 1.5;
}
.report__body h3 {
  font-size: 1.1rem;
  margin: 2em 0 0.7em;
}
.report__body ul {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
  list-style: disc;
}
.report__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.report-figure {
  margin: 0 0 1.8em;
}
.report-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.report-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.8em;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.report-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.report-pager {
  display: grid;
  gap: 14px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
@media (min-width: 640px) {
  .report-pager {
    grid-template-columns: 1fr 1fr;
  }
  .report-pager__link--next {
    grid-column: 2;
    text-align: right;
  }
}
.report-pager__link {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
}
.report-pager__link span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-bottom: 4px;
}
.report-pager__link strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* メニューが6項目になったぶん、1000〜1120px幅では少しだけ詰める */
@media (min-width: 1000px) and (max-width: 1120px) {
  .site-nav__list {
    gap: 15px;
  }
  .site-nav__list a {
    font-size: 0.88rem;
  }
}

/* 記事のシェア・保存ボタン（JSが使えるときだけ表示） */
.report-share {
  margin-top: 48px;
  padding: 22px 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
  text-align: center;
}
.report-share[hidden] {
  display: none;
}
.report-share__label {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 0.95rem;
}
.report-share__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.report-share__buttons [hidden] {
  display: none;
}

/* シェアボタンはアイコンだけの丸いボタン */
.share-btn {
  --knock: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.share-btn:hover,
.share-btn:focus-visible {
  --knock: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}
.share-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.share-btn[data-share="line"] svg,
.share-btn[data-share="facebook"] svg {
  width: 22px;
  height: 22px;
}
.share-btn__done {
  display: none !important;
}
.share-btn.is-done .share-btn__icon {
  display: none;
}
.share-btn.is-done .share-btn__done {
  display: block !important;
}
.report-share__status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* ---------- 呼びたいまち（ピンボード） ---------- */
.section--pins .section-lead {
  margin-bottom: 0;
}
.pins__layout {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .pins__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    margin-top: 36px;
  }
}

/* --- タイル地図：押せる範囲は、見た目の四角より少し広い --- */
.pins-map {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 639px) {
  .pins-map {
    margin-left: -8px;
    margin-right: -8px; /* スマホでは少しはみ出させて、1マスを大きくする */
  }
}
.pins-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 2px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.pins-tile__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-ink-soft);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.pins-tile__name {
  font-size: clamp(0.62rem, 2.5vw, 0.8rem);
  line-height: 1;
  white-space: nowrap;
}
.pins-tile:hover .pins-tile__face,
.pins-tile:focus-visible .pins-tile__face {
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.pins-tile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
  border-radius: 8px;
}
.pins-tile.has-pin .pins-tile__face {
  background: var(--tane-amber, #d79831);
  border-color: var(--tane-amber, #d79831);
  color: var(--color-white);
}
.pins-tile.has-pin:hover .pins-tile__face,
.pins-tile.has-pin:focus-visible .pins-tile__face {
  border-color: var(--color-ink);
}
.pins-tile.is-active .pins-tile__face {
  border: 2px solid var(--color-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -6px rgba(43, 36, 32, 0.5);
}
.pins-tile.is-active:not(.has-pin) .pins-tile__face {
  background: var(--color-ink);
  color: var(--color-white);
}
.pins-tile__badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 0.58rem;
  line-height: 15px;
  text-align: center;
  display: none;
  pointer-events: none;
}
.pins-tile.has-pin .pins-tile__badge {
  display: block;
  animation: pins-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes pins-pop {
  from { transform: translateY(-10px) scale(0.3); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.pins__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.pins__legend-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--tane-amber, #d79831);
}
.pins__count {
  margin-left: 10px;
  font-weight: 700;
  color: var(--color-ink);
}
.pins__hint {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}
@media (min-width: 900px) {
  .pins__hint {
    display: none;
  }
}

/* --- 投稿パネル：パソコンでは右側のカード、スマホでは下から開くシート --- */
.pins-panel {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}
.pins-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pins-panel__title {
  margin: 0;
  font-size: 1.15rem;
}
.pins-panel__close {
  display: none;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary-tint, #f3e8cf);
  color: var(--color-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.pins-panel__idle {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}
.pins-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.pins-form .form-row {
  position: relative;
}
.pins-form .form-row input,
.pins-form .form-row textarea {
  font-size: 16px; /* 16px未満だと、iPhoneが入力欄をタップしたときに画面を拡大してしまう */
}
.pins-form__chars {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
}
.pins-fields summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  padding: 4px 0;
}
.pins-fields summary::-webkit-details-marker {
  display: none;
}
.pins-fields[open] summary {
  margin-bottom: 12px;
}
.pins-fields .form-row + .form-row {
  margin-top: 14px;
}
.pins-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pins-form__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
}
.pins-form__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pins-form__actions .btn {
  align-self: flex-start;
}
.pins-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pins-form__status {
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 700;
}
.pins-form__status.is-ok {
  color: var(--color-accent-dark);
}
.pins-form__status.is-error {
  color: #b3402d;
}
.pins-form__contact {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}
.pins-form__contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* スマホ：県を選ぶと出る下のボタン／開くシート／完了のお知らせ */
.pins-backdrop,
.pins-bar,
.pins-toast {
  display: none;
}
@media (max-width: 899px) {
  .pins-bar {
    display: block;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 90;
  }
  .pins-bar .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1rem;
    box-shadow: 0 10px 24px -8px rgba(43, 36, 32, 0.55);
  }
  .pins-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(43, 36, 32, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .pins-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .pins-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    max-height: 86vh;
    overflow-y: auto;
    border: 0;
    border-radius: 20px 20px 0 0;
    padding: 20px 18px 0;
    box-shadow: 0 -14px 40px rgba(43, 36, 32, 0.3);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .pins-panel.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }
  .pins-panel__close {
    display: block;
  }
  .pins-panel__idle {
    display: none;
  }
  /* 送信ボタンは、シートの下端に固定 */
  .pins-form__actions {
    position: sticky;
    bottom: 0;
    margin: 0 -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
  }
  .pins-form {
    padding-bottom: 0;
  }
  .pins-toast {
    display: block;
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 160;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
  }
}
body.pins-locked {
  overflow: hidden;
}

/* --- コメント一覧 --- */
.pins-list {
  margin-top: 40px;
}
.pins-list__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  scroll-margin-top: 90px;
}
.pins-list__title {
  font-size: 1.15rem;
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--tane-amber, #d79831);
}
.pins-list__reset {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  color: var(--color-ink);
}
.pins-list__grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .pins-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .pins-list__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pins-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
  overflow-wrap: anywhere;
}
.pins-card__where {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}
.pins-card__text {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-line;
}
.pins-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
}
.pins-list__more {
  margin-top: 22px;
  text-align: center;
}
.pins__empty,
.pins__error {
  margin: 20px 0 0;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}
.pins__error a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pins-list__grid:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .pins-tile.has-pin .pins-tile__badge {
    animation: none;
  }
  .pins-panel,
  .pins-backdrop {
    transition: none;
  }
}
/* ボタンの display 指定が hidden 属性に勝たないようにする */
#pins [hidden] {
  display: none !important;
}

/* スマホだけで入れる改行（PCでは無効） */
.br-sp {
  display: inline;
}
@media (min-width: 640px) {
  .br-sp {
    display: none;
  }
}
/* ピンボードの短い文は、言葉のまとまりで、行の長さをそろえて折り返す */
.pins__empty,
.pins__error,
.pins__hint,
.pins-panel__idle,
.pins-form__note,
.pins-form__contact,
.pins-toast {
  text-wrap: balance;
  word-break: auto-phrase;
}
.pins-toast {
  white-space: pre-line;
  border-radius: 20px;
  line-height: 1.6;
}
.pins-card__text {
  word-break: auto-phrase;
}

/* ---------- 日本語／英語の切り替え（ヘッダー） ---------- */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  align-self: flex-start;
  margin-top: 22px;
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.lang-switch a {
  display: block;
  padding: 8px 13px;
  color: var(--color-ink);
  text-decoration: none;
}
.lang-switch a[aria-current="true"] {
  background: var(--color-ink);
  color: var(--color-white);
  pointer-events: none;
}
.lang-switch a:not([aria-current]):hover,
.lang-switch a:not([aria-current]):focus-visible {
  background: var(--color-primary-tint, #f3e8cf);
}
@media (min-width: 1000px) {
  .lang-switch {
    align-self: center;
    margin-top: 0;
  }
}
/* 英語ページ：文字の間隔・字間は、日本語向けの設定をゆるめる */
html[lang="en"] body {
  letter-spacing: 0;
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
  letter-spacing: 0.005em;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
html[lang="en"] p,
html[lang="en"] li {
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
/* 切り替え（JA/EN）が加わったぶん、1000〜1120px幅のメニューをさらに詰める */
@media (min-width: 1000px) and (max-width: 1120px) {
  .site-nav {
    gap: 14px;
  }
  .site-nav__list {
    gap: 11px;
  }
  .site-nav__list a {
    font-size: 0.82rem;
  }
  .lang-switch a {
    padding: 7px 9px;
  }
}
/* 英語：「社会には ワクワク が咲く…」の各パーツの間に、単語の区切りの空きを入れる */
html[lang="en"] .tane-title .tane-part {
  margin-right: 0.28em;
}
html[lang="en"] .tane-title .tane-part:last-child {
  margin-right: 0;
}
html[lang="en"] .tane-title {
  /* 英語は文字数が多いので、日本語（1行25字前提）より大きめに。2〜3行に折り返してよい */
  font-size: min(2.6rem, calc((100vw - 32px) / 13));
  line-height: 1.25;
}
/* 英語：見出し「Seeds of excitement are scattered throughout society.」の最初のパーツ（日本語の「社会には」の位置）は、空にして隠す */
html[lang="en"] .tane-title .tane-part:first-child {
  display: none;
}
/* ピンボードの見出し「あなたのまちにも旅するものづくり工房がやってくる！」を、13インチ級のPC幅でも1行に */
#pins .section-title.section-title--fit,
html.dyn #pins .section-title.section-title--fit {
  font-size: clamp(1.4rem, 3.5vw, 2.3rem);
}

/* ---------- 改行の整え（Safari でも、言葉の途中で切れないように） ---------- */
.nw {
  white-space: nowrap; /* 「旅するものづくり工房」のような名前は、途中で改行しない */
}
/* 短い見出し・ボタン・ラベルは、言葉のまとまり（句読点・<wbr>）でだけ改行する。長すぎて入りきらないときだけ、どこでも折る */
.btn,
.eyebrow,
.card__meta,
.site-nav__list a,
.page-hero h1,
.section-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 矢印だけが次の行に落ちないよう、直前の文字とくっつける（JSが &nbsp; を入れる） */

/* ---------- ヘッダーのロゴ：パソコンの広い画面では大きく ---------- */
@media (min-width: 1121px) and (max-width: 1279px) {
  /* この幅は日本語のメニューが入りきらなくなるので、少し詰める（ロゴは今までの大きさ） */
  .site-nav {
    gap: 16px;
  }
  .site-nav__list {
    gap: 15px;
  }
  .site-nav__list a {
    font-size: 0.88rem;
  }
}
@media (min-width: 1280px) {
  .site-header__inner {
    max-width: 1320px;
  }
  .site-header .site-logo__mark {
    width: 196px;
  }
}

/* たびもの通信：記事の見出し写真 */
.report__hero {
  margin: 0 0 2em;
}
