:root {
  --navy: #082d63;
  --blue: #247fc5;
  --sky: #eef8ff;
  --panel: rgba(255, 255, 255, 0.94);
  --line: rgba(8, 45, 99, 0.18);
  --shadow: 0 22px 60px rgba(10, 37, 70, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: linear-gradient(180deg, #f7fbff 0%, #eaf5fc 100%);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}
a { color: inherit; }

.page-shell { min-height: calc(100svh - 72px); }
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background-image: url("assets/coastal-cycling.webp");
  background-size: cover;
  background-position: center 54%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(239,248,255,.58) 29%, rgba(5,32,65,.08) 61%, rgba(4,25,51,.26) 100%),
    linear-gradient(90deg, rgba(255,255,255,.22), transparent 42%);
}
.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 56px; height: 56px; color: var(--blue); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.05;
}
.brand small { display: block; margin-top: 4px; font-weight: 700; letter-spacing: .08em; }
.thanks { margin: 0; font-weight: 700; letter-spacing: .08em; }

.hero-copy {
  width: min(920px, calc(100% - 40px));
  margin: 52px auto 0;
  padding: 28px 36px 34px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 18px 45px rgba(15,47,85,.12);
  backdrop-filter: blur(7px);
}
.bike-divider { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 10px; }
.bike-divider span { width: min(140px, 18vw); height: 1px; background: var(--blue); }
.bike-divider svg { width: 72px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
 /* font-size: clamp(2.3rem, 5vw, 4.8rem); */
 font-size: clamp(1.3rem, 3vw, 2.4rem); 

  line-height: 1.2;
  letter-spacing: .06em;
  text-wrap: balance;
}
.hero-copy p {
  margin: 20px 0 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1.15rem, 2.3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.links-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: -92px auto 48px;
  padding: 30px;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
}
.links-panel h2 {
  margin: 0 0 24px;
  text-align: center;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: .08em;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.link-card {
  min-width: 0;
  padding: 12px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--line);
  transition: transform .2s ease, background-color .2s ease;
}
.link-card:last-child { border-right: 0; }
.link-card:hover,
.link-card:focus-visible { transform: translateY(-4px); background: rgba(231,245,255,.7); outline: none; border-radius: 18px; }
.link-card img { width: 135px; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; padding: 4px; }
.social-icon {
  width: 46px;
  height: 46px;
  margin-top: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
}
.x-icon { background: #050505; }
.facebook-icon { background: #1877f2; font-family: Arial, sans-serif; font-size: 2rem; }
.note-icon { background: #41c9b5; border-radius: 10px; text-transform: lowercase; }
.mail-icon { background: #12498c; }
.link-card strong { margin-top: 9px; font-size: 1.1rem; }
.link-card small { margin-top: 4px; font-weight: 700; color: #31567e; }

.site-footer {
  min-height: 72px;
  padding: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #082d63, #0b417f);
}
.site-footer p { margin: 0; font-size: .92rem; }

@media (max-width: 860px) {
  .hero { min-height: 700px; background-position: 58% 55%; }
  .thanks { display: none; }
  .site-header { width: min(100% - 30px, 760px); padding-top: 20px; }
  .hero-copy { margin-top: 46px; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 16px; }
  .link-card:nth-child(2n) { border-right: 0; }
  .link-card:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 560px) {
  .hero {
    min-height: 610px;
    background-image: url("assets/coastal-cycling-mobile.webp");
    background-position: 56% 58%;
  }
  .site-header { width: calc(100% - 24px); padding: 14px 0; }
  .brand-mark { width: 42px; height: 42px; }
  .brand strong { font-size: 1.16rem; }
  .brand small { font-size: .7rem; }
  .hero-copy {
    width: calc(100% - 28px);
    margin-top: 36px;
    padding: 22px 16px 26px;
    border-radius: 22px;
  }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); line-height: 1.25; }
  .hero-copy p { font-size: 1rem; margin-top: 15px; }
  .bike-divider { gap: 10px; }
  .bike-divider svg { width: 56px; }
  .links-panel { width: calc(100% - 24px); margin-top: -54px; padding: 22px 14px; border-radius: 22px; }
  .links-panel h2 { margin-bottom: 12px; font-size: 1rem; }
  .link-card { padding: 18px 8px; }
  .link-card img { width: 112px; }
  .social-icon { width: 40px; height: 40px; font-size: 1.25rem; }
  .link-card strong { font-size: 1rem; }
  .link-card small { font-size: .72rem; }
}

@media (max-width: 370px) {
  .link-grid { grid-template-columns: 1fr; }
  .link-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .link-card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .link-card:last-child { border-bottom: 0; }
}
