/*
Theme Name: Kojirou no Sato
Theme URI: https://kojirounosato.local/
Author: Satomachi Graph / ChatGPT
Description: 小次郎の里 花と緑の会向けの縦スクロールLP型WordPressテーマ。トップLP、2系統カスタム投稿（お知らせ・活動報告）、水彩素材、余白の大きい有機的なレイアウトを前提にしています。
Version: 1.0.20
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: kojirou-no-sato
*/

:root {
  --paper: #fbfaf4;
  --paper-soft: #f3f0e6;
  --paper-green: #e8f0e4;
  --section-green: #edf5ea;
  --section-green-2: #e4f0df;
  --section-ink: #25372f;
  --ink: #343832;
  --muted: #7b8178;
  --green: #3e8b75;
  --green-deep: #236b5a;
  --green-soft: #c9dfd1;
  --flower: #d77887;
  --yellow: #e6b84d;
  --line: rgba(62, 139, 117, .28);
  --shadow: 0 18px 54px rgba(82, 93, 72, .08);
  --mincho: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
  --gothic: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --container: min(1080px, calc(100vw - 40px));
  --narrow: min(760px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(216, 230, 197, .35), transparent 26rem),
    radial-gradient(circle at 96% 14%, rgba(228, 199, 145, .18), transparent 20rem),
    linear-gradient(180deg, #fffefa 0%, var(--paper) 45%, #fffefa 100%);
  font-family: var(--mincho);
  line-height: 2;
  letter-spacing: .045em;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .48;
  background-image:
    linear-gradient(rgba(45, 60, 40, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 60, 40, .025) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: #fff;
  padding: .8rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 254, 250, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62,139,117,.12);
}
.header-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-branding { line-height: 1.5; }
.site-title {
  display: block;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  letter-spacing: .16em;
  font-weight: 400;
}
.site-description {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: .6rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  margin: 7px 0;
}
.primary-menu {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .84rem;
  color: #53584f;
  letter-spacing: .1em;
}
.primary-menu a { padding: .6rem 0; }
.primary-menu a:hover { color: var(--green); }

.main-section {
  position: relative;
  padding: clamp(70px, 10vw, 132px) 0;
  text-align: left;
}
#about,
#activities,
#organization {
  background: none;
  border: 0;
  color: var(--section-ink);
  isolation: isolate;
  overflow: visible;
}
#about::before,
#activities::before,
#organization::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -34px;
  right: 0;
  bottom: -34px;
  left: 0;
  background: url("assets/img/section-paper-green.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
#activities::before {
  transform: scaleX(-1);
}
#organization::before {
  transform: scaleY(-1);
}
#about .section-label,
#activities .section-label,
#organization .section-label,
#about .section-title,
#activities .section-title,
#organization .section-title {
  color: #1f6655;
}
#about .lead,
#activities .activity-item p,
#organization p {
  color: #34443a;
}
#about .section-label::before,
#activities .section-label::before,
#organization .section-label::before {
  background: rgba(31, 102, 85, .36);
}
.section-inner { width: var(--container); margin: 0 auto; position: relative; }
.section-inner.narrow { width: var(--narrow); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 2.4rem;
  color: var(--green-deep);
  font-size: .78rem;
  letter-spacing: .22em;
  font-family: var(--gothic);
  font-weight: 500;
  pointer-events: none;
}
.section-label::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--line);
}
.section-title {
  margin: 0 0 2.2rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .08em;
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
}
.lead {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: #50564e;
}
.muted { color: var(--muted); }

