:root {
  --concept-header-height: 74px;
  --concept-serif: "Cormorant Garamond", "Times New Roman", "Noto Serif JP", serif;
}

.comparison-page {
  --concept-ink: #07356b;
  --concept-accent: #0875bd;
  --concept-line: rgba(12, 112, 180, .28);
  color: var(--blue);
  background: #fff;
}

.comparison-page.theme-b {
  --concept-ink: #fff;
  --concept-accent: #2cc9ff;
  --concept-line: rgba(77, 206, 255, .35);
}

/* The existing page below the hero intentionally keeps styles.css unchanged. */
.concept-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--concept-header-height);
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 26px;
  width: 100%;
  padding: 8px clamp(22px, 5vw, 78px);
  border-bottom: 1px solid rgba(5, 75, 130, .08);
  background: rgba(255, 255, 255, .88);
  color: #032b58;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.theme-b .concept-header {
  border-color: rgba(96, 210, 255, .16);
  background: rgba(1, 18, 41, .78);
  color: #fff;
}

.header-brand {
  display: flex;
  align-items: center;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.header-brand img {
  display: block;
  width: 65px;
  height: 56px;
  object-fit: contain;
}

.header-brand span {
  font: 600 17px/1.05 var(--concept-serif);
  letter-spacing: .04em;
}

.theme-c .header-brand span {
  font-size: 24px;
}

.theme-b .header-brand img {
  filter: grayscale(1) brightness(0) invert(1);
}

.concept-header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
}

.concept-header nav a,
.concept-header nav button {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: 700 11px/1 "Noto Sans JP", sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
}

.concept-header nav a::after,
.concept-header nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  border-top: 1px solid currentColor;
  transform: scaleX(0);
  transition: transform .25s ease;
}

.concept-header nav a:hover::after,
.concept-header nav button:hover::after {
  transform: scaleX(1);
}

