:root {
  --washi: #e9dfc9;
  --washi-light: #f7f1e5;
  --washi-deep: #d8c9ad;
  --sumi: #211e1a;
  --sumi-soft: #625a4d;
  --line: #766b5b;
  --ai: #40596e;
  --kin: #b18a46;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sumi);
  background: #d7d0c4;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

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

/* ===== 全体 ===== */
.site-wrap {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(255,255,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 18%, rgba(86,67,37,.08) 0 1px, transparent 2px),
    linear-gradient(rgba(233,223,201,.93), rgba(233,223,201,.93)),
    var(--washi);
  background-size: 17px 19px, 23px 21px, auto, auto;
}

/* ===== ページタイトル ===== */
.page-heading {
  position: relative;
  padding: 54px 20px 48px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.42), transparent 52%),
    var(--washi-light);
  border-bottom: 1px solid rgba(118,107,91,.55);
}

.page-heading::before,
.page-heading::after {
  position: absolute;
  width: 180px;
  height: 75px;
  content: "";
  opacity: .12;
  border: 5px solid var(--ai);
  border-color: var(--ai) transparent transparent var(--ai);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.page-heading::before {
  top: -25px;
  left: -50px;
}

.page-heading::after {
  right: -45px;
  bottom: -48px;
  transform: rotate(160deg);
}

.page-heading__en,
.section-heading__en {
  margin: 0 0 7px;
  color: var(--ai);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
}

.page-heading h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.3;
}

.page-heading h1::after {
  display: block;
  width: 180px;
  height: 2px;
  margin: 21px auto 0;
  content: "";
  background: var(--kin);
}

.page-heading > p:last-child {
  margin: 16px auto 0;
  color: var(--sumi-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== 関連リンクエリア ===== */
.links-section {
  padding: 38px 15px 52px;
  background: rgba(247,241,229,.44);
}

.section-heading {
  margin: 0 4px 26px;
  padding-bottom: 12px;
  text-align: center;
  border-bottom: 2px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
  letter-spacing: .08em;
}

.section-heading::after {
  display: block;
  width: 48px;
  height: 2px;
  margin: 14px auto -14px;
  content: "";
  background: var(--kin);
}

/* ===== 3つのリンクボタン ===== */
.link-list {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 34px auto 0;
  flex-direction: column;
  gap: 20px;
}

.related-link {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(118,107,91,.58);
  border-radius: 5px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 4px 10px rgba(47,37,23,.12);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.related-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  margin: 0 auto;
  object-fit: contain;
}

.related-link::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 30px;
  height: 30px;
  content: "→";
  color: #fff;
  background: rgba(64,89,110,.88);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 700;
  line-height: 29px;
  text-align: center;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s ease, right .2s ease;
}

.related-link:hover,
.related-link:focus-visible {
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 17px rgba(47,37,23,.20);
  transform: translateY(-3px);
}

.related-link:hover::after,
.related-link:focus-visible::after {
  right: 13px;
  opacity: 1;
}

/* ===== パンくず ===== */
.breadcrumb {
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  border-top: 1px solid rgba(118,107,91,.35);
  color: var(--sumi-soft);
  font-size: 12px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== フッター ===== */
.footer {
  padding: 42px 24px 25px;
  border-top: 1px solid var(--line);
  background: var(--washi-deep);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 3px 20px;
}

.footer-nav a {
  position: relative;
  padding: 13px 22px 13px 2px;
  border-bottom: 1px solid rgba(118,107,91,.45);
  font-size: 14px;
  font-weight: 700;
}

.footer-nav a::after {
  position: absolute;
  top: 50%;
  right: 4px;
  content: "›";
  color: var(--ai);
  font-size: 21px;
  transform: translateY(-53%);
}

.footer-nav a:hover {
  color: var(--ai);
  background: rgba(255,255,255,.18);
}

.copyright {
  margin: 32px 0 0;
  color: var(--sumi-soft);
  font-size: 12px;
  text-align: center;
}

/* ===== PC ===== */
@media (min-width: 1024px) {
  body {
    padding: 24px;
  }

  .site-wrap {
    max-width: 1280px;
    box-shadow: 0 0 28px rgba(0,0,0,.16);
  }

  .page-heading {
    padding: 70px 40px 64px;
  }

  .links-section {
    padding: 52px 56px 70px;
  }

  /*
    以前の小型ボタンより横幅を約2倍にした
    600px幅の横長ボタンとして表示
  */
  .link-list {
    max-width: 600px;
    gap: 24px;
  }

  .related-link {
    padding: 14px 18px;
  }

  .related-link img {
    max-height: 150px;
  }

  .breadcrumb {
    padding: 20px 56px;
  }

  .footer {
    padding: 42px 56px 26px;
  }

  .footer-nav {
    display: flex;
    justify-content: center;
    gap: 8px 20px;
  }

  .footer-nav a {
    padding: 10px 24px 10px 10px;
    border-bottom: 0;
    font-size: 15px;
  }
}

/* ===== スマートフォン ===== */
@media (max-width: 520px) {
  .page-heading {
    padding: 42px 16px 38px;
  }

  .page-heading h1 {
    font-size: 34px;
  }

  .links-section {
    padding: 32px 12px 44px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .link-list {
    gap: 15px;
    margin-top: 28px;
  }

  .related-link {
    padding: 8px;
  }

  .related-link::after {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
