:root {
  --sumi: #1C2B25;
  --sumi-2: #253830;
  --sumi-3: #2F453B;
  --washi: #F5F5E4;
  --washi-2: #E8EBD5;
  --kinu: #FFFFF5;
  --yamabuki: #90D8C0;
  --yamabuki-deep: #5DB49A;
  --yamabuki-soft: #F0F0C0;
  --matsu: #5A7359;
  --matsu-soft: #DFE9DD;
  --koke: #A3BCA3;
  --text: #1C2A23;
  --text-soft: #495A4F;
  --on-dark: #F2F2DF;
  --on-dark-soft: #C5D3C5;
  --line: rgba(28, 42, 35,0.14);
  --line-dark: rgba(242, 242, 223,0.16);
  --head: "Hina Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --body: "Murecho", "Hiragino Sans", "Yu Gothic", sans-serif;
  --shell: 1160px;
  --r: 14px;
  --paper: #FFFFFF;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--sumi);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--matsu);
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--matsu);
  outline-offset: 3px;
}

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

@media (min-width: 760px) {
  .shell {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--sumi);
  color: var(--kinu);
}

.skip:focus {
  left: 8px;
}

/* ---------- Boxes (buttons) ---------- */
.box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--sumi);
  border-radius: 3px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.box-line {
  background: var(--paper);
  color: var(--sumi);
}

.box-line:hover {
  background: var(--washi);
}

.box-solid {
  background: var(--sumi);
  color: var(--kinu);
}

.box-solid:hover {
  background: var(--sumi-3);
  border-color: var(--sumi-3);
}

.box-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

/* ---------- Masthead ---------- */
.masthead {
  position: static;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.util {
  background: var(--sumi);
  color: var(--on-dark);
  font-size: 0.78rem;
  line-height: 1.6;
}

.util-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 5px;
  padding-bottom: 5px;
}

.util-row p {
  margin: 0;
}

.mast-row {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 54px;
}

.brand-word {
  width: auto;
  height: 40px;
}

.mainnav {
  display: flex;
  gap: 24px;
  margin-right: auto;
}

.mainnav a {
  color: var(--sumi);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.mainnav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mast-actions {
  display: flex;
  flex: none;
  gap: 10px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .mainnav {
    margin-right: 0;
    margin-left: auto;
  }

  .mainnav a:not(.nav-blog) {
    display: none;
  }

  .mainnav + .mast-actions {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .mast-row {
    gap: 10px;
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    height: 40px;
  }

  .brand-word {
    height: 28px;
  }

  .box-line {
    display: none;
  }

  .mast-actions .box {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 359px) {
  .brand-word {
    height: 24px;
  }
}

/* ---------- Footer ---------- */
.foot {
  background: var(--washi);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) 0 28px;
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 820px) {
  .foot-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 56px;
  }
}

.foot-brand p {
  max-width: 26em;
  margin: 16px 0 0;
  color: var(--text-soft);
}

.foot-col h2 {
  margin: 0 0 10px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.foot-col li {
  margin-bottom: 6px;
}

.foot-col a {
  color: var(--text);
  text-decoration: none;
}

.foot-col a:hover {
  text-decoration: underline;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.foot-base p {
  margin: 0;
}

/* ---------- Shared section rhythm ---------- */
main > section {
  padding: clamp(56px, 8vw, 104px) 0;
}

main > section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.sec-lead {
  max-width: 30em;
  color: var(--text-soft);
}

/* ---------- Hero: photo with overlapping panel ---------- */
main > .hero {
  position: relative;
  padding: 0;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: clamp(300px, 44vw, 600px);
  object-fit: cover;
  object-position: 72% 50%;
}

.hero-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 2px 8px;
  background: var(--paper);
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.6;
}

.hero-copy {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}

.hero-copy > * {
  pointer-events: auto;
}

.hero-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 40px 36px 36px;
  background: var(--matsu);
  color: var(--paper);
  border-radius: 0 0 28px 28px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 96px;
  bottom: -18px;
  border-style: solid;
  border-width: 18px 16px 0;
  border-color: var(--matsu) transparent transparent;
}

.hero-panel h1 {
  margin-bottom: 0.6em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.45;
  color: var(--paper);
}

.hero-panel p {
  margin: 0;
  max-width: 21em;
}

.hero-cta {
  margin: 36px 0 0 52px;
}

@media (max-width: 759px) {
  .hero-photo img {
    height: 260px;
  }

  .hero-photo figcaption {
    bottom: auto;
    top: 10px;
  }

  .hero-copy {
    position: relative;
    margin-top: -40px;
  }

  .hero-panel {
    padding: 28px 22px 26px;
    border-radius: 0 0 22px 22px;
  }

  .hero-panel::after {
    left: 56px;
  }

  .hero-cta {
    display: flex;
    margin: 30px 0 8px;
  }
}

/* ---------- 3-photo row ---------- */
.trio {
  display: grid;
  gap: 40px 32px;
  margin-top: 36px;
}

@media (min-width: 760px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trio img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 18px;
}

.trio h3 {
  margin-bottom: 0.3em;
  font-family: var(--body);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--matsu);
}