.header-apply {
  padding: 13px 19px;
  border-radius: 3px;
  background: linear-gradient(135deg, #0b76b8, #0065a9);
  box-shadow: 0 8px 24px rgba(0, 80, 145, .18);
  color: #fff;
  font: 700 11px/1 "Noto Sans JP", sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
}

.theme-b .header-apply {
  background: linear-gradient(135deg, #0787d0, #00a7e6);
}

.concept-hero {
  position: relative;
  min-height: 88svh;
  padding: clamp(62px, 8vh, 95px) clamp(28px, 7vw, 112px) 100px;
  overflow: hidden;
  isolation: isolate;
  color: var(--concept-ink);
  background-color: #edf9ff;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.42) 38%, rgba(255,255,255,.03) 65%),
    url("hero-design-a.jpg");
  background-position: center;
  background-size: cover;
}

.theme-b .concept-hero {
  min-height: 96svh;
  color: #fff;
  background-color: #03142f;
  background-image:
    linear-gradient(90deg, rgba(1,17,40,.88) 0%, rgba(1,25,55,.45) 48%, rgba(1,20,44,.08) 74%),
    url("hero-design-b.jpg");
}

.theme-c .concept-hero {
  min-height: 92svh;
  background-image:
    radial-gradient(circle at 55% 9%, rgba(255,255,255,.95), transparent 25%),
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(238,249,255,.6) 48%, rgba(211,239,255,.33)),
    url("hero-design-a.jpg");
  background-position: center;
}

.theme-d .concept-hero {
  min-height: 92svh;
  background-color: #f5fbff;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.65) 37%, rgba(255,255,255,.06) 65%),
    url("hero-design-d.jpg");
  background-position: center;
  background-size: cover;
}

.theme-e .concept-hero {
  min-height: 92svh;
  background-color: #e9f7ff;
  background-image:
    linear-gradient(90deg, rgba(234,247,255,.78) 0%, rgba(233,247,255,.36) 42%, rgba(255,255,255,.02) 69%),
    url("hero-design-e.jpg");
  background-position: center;
  background-size: cover;
}

.theme-d .concept-hero h1,
.theme-e .concept-hero h1 {
  color: #082f65;
  text-shadow: 0 1px 12px rgba(255,255,255,.88);
}

.theme-d .concept-hero h1 small,
.theme-e .concept-hero h1 small {
  color: #0b4a86;
}

.theme-d .hero-wave,
.theme-e .hero-wave {
  background: #fff;
}

.concept-hero-copy {
  position: relative;
  z-index: 4;
  width: min(680px, 53vw);
}

.edition {
  margin: 0 0 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
}

.hero-en-title {
  margin: 0;
  color: #0870b7;
  font-family: var(--concept-serif);
  font-size: clamp(61px, 6.3vw, 100px);
  font-weight: 500;
  line-height: .72;
  letter-spacing: .01em;
}

.hero-en-title span {
  display: block;
  margin-top: .68em;
  font-size: .34em;
  line-height: 1;
  letter-spacing: .28em;
}

.theme-b .hero-en-title {
  display: none;
}

.concept-hero h1 {
  margin: 0;
  color: inherit;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(38px, 3.4vw, 52px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: .05em;
  text-shadow: none;
}

.concept-hero h1 span,
.concept-hero h1 small {
  display: block;
}

.concept-hero h1 span {
  white-space: nowrap;
}

.concept-hero h1 small {
  max-width: 27em;
  margin-top: 22px;
  font-size: .38em;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .08em;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

.theme-b .concept-hero h1 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(38px, 3.4vw, 52px);
  line-height: 1.42;
  letter-spacing: .12em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .3);
}

.theme-b .concept-hero h1 small {
  margin-top: 21px;
  color: #dff5ff;
  font-size: .36em;
}

.theme-c .concept-hero h1 {
  margin-top: 0;
}

.collaboration {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 66px;
  margin-top: 22px;
}

.collaboration img {
  display: block;
  object-fit: contain;
}

.collaboration .yunosato {
  width: 190px;
  height: 57px;
}

.collaboration .aquaphotomics {
  width: 62px;
  height: 62px;
}

.collaboration > span {
  color: inherit;
  font: 300 25px/1 Arial, sans-serif;
  opacity: .75;
}

.theme-b .collaboration {
  margin-top: 25px;
}

.theme-b .collaboration img {
  filter: grayscale(1) brightness(0) invert(1);
}

.hero-event {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  margin-top: 22px;
}

.hero-event p {
  margin: 0;
}

.hero-event span {
  display: block;
  margin-bottom: 2px;
  color: #4b7195;
  font: 700 10px/1.5 "Noto Sans JP", sans-serif;
  letter-spacing: .1em;
}

.theme-b .hero-event span {
  color: #78d8fa;
}

.hero-event strong {
  display: block;
  color: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.hero-apply {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 21px;
  padding: 11px 18px;
  border: 1px solid currentColor;
  border-radius: 2px;
  border-color: #0875bd;
  background: linear-gradient(180deg, #0785dc, #0038ae);
  color: #fff;
  font: 700 12px/1.2 "Noto Sans JP", sans-serif;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.hero-apply span {
  font-size: 10px;
  font-weight: 500;
  opacity: .72;
}

.hero-apply:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #0876c4, #002f91);
  color: #fff;
}

.theme-b .hero-apply {
  border-color: rgba(197, 235, 255, .85);
  background: transparent;
  color: #fff;
}

.theme-b .hero-apply:hover {
  background: #087fc4;
}

.hero-organizer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #43688e;
  font: 500 10px/1.4 "Noto Sans JP", sans-serif;
}

.hero-organizer img {
  display: block;
  width: auto;
  height: 18px;
}

.hero-organizer small {
  font-size: 10px;
}

.theme-b .hero-organizer {
  color: #d7ebf6;
}

.hero-visual {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.light-ray,
.water-drop,
.ripple,
.particle-field {
  display: none;
}

.theme-c .hero-visual::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 7%;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  background: url("aquaphotomics-drop-only.png") center / contain no-repeat;
  filter: saturate(1.15) contrast(1.06) drop-shadow(0 25px 28px rgba(0, 95, 190, .2));
  transform: scale(1.12);
}

.theme-c .hero-visual::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: 55vw;
  height: 11vw;
  border: 2px solid rgba(14, 128, 216, .3);
  border-radius: 50%;
  box-shadow: inset 0 0 45px rgba(57, 172, 232, .13), 0 0 28px rgba(72, 181, 235, .12);
}

.hero-wave {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 62px;
  background: #fff;
  clip-path: polygon(0 71%, 9% 77%, 18% 68%, 28% 77%, 39% 67%, 50% 77%, 61% 66%, 72% 75%, 83% 67%, 92% 74%, 100% 69%, 100% 100%, 0 100%);
}

.theme-b .hero-wave {
  background: #fff;
}

/* Only the hero is themed; the existing content layout remains the original. */
.comparison-page .content {
  max-width: 900px;
}

.comparison-page .contact-modal {
  color: var(--blue);
}

@media (max-width: 900px) {
  .concept-header {
    grid-template-columns: 100px 1fr auto;
    padding-right: 24px;
    padding-left: 24px;
  }

  .concept-header nav {
    gap: 16px;
  }

  .concept-header nav a:nth-child(3),
  .concept-header nav a:nth-child(4) {
    display: none;
  }

  .concept-hero {
    padding-right: 45px;
    padding-left: 45px;
  }

  .concept-hero-copy {
    width: min(600px, 64vw);
  }
}

@media (max-width: 700px) {
  :root {
    --concept-header-height: 64px;
  }

  .concept-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 5px 16px;
  }

  .header-brand img {
    width: 52px;
    height: 50px;
  }

  .header-brand span {
    display: none;
  }

  .concept-header nav {
    display: none;
  }

  .header-apply {
    padding: 11px 12px;
    font-size: 10px;
  }

  .concept-hero,
  .theme-b .concept-hero,
  .theme-c .concept-hero,
  .theme-d .concept-hero,
  .theme-e .concept-hero {
    min-height: auto;
    padding: 48px 20px 82px;
    background-position: 58% center;
  }

  .theme-b .concept-hero {
    background-position: 58% center;
  }

  .theme-c .concept-hero {
    padding-top: 330px;
    background-position: center;
  }

  .theme-d .concept-hero,
  .theme-e .concept-hero {
    min-height: auto;
    padding-top: 48px;
    background-position: 62% center;
  }

  .concept-hero-copy {
    width: 100%;
  }

  .hero-en-title {
    max-width: 100%;
    font-size: clamp(43px, 14vw, 57px);
    line-height: .83;
  }

  .concept-hero h1 {
    margin-top: 0;
    font-size: clamp(24px, 6.5vw, 30px);
    line-height: 1.45;
    letter-spacing: -.035em;
  }

  .concept-hero h1 span {
    white-space: nowrap;
  }

  .theme-b .concept-hero h1 {
    max-width: 100%;
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .concept-hero h1 small,
  .theme-b .concept-hero h1 small {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.8;
  }

  .theme-c .concept-hero h1 {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .theme-d .concept-hero h1,
  .theme-e .concept-hero h1 {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .collaboration {
    gap: 10px;
    min-height: 58px;
    margin-top: 16px;
  }

  .collaboration .yunosato {
    width: 145px;
    height: 46px;
  }

  .collaboration .aquaphotomics {
    width: 48px;
    height: 48px;
  }

  .collaboration > span {
    font-size: 20px;
  }

  .hero-event {
    display: grid;
    gap: 8px;
    margin-top: 15px;
  }

  .hero-event p {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
  }

  .hero-event span {
    margin: 0;
  }

  .hero-event strong {
    font-size: 14px;
  }

  .hero-apply {
    width: auto;
    max-width: 230px;
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
    padding: 9px 12px;
    font-size: 11px;
  }

  .hero-apply span {
    font-size: 9px;
  }

  .hero-organizer {
    flex-wrap: wrap;
  }

  .theme-c .hero-visual::before {
    top: 14px;
    right: 50%;
    width: 300px;
    transform: translateX(50%) scale(1.02);
    opacity: .96;
  }

  .theme-c .hero-visual::after {
    top: 282px;
    right: 5%;
    bottom: auto;
    width: 90%;
    height: 48px;
  }

  .hero-wave {
    height: 36px;
  }
}

@media (max-width: 420px) {
  .concept-hero,
  .theme-b .concept-hero {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hero-en-title {
    font-size: 43px;
  }

  .collaboration .yunosato {
    width: 132px;
  }
}

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

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