:root {
  --navy: #194f76;
  --navy-deep: #103d60;
  --sky: #bfe6ee;
  --mint: #66c1b8;
  --coral: #ef806f;
  --yellow: #ffd75e;
  --cream: #fffaf0;
  --paper: #ffffff;
  --ink: #263c4b;
  --muted: #5a6d79;
  --line: rgba(25, 79, 118, 0.15);
  --shadow: 0 26px 70px rgba(16, 61, 96, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 215, 94, 0.55) 0 5px, transparent 6px),
    radial-gradient(circle at 92% 24%, rgba(239, 128, 111, 0.38) 0 7px, transparent 8px),
    linear-gradient(145deg, #f1fbfb 0%, #d7f1f3 48%, #fff7e8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy-deep);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 20px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(25, 79, 118, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(230px, 30vw, 330px);
}

.header-link {
  color: var(--navy-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 154px);
  padding: clamp(38px, 7vw, 86px) clamp(16px, 4vw, 48px);
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.page-shell::before {
  top: 5%;
  left: -90px;
  width: 250px;
  height: 250px;
  background: rgba(102, 193, 184, 0.22);
  border: 2px dashed rgba(25, 79, 118, 0.16);
}

.page-shell::after {
  right: -120px;
  bottom: -80px;
  width: 310px;
  height: 310px;
  background: rgba(255, 215, 94, 0.2);
  border: 2px dashed rgba(239, 128, 111, 0.18);
}

.migration-card {
  display: grid;
  overflow: hidden;
  width: min(1180px, 100%);
  min-height: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
}

.migration-copy {
  display: flex;
  padding: clamp(42px, 6vw, 78px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 6px 15px;
  color: var(--navy-deep);
  background: #e8f7f6;
  border: 1px solid rgba(102, 193, 184, 0.35);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--coral);
  border-radius: 50%;
}

h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.headline-accent {
  position: relative;
  display: inline-block;
  color: var(--navy);
  white-space: nowrap;
}

.headline-accent::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0.14em;
  left: 0;
  height: 0.32em;
  content: "";
  background: var(--yellow);
  border-radius: 999px;
  opacity: 0.72;
}

.lead {
  max-width: 40rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 2;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button {
  margin-top: 32px;
  color: #fff;
  background: var(--navy-deep);
  box-shadow: 0 12px 26px rgba(16, 61, 96, 0.24);
}

.primary-button .arrow {
  font-size: 1.35em;
  line-height: 1;
}

.secondary-button {
  color: var(--navy-deep);
  background: #fff;
  border: 2px solid var(--navy-deep);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: #0b314f;
  box-shadow: 0 16px 30px rgba(16, 61, 96, 0.3);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.brand:focus-visible,
.header-link:focus-visible,
.footer-links a:focus-visible,
.destination-url:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.destination {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.destination-url {
  color: var(--navy-deep);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.bookmark-note {
  display: flex;
  margin: 26px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
}

.bookmark-note::before {
  content: "✦";
  color: var(--coral);
  font-size: 1.1em;
}

.migration-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--cream);
}

.migration-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% center;
}

.visual-message {
  position: absolute;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  left: clamp(16px, 3vw, 30px);
  padding: 18px 20px;
  color: #fff;
  background: rgba(16, 61, 96, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(16, 61, 96, 0.22);
  backdrop-filter: blur(8px);
}

.visual-message strong,
.visual-message span {
  display: block;
}

.visual-message strong {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.visual-message span {
  margin-top: 5px;
  color: #dff8f6;
  font-size: 0.86rem;
}

.site-footer {
  padding: 30px 20px;
  color: #e8f6fb;
  background: var(--navy-deep);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-name {
  font-weight: 800;
}

.footer-address {
  margin-top: 4px !important;
  color: #c9e3ec;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 0.85rem;
}

.footer-links a {
  text-underline-offset: 4px;
}

.copyright {
  margin-top: 15px !important;
  color: #9fc6d4;
  font-size: 0.75rem;
}

/* 旧フォーム・プライバシーポリシー・404用 */
.compact-shell {
  display: flex;
  min-height: calc(100vh - 154px);
  align-items: center;
}

.notice-card {
  display: grid;
  overflow: hidden;
  width: min(920px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  grid-template-columns: 180px minmax(0, 1fr);
}

.notice-mark {
  display: flex;
  min-height: 100%;
  padding: 30px;
  background: var(--navy-deep);
  align-items: center;
  justify-content: center;
}

.notice-mark img {
  width: 120px;
  padding: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.notice-content {
  padding: clamp(34px, 6vw, 62px);
}

.notice-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.notice-content .lead {
  margin-top: 20px;
}

.button-row {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button-row .primary-button,
.button-row .secondary-button {
  margin-top: 0;
}

@media (max-width: 880px) {
  .migration-card {
    grid-template-columns: 1fr;
  }

  .migration-visual {
    min-height: auto;
    aspect-ratio: 16 / 11;
  }

  .migration-visual > img {
    object-position: 66% center;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 15px 18px;
  }

  .header-inner {
    justify-content: center;
  }

  .brand img {
    width: min(260px, 76vw);
  }

  .header-link {
    display: none;
  }

  .page-shell {
    padding: 26px 14px 38px;
  }

  .migration-card,
  .notice-card {
    border-radius: 24px;
  }

  .migration-copy {
    padding: 34px 24px 30px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.77rem;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .lead {
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.9;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 60px;
  }

  .migration-visual {
    aspect-ratio: 4 / 3;
  }

  .visual-message {
    padding: 14px 16px;
    border-radius: 16px;
  }

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

  .notice-mark {
    min-height: 118px;
    padding: 20px;
  }

  .notice-mark img {
    width: 92px;
    padding: 10px;
  }

  .notice-content {
    padding: 30px 24px 34px;
  }

  .button-row {
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
