:root {
  color-scheme: light;
  --bg: #f6feff;
  --bg-soft: rgba(21, 184, 213, 0.08);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --text: #163746;
  --muted: #5c7d8f;
  --line: rgba(17, 184, 213, 0.24);
  --red: #0f95b4;
  --red-dark: #08748e;
  --cyan: #11b8d5;
  --green: #168a4b;
  --gold: #79e5ff;
  --white: #ffffff;
  --shadow: rgba(46, 133, 156, 0.14);
  --danger-bg: #ffebeb;
  --danger-text: #b42332;
  --success-bg: #e9f8ef;
  --success-text: #17613f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(17, 184, 213, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(117, 229, 255, 0.24), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f4fdff 42%, var(--bg) 100%);
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px clamp(18px, 4vw, 52px);
  pointer-events: none;
}

.brand-mark,
.brand-social-link,
.header-actions {
  pointer-events: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-weight: 800;
}

.brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(17, 184, 213, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px var(--shadow);
  color: var(--cyan);
  font-size: 15px;
}

.brand-name {
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.72);
}

.brand-social-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(17, 184, 213, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--text);
}

.brand-social-link:hover,
.brand-social-link:focus-visible {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.94);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  border: 1px solid rgba(17, 184, 213, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px var(--shadow);
  padding: 0 22px;
  backdrop-filter: blur(18px);
}

.desktop-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--text);
}

.floating-menu-button {
  position: fixed;
  top: 22px;
  right: clamp(18px, 4vw, 52px);
  z-index: 60;
  display: none;
  width: 48px;
  height: 48px;
  align-content: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(17, 184, 213, 0.26);
  border-radius: 50%;
  background: linear-gradient(145deg, #0eb7d4, #79e5ff);
  box-shadow: 0 12px 34px var(--shadow);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.floating-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--white);
  transition: transform 160ms ease, opacity 160ms ease;
}

.floating-menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.floating-menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.floating-menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.floating-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
}

.floating-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 48, 62, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

.floating-menu.is-open .menu-backdrop {
  opacity: 1;
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  align-content: center;
  gap: 26px;
  width: min(440px, 100%);
  height: 100%;
  padding: 44px clamp(28px, 7vw, 58px);
  background: var(--bg);
  color: var(--text);
  box-shadow: -28px 0 70px rgba(46, 133, 156, 0.24);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.floating-menu.is-open .menu-panel {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 184, 213, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.menu-close span {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:last-child {
  transform: rotate(-45deg);
}

.menu-kicker,
.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-kicker {
  color: var(--red);
}

.menu-links {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-links a {
  display: inline-block;
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.menu-links a:hover,
.menu-links a:focus-visible {
  color: var(--red);
}

.menu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: 136px 0 104px;
  isolation: isolate;
}

.page-shell::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background: linear-gradient(0deg, var(--bg), rgba(246, 254, 255, 0));
  content: "";
  z-index: -1;
}

.contact-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #f4fdff;
}

.contact-gradient {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(132deg) saturate(0.72) brightness(1.25);
  opacity: 0.22;
}

.contact-media::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 24%, rgba(117, 229, 255, 0.22), transparent 34%),
    radial-gradient(circle at 18% 76%, rgba(17, 184, 213, 0.12), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(122, 229, 255, 0.18), transparent 26%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 253, 255, 0.82) 48%, rgba(226, 248, 253, 0.62) 100%);
  content: "";
  z-index: 1;
}

.contact-media::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 184, 213, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 184, 213, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 80%);
  content: "";
  z-index: 2;
}

.contact-chip,
.contact-card {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 24px 34px rgba(46, 133, 156, 0.22));
  pointer-events: none;
  user-select: none;
}

.contact-chip {
  right: clamp(-24px, 7vw, 130px);
  bottom: clamp(64px, 12vw, 150px);
  width: clamp(130px, 18vw, 250px);
  transform: rotate(-12deg);
}

.contact-card-a {
  right: clamp(142px, 23vw, 360px);
  top: clamp(150px, 24vh, 250px);
  width: clamp(78px, 9vw, 132px);
  transform: rotate(12deg);
}

.contact-card-b {
  right: clamp(28px, 6vw, 100px);
  top: clamp(144px, 25vh, 270px);
  width: clamp(72px, 8vw, 118px);
  transform: rotate(-17deg);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
  border: 1px solid rgba(21, 184, 213, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(122, 229, 255, 0.14), rgba(255, 255, 255, 0.88)),
    var(--panel);
  box-shadow: 0 22px 56px var(--shadow);
  padding: clamp(26px, 4vw, 48px);
  backdrop-filter: blur(20px);
}

.contact-intro {
  display: grid;
  align-content: start;
  gap: 14px;
}

.contact-intro h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 10px 32px rgba(255, 255, 255, 0.5);
}

.contact-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field,
.attachment-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.field--wide,
.form-status {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 500;
  padding: 12px 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

select {
  min-height: 50px;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 42px;
}

textarea {
  min-height: 176px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(17, 184, 213, 0.16);
}

input[readonly],
select:disabled,
textarea:disabled {
  background: rgba(17, 184, 213, 0.07);
  color: var(--muted);
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  border: 2px solid var(--red);
  border-radius: 6px;
  background: var(--white);
  color: var(--red);
  cursor: pointer;
  padding: 0 16px;
  font-weight: 850;
}

.file-control:hover,
.file-control:focus-visible {
  background: #effcff;
  border-color: var(--red-dark);
  color: var(--red-dark);
}

.attachment-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.attachment-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 252, 255, 0.72);
  padding: 10px;
}

.attachment-preview {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(17, 184, 213, 0.08);
}

.attachment-meta {
  min-width: 0;
}

.attachment-name {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.attachment-remove {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--danger-text);
  cursor: pointer;
  font-weight: 850;
}

.attachment-remove:hover {
  background: var(--danger-bg);
}

.form-status {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
}

.form-status--success {
  border-color: rgba(22, 138, 75, 0.24);
  background: var(--success-bg);
  color: var(--success-text);
}

.form-status--error {
  border-color: rgba(223, 35, 61, 0.28);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.turnstile-container {
  min-height: 65px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
}

.submit-button:hover,
.submit-button:focus-visible {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.submit-button:disabled {
  border-color: rgba(17, 184, 213, 0.16);
  background: rgba(17, 184, 213, 0.18);
  color: rgba(22, 55, 70, 0.48);
  cursor: wait;
}

.section-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.footer-inner span {
  color: var(--text);
  font-weight: 900;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--text);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .floating-menu-button {
    display: grid !important;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand-name {
    display: none;
  }

  .floating-menu-button {
    top: 16px;
    right: 18px;
  }

  .page-shell {
    align-items: start;
    padding: 112px 0 72px;
  }

  .contact-chip {
    right: -28px;
    bottom: 12vh;
    width: 142px;
    opacity: 0.88;
  }

  .contact-card-a {
    right: 96px;
    top: 17vh;
    width: 76px;
  }

  .contact-card-b {
    right: 18px;
    top: 20vh;
    width: 68px;
  }

  .contact-panel,
  .section-inner {
    width: calc(100% - 32px);
  }

  .contact-panel {
    padding: 24px 18px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .attachment-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .attachment-preview {
    width: 58px;
    height: 46px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