.hero {
  min-height: auto;
  display: flex;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px) 0 0;
}
.hero-wrap {
  width: 100%;
  margin: 0 auto;
}
.hero-visual {
  position: relative;
  width: min(80vw, 1500px);
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.hero-slider::after {
  content: none;
}
.hero-img {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(.96) contrast(.98);
  opacity: 0;
  transform: scale(1);
  animation: kojirouHeroFade 14s ease-in-out infinite;
}
.hero-img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hero-img:nth-child(2) { animation-delay: 7s; }
@keyframes kojirouHeroFade {
  0%, 43% { opacity: 1; }
  50%, 93% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; opacity: 0; }
  .hero-img:first-child { opacity: 1; }
}
.hero-copy {
  position: absolute;
  z-index: 4;
  top: clamp(38px, 8vw, 92px);
  right: clamp(24px, 6.2vw, 112px);
  width: auto;
  padding: 0;
  text-align: initial;
  pointer-events: none;
}
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(.55rem, 1.15vw, 1rem);
  color: var(--green-deep);
  font-size: clamp(1.35rem, 2.2vw, 2.35rem);
  line-height: 1.72;
  font-weight: 800;
  letter-spacing: .13em;
  max-width: none;
  min-height: 0;
  writing-mode: horizontal-tb;
}
.hero-title span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: rgba(255, 254, 250, .86);
  border: 1px solid rgba(35, 107, 90, .7);
  padding: clamp(.7rem, 1vw, 1rem) clamp(.42rem, .75vw, .64rem);
  box-shadow: 0 12px 28px rgba(70, 84, 60, .08);
  backdrop-filter: blur(2px);
}


.mascot-block {
  margin: clamp(2rem, 4vw, 3.2rem) 0 0;
  width: max-content;
  max-width: 100%;
  text-align: center;
}
.mascot-block img {
  display: block;
  margin: 0 auto;
}
.mascot-caption {
  margin-top: .8rem;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .06em;
  text-align: center;
  color: #4e574d;
}
.mascot-happy {
  margin-top: 1.8rem;
}
.mascot-happy img {
  width: min(140px, 34vw);
}

.notice-ribbon {
  width: var(--container);
  margin: clamp(34px, 4.5vw, 64px) auto clamp(20px, 2.8vw, 42px);
  position: relative;
  z-index: 5;
  background: rgba(255, 254, 250, .92);
  border: 1px solid rgba(62,139,117,.16);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: .95rem 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.notice-ribbon .label {
  flex: 0 0 auto;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: .18rem .8rem;
  font-family: var(--gothic);
  font-size: .73rem;
  letter-spacing: .12em;
}
.notice-ribbon a { border-bottom: 1px solid rgba(62,139,117,.35); }

.intro-text {
  margin: 0 auto;
  max-width: 760px;
  text-align: left;
}
.intro-text .kojirou {
  width: 86px;
  margin: 0 auto;
  opacity: .9;
}
.place-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4.2rem);
  align-items: start;
}
.place-item { position: relative; }
.place-item figure { margin: 0 0 1.2rem; }
.place-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 48% 52% 46% 54% / 7% 10% 8% 9%;
  box-shadow: var(--shadow);
}
.place-item h3 {
  margin: 0 0 .55rem;
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: .1em;
}
.place-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.place-item::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  margin-top: 1.2rem;
  background: var(--line);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2.4rem) clamp(2rem, 5vw, 5rem);
  max-width: 900px;
}
.activity-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(31,102,85,.24);
}
.activity-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(31,102,85,.42);
  background: rgba(255,254,250,.36);
  border-radius: 50% 48% 52% 46%;
  display: grid;
  place-items: center;
  color: #1f6655;
  font-family: var(--gothic);
  font-size: .72rem;
}
.activity-item h3 {
  margin: 0 0 .25rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: #25372f;
}
.activity-item p { margin: 0; color: var(--muted); font-size: .9rem; }


.schedule-period {
  margin: -1rem 0 2.4rem;
  color: var(--green-deep);
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  letter-spacing: .08em;
}

.timeline {
  max-width: 760px;
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.4rem, 4vw, 3rem);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.4rem, 4vw, 3rem) * -1 - 5px);
  top: .55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(62,139,117,.08);
}
.timeline-date {
  color: var(--green-deep);
  font-family: var(--gothic);
  font-size: .86rem;
  letter-spacing: .1em;
}
.timeline-title {
  margin: .18rem 0 .2rem;
  font-size: 1.12rem;
  font-weight: 400;
}
.timeline-item p { margin: 0; color: var(--muted); }

