@charset "UTF-8";

/* ==========================================================================
   Authify LP — design tokens (Figma variables)
   ========================================================================== */
:root {
  /* colors */
  --blue1: #276bd7;
  --blue2: #1c4c98;
  --blue3: #1bc8dc;
  --bg1: #e9f4ff;
  --panel: #f4f8ff;
  --panel-issue: #f0f3f7;
  --panel-flat: #f4f4f4;
  --white: #fff;
  --black: #000;
  --text: #000508;
  --border: #c4d6ed;
  --border-soft: #dce6f5;
  --border-line: #ebeef2;
  --border-cell: #e0edfe;
  --gray2: #4d4d4d;
  --gray3: #666;
  --gray9: #e6e6e6;
  --gray12: #fafafa;
  --gray-999: #999;
  --field: #f5f7fa;
  --control: #ebeff5;
  --green: #2eb67d;
  --green-bg: #f3fffa;
  --green-txt: #019a18;
  --red: #de2819;
  --red-bg: #fff2f0;
  --yellow: #d7a227;
  --badge-bg: #e8effa;
  --blue-pale: #c9dff5;

  /* spacing */
  --sp-2: 2px;
  --sp-4: 4px;
  --sp-6: 6px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-56: 56px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-120: 120px;
  --sp-160: 160px;

  /* radii */
  --r-4: 4px;
  --r-8: 8px;
  --r-16: 16px;
  --r-24: 24px;
  --r-32: 32px;
  --r-full: 9999px;

  /* layout */
  --page-padding: 64px;
  --section-padding-x: 120px;
  --section-padding-y: 80px;
  --container: 1200px;

  /* type */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Montserrat", var(--font-jp);

  --shadow-card: 0 0 10px rgba(21, 63, 131, 0.04);
  --shadow-card-lg: 0 0 20px rgba(21, 63, 131, 0.04);
  --shadow-solution: 0 0 8px rgba(21, 63, 131, 0.16);
  --shadow-form: 0 0 10px rgba(21, 63, 131, 0.06);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  word-break: break-word;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* visually hidden but available to assistive tech */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* line break that only applies at the mobile breakpoint */
br.u-br-m {
  display: none;
}

/* responsive visibility helpers (used to swap desktop / mobile artwork) */
.u-desktop {
  display: block;
}

.u-mobile {
  display: none;
}

/* ==========================================================================
   Shared building blocks
   ========================================================================== */
.section {
  /* explicit, so sections paint over the top visual instead of letting the
     body background show through */
  background: var(--white);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section--bg {
  background: var(--bg1);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

/* --- section heading ---------------------------------------------------- */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-48);
  text-align: center;
}

.sec-head__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  width: 100%;
}

.sec-head__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sec-head__tagline {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: var(--blue3);
}

.sec-head__lead {
  font-size: 18px;
  line-height: 1.5;
}

/* --- icon boxes --------------------------------------------------------- */
/* .ic reproduces Figma's "icon frame + inset vector" structure: the frame is
   the hit/size box, the vector sits at the inset the design specifies. */
.ic {
  position: relative;
  flex: none;
  display: block;
}

.ic > img {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
}

/* two-state icon: .ic__hover is revealed when the button changes colour */
.ic__hover {
  opacity: 0;
}

.ic--18 {
  width: 18px;
  height: 18px;
}

.ic--20 {
  width: 20px;
  height: 20px;
}

.ic--21 {
  width: 21px;
  height: 21px;
}

.ic--22 {
  width: 22px;
  height: 22px;
}

.ic--24 {
  width: 24px;
  height: 24px;
}

.ic--28 {
  width: 28px;
  height: 28px;
}

/* full-bleed vector inside the icon frame */
.ic--fill > img {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* phosphor-style icons are drawn with a 9.375% padding inside a 32u grid */
.ic--phosphor > img {
  inset: 9.375%;
  width: 81.25%;
  height: 81.25%;
}

.ic--envelope > img {
  inset: 18.75% 9.38%;
  width: 81.24%;
  height: 62.5%;
}

.ic--envelope-sm > img {
  inset: 17.19% 7.81%;
  width: 84.38%;
  height: 65.62%;
}

.ic--download > img {
  inset: 6.25% 6.25% 15.63% 6.25%;
  width: 87.5%;
  height: 78.12%;
}

.ic--caret > img {
  inset: 32.8% 14.05% 26.55%;
  width: 71.9%;
  height: 40.65%;
}

.ic--caret-lg > img {
  inset: 34.37% 15.62% 28.12%;
  width: 68.76%;
  height: 37.51%;
}

.ic--tree > img {
  inset: 12.5% 12.5% 12.5% 3.13%;
  width: 84.37%;
  height: 75%;
}

.ic--instagram > img {
  inset: 13.51% 12.5% 11.49%;
  width: 75%;
  height: 75%;
}

.ic--x > img {
  inset: 17.68% 12.5% 15.66%;
  width: 75%;
  height: 66.66%;
}

/* --- logo (mark + wordmark as two transparent layers) ------------------- */
.logo {
  position: relative;
  display: block;
  flex: none;
  width: 193.52px;
  height: 40px;
}

.logo__mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 22.16%;
  height: 99.89%;
}

.logo__text {
  position: absolute;
  left: 27.03%;
  top: 15.89%;
  width: 72.97%;
  height: 84.11%;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  height: 64px;
  padding: 0 var(--sp-24) var(--sp-2);
  border-radius: var(--r-full);
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn--primary {
  background: var(--blue1);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--blue1);
  border: 2px solid var(--blue1);
}

/* --- hover (Figma: button / ステータス=ホバー) --------------------------- */
.btn--primary:hover {
  background: var(--blue2);
}

.btn--outline:hover {
  background: var(--blue-pale);
}

/* On the dark CTA band the primary button uses the button-cta component,
   whose hover inverts to a white fill with blue label and icon. */
.cta__actions .btn--primary:hover {
  background: var(--white);
  color: var(--blue1);
}

.cta__actions .btn--primary:hover .ic__base {
  opacity: 0;
}

.cta__actions .btn--primary:hover .ic__hover {
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--blue1);
  outline-offset: 2px;
}

.cta .btn:focus-visible {
  outline-color: var(--white);
}

.btn--w300 {
  width: 300px;
}

.btn--sm {
  height: 40px;
  padding: 0 var(--sp-24);
  gap: var(--sp-4);
  font-size: 14px;
}

.btn--sm.btn--outline {
  padding-block: 0;
}

.text_link {
  display: inline-block;
  color: var(--blue1);
  text-decoration: underline;
}

.text_link:hover {
  text-decoration: none;
}

/* ==========================================================================
   Top visual — pixta_94469237 sits behind the (transparent) navbar and hero.
   Figma: 1440x896 at y=-79.5, image fill scaled to 115.73% / 103.39%.
   Painted at z-index:-1 so the first opaque section covers its lower half,
   exactly as the artboard does.
   ========================================================================== */
.page-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
}

.page-visual__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 896;
  overflow: hidden;
  transform: translateY(-8.8728%);
}

.page-visual__frame img {
  position: absolute;
  left: -15.73%;
  top: -0.01%;
  width: 115.73%;
  height: 103.39%;
  max-width: none;
  /* the image fill is mirrored in Figma */
  transform: scaleX(-1);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  padding: var(--sp-24) var(--page-padding);
  transition: background-color 0.2s ease;
}

/* toggled by the scroll listener in index.html */
.navbar.is-scrolled {
  background: var(--white);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-32);
  width: 100%;
}

.navbar__logo {
  flex: none;
}

.navbar__col {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}

.navbar__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-32);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.navbar__links a:hover {
  color: var(--blue1);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

/* hamburger — CSS-only disclosure */
.navbar__toggle-state {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.navbar__burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: -12px;
}

.navbar__burger img {
  width: 32px;
  height: 32px;
}

/* the icon flips to a close (X) mark while the drawer is open */
.navbar__burger-icon--close,
.navbar__burger-label--close,
.navbar__toggle-state:checked ~ .navbar__inner .navbar__burger-icon--open,
.navbar__toggle-state:checked ~ .navbar__inner .navbar__burger-label--open {
  display: none;
}

.navbar__toggle-state:checked ~ .navbar__inner .navbar__burger-icon--close,
.navbar__toggle-state:checked ~ .navbar__inner .navbar__burger-label--close {
  display: block;
}

.navbar__drawer {
  display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: var(--sp-64) var(--page-padding);
  overflow: hidden;
}

.hero__bg {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
  width: 100%;
  max-width: var(--container);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  width: 100%;
  text-align: center;
}

.hero__title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero__lead {
  font-size: 18px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: var(--sp-16);
}

/* ==========================================================================
   Issues (課題)
   ========================================================================== */
.issues__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  text-align: center;
}

.issues__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.issues__tagline {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  color: var(--blue3);
}

.issues__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  margin-top: var(--sp-48);
}

.issues__sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  text-align: center;
}

.issues__sub-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--blue1);
}

.issues__sub-lead {
  font-size: 18px;
  line-height: 1.5;
}

/* 4 columns × (problem / arrow / solution) built from one DOM order */
.issues__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--sp-24);
}

.issue-pair {
  display: contents;
}

.issue-card {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  padding: var(--sp-32);
  background: var(--panel-issue);
}

.issue-card__art {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.issue-card__art img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.issue-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  width: 100%;
}

.issue-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
}

.issue-card__text {
  font-size: 16px;
  line-height: 1.5;
}

.issue-arrow {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

/* the exported arrow is horizontal; rotate it to point down */
.issue-arrow img {
  width: 73px;
  height: 14.73px;
  transform: rotate(90deg);
}

.solution-card {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  padding: var(--sp-32);
  background: var(--white);
  border: 3px solid var(--blue1);
  box-shadow: var(--shadow-solution);
}

.solution-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  color: var(--blue1);
  margin-bottom: var(--sp-16);
}

.solution-card__text {
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   About (Authifyとは？)
   ========================================================================== */
.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  margin-top: var(--sp-64);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-16);
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  padding: var(--sp-32);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.about-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.about-card__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  width: 100%;
}

.about-card__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: var(--r-full);
  background: var(--panel);
}

.about-card__badge img {
  width: auto;
  height: auto;
}

.about-card__text {
  font-size: 16px;
  line-height: 1.5;
}

.about__diagram {
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.about__diagram img {
  width: 100%;
  max-width: 1200px;
  height: auto;
}

.about__closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  text-align: center;
}

.about__closing-line {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about__closing-line .is-sm {
  font-size: 36px;
}

.about__closing-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about__closing-logo {
  flex: none;
}

.about__closing-logo .logo {
  width: 338.66px;
  height: 70px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  background: var(--blue2);
  padding: var(--sp-40) var(--section-padding-x);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
}

.cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  color: var(--white);
  text-align: center;
}

.cta__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta__title .is-sm {
  font-size: 36px;
}

.cta__lead {
  font-size: 18px;
  line-height: 1.5;
}

.cta__actions {
  display: flex;
  gap: var(--sp-16);
}

/* ==========================================================================
   Timelines (ログインの流れ / 導入までの流れ)
   ========================================================================== */
.steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin-top: var(--sp-64);
}

.step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-32);
}

.step__prog {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  width: 100%;
  height: 40px;
}

.step__line {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background: rgba(39, 107, 215, 0.5);
}

.step:first-child .step__line:first-child,
.step:last-child .step__line:last-child {
  visibility: hidden;
}

.step__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--blue1);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.step__art {
  flex: none;
  width: 200px;
  height: 200px;
}

.step__cap {
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

/* “導入までの流れ” variant: text card instead of illustration */
.steps--cards .step {
  gap: var(--sp-24);
}

.step__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  width: calc(100% - 8px);
  min-height: 232px;
  padding: var(--sp-16) var(--sp-24) var(--sp-24);
  background: var(--panel);
}

.step__card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  color: var(--blue1);
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__card-text {
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

/* ==========================================================================
   Strengths (Authifyの5つの強み)
   ========================================================================== */
.strengths__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  margin-top: var(--sp-64);
}

.strength {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  padding: var(--sp-40);
  background: var(--white);
}

.strength__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.strength__title-row {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.strength__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-16);
  background: var(--blue1);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  border-radius: var(--r-32) var(--r-24) 0 var(--r-32);
}

.strength__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.strength__lead {
  font-size: 16px;
  line-height: 1.5;
}

/* --- strength 01: three feature tiles ---------------------------------- */
.strength__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-16);
}

.s-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  padding: var(--sp-24);
  background: var(--panel);
}

.s-tile__head {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  width: 100%;
}

.s-tile__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid var(--border);
}

.s-tile:first-of-type .s-tile__badge img {
  margin-top: 4px;
  margin-left: 8px;
}

.s-tile:nth-child(2) .s-tile__badge img {
  margin-top: 2px;
}

.s-tile:last-of-type .s-tile__badge img {
  margin-left: 2px;
}

.s-tile__title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.01em;
}

.s-tile__text {
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

/* --- strength 02 / 03: bullet list + illustration ---------------------- */
.strength__split {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-80);
}

.strength__points {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.point__head {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.point__title {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.01em;
}

.point__text {
  font-size: 16px;
  line-height: 1.5;
}

.strength__panel {
  flex: none;
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-32);
  padding: var(--sp-32);
  background: var(--panel);
  overflow: hidden;
}

.strength__panel img {
  width: 100%;
  height: auto;
}

.strength__panel--tight {
  gap: var(--sp-16);
}

.strength__panel-caption {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.strength__panel-caption .is-accent {
  font-size: 22px;
  color: var(--blue1);
}

.flow-notes {
  display: flex;
  align-items: stretch;
  gap: var(--sp-8);
  width: 100%;
}

.flow-note {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-16) var(--sp-24);
  border-radius: var(--r-8);
  border: 2px solid;
}

.flow-note--in {
  background: var(--green-bg);
  border-color: var(--green);
}

.flow-note--out {
  background: var(--red-bg);
  border-color: var(--red);
}

.flow-note__title {
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}

.flow-note--in .flow-note__title {
  color: var(--green);
}

.flow-note--out .flow-note__title {
  color: var(--red);
}

.flow-note ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  font-size: 14px;
  font-weight: 500;
}

.flow-note li {
  padding-left: 1.2em;
  position: relative;
}

.flow-note li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* --- strength 04: data stays in-house --------------------------------- */
.selfhost {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.selfhost__steps {
  flex: 0 1 752px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-16);
  background: var(--panel);
}

.selfhost__row {
  display: flex;
  gap: var(--sp-40);
  width: 100%;
  max-width: 720px;
  padding: var(--sp-24);
  background: var(--white);
  border: 1px solid var(--border);
}

.selfhost__row-title {
  flex: none;
  min-width: 190px;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.01em;
}

.selfhost__row-title .is-num {
  font-family: var(--font-en);
  color: var(--blue1);
}

.selfhost__row-title .is-num--green {
  font-family: var(--font-jp);
  color: var(--green-txt);
}

.selfhost__row-title .is-num--yellow {
  font-family: var(--font-jp);
  color: var(--yellow);
}

.selfhost__tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--sp-16);
}

.selfhost__tag {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--sp-6);
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}

.selfhost__caret {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
}

.selfhost__block {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selfhost__block img {
  width: 80px;
  height: auto;
}

.selfhost__outside {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  padding: var(--sp-16);
  background: var(--panel-flat);
}

.selfhost__cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  width: 100%;
  flex: 1 1 auto;
  padding: var(--sp-16) var(--sp-8);
  background: var(--white);
  border: 1px solid var(--gray9);
}

.selfhost__cloud img {
  width: 120px;
  height: auto;
}

.selfhost__cloud-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.selfhost__cloud-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.selfhost__note {
  text-align: center;
}

.selfhost__note-top {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.selfhost__note-strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--red);
}

/* --- strength 05: three illustrated cards ----------------------------- */
.deploy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-16);
}

.deploy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  padding: var(--sp-24);
  background: var(--panel);
}

.deploy-card__art {
  width: 100%;
}

.deploy-card__art img {
  width: 100%;
  height: auto;
}

.deploy-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  width: 100%;
}

.deploy-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.01em;
  text-align: center;
}

.deploy-card__text {
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   Security (多層防御)
   ========================================================================== */
.security__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  margin-top: var(--sp-64);
}

.security__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-24);
}

.layer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  padding: var(--sp-24) var(--sp-32) var(--sp-32);
  background: var(--white);
  border: 3px solid var(--border-line);
}

.layer-card__art {
  flex: none;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  width: 100%;
}

.layer-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  width: 100%;
  padding-bottom: var(--sp-8);
  border-bottom: 2px solid var(--border-line);
}

.layer-card__num {
  flex: none;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 600;
  line-height: normal;
  color: var(--blue1);
}

.layer-card__title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
}

.layer-card__text {
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

.layer-card__measures {
  width: 100%;
}

.layer-card__measures dt {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--sp-6);
}

.layer-card__measures ul {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
}

.layer-card__measures li {
  position: relative;
  padding-left: 1.4em;
}

.layer-card__measures li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* --- RLS block --------------------------------------------------------- */
.rls {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  padding: var(--sp-32);
  background: var(--badge-bg);
}

.rls__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  text-align: center;
}

.rls__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--blue1);
}

.rls__lead {
  font-size: 18px;
  line-height: 1.5;
}

.rls__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.rls__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-16);
}

.rls-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  padding: var(--sp-24);
  background: var(--white);
}

.rls-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  width: 100%;
}

.rls-card__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: var(--r-full);
  background: var(--panel);
}

.rls-card:first-of-type .rls-card__badge img {
  margin-top: 2px;
  margin-left: 10px;
}

.rls-card:nth-child(2) .rls-card__badge img {
  margin-top: 8px;
  margin-left: 5px;
}

.rls-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.rls-card__text {
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

.rls__footnote {
  font-size: 14px;
  line-height: normal;
  color: var(--gray2);
}

/* ==========================================================================
   Comparison table
   ========================================================================== */
.cmp {
  --cmp-label: 300px;
  position: relative;
  display: grid;
  grid-template-columns: var(--cmp-label) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--sp-6);
  row-gap: var(--sp-2);
  margin-top: var(--sp-64);
}

/* blue frame around the Authify column */
.cmp__frame {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--cmp-label) + var(--sp-6));
  width: calc((100% - var(--cmp-label) - var(--sp-12)) / 2);
  outline: 3px solid var(--blue1);
  pointer-events: none;
}

.cmp__spacer {
  background: none;
}

.cmp__head {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp__head--authify {
  padding: var(--sp-24) var(--sp-16);
  background: var(--blue1);
}

.cmp__head--authify .logo {
  width: 193.52px;
  height: 40px;
}

.cmp__head--other {
  gap: var(--sp-16);
  padding: var(--sp-16);
  background: var(--gray12);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cmp-row {
  display: contents;
}

.cmp-row__label {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: 48px;
  padding: var(--sp-12) var(--sp-16);
  background: var(--white);
  font-size: 14px;
  letter-spacing: 0.07em;
}

.cmp-row__cell {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  min-height: 48px;
  padding: var(--sp-12) var(--sp-32);
  font-size: 14px;
  letter-spacing: 0.07em;
}

.cmp-row__cell--authify {
  background: var(--white);
}

.cmp-row__cell--other {
  background: var(--gray12);
}

.cmp-row__who {
  display: none;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-64);
  padding: var(--sp-64) var(--sp-160);
  background: var(--white);
  box-shadow: var(--shadow-form);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  width: 100%;
}

.form__row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-80);
}

.form__label {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  width: 280px;
  min-height: 56px;
}

.form__row--stack .form__label {
  align-items: flex-start;
  padding-top: var(--sp-4);
  min-height: 0;
}

.form__tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px 4px;
  border-radius: var(--r-4);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.02em;
}

.form__tag--required {
  background: var(--red);
}

.form__tag--optional {
  background: var(--blue2);
}

.form__label-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.05em;
}

.form__field {
  flex: 1 1 0;
  min-width: 0;
}

.form__control {
  display: block;
  width: 100%;
  height: 56px;
  padding: var(--sp-16);
  background: var(--field);
  border: 1px solid var(--border-soft);
  border-radius: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 26px;
  color: var(--black);
}

.form__control::placeholder {
  color: var(--gray-999);
}

.form__control:focus-visible {
  outline: 2px solid var(--blue1);
  outline-offset: -2px;
}

textarea.form__control {
  height: 200px;
  resize: vertical;
}

.form__select {
  width: 320px;
  max-width: 100%;
  appearance: none;
  background-image: url("../assets/icon-caret-down-sel.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16.5px 9px;
  line-height: 22px;
  padding-right: 48px;
  cursor: pointer;
}

.form__options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.form__option {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  cursor: pointer;
  font-size: 16px;
  line-height: 26px;
  transition: color 0.15s ease;
}

.form__option input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background-color: var(--control);
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* --- checkbox (Figma: check-txt) ---------------------------------------
   20x20 box centred in the 24px hit area; when checked it is replaced by the
   exported artwork — a filled #276BD7 box with a #fff check. */
.form__option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-inline: 2px;
  border-radius: var(--r-4);
}

.form__option input[type="checkbox"]:checked {
  background-color: transparent;
  background-image: url("../assets/icon-checkbox-on.svg");
  background-size: 24px 24px;
}

/* --- radio (Figma: radio button) --------------------------------------- */
.form__option input[type="radio"] {
  border-radius: var(--r-full);
}

/* 選択中: 1px blue ring + 12px blue dot on the light track */
.form__option input[type="radio"]:checked {
  border: 1px solid var(--blue1);
  background-image: radial-gradient(
    circle closest-side,
    var(--blue1) 98%,
    transparent 100%
  );
  background-size: 12px 12px;
}

/* エラー: 1px red ring, no dot. Driven by constraint validation, an explicit
   aria-invalid, or an .is-error class on the group. */
.form__option input[type="radio"]:user-invalid,
.form__option input[type="radio"][aria-invalid="true"],
.form__options.is-error input[type="radio"] {
  border: 1px solid var(--red);
  background-image: none;
}

.form__option input:focus-visible {
  outline: 2px solid var(--blue1);
  outline-offset: 2px;
}

/* ホバー: only the label changes colour */
.form__option:hover {
  color: var(--blue1);
}

.form__error {
  display: block;
  margin-top: var(--sp-8);
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
}

.form__option--radio {
  font-weight: 500;
  letter-spacing: 0.03em;
}

.contact__submit {
  align-self: center;
  margin-top: var(--sp-24);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  padding: var(--sp-80) var(--page-padding);
  background: var(--white);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-80);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.footer__top {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}

.footer__logo {
  flex: 1 1 0;
  min-width: 0;
}

.footer__logo .logo {
  width: 193.52px;
  height: 40px;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-32);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.footer__links a:hover {
  color: var(--blue1);
}

.footer__social {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-12);
}

.footer__credits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 5, 8, 0.15);
}

.footer__meta {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-24);
  font-size: 14px;
  line-height: 1.5;
}

.footer__copyright {
  font-family: var(--font-en);
}

.footer__meta-links {
  display: flex;
  gap: var(--sp-24);
}

.footer__meta a {
  text-decoration: underline;
}

.footer__meta a:hover {
  text-decoration: none;
}

/* back to top */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 64px;
  height: 64px;
}

.to-top img {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Collapsed navbar (≤ 1279px) — the full link row + two buttons only fits
   once the page reaches the 1280px container width
   ========================================================================== */
@media (max-width: 1279px) {
  .navbar {
    padding: 0 12px 0 var(--page-padding);
  }

  .navbar__inner {
    height: 64px;
  }

  .navbar__col {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

  .navbar__drawer {
    display: block;
    position: fixed;
    width: 100%;
    left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: var(--white);
    border-top: 0 solid var(--border-cell);
  }

  .navbar__toggle-state:checked ~ .navbar__drawer {
    max-height: 100vh;
    border-top-width: 1px;
    width: 100%;
    height: 100%;
    top: 64px;
    left: 0;
  }

  .navbar__drawer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
    padding: var(--sp-24) var(--page-padding);
  }

  .navbar__drawer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-24);
    font-size: 18px;
  }

  .navbar__drawer-actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-16);
  }

  .navbar__drawer-actions .btn {
    width: 100%;
    max-width: 360px;
  }

  .selfhost__outside {
    flex: none;
  }
}

/* ==========================================================================
   Artwork swap (≤ 1023px) — below the desktop container width the wide Figma
   illustrations become unreadable, so the mobile-optimised exports are used.
   ========================================================================== */
@media (max-width: 1023px) {
  .u-desktop {
    display: none;
  }

  .u-mobile {
    display: block;
  }
}

/* ==========================================================================
   Mobile (≤ 767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --page-padding: 20px;
    --section-padding-x: 16px;
    --section-padding-y: 48px;
  }

  .u-desktop {
    display: none;
  }

  .u-mobile {
    display: block;
  }

  br.u-br-m {
    display: inline;
  }

  /* --- navbar --------------------------------------------------------- */
  .navbar,
  .navbar.is-scrolled {
    background: var(--white);
  }

  .navbar__logo .logo {
    width: 120px;
    height: 25px;
  }

  .navbar__drawer-inner {
    gap: var(--sp-24);
  }

  .navbar__drawer-links {
    font-size: 16px;
    gap: var(--sp-16);
  }

  .navbar__drawer-actions {
    flex-direction: column;
    gap: var(--sp-16);
  }
  

  /* the hero carries its own copy of the visual on mobile (see Figma) */
  .page-visual {
    display: none;
  }

  /* --- hero ----------------------------------------------------------- */
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: var(--sp-64) var(--sp-24);
    gap: var(--sp-48);
  }

  .hero__bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .hero__bg img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 32% center;
    transform: scaleX(-1);
  }

  .hero__inner {
    align-items: stretch;
  }

  .hero__copy {
    gap: 20px;
    text-align: left;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-16);
  }

  /* --- shared heads --------------------------------------------------- */
  .sec-head {
    gap: var(--sp-24);
  }

  .sec-head__title,
  .issues__title {
    font-size: 36px;
  }

  .sec-head__tagline,
  .issues__tagline {
    font-size: 18px;
  }

  .sec-head__lead {
    font-size: 16px;
  }

  /* --- issues --------------------------------------------------------- */
  .issues__body {
    gap: var(--sp-40);
    margin-top: var(--sp-24);
  }

  .issues__sub-title {
    font-size: 24px;
  }

  .issues__sub-lead {
    font-size: 16px;
  }

  .issues__grid {
    display: flex;
    flex-direction: column;
    gap: var(--sp-40);
  }

  .issue-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .issue-card,
  .solution-card {
    width: 100%;
    padding: var(--sp-24);
  }

  .issue-card__art {
    height: 100px;
  }

  .issue-card__art img {
    max-height: 100px;
  }

  .issue-card__text,
  .solution-card__text {
    font-size: 12px;
  }

  .issue-arrow {
    height: 40px;
  }

  .issue-arrow img {
    width: 41px;
    height: 14.73px;
  }

  /* --- about ---------------------------------------------------------- */
  .about__body {
    margin-top: var(--sp-40);
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .about-card {
    gap: var(--sp-8);
    padding: var(--sp-16);
  }

  .about-card__main {
    flex-direction: row;
    justify-content: center;
    gap: var(--sp-16);
  }

  .about-card__badge {
    width: 90px;
    height: 90px;
  }

  .about-card__badge img {
    width: auto;
    height: auto;
    max-width: 64%;
    max-height: 64%;
  }

  .about-card:first-of-type .about-card__badge img {
    margin-right: 6px;
  }

  .about-card:nth-child(4) .about-card__badge img {
    margin-left: 4px;
  }

  .about-card__text {
    flex: 1 1 0;
    min-width: 0;
    font-size: 12px;
  }

  .about__diagram {
    display: contents;
    margin-inline: calc(var(--section-padding-x) * -1);
  }

  .about__closing-line,
  .about__closing-row {
    font-size: 32px;
    letter-spacing: 0.05em;
  }

  .about__closing-line .is-sm {
    font-size: 24px;
  }

  .about__closing-row {
    flex-wrap: wrap;
    gap: var(--sp-8);
    font-size: 28px;
  }

  .about__closing-row > span:first-of-type {
    width: 100%;
  }

  .about__closing-logo .logo {
    width: 232px;
    height: 48px;
  }

  /* --- cta ------------------------------------------------------------ */
  .cta {
    padding: var(--sp-48) var(--sp-16);
  }

  .cta__title {
    font-size: 32px;
  }

  .cta__title .is-sm {
    font-size: 24px;
  }

  .cta__lead {
    font-size: 16px;
  }

  .cta__actions {
    flex-direction: column;
    gap: var(--sp-16);
  }

  /* --- timelines ------------------------------------------------------ */
  .steps {
    flex-direction: column;
    align-items: stretch;
    margin-top: var(--sp-32);
  }

  .step {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-24);
  }

  .step__prog {
    flex-direction: column;
    width: 28px;
    height: auto;
    align-self: stretch;
    min-height: 156px;
    gap: 0;
  }

  .steps.steps--cards .step__prog {
    min-height: 116px;
  }

  .step__line {
    width: 1px;
    height: auto;
  }

  .step__num {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .step__art {
    width: 124px;
    height: 124px;
  }

  .step__cap {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
    font-size: 14px;
    max-width: 150px;
  }

  .steps--cards .step {
    gap: var(--sp-8);
  }

  .step__card {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    align-items: flex-start;
    padding: var(--sp-16);
  }

  .step__card-title {
    height: auto;
    justify-content: flex-start;
    font-size: 16px;
    text-align: left;
  }

  .step__card-text {
    font-size: 12px;
  }

  /* --- strengths ------------------------------------------------------ */
  .strengths__list {
    margin-top: var(--sp-40);
  }

  .strength {
    gap: var(--sp-24);
    padding: var(--sp-16);
  }

  .strength__head {
    gap: var(--sp-16);
  }

  .strength__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-16);
  }

  .strength__title {
    font-size: 24px;
  }

  .strength__lead,
  .point__text,
  .s-tile__text,
  .deploy-card__text {
    font-size: 14px;
  }

  .strength__tiles,
  .deploy__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .s-tile {
    padding: var(--sp-16);
  }

  .s-tile__head {
    gap: var(--sp-16);
  }

  .s-tile__badge {
    width: 64px;
    height: 64px;
  }

  .s-tile__badge img {
    width: 48%;
    height: auto;
  }

  .s-tile:first-of-type .s-tile__badge img {
    width: 60%;
    margin-left: 4px;
  }

  .s-tile:last-of-type .s-tile__badge img {
    width: 45%;
  }

  .s-tile__title,
  .point__title,
  .deploy-card__title {
    font-size: 18px;
  }

  .strength__split {
    flex-direction: column;
    gap: var(--sp-24);
  }

  .strength__points {
    flex: none;
  }

  .strength__panel {
    flex: none;
    width: 100%;
    padding: var(--sp-16);
    gap: var(--sp-16);
  }

  .strength__panel-caption {
    font-size: 16px;
  }

  .strength__panel-caption .is-accent {
    font-size: 18px;
  }

  /* strength 04 */
  .selfhost {
    flex-direction: column;
    align-items: stretch;
  }

  .selfhost__steps {
    flex: none;
    width: 100%;
  }

  .selfhost__row {
    width: 100%;
    flex-direction: column;
    gap: var(--sp-12);
    padding: var(--sp-16);
  }

  .selfhost__row-title {
    font-size: 16px;
  }

  .selfhost__tags {
    flex-wrap: wrap;
    gap: var(--sp-12);
  }

  .selfhost__tag {
    flex: 0 1 auto;
    white-space: normal;
  }

  .selfhost__tag {
    font-size: 14px;
  }

  .selfhost__row:first-of-type .selfhost__tag:nth-child(2n+1) {
    width: 115px;
  }

  .selfhost__block {
    padding-block: var(--sp-8);
  }

  .selfhost__block img {
    width: 36px;
  }

  .selfhost__outside {
    flex: none;
    padding: var(--sp-16);
  }

  .selfhost__cloud img {
    width: 100px;
  }

  /* --- security ------------------------------------------------------- */
  .security__body {
    margin-top: var(--sp-40);
  }

  .security__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-16);
  }

  .layer-card {
    padding: var(--sp-16) var(--sp-24);
    gap: var(--sp-16);
  }

  .layer-card__title {
    font-size: 20px;
  }

  .layer-card__text {
    font-size: 14px;
  }

  .rls {
    padding: var(--sp-24) var(--sp-16);
  }

  .rls__title {
    font-size: 24px;
  }

  .rls__lead {
    font-size: 16px;
  }

  .rls__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rls-card {
    padding: var(--sp-16);
  }

  .rls-card__head {
    gap: var(--sp-16);
  }

  .rls-card__badge {
    width: 72px;
    height: 72px;
  }

  .rls-card__badge img {
    width: 60%;
    height: auto;
  }

  .rls-card__title {
    font-size: 18px;
  }

  .rls-card__text {
    font-size: 14px;
  }

  /* --- comparison: stacked cards -------------------------------------- */
  .cmp {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--sp-32);
    border: 1px solid var(--border-cell);
    background: var(--white);
  }

  .cmp__frame,
  .cmp__spacer,
  .cmp__head {
    display: none;
  }

  .cmp-row {
    display: block;
    border-bottom: 2px solid var(--border-cell);
  }

  .cmp-row:last-child {
    border-bottom: 0;
  }

  .cmp-row__label {
    min-height: 0;
    padding: var(--sp-12) var(--sp-16);
    background: var(--panel);
    border-bottom: 1px solid var(--border-cell);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: normal;
  }

  .cmp-row__label .ic {
    width: 24px;
    height: 24px;
  }

  .cmp-row__cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-8);
    min-height: 0;
    padding: var(--sp-16) var(--sp-16) var(--sp-8);
    background: var(--white);
    letter-spacing: normal;
  }

  .cmp-row__cell--other {
    padding: var(--sp-8) var(--sp-16) var(--sp-16);
    background: var(--white);
    border-top: 1px solid var(--border-cell);
    margin-top: var(--sp-8);
  }

  .cmp-row__who {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
  }

  .cmp-row__cell--other .cmp-row__who {
    color: var(--gray3);
  }

  .cmp-row__cell .ic {
    width: 20px;
    height: 20px;
  }

  .cmp-row__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue1);
  }

  .cmp-row__cell--other .cmp-row__value {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
  }

  /* --- contact -------------------------------------------------------- */
  .contact__card {
    gap: var(--sp-40);
    padding: var(--sp-32) var(--sp-16);
  }

  .form {
    gap: var(--sp-24);
  }

  .form__row {
    flex-direction: column;
    gap: var(--sp-16);
  }

  .form__label {
    width: 100%;
    min-height: 0;
  }

  .form__field {
    width: 100%;
  }

  .form__select {
    width: 100%;
  }

  .contact__submit {
    width: 100%;
    max-width: 300px;
  }

  /* --- footer --------------------------------------------------------- */
  .footer {
    padding: var(--sp-32) var(--sp-24);
  }

  .footer__inner {
    gap: var(--sp-40);
  }

  .footer__top {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-32);
  }

  .footer__logo {
    flex: none;
  }

  .footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--sp-16);
    justify-items: start;
  }

  .footer__social {
    flex: none;
    justify-content: flex-start;
  }

  .footer__meta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-24);
  }

  .footer__meta-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-16);
    order: -1;
  }

  .footer__copyright {
    font-size: 11px;
  }

  .to-top.is-stop {
    position: absolute;
    bottom: auto;
    top: -36px
  }
}

/* ==========================================================================
   Tablet / iPad (768–1279px) — the desktop design, scaled fluidly.
   Only the navbar collapses (see the ≤1279px block above).
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1279px) {
  :root {
    --section-padding-x: clamp(24px, 4vw, 48px);
    --page-padding: clamp(20px, 2.5vw, 32px);
  }

  /* type scale */
  .hero__title {
    font-size: clamp(34px, 4.2vw, 48px);
  }

  .hero__lead,
  .sec-head__lead,
  .cta__lead,
  .issues__sub-lead,
  .rls__lead {
    font-size: 16px;
  }

  .sec-head__title,
  .issues__title {
    font-size: clamp(28px, 3.4vw, 40px);
  }

  .issues__sub-title,
  .rls__title {
    font-size: clamp(24px, 2.9vw, 36px);
  }

  .cta__title {
    font-size: clamp(26px, 3.2vw, 40px);
  }

  .cta__title .is-sm {
    font-size: clamp(22px, 2.8vw, 36px);
  }

  .about__closing-line,
  .about__closing-row {
    font-size: clamp(26px, 3vw, 40px);
  }

  .about__closing-line .is-sm {
    font-size: clamp(22px, 2.7vw, 36px);
  }

  .about__closing-row {
    flex-wrap: wrap;
  }

  .strength__title {
    font-size: clamp(22px, 2.6vw, 32px);
  }

  /* issues */
  .issues__grid {
    column-gap: var(--sp-12);
  }

  .issue-card,
  .solution-card {
    padding: var(--sp-24) var(--sp-16);
  }

  .issue-card__text,
  .solution-card__text {
    font-size: 14px;
  }

  /* about */
  .about-card {
    padding: var(--sp-24) var(--sp-16);
  }

  .about-card__text {
    font-size: 14px;
  }

  /* the wide construction diagram keeps its intrinsic size and scrolls */
  .about__diagram {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .about__diagram img.u-desktop {
    width: 1240px;
    max-width: none;
    flex: none;
  }

  /* timelines */
  .step__art {
    width: clamp(112px, 15vw, 200px);
    height: auto;
  }

  .step__cap {
    font-size: 16px;
  }

  .step__card {
    min-height: 200px;
    padding: var(--sp-16);
  }

  .step__card-text {
    font-size: 14px;
  }

  /* strengths */
  .strength {
    gap: var(--sp-24);
    padding: var(--sp-24);
  }

  .strength__tiles,
  .deploy__grid,
  .rls__grid,
  .security__grid {
    gap: var(--sp-12);
  }

  .s-tile,
  .deploy-card,
  .rls-card {
    padding: var(--sp-16);
  }

  .s-tile__badge {
    width: 64px;
    height: 64px;
  }

  .s-tile__badge img {
    width: 60%;
    height: auto;
  }

  .s-tile__head {
    gap: var(--sp-16);
  }

  .s-tile__title,
  .point__title,
  .deploy-card__title,
  .rls-card__title,
  .layer-card__title {
    font-size: 18px;
  }

  .s-tile__text,
  .point__text,
  .deploy-card__text,
  .rls-card__text,
  .layer-card__text {
    font-size: 14px;
  }

  .strength__points {
    gap: var(--sp-16);
  }

  .strength__split {
    gap: var(--sp-32);
  }

  .strength__panel {
    width: min(600px, 52%);
    padding: var(--sp-16);
  }

  .selfhost__steps {
    flex: 1 1 0;
  }

  .selfhost__row {
    flex-wrap: wrap;
    gap: var(--sp-8);
    padding: var(--sp-16);
  }

  .selfhost__row-title,
  .selfhost__tag {
    font-size: 14px;
  }

  .selfhost__cloud img {
    width: 96px;
  }

  /* security */
  .security__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer-card {
    padding: var(--sp-24) var(--sp-16);
  }

  /* comparison */
  .cmp {
    --cmp-label: clamp(150px, 20vw, 300px);
  }

  .cmp-row__label,
  .cmp-row__cell {
    padding-inline: var(--sp-16);
    font-size: 13px;
    letter-spacing: 0.03em;
  }

  .cmp__head--authify .logo {
    width: clamp(140px, 16vw, 193.52px);
    height: auto;
    aspect-ratio: 193.518 / 40;
  }

  .cmp__head--other {
    font-size: 14px;
    text-align: center;
  }

  /* contact */
  .contact__card {
    padding: var(--sp-64) clamp(24px, 6vw, 160px);
  }

  .form__row {
    gap: clamp(24px, 4vw, 80px);
  }

  .form__label {
    width: clamp(180px, 28vw, 280px);
  }

  /* footer */
  .footer__links {
    gap: var(--sp-16);
    font-size: 13px;
  }
}

/* ==========================================================================
   Hero / CTA actions stay side by side from 450px up, shrinking to fit
   ========================================================================== */
@media (min-width: 450px) {
  .hero__actions,
  .cta__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: clamp(8px, 1.6vw, 16px);
  }

  .hero__actions .btn,
  .cta__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 300px;
    gap: clamp(4px, 1vw, 8px);
    padding-inline: clamp(10px, 2vw, 24px);
    font-size: clamp(13px, 2.4vw, 18px);
  }

  .hero__actions .ic,
  .cta__actions .ic {
    width: clamp(16px, 2.4vw, 22px);
    height: clamp(16px, 2.4vw, 22px);
  }

}

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

  * {
    transition: none !important;
  }
}

/* ==========================================================================
   お問い合わせ 確認（conf.html） / 完了（comp.html）
   トークン・.logo・.btn・.form__tag・.sec-head は上の定義をそのまま再利用する
   ========================================================================== */
.conf {
  background: var(--bg1);
  padding: var(--sp-40) var(--section-padding-x) var(--sp-80);
}

.conf__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-48);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.conf__logo {
  flex: none;
}

.conf__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-64);
  width: 100%;
  padding: var(--sp-64) var(--sp-160);
  background: var(--white);
  box-shadow: var(--shadow-form);
}

.conf__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-64);
  width: 100%;
}

/* --- 入力内容 ----------------------------------------------------------- */
.conf__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  width: 100%;
  margin: 0;
}

.conf-row {
  display: flex;
  align-items: center;
  gap: var(--sp-80);
  padding-block: var(--sp-8);
}

.conf-row--stack {
  align-items: flex-start;
}

.conf-row__label {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  width: 280px;
}

.conf-row--stack .conf-row__label {
  align-items: flex-start;
}

.conf-row__label-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.05em;
}

.conf-row__value {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 26px;
}

/* --- 送信 / 修正 -------------------------------------------------------- */
.conf__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
}

/* 修正する — 送信の下に置かれるグレーの副次ボタン */
.btn--ghost {
  width: 160px;
  height: 40px;
  gap: var(--sp-4);
  padding: 0 var(--sp-24);
  background: var(--white);
  border: 2px solid var(--gray-999);
  color: var(--gray3);
  font-size: 14px;
}

.btn--ghost:hover {
  background: var(--gray12);
  border-color: var(--gray3);
  color: var(--black);
}

/* --- 完了ページ（comp.html） -------------------------------------------- */
/* 完了ページは内容が短いので、カードを伸ばしてフッターを画面下に固定する */
.page-fill {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.conf--fill,
.conf--fill .conf__inner,
.conf--fill .conf__card {
  flex: 1 1 auto;
}

.conf__thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  width: 100%;
}

.conf__thanks-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--blue1);
}

.conf__thanks-text {
  font-size: 18px;
  line-height: 1.5;
}

/* --- 確認ページ専用フッター --------------------------------------------- */
.conf-footer {
  padding: var(--sp-24) var(--page-padding);
  background: var(--white);
  overflow: hidden;
}

.conf-footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
}

.conf-footer__copyright {
  font-family: var(--font-en);
}

.conf-footer__links {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-24);
}

.conf-footer__links a {
  text-decoration: underline;
}

.conf-footer__links a:hover {
  color: var(--blue1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1279px) {
  .conf__card {
    padding: var(--sp-64) clamp(24px, 6vw, 160px);
  }

  .conf-row {
    gap: clamp(24px, 4vw, 80px);
  }

  .conf-row__label {
    width: clamp(180px, 36vw, 280px);
  }
}

@media (max-width: 767px) {
  .conf {
    padding: var(--sp-24) var(--section-padding-x) var(--sp-48);
  }

  .conf__inner {
    gap: var(--sp-24);
  }

  .conf__card {
    gap: var(--sp-40);
    padding: var(--sp-32) var(--sp-16);
  }

  .conf__body {
    gap: var(--sp-40);
  }

  .conf-row,
  .conf-row--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-8);
  }

  .conf-row__label {
    width: 100%;
  }

  .conf__actions {
    width: 100%;
  }

  .conf__actions .btn--w300 {
    width: 100%;
    max-width: 300px;
  }

  .conf__thanks-title {
    font-size: 20px;
  }

  .conf__thanks-text {
    font-size: 16px;
  }

  .conf-footer__content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-16);
  }

  .conf-footer__links {
    order: -1;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-16);
  }

  .conf-footer__copyright {
    font-size: 11px;
  }
}