.trio p {
  margin: 0;
  max-width: 19em;
  color: var(--text-soft);
}

/* ---------- Quick links ---------- */
main > .quick {
  background: var(--washi);
  padding: clamp(48px, 6vw, 72px) 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.quick-grid li:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .quick-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  .quick-grid li:last-child {
    grid-column: auto;
  }
}

.quick-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 140px;
  padding: 20px 12px;
  background: var(--paper);
  color: var(--sumi);
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
}

.quick-grid a:hover span {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.quick-grid svg {
  width: 40px;
  height: 40px;
  color: var(--matsu);
  stroke-width: 2;
}

/* ---------- Text + photo split ---------- */
.split-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
  }
}

.split-text p {
  max-width: 24em;
}

.split-text p:last-child {
  margin-bottom: 0;
}

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Voices ---------- */
main > .voices {
  padding-top: 0;
}

.voices-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .voices-grid {
    grid-template-columns: 0.8fr 1fr;
    gap: 72px;
  }
}

.voices-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 35% 50%;
}

.calls {
  margin-top: 20px;
}

.calls div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.calls dt {
  font-weight: 700;
  color: var(--sumi);
}

.calls dt span {
  margin-left: 0.6em;
  font-weight: 500;
  color: var(--matsu);
}

.calls dd {
  color: var(--text-soft);
}

/* ---------- Setup steps ---------- */
main > .setup {
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding-top: 16px;
  border-top: 3px solid var(--matsu);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  font-family: var(--head);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--matsu);
}

.steps h3 {
  margin-bottom: 0.3em;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  max-width: 16em;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ---------- FAQ ---------- */
main > .faq {
  background: var(--washi);
}

.faq-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 700;
  color: var(--sumi);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--matsu);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 32em;
  margin: 0 0 20px;
  color: var(--text-soft);
}

/* ---------- Closing ---------- */
.closing-grid {
  display: grid;
  align-items: center;
}

@media (min-width: 900px) {
  .closing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .closing-panel {
    position: relative;
    z-index: 1;
    margin-right: -64px;
  }
}

.closing-panel {
  padding: clamp(28px, 4vw, 48px);
  background: var(--matsu);
  color: var(--paper);
  border-radius: 0 28px 28px 0;
}

.closing-panel h2 {
  color: var(--paper);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.closing-panel p {
  max-width: 22em;
}

.closing-panel .box-solid {
  margin-top: 8px;
}

.closing-note {
  margin: 18px 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
}

.closing-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 80% 50%;
}

@media (max-width: 899px) {
  .closing-panel {
    border-radius: 0 0 22px 22px;
    order: 2;
  }

  .closing-panel .box {
    display: flex;
    white-space: normal;
    text-align: center;
  }

  .closing-photo {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Latest blog posts (WordPress) ---------- */
main > .notes {
  border-top: 1px solid var(--line);
}

.notes-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .notes-grid {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.notes-all {
  display: inline-block;
  padding: 10px 0;
  color: var(--sumi);
  font-weight: 700;
  font-size: 0.92rem;
  text-underline-offset: 6px;
}

.notes-list li + li {
  border-top: 1px solid var(--line);
}

.notes-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  color: var(--text);
  text-decoration: none;
}

.notes-thumb {
  flex: none;
  width: 96px;
}

.notes-thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 0 0 12px 12px;
}

.notes-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notes-label {
  color: var(--matsu);
  font-size: 0.8rem;
  font-weight: 700;
}

.notes-text strong {
  font-family: var(--head);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--sumi);
}

.notes-list a:hover strong {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.notes-time {
  font-size: 0.8rem;
  color: var(--text-soft);
}

@media (max-width: 479px) {
  .notes-list a {
    align-items: flex-start;
    gap: 14px;
  }

  .notes-thumb,
  .notes-thumb img {
    width: 76px;
  }

  .notes-thumb img {
    height: 60px;
  }
}