.instagram-box {
  max-width: 960px;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.instagram-intro {
  margin-bottom: 1.55rem;
}
.instagram-account {
  max-width: 620px;
}
.instagram-account-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem .15rem 1.05rem 0;
  color: var(--green-deep);
  border-top: 1px solid rgba(47, 101, 83, .26);
  border-bottom: 1px solid rgba(47, 101, 83, .26);
  transition: opacity .2s ease, padding-left .25s ease;
}
.instagram-account-link:hover {
  opacity: .72;
  padding-left: .35rem;
}
.instagram-account-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.instagram-account-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}
.instagram-account-icon .instagram-icon-dot {
  fill: currentColor;
  stroke: none;
}
.instagram-account-copy {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  min-width: 0;
}
.instagram-account-label {
  font-family: var(--gothic);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.instagram-account-username {
  font-family: var(--mincho);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.instagram-account-arrow {
  font-size: 1rem;
  line-height: 1;
  opacity: .58;
  transform: translateY(-1px);
}
@media (max-width: 560px) {
  .instagram-account-link {
    grid-template-columns: 38px 1fr auto;
    gap: .72rem;
  }
  .instagram-account-icon { width: 38px; height: 38px; }
  .instagram-account-icon svg { width: 30px; height: 30px; }
  .instagram-account-copy {
    display: block;
  }
  .instagram-account-label {
    display: block;
    margin-bottom: .12rem;
  }
}
.post-lane {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.7rem);
}
.post-item { position: relative; }
.post-item figure { margin: 0 0 1rem; overflow: hidden; }
.post-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 48% 52% 53% 47% / 8% 9% 6% 7%;
  filter: saturate(.95);
}
.post-meta {
  color: var(--muted);
  font-family: var(--gothic);
  font-size: .72rem;
  letter-spacing: .08em;
}
.post-title {
  margin: .25rem 0 .4rem;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}
.post-excerpt { margin: 0; color: var(--muted); font-size: .88rem; }
.text-link {
  display: inline-flex;
  margin-top: 2rem;
  color: var(--green-deep);
  font-family: var(--gothic);
  font-size: .86rem;
  letter-spacing: .1em;
  border-bottom: 1px solid rgba(62,139,117,.3);
}


.organization-name {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 2;
}
.organization-link-wrap {
  margin-top: 1.15rem !important;
}
.organization-external-link {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  color: #1f6655;
  font-size: .9rem;
  line-height: 1.8;
  border-bottom: 1px solid rgba(31,102,85,.36);
}
.organization-external-link:hover {
  opacity: .72;
}

.org-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.org-list p { margin: .25rem 0 1rem; }
.org-divider { color: rgba(31,102,85,.42); margin: 1.4rem 0; }

.contact-panel {
  max-width: 760px;
  margin: 2.5rem auto 0;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(62,139,117,.14);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 52% 48% 49% 51% / 5% 8% 6% 8%;
}
.contact-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid rgba(62,139,117,.12);
  padding: 1rem 0;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row dt { color: var(--muted); font-family: var(--gothic); }
.contact-row dd { margin: 0; }

.site-footer {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid rgba(62,139,117,.12);
  color: var(--muted);
  text-align: center;
  font-size: .8rem;
}
.footer-nav {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.archive-header, .single-header {
  width: var(--narrow);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 126px) 0 clamp(36px, 6vw, 76px);
  text-align: left;
}
.archive-grid {
  width: var(--container);
  margin: 0 auto clamp(70px, 10vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.7rem);
}
.single-content {
  width: var(--narrow);
  margin: 0 auto clamp(80px, 10vw, 130px);
  font-size: 1rem;
}
.single-content img { border-radius: 32px; margin: 2rem 0; }
.single-content a { color: var(--green-deep); border-bottom: 1px solid rgba(62,139,117,.35); }
.single-cta {
  margin-top: 3rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.48);
  border-radius: 32px;
}
.pagination {
  width: var(--container);
  margin: -70px auto 90px;
  text-align: center;
}

.decor {
  position: absolute;
  pointer-events: none;
  opacity: .72;
  z-index: 0;
}
.decor.tulip { width: 110px; left: 6%; bottom: 8%; transform: rotate(-8deg); }
.decor.ajisai { width: 145px; right: 4%; top: 9%; transform: rotate(7deg); }
.decor.kikyo { width: 120px; left: 3%; top: 12%; opacity: .54; }
.decor.sunflower { width: 100px; right: 7%; bottom: 6%; transform: rotate(5deg); opacity: .62; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-menu {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    padding: 1.2rem 20px 1.6rem;
    background: rgba(255,254,250,.97);
    border-bottom: 1px solid rgba(62,139,117,.12);
    flex-direction: column;
    align-items: flex-start;
  }
  .primary-menu.is-open { display: flex; }
  .hero { min-height: auto; padding-top: 28px; }
  .hero-visual { width: min(88vw, 1120px); }
  .hero-copy { top: clamp(30px, 6.4vw, 58px); right: clamp(26px, 7vw, 72px); }
  .hero-title { font-size: clamp(1.12rem, 3.8vw, 1.78rem); gap: .56rem; }
  .notice-ribbon {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
    margin-top: clamp(32px, 7vw, 52px);
    margin-bottom: clamp(30px, 6vw, 46px);
  }
  .place-list, .post-lane, .archive-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .decor { opacity: .28; }
}

@media (max-width: 560px) {
  :root { --container: min(100vw - 28px, 1080px); --narrow: min(100vw - 28px, 760px); }
  .header-inner { min-height: 68px; }
  .primary-menu { inset-top: 68px; }
  .hero-visual { width: min(90vw, 1120px); }
  .hero-copy { top: clamp(24px, 6.2vw, 36px); right: clamp(18px, 5.6vw, 30px); }
  .hero-title { letter-spacing: .08em; font-size: clamp(1rem, 4.4vw, 1.34rem); gap: .46rem; }
  .hero-title span { padding: .52rem .34rem; }
  .notice-ribbon {
    width: calc(100% - 36px);
    margin-top: 34px;
    margin-bottom: 42px;
    padding: 1rem 1.1rem 1.08rem;
    border-radius: 24px;
    gap: .72rem;
    position: relative;
    z-index: 3;
  }
  .notice-ribbon .label {
    margin: 0;
  }
  .notice-ribbon + .main-section {
    padding-top: 72px;
  }
  .contact-row { grid-template-columns: 1fr; gap: .2rem; }
  .main-section { padding: 62px 0; }
}

/* v1.0.6 alignment and tonal adjustments */
#contact .section-inner,
#instagram .section-inner,
#schedule .section-inner {
  text-align: left;
}
#about .mascot-caption,
#organization .mascot-caption {
  color: #34443a;
}


