:root {
  --bg-main: #f6f6f3;
  --bg-alt: #efefe9;
  --text: #242424;
  --container: 1080px;
  --hero-bg-image: none;
  --hero-bg-position: center;
  --hero-bg-size: cover;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.page-background,
.page-overlay {
  position: fixed;
  inset: 0;
}

.page-background {
  z-index: -3;
  background-color: #ffffff;
  background-image: url("./asetts/li.png");
  background-repeat: no-repeat;
  background-position: center 15vh;
  background-size: min(72vw, 880px);
}

.page-overlay {
  z-index: -2;
  background: rgba(255, 254, 254, 0.85);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  transition: background-color 0.45s ease, backdrop-filter 0.45s ease;
}

body.is-overlay-light .page-overlay {
  background: rgba(255, 254, 254, 0.30);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 1rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-menu.is-on-hero {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-brand {
  display: inline-block;
  text-decoration: none;
  margin-left: 30px;
}

.site-brand img {
  display: block;
  width: clamp(136px, 16vw, 220px);
  height: auto;
}

.site-menu-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  padding-right: 50px;
}

.menu-toggle {
  display: none;
  border: 1px solid #a9c7e8;
  background: rgba(255, 255, 255, 0.85);
  color: #1f3b58;
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.site-menu-links a {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  color: #1e2f45;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-menu.is-on-hero .site-menu-links a {
  color: #ffffff;
}

.site-menu-links a:hover {
  background: zrgba(31, 59, 88, 0.12);
}

.site-menu.is-on-hero .site-menu-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

#hero,
.section {
  scroll-margin-top: 5.5rem;
}

.hero {
  position: relative;
  width: 100%;
  min-height: max(100svh, 640px);
  padding: 7rem 1.2rem 4.2rem;
  display: flex;
  align-items: center;
  color: #0c0b0b;
  background-image: var(--hero-bg-image);
  background-position: var(--hero-bg-position);
  background-size: var(--hero-bg-size);
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  z-index: 0;
}

.logo-layer {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 30;
  padding: 0.56rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo-layer img {
  display: block;
  width: clamp(112px, 16vw, 176px);
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.6rem;
}

.hero-message {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(1.8rem, 5vw, 5rem);
  width: 100%;
  text-align: left;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 670px;
  padding-right: 0.6rem;
}

.hero-heading {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(4rem, 9.45vw, 7rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #033c5d;
  text-wrap: balance;
}

.hero-subcopy {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(235, 248, 255, 0.9);
}

.hero-connector {
  width: min(100%, 420px);
  margin: 1.75rem 0 0;
  opacity: 0;
  animation: heroConnectorIn 0.5s ease forwards;
  animation-delay: 0.55s;
}

.hero-connector svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-logo-draw {
  width: min(100%, 430px);
  justify-self: end;
  align-self: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

.hero-logo-draw svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Draw the mural logo with a 3s stroke-dash animation */
.hero-logo-draw-path {
  fill: url(#hero-logo-draw-grad);
  fill-opacity: 0;
  stroke: #1e4e96;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--hero-logo-path-length, 1600);
  stroke-dashoffset: var(--hero-logo-path-length, 1600);
}

.hero-logo-draw.is-ready .hero-logo-draw-path {
  animation:
    heroLogoDraw 5s ease forwards,
    heroLogoFill 0.7s ease forwards 1s;
}

.hero-connector-line {
  fill: none;
  stroke: #000000;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: heroConnectorLine 4s ease forwards;
  animation-delay: 2s;
}

.hero-node {
  fill: #000000;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: heroNodeIn 0.34s ease-out forwards;
}

.hero-node.node-1 { animation-delay: 0.8s; }
.hero-node.node-2 { animation-delay: 0.96s; }
.hero-node.node-3 { animation-delay: 1.12s; }
.hero-node.node-4 { animation-delay: 1.28s; }
.hero-node.node-5 { animation-delay: 1.44s; }

@keyframes heroWordIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroFinalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroConnectorIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroConnectorLine {
  from {
    stroke-dashoffset: 700;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heroNodeIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroLogoDraw {
  from {
    stroke-dashoffset: var(--hero-logo-path-length, 1600);
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heroLogoFill {
  from {
    fill-opacity: 0;
  }
  to {
    fill-opacity: 1;
  }
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.hero p {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
}

.section {
  padding: clamp(2.6rem, 5vw, 4.5rem) 1.2rem;
  background: transparent;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-connector,
  .hero-connector-line,
  .hero-node {
    animation: none;
    opacity: 1;
  }

  .hero-logo-draw-path {
    fill-opacity: 1;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero-message {
    gap: 0.45rem;
  }

  .hero-word,
  .hero-line {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero-line-final {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero-word-accent {
    animation: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section.alt {
  background: rgba(255, 255, 255, 0.22);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

h2 {
  margin: 0 auto 1.8rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.03em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: fit-content;
}

.h2-en {
  display: block;
  line-height: 1.1;
  position: relative;
  z-index: 0;
}

.h2-en::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 8px;
  background: #a9c7e8;
  z-index: -1;
}

.h2-ja {
  display: block;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #29465f;
}

h2::before {
  content: none;
}

h2::after {
  content: none;
}

#activity h2 {
  display: flex;
  width: fit-content;
  margin: 0 auto 2rem;
  justify-content: center;
}


.text {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
}

.news-list,
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #d8d8d2;
}

.news-list span {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.news-list p {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(96, 95, 95, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.card[data-href] {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card[data-href] > * {
  position: relative;
  z-index: 1;
}

.card[data-href]::before,
.card[data-href]::after {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card[data-href]::before {
  content: "";
  background: rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.card[data-href]::after {
  content: "詳細を見る";
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 3;
}

.card[data-href]:hover::before,
.card[data-href]:hover::after,
.card[data-href]:focus-within::before,
.card[data-href]:focus-within::after {
  opacity: 1;
}

.card:hover,
.card:focus-within {
  border-color: #a9c7e8;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(132, 168, 204, 0.3);
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}

.card p {
  margin: 0.8rem 0 0;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #a9c7e8;
  color: #1f3b58;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-link:hover {
  background: #a9c7e8;
  color: #16314b;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 100%;
  margin: 0 auto;
}

.member-card {
  position: relative;
  min-height: clamp(450px, 53vw, 580px);
  border-radius: 1rem;
  perspective: 1200px;
  cursor: pointer;
}

.member-photo {
  width: 100%;
  height: clamp(220px, 30vw, 340px);
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.member-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.member-card.is-flipped .member-card-inner {
  transform: rotateY(180deg);
}

.member-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(96, 95, 95, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.member-card:hover .member-face,
.member-card.is-flipped .member-face {
  border-color: #a9c7e8;
  box-shadow: 0 14px 24px rgba(132, 168, 204, 0.3);
}

.member-back {
  transform: rotateY(180deg);
  display: grid;
  align-content: center;
  gap: 0.2rem;
}

.member-role {
  margin: 0 0 0.4rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #2f4c67;
  text-transform: uppercase;
}

.member-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.member-card p {
  margin: 0.8rem 0 0;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.member-toggle {
  margin-top: 0.65rem;
  align-self: flex-start;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #a9c7e8;
  background: rgba(255, 255, 255, 0.82);
  color: #1f3b58;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.work-list {
  display: grid;
  gap: 0.9rem;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.activity-list li {
  display: grid;
  grid-template-columns: clamp(180px, 24vw, 260px) 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(96, 95, 95, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-list li[data-href] {
  cursor: pointer;
}

.work-card[data-href] {
  cursor: pointer;
}

.activity-list li:hover,
.activity-list li:focus-within {
  border-color: #a9c7e8;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(132, 168, 204, 0.3);
}

.activity-list img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  border-radius: 0.65rem;
}

.activity-media-link {
  position: relative;
  display: block;
  border-radius: 0.65rem;
  overflow: hidden;
}

.activity-media-link img {
  display: block;
  border-radius: 0;
}

.activity-media-link::before,
.activity-media-link::after {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.activity-media-link::before {
  content: "";
  background: rgba(0, 0, 0, 0.22);
}

.activity-media-link::after {
  content: "詳細を見る";
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.activity-list li:hover .activity-media-link::before,
.activity-list li:hover .activity-media-link::after,
.activity-list li:focus-within .activity-media-link::before,
.activity-list li:focus-within .activity-media-link::after {
  opacity: 1;
}

.activity-content {
  display: grid;
  align-content: start;
}

.activity-list time {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  color: #2f4c67;
}

.activity-list h3 {
  margin: 0;
  font-size: 1.08rem;
}

.activity-list p {
  margin: 0.35rem 0 0;
}

.activity-link {
  justify-self: start;
  margin-top: 0.6rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #a9c7e8;
  background: rgba(255, 255, 255, 0.82);
  color: #1f3b58;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.activity-link:hover,
.activity-link:focus-visible {
  background: #e7f0fb;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(132, 168, 204, 0.25);
}

.activity-list .activity-content > button.activity-link {
  display: none;
}

.work-card-body > button.activity-link {
  display: none;
}

.activity-carousel {
  position: relative;
}

.works-group {
  scroll-margin-top: 7rem;
}

.works-group + .works-group {
  margin-top: 2.2rem;
}

.works-group-title {
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.9rem;
  border-left: 4px solid #a9c7e8;
  background: rgba(255, 255, 255, 0.62);
  font-size: 1.2rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  transition: transform 0.35s ease;
}

.works-carousel {
  position: relative;
}

.works-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.works-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #a9c7e8;
  background: rgba(255, 255, 255, 0.8);
  color: #1f3b58;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.works-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.works-dots {
  display: flex;
  gap: 0.35rem;
}

.works-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(31, 59, 88, 0.25);
}

.works-dot.is-active {
  background: #1f3b58;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  min-height: 520px;
  padding: 1.2rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(96, 95, 95, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover,
.work-card:focus-within {
  border-color: #a9c7e8;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(132, 168, 204, 0.3);
}

.work-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.6rem;
}

.work-card-media {
  position: relative;
  display: block;
  border-radius: 0.6rem;
  overflow: hidden;
}

.work-card-media img {
  display: block;
  border-radius: 0;
}

.work-card-media::before,
.work-card-media::after {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-card-media::before {
  content: "";
  background: rgba(0, 0, 0, 0.24);
}

.work-card-media::after {
  content: "詳細を見る";
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work-card[data-href]:hover .work-card-media::before,
.work-card[data-href]:hover .work-card-media::after,
.work-card[data-href]:focus-within .work-card-media::before,
.work-card[data-href]:focus-within .work-card-media::after {
  opacity: 1;
}

.work-card-body {
  display: grid;
  align-content: start;
}

.work-card h4 {
  margin: 0;
  font-size: 1rem;
}

.work-card p {
  margin: 0.4rem 0 0;
}

.work-point-line {
  display: block;
}

.work-point-line + .work-point-line {
  margin-top: 0.3rem;
}

.work-point-label {
  font-weight: 700;
}

.work-point-label.issue {
  color: #1e4ec8;
}

.work-point-label.solution {
  color: #c22f2f;
}

.work-list li {
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
    box-shadow: 0 8px 20px rgba(96, 95, 95, 0.08);
}

.contact-link {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #a9c7e8;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  color: #1f3b58;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  background: #a9c7e8;
  color: #16314b;
}

.form-page {
  min-height: 100vh;
}

.form-section {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #1f3b58;
  font-weight: 600;
  text-decoration: none;
}

.policy-back-link {
  margin-top: 4.4rem;
}

.contact-form {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(96, 95, 95, 0.08);
}

.policy-sheet {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(96, 95, 95, 0.08);
}

.policy-sheet h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: #1e2f45;
}

.policy-sheet p {
  margin: 0.6rem 0 0;
}

.policy-item + .policy-item {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(169, 199, 232, 0.45);
}

.policy-item h2 {
  margin: 0;
  padding: 0;
  width: auto;
  border: 0;
  display: block;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  text-align: left;
  letter-spacing: 0.02em;
}

.policy-item h2::after {
  content: none;
}

.policy-sheet ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.policy-sheet li + li {
  margin-top: 0.28rem;
}

.form-section .container {
  width: min(var(--container), calc(100% - 2.4rem));
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row + .form-row {
  margin-top: 1rem;
}

.form-row span {
  font-weight: 600;
  color: #1e2f45;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #c5d8ed;
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: #242424;
  background: rgba(255, 255, 255, 0.95);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid #9bc1e8;
  outline-offset: 1px;
}

.form-submit {
  margin-top: 1.1rem;
  padding: 0.62rem 1.1rem;
  border: 1px solid #a9c7e8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f3b58;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  background: #a9c7e8;
  color: #16314b;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f4c67;
}

.form-status.is-success {
  color: #2f4c67;
}

.form-status.is-error {
  color: #b42318;
}

.final-visual-zone {
  width: min(var(--container), calc(100% - 2.4rem));
  margin: 0 auto;
  min-height: clamp(65vh, 65vh, 70vh);
}

.overlay-light-trigger {
  width: 100%;
  min-height: inherit;
}

.footer {
  padding: 1rem 1rem 5rem;
  text-align: center;
  background: #0f335a;
  color: #ffffff;
  font-family: "Bodoni 72", "Didot", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

.footer-logo {
  display: block;
  width: clamp(140px, 20vw, 220px);
  height: auto;
  margin: 0 auto 1.2rem;
}

.footer-title {
  margin: 2rem 0 2rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.footer small {
  color: #ffffff;
  letter-spacing: 0.03em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.2rem;
  margin-bottom: 0.9rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  background: transparent;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: transparent;
  color: #f1f3f4;
  transform: translateY(-1px);
}

@media (max-width: 900px) {

  .card-link {
    display: inline-block;
  }

  .site-menu {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0;
    border-radius: 0;
    padding: 0.45rem 0.6rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-menu-links {
    display: none;
    width: 100%;
    padding: 0.45rem 0.15rem 0.1rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.22rem;
  }

  .site-menu.is-open .site-menu-links {
    display: flex;
  }

  .site-brand img {
    width: clamp(120px, 36vw, 180px);
  }

  .site-brand {
    margin-left: 1px;
  }

  .site-menu-links a {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    line-height: 1;
  }

  #hero,
  .section {
    scroll-margin-top: 6.8rem;
  }

  .hero {
    min-height: 78svh;
    padding: 6.4rem 1rem 3rem;
  }

  .hero-content {
    padding: 0;
  }

  .hero-message {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-copy {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .hero-heading {
    font-size: clamp(1.95rem, 8.8vw, 3rem);
  }

  .hero-subcopy {
    margin-top: 0.75rem;
    font-size: clamp(0.94rem, 4vw, 1.12rem);
  }

  .hero-connector {
    width: min(92vw, 360px);
    margin: 0.95rem auto 0;
  }

  .hero-logo-draw {
    width: min(70vw, 320px);
    justify-self: center;
  }

  h2 {
    gap: 0.38rem;
    font-size: clamp(1.55rem, 6.2vw, 2rem);
  }

  .h2-ja {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
  }

  h2::before,
  h2::after {
    font-size: 0.72em;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .activity-list li {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem;
    align-items: start;
  }

  .activity-list {
    display: flex;
    gap: 0;
    width: 100%;
    will-change: transform;
    transition: transform 0.35s ease;
  }

  .activity-carousel {
    overflow: hidden;
  }

  .activity-list img {
    width: 100%;
    height: 180px;
    min-height: 0;
  }

  .activity-content {
    display: block;
  }

  .activity-list .activity-content > button.activity-link {
    display: inline-block;
  }

  .work-card-body > button.activity-link {
    display: inline-block;
  }

  .activity-list h3 {
    line-height: 1.35;
  }

  .activity-list p {
    line-height: 1.65;
    word-break: break-word;
  }

  .works-grid {
    display: flex;
    gap: 0;
    width: 100%;
    transform: translateX(0);
  }

  .works-carousel {
    overflow: hidden;
  }

  .work-card {
    flex: 0 0 100%;
    min-height: 360px;
  }

  .work-card img {
  width: 100%;
  height: auto;
  }

  .works-controls {
    display: flex;
  }

  .activity-carousel .works-controls {
    display: flex;
  }

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

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

  .member-card,
  .member-card-inner {
    min-height: clamp(420px, 50svh, 500px);
  }

  .member-photo {
    height: 220px;
    object-fit: contain;
    object-position: center;
  }
  .logo-layer {
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.5rem 0.72rem;
  }

  .logo-layer img {
    width: clamp(94px, 28vw, 128px);
  }

  #contact {
    padding: 2.2rem 1.2rem 10rem;
  }

  #contact h2 {
    margin-bottom: 0.9rem;
  }

  #contact .contact-link {
    margin-top: 0.45rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .policy-back-link {
    margin-top: 3.8rem;
  }

  .policy-sheet {
    margin-top: 0.6rem;
    padding: 1rem;
  }

  .form-submit {
    margin-top: 0.9rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
  }

  #contact + .final-visual-zone {
    margin-top: 0;
  }


  .final-visual-zone {
    display: none;
  }


  .footer {
    padding: 0.2rem 0 1.4rem;
    text-align: center;
    background: #0f335a;
    color: #ffffff;
  }

  .footer-logo {
    width: clamp(150px, 52vw, 220px);
    margin: 0 auto 1rem;
  }

  .footer-title {
  margin: 1.4rem 0 2rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer-nav a {
    padding: 1.15rem 0.6rem;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    text-align: center;
    transform: none;
  }

  .footer-nav a:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer-nav a:nth-child(-n + 2) {
    border-top: 0;
  }

  .footer-nav a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .footer-nav a:hover,
  .footer-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .footer small {
    display: block;
    margin-top: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
  }

  .page-background {
    background-position: center 45vh;
  }

}



@media (max-width: 520px) {
  #hero {
    --hero-bg-size: 175%;
    --hero-bg-position: center top;
  }

  .member-card,
  .member-card-inner {
    min-height: clamp(460px, 50svh, 560px);
  }

  .member-face {
    padding: 1.15rem;
  }

  .member-photo {
    height: 220px;
    object-fit: contain;
    object-position: center;
  }

  .member-card h3 {
    font-size: 1.05rem;
  }

  .hero-content {
    padding: 1rem 1rem 1rem;
  }
  .member-card p {
    font-size: 0.92rem;
  }
}

@media (max-width: 500px) {
  #hero {
    --hero-bg-position: center top;
    --hero-bg-size: 180%;
  }

  .hero {
    min-height: 68svh;
    padding: 5.2rem 1rem 2rem;
    align-items: flex-start;
  }

  .hero-content {
    padding: 0.35rem 0.5rem 2.4rem;
  }

  .hero-message {
    gap: 0.9rem;
  }
}
