/* 海森再生会議 */
:root {
  --sea: #1f3a4a;      /* 瀬戸内の藍 */
  --pine: #3d5a3e;     /* 山の松葉 */
  --shio: #eef1ec;     /* 潮をふくんだ白 */
  --sand: #cdbf9f;     /* 浜の砂 */
  --sun: #e3b13f;      /* 双海の夕日 */
  --ink: #1c2427;

  /* 分野の色（活動と記録で共通） */
  --f-sea: var(--sea);
  --f-make: #8a6420;
  --f-tell: #4f6680;
  --f-keep: var(--pine);
  --f-org: #66665a;

  --mincho: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;

  --measure: 36em;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--shio);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 1.0625rem;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--sea); text-underline-offset: 0.2em; }
a:hover { color: var(--pine); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--sea);
  color: var(--shio);
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* ヘッダー */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem var(--gutter);
}
.brand {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* ヒーロー：縦書きの名前と、海に沈む夕日 */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1rem, 4vw, 3rem) 0 0 var(--gutter);
}
.hero-text {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(1rem, 2.5vw, 2rem);
  writing-mode: horizontal-tb;
  padding-bottom: 2rem;
}
.hero-title,
.hero-lead {
  writing-mode: vertical-rl;
  margin: 0;
  font-family: var(--mincho);
}
.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.18em;
  color: var(--sea);
}
.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.12em;
  padding-top: 3.5em;
}
.hero-note {
  writing-mode: vertical-rl;
  margin: 0;
  padding-top: 7em;
  font-size: 0.875rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #46504f;
}

.hero-scene {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
}
.sun { fill: var(--sun); }
.ridge-back { fill: var(--pine); }
.ridge-front { fill: #2c4430; }
.river { fill: none; stroke: #8fb0b8; stroke-width: 3; stroke-linecap: round; }
.sea { fill: var(--sea); }
.glints line { stroke: var(--sun); stroke-width: 3; stroke-linecap: round; opacity: 0.75; }

/* ページを開いたときに一度だけ、夕日が少し沈む */
@media (prefers-reduced-motion: no-preference) {
  .sun { animation: sunset 2.4s cubic-bezier(.3,.1,.2,1) both; }
  .glints { animation: glint 2.4s ease-out both; }
}
@keyframes sunset { from { transform: translateY(-34px); } to { transform: translateY(0); } }
@keyframes glint { from { opacity: 0; } to { opacity: 1; } }

/* セクション共通 */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}
.section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.section-lead { margin: -0.75rem 0 2rem; color: #46504f; }
.section p { max-width: var(--measure); }

/* 私たちについて：海の色の帯 */
.about {
  background: var(--sea);
  color: var(--shio);
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1rem 3rem;
}
.about h2 { color: var(--shio); }
.about h2, .join h2 { white-space: nowrap; }
.about-body p { margin: 0 0 1.25em; }
.about-body p:first-child {
  font-family: var(--mincho);
  font-size: 1.25rem;
  line-height: 2;
}

/* 活動：4つの分野 */
.activities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
}
.activities h2,
.activities .section-lead { grid-column: 1 / -1; }

.field {
  --c: var(--f-org);
  border-top: 6px solid var(--c);
  padding: 1.25rem 0 2.5rem;
}
.field[data-field="sea"]  { --c: var(--f-sea); }
.field[data-field="make"] { --c: var(--f-make); }
.field[data-field="tell"] { --c: var(--f-tell); }
.field[data-field="keep"] { --c: var(--f-keep); }
.field h3 {
  margin: 0 0 0.5rem;
  font-family: var(--mincho);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--c);
  letter-spacing: 0.05em;
}
.field p { margin: 0 0 0.75rem; }
.field ul { margin: 0; padding-left: 1.2em; }
.field li::marker { color: var(--c); }

/* 活動の記録 */
.records { background: #e3e8e2; }

.record-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.record-filter button {
  --c: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1em;
  border: 1.5px solid #b9c2bd;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.record-filter button::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--c);
}
.record-filter [data-filter="all"]::before { display: none; }
.record-filter [data-filter="sea"]  { --c: var(--f-sea); }
.record-filter [data-filter="make"] { --c: var(--f-make); }
.record-filter [data-filter="tell"] { --c: var(--f-tell); }
.record-filter [data-filter="keep"] { --c: var(--f-keep); }
.record-filter [data-filter="org"]  { --c: var(--f-org); }
.record-filter button[aria-pressed="true"] {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--shio);
}
.record-filter button[aria-pressed="true"]::before { background: var(--shio); }

.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
}
.record {
  --c: var(--f-org);
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.25rem 1.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #c4ccc6;
}
.record[data-field="sea"]  { --c: var(--f-sea); }
.record[data-field="make"] { --c: var(--f-make); }
.record[data-field="tell"] { --c: var(--f-tell); }
.record[data-field="keep"] { --c: var(--f-keep); }
.record time {
  font-family: var(--mincho);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #46504f;
}
.record-field {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--c);
  font-weight: 700;
}
.record h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mincho);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}
.record p { margin: 0; }
.record img {
  display: block;
  width: 100%;
  max-width: 32rem;
  height: auto;
  margin-top: 1rem;
  border-radius: 4px;
}
.record-empty { color: #46504f; }

/* 参加する */
.join {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1rem 3rem;
}
.join-body p { margin: 0 0 1.25em; }
.mail {
  font-family: var(--mincho);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  word-break: break-all;
}

/* 団体概要 */
.profile { padding-top: 0; }
.profile-list {
  margin: 0;
  max-width: 48rem;
  border-top: 2px solid var(--ink);
}
.profile-list div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #c4ccc6;
}
.profile-list dt { font-weight: 700; }
.profile-list dd { margin: 0; }

/* フッター */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 2rem var(--gutter);
  background: var(--sea);
  color: var(--shio);
}
.site-footer p { margin: 0; }
.site-footer p:first-child { font-family: var(--mincho); font-weight: 700; letter-spacing: 0.08em; }

/* スマホ */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .hero-text { justify-content: flex-end; padding-bottom: 0; }
  .hero-note { padding-top: 4em; }
  .about, .join { grid-template-columns: 1fr; }
  .hero-scene { width: calc(100% + 2 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); max-width: none; }
  .activities { grid-template-columns: 1fr; }
  .record, .profile-list div { grid-template-columns: 1fr; gap: 0.25rem; }
}