/* v1.0.7 two-column mascot layouts */
.about-layout,
.organization-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(210px, .65fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.about-copy,
.organization-copy {
  min-width: 0;
  max-width: 720px;
}
.about-layout .mascot-block,
.organization-layout .mascot-block {
  margin: 0;
  justify-self: center;
  align-self: center;
}
.about-layout .mascot-kojirou .kojirou {
  width: clamp(120px, 13vw, 180px);
  opacity: .95;
}
.organization-layout .mascot-happy img {
  width: clamp(130px, 14vw, 190px);
}
.about-layout .mascot-caption,
.organization-layout .mascot-caption {
  max-width: 270px;
}
@media (max-width: 760px) {
  .about-layout,
  .organization-layout {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    align-items: start;
  }
  .about-layout .mascot-block,
  .organization-layout .mascot-block {
    justify-self: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-layout .mascot-block img,
  .organization-layout .mascot-block img {
    margin-left: auto;
    margin-right: auto;
  }
  .about-layout .mascot-caption,
  .organization-layout .mascot-caption {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}


/* v1.0.8 supplied logo / catchcopy / section heading artwork */
.brand-logo {
  display: block;
  width: clamp(190px, 18vw, 270px);
  max-width: 46vw;
  height: auto;
}
.site-branding a { display: inline-block; }

.hero-title-art {
  display: block;
  margin: 0;
  font-size: 0;
  line-height: 1;
}
.hero-title-art img {
  display: block;
  width: clamp(78px, 8.53vw, 139px);
  max-width: none;
  height: auto;
}
.hero-title-art span { display: none; }

.section-title-art {
  margin: 0 0 2.2rem;
  line-height: 1;
  font-size: 0;
  max-width: 100%;
}
.section-title-art img {
  display: block;
  width: min(var(--heading-art-width), 100%);
  max-width: 100%;
  height: auto;
}
/* All supplied section headings use the same 20% intrinsic artwork scale.
   The per-image widths above are 20% of each supplied @2x source width. */

@media (max-width: 900px) {
  .brand-logo { width: clamp(175px, 31vw, 230px); max-width: 55vw; }
  .hero-title-art img { width: clamp(76px, 11.12vw, 109px); }
}
@media (max-width: 560px) {
  .brand-logo { width: min(190px, 58vw); }
  .hero-title-art img { width: clamp(72px, 16.69vw, 87px); }
  .section-title-art { margin-bottom: 1.8rem; }
}

/* v1.0.15 torn-paper section backgrounds */
#about .section-inner,
#activities .section-inner,
#organization .section-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 560px) {
  #about::before,
  #activities::before,
  #organization::before {
    top: -24px;
    right: 0;
    bottom: -24px;
    left: 0;
  }
}


/* v1.0.16 mobile horizontal-overflow fix
   Keep torn-paper bleed vertically, but never extend it past the viewport horizontally. */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
@media (max-width: 760px) {
  .main-section,
  .hero-wrap,
  .site-main {
    max-width: 100%;
  }
  .decor {
    max-width: min(32vw, 145px);
  }
}


/* v1.0.18 contact form */
.contact-form-wrap {
  margin-top: clamp(2.6rem, 5vw, 4.8rem);
}
.contact-form-heading {
  margin: 0 0 .6rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: .08em;
}
.contact-form-note {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: .9rem;
}
.kojirou-contact-form {
  display: grid;
  gap: 1.45rem;
}
.contact-field {
  display: grid;
  gap: .48rem;
}
.contact-field label {
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--section-ink);
}
.contact-required {
  margin-left: .5rem;
  color: var(--green-deep);
  font-family: var(--gothic);
  font-size: .68rem;
  letter-spacing: .08em;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(62, 139, 117, .28);
  border-radius: 0;
  background: rgba(255,255,255,.30);
  color: var(--ink);
  padding: .82rem .2rem;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.85;
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: var(--green-deep);
  background: rgba(255,255,255,.54);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(79, 86, 78, .46);
}
.contact-recaptcha {
  min-height: 78px;
}
.contact-submit {
  justify-self: start;
  border: 1px solid rgba(35, 107, 90, .42);
  background: transparent;
  color: var(--green-deep);
  padding: .78rem 1.7rem;
  cursor: pointer;
  letter-spacing: .1em;
  font-size: .88rem;
  transition: background-color .2s ease, color .2s ease;
}
.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--green-deep);
  color: #fff;
}
.contact-form-status {
  margin: 0 0 1.8rem;
  padding: 1rem 1.1rem;
  font-size: .92rem;
  border-left: 3px solid var(--green);
  background: rgba(232, 240, 228, .68);
}
.contact-form-status.is-error {
  border-left-color: #a65b58;
  background: rgba(247, 232, 229, .7);
}
.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}
@media (max-width: 560px) {
  .contact-form-wrap { margin-top: 2.8rem; }
  .contact-submit { width: 100%; justify-self: stretch; }
  .contact-recaptcha { transform-origin: left top; }
}
@media (max-width: 360px) {
  .contact-recaptcha { transform: scale(.88); width: 113.64%; margin-bottom: -9px; }
}
