:root {
  --navy: #063552;
  --blue: #347e9a;
  --sky: #c8e4ec;
  --cream: #f5f0e5;
  --paper: #fffdf8;
  --ink: #17303d;
  --muted: #677983;
  --yellow: #f4c34f;
  --line: rgba(6, 53, 82, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  letter-spacing: 0.035em;
}

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

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

.header-brand img,
.site-footer img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.section-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  transform: translateX(-50%);
}

.header-brand {
  display: block;
  width: 92px;
  border: 1px solid rgba(6, 53, 82, 0.12);
  background: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(380px, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: clamp(44px, 7vw, 104px);
  overflow: hidden;
  padding: 132px max(6vw, calc((100vw - 1180px) / 2)) 82px;
  background:
    radial-gradient(circle at 11% 20%, rgba(52, 126, 154, 0.11) 0 2px, transparent 2.5px) 0 0 / 25px 25px,
    linear-gradient(112deg, var(--cream) 0 56%, var(--sky) 56% 100%);
}

.hero::before {
  position: absolute;
  right: -86px;
  bottom: -118px;
  width: 330px;
  height: 330px;
  border: 54px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-number {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(50px, 5.6vw, 76px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.26;
}

.hero-title-line,
.hero-title-accent {
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.hero-title-accent {
  position: relative;
  color: var(--blue);
}

.hero-title-accent::after {
  position: absolute;
  z-index: -1;
  right: -10px;
  bottom: 8px;
  left: -5px;
  height: 15px;
  background: rgba(244, 195, 79, 0.7);
  content: "";
  transform: rotate(-1deg);
}

.hero-lead {
  margin: 30px 0 34px;
  color: #3e5662;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.primary-button {
  display: inline-flex;
  min-width: 248px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px 17px 22px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 5px 5px 0 var(--yellow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 2px 2px 0 var(--yellow);
  transform: translate(3px, 3px);
}

.hero-photo-wrap {
  position: relative;
  z-index: 1;
  padding: 26px 0 0 26px;
}

.hero-photo {
  width: 100%;
  border: 10px solid #fff;
  object-fit: cover;
  box-shadow: 20px 20px 0 var(--navy);
}

.hero-stamp {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: -10px;
  display: flex;
  width: 102px;
  height: 102px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 9px;
  letter-spacing: 0.16em;
  transform: rotate(-8deg);
}

.hero-stamp strong {
  margin-top: 3px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.hero-photo-caption {
  margin: 16px 0 0;
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: right;
}

.about,
.history,
.gallery {
  padding: 112px 0;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2,
.links h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.4;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 74px;
  align-items: stretch;
}

.name-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border: 2px solid var(--navy);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("images/260828jomogangu1_0.jpg") center / cover;
  box-shadow: 12px 12px 0 var(--sky);
}

.name-card::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 24px;
  height: 24px;
  border-right: 5px solid var(--blue);
  border-bottom: 5px solid var(--blue);
  content: "";
}

.name-card p {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.name-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: 0.08em;
}

.name-card span {
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-block {
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--line);
}

.text-block + .text-block {
  padding-top: 34px;
}

.text-block h3 {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 14px;
}

.text-block p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 2.05;
}

.works {
  padding: 112px 0;
  background: var(--navy);
  color: #fff;
}

.section-heading--light h2,
.section-heading--light .section-number {
  color: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.work-card {
  position: relative;
  min-height: 284px;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: #174f6c;
}

.work-card--accent {
  background: var(--blue);
}

.work-index {
  margin: 0 0 48px;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.work-card h3 {
  margin: 0 0 16px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 34px;
}

.work-card > p:last-child {
  max-width: 440px;
  margin: 0;
  color: #e0edf2;
  font-size: 14px;
  line-height: 1.9;
}

.community-card {
  display: grid;
  grid-template-columns: 0.52fr 1.48fr;
  gap: 36px;
  margin-top: 22px;
  padding: 42px 44px;
  background: var(--yellow);
  color: var(--navy);
}

.community-label {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.community-card h3 {
  margin: 0 0 14px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 28px;
}

.community-card div p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
}

.history {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.history .section-heading {
  margin: 0;
}

.history-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.history-year {
  margin: 0;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 68px;
  line-height: 1;
}

.history-kicker {
  margin: 0 0 9px !important;
  color: var(--blue);
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.history-row div p:last-child {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}

.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading--row > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.gallery-item {
  margin: 0;
}

.gallery-item--1,
.gallery-item--4 {
  grid-column: span 5;
}

.gallery-item--2,
.gallery-item--3 {
  grid-column: span 7;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
}

.gallery-item--1 img {
  aspect-ratio: 1 / 1;
}

.gallery-item figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 2px 5px;
}

.gallery-item figcaption span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.gallery-item figcaption strong {
  color: var(--navy);
  font-size: 13px;
}

.links {
  padding: 104px 0;
  background: var(--sky);
}

.links-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 90px;
  align-items: center;
}

.link-list {
  border-top: 1px solid var(--navy);
}

.link-list a {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 25px 5px;
  border-bottom: 1px solid var(--navy);
  transition: padding 0.2s ease, background 0.2s ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  padding-right: 15px;
  padding-left: 15px;
  background: rgba(255, 255, 255, 0.48);
}

.link-list span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.link-list strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
}

.link-list b {
  font-size: 19px;
  font-weight: 500;
}

.site-footer {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: space-between;
  padding: 40px max(6vw, calc((100vw - 1120px) / 2));
  background: var(--navy);
  color: #fff;
}

.site-footer img {
  width: 92px;
  height: auto;
  border: 5px solid #fff;
}

.site-footer p {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.16em;
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 36px);
  }

  .header-brand {
    width: 76px;
  }

  .site-nav {
    gap: 18px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 62px;
    padding: 140px 36px 88px;
    background:
      radial-gradient(circle at 11% 20%, rgba(52, 126, 154, 0.11) 0 2px, transparent 2.5px) 0 0 / 25px 25px,
      linear-gradient(165deg, var(--cream) 0 61%, var(--sky) 61% 100%);
  }

  .hero-copy {
    max-width: 580px;
  }

  .hero-photo-wrap {
    width: min(680px, 94%);
    justify-self: end;
  }

  .about-grid,
  .history,
  .links-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .history {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    width: calc(100% - 32px);
    padding-top: 16px;
  }

  .header-brand {
    width: 66px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    display: none;
  }

  .site-nav a:last-child {
    display: block;
    padding: 10px 14px;
    border: 1px solid var(--navy);
    background: rgba(255, 255, 255, 0.72);
  }

  .hero {
    gap: 54px;
    padding: 116px 20px 74px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.3;
  }

  .hero-title-line,
  .hero-title-accent {
    white-space: nowrap;
  }

  .hero-lead {
    font-size: 14px;
  }

  .primary-button {
    min-width: 230px;
  }

  .hero-photo-wrap {
    width: 96%;
    padding: 18px 0 0 12px;
  }

  .hero-photo {
    border-width: 6px;
    box-shadow: 12px 12px 0 var(--navy);
  }

  .hero-stamp {
    top: -22px;
    left: -5px;
    width: 78px;
    height: 78px;
  }

  .hero-stamp strong {
    font-size: 11px;
  }

  .about,
  .history,
  .gallery,
  .works,
  .links {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .links h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .about-grid {
    gap: 48px;
  }

  .name-card {
    min-height: 280px;
    padding: 34px 28px;
  }

  .name-card h3 {
    white-space: nowrap;
  }

  .text-block p {
    font-size: 15px;
    line-height: 1.95;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
    padding: 32px 26px;
  }

  .work-index {
    margin-bottom: 38px;
  }

  .community-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 25px;
  }

  .community-card h3 {
    font-size: 24px;
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .history-year {
    font-size: 58px;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading--row > p {
    margin-top: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-item--1,
  .gallery-item--2,
  .gallery-item--3,
  .gallery-item--4 {
    grid-column: auto;
  }

  .gallery-item img,
  .gallery-item--1 img {
    aspect-ratio: auto;
  }

  .gallery-item figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .links-inner {
    gap: 44px;
  }

  .link-list a {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .link-list a span {
    grid-column: 1 / 2;
  }

  .link-list a strong {
    grid-column: 1 / 2;
  }

  .link-list a b {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
  }

  .site-footer {
    min-height: 150px;
    padding: 32px 20px;
  }

  .site-footer img {
    width: 74px;
  }

  .site-footer p {
    max-width: 180px;
    line-height: 1.8;
    text-align: right;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 39px;
  }

  .name-card h3 {
    font-size: 38px;
  }
}

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

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