@charset "utf-8";

:root {
  /* ボタン等に使うブランドのパステルグラデーション */
  --grad: linear-gradient(90deg, #d9e792, #88caea);
  /* くさび・リボン等の図形用。同系色でコントラストを上げたもの */
  --grad-bold: linear-gradient(118deg, #cfe25a 0%, #8fd08e 46%, #3fa9dd 100%);
  --paper-shadow: drop-shadow(0 10px 22px rgba(17, 45, 62, 0.18));
}
/* ==========================================================================
   株式会社Mepath コーポレートサイト（index.html / contact.html 共用）
   塾LP（Mepath総合型選抜塾）と共通のデザイントークンで構築
   - font    : Noto Sans JP
   - accent  : linear-gradient(90deg, #d9e792, #88caea)
   - hero    : linear-gradient(135deg, #67c3ee → #9fd7f3 → #b9e1d6 → #d3e7b3)
   - text    : #4b4b4b / #595959 / #636363 / #9a9a9a
   - surface : #fff card + 0 2px 14px rgba(51,51,51,.08)
   - bg      : 方眼紙（white + rgba(223,241,251,.8) 1px / 32px）
   ========================================================================== */

/* --------------------------------------------------
   reset
-------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: #595959;
  background-color: #fff;
  background-image:
    linear-gradient(0deg, transparent calc(100% - 1px), rgba(223, 241, 251, 0.8) calc(100% - 1px)),
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(223, 241, 251, 0.8) calc(100% - 1px));
  background-size: 32px 32px;
  word-break: normal;
  overflow-wrap: anywhere;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

input,
textarea,
button,
select {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------
   helpers
-------------------------------------------------- */
.inner {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-inline: 20px;
}

.section {
  padding-block: 68px;
}

.section--tint {
  background: linear-gradient(180deg, rgba(242, 249, 254, 0) 0%, rgba(242, 249, 254, 0.85) 22%, rgba(242, 249, 254, 0.85) 78%, rgba(242, 249, 254, 0) 100%);
}

.pc_only {
  display: none;
}

.sec_heading {
  letter-spacing: 0.02em;
}

.sec_heading::before {
  content: attr(data-en);
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9a9a9a;
}

.sec_heading__1 {
  display: block;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  color: #4b4b4b;
}

.sec_heading__2 {
  display: inline-block;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  background: linear-gradient(90deg, #88caea, #d9e792);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sec_lead {
  margin-top: 18px;
  max-width: 42em;
  font-size: 15px;
  color: #636363;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn::after {
  content: "";
  width: 15px;
  height: 15px;
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.btn--primary {
  color: #3f6a7f;
  background: linear-gradient(90deg, #d9e792, #88caea);
  box-shadow: 0 4px 14px rgba(102, 176, 208, 0.3);
}

.btn--primary::after,
.btn--white::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%233f6a7f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn--ghost {
  color: #5f5f5f;
  background: #fff;
  box-shadow: 0 2px 12px rgba(51, 51, 51, 0.08);
}

.btn--ghost::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%235f5f5f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn--white {
  color: #3f6a7f;
  background: #fff;
  box-shadow: 0 6px 20px rgba(9, 52, 72, 0.18);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (any-hover: hover) {
  .btn:not(:disabled):hover {
    transform: translateY(-2px);
  }
}

/* チェックリスト（LPの料金特典と同じマーク） */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #595959;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.22em;
  left: 0;
  width: 15px;
  height: 15px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23d9e792'/%3E%3Cstop offset='1' stop-color='%2388caea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 13l5 5L20 7' fill='none' stroke='url(%23g)' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --------------------------------------------------
   header
-------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(223, 241, 251, 0.9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.header__logo img {
  width: 128px;
}

.header__nav {
  display: none;
}

.header__nav_list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header__nav_list a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: #5f5f5f;
}

.header__nav_list a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d9e792, #88caea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

@media (any-hover: hover) {
  .header__nav_list a:hover::after {
    transform: scaleX(1);
  }
}

.header__cta {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 21px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* 固定ヘッダーの下にアンカー先の見出しが潜らないように */
html {
  scroll-padding-top: 80px;
}

/* --------------------------------------------------
   スマホのグローバルナビ（768px 未満）
   ・.header__nav をそのままドロワーとして使う（リンクを二重に持たない）
   ・.header に backdrop-filter があり fixed の基準がヘッダーになるため、
     absolute で「ヘッダーの直下〜画面下」を覆う
   ・開閉は js/site.js が .header に .is_open を付ける
-------------------------------------------------- */
.header__toggle {
  display: none;
}

@media (max-width: 767px) {
  .header__inner {
    justify-content: flex-start;
    gap: 10px;
  }

  .header__cta {
    margin-left: auto;
  }

  .header__toggle {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: -6px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* 3本線：中央の棒 + ::before/::after */
  .header__toggle_bar,
  .header__toggle_bar::before,
  .header__toggle_bar::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #4b4b4b;
  }

  .header__toggle_bar {
    position: relative;
  }

  .header__toggle_bar::before,
  .header__toggle_bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .header__toggle_bar::before {
    top: -7px;
  }

  .header__toggle_bar::after {
    top: 7px;
  }

  .header.is_open .header__toggle_bar {
    background: transparent;
  }

  .header.is_open .header__toggle_bar::before {
    top: 0;
    transform: rotate(45deg);
  }

  .header.is_open .header__toggle_bar::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .header__toggle:focus-visible {
    outline: 2px solid #88caea;
    outline-offset: 2px;
  }

  /* ドロワー本体：半透明の幕 + 上から出る白いパネル */
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: rgba(17, 45, 62, 0.28);
    visibility: hidden;
    opacity: 0;
  }

  .header.is_open .header__nav {
    visibility: visible;
    opacity: 1;
  }

  .header__nav_list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 100%;
    overflow-y: auto;
    padding: 8px 20px 24px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(17, 45, 62, 0.12);
  }

  .header__nav_list li + li {
    border-top: 1px solid rgba(223, 241, 251, 0.9);
  }

  .header__nav_list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    font-size: 15px;
  }

  /* 下線の代わりに右矢印 */
  .header__nav_list a::after {
    position: static;
    width: 14px;
    height: 14px;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%2388caea' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: none;
  }

  /* 開いている間は背面をスクロールさせない */
  body.is_nav_open {
    overflow: hidden;
  }
}

/* 320px 幅でもロゴ・CTA・ボタンが1行に収まるように */
@media (max-width: 374px) {
  .header__inner {
    gap: 8px;
  }

  .header__logo img {
    width: 104px;
  }

  .header__cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
  }

  .header__cta::after {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .header__nav {
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }

  .header.is_open .header__nav {
    transition: opacity 0.25s ease, visibility 0s;
  }

  .header__nav_list {
    transform: translateY(-12px);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .header.is_open .header__nav_list {
    transform: none;
  }

  .header__toggle_bar,
  .header__toggle_bar::before,
  .header__toggle_bar::after {
    transition: transform 0.25s ease, top 0.25s ease, background-color 0.2s ease;
  }
}

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

/* --------------------------------------------------
   band（全幅の写真帯）
-------------------------------------------------- */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
}

.band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 40, 58, 0.3), rgba(6, 40, 58, 0.52));
}

.band__text {
  position: relative;
  padding-inline: 20px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 20, 30, 0.45);
}

/* --------------------------------------------------
   company
-------------------------------------------------- */
.company__table {
  margin-top: 30px;
  padding: 8px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(51, 51, 51, 0.08);
}

.company__row {
  display: grid;
  gap: 2px;
  padding-block: 17px;
  border-bottom: 1px dashed #e2e8ec;
}

.company__row:last-child {
  border-bottom: 0;
}

.company__row dt {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9a9a9a;
}

.company__row dd {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4b4b4b;
}

/* --------------------------------------------------
   contact CTA
-------------------------------------------------- */
.contact {
  padding-block: 60px;
}

.contact__box {
  padding: 40px 24px 44px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(105deg, #d9e792 0%, #a9dcc8 45%, #88caea 100%);
  box-shadow: 0 8px 26px rgba(102, 176, 208, 0.22);
}

.contact__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(48, 86, 102, 0.72);
}

.contact__heading {
  margin-top: 6px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  color: #2f5364;
}

.contact__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #385c6f;
}

.contact__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact__mail {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #385c6f;
}

/* --------------------------------------------------
   footer
-------------------------------------------------- */
.footer {
  padding-block: 44px 28px;
  background: #fff;
  border-top: 1px solid rgba(223, 241, 251, 0.9);
}

.footer__inner {
  display: grid;
  gap: 30px;
}

.footer__logo img {
  width: 132px;
}

.footer__tagline {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #8a8a8a;
}

.footer__col_title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9a9a9a;
}

.footer__col ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col a,
.footer__col li {
  font-size: 13.5px;
  color: #5f5f5f;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px dashed #e6edf1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  font-size: 11.5px;
  color: #9a9a9a;
}

/* ==========================================================================
   contact.html
   ========================================================================== */
.page_head {
  position: relative;
  padding-block: 44px 52px;
  background: linear-gradient(135deg, #67c3ee 0%, #9fd7f3 52%, #cfe4b4 100%);
}

.page_head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(103deg, rgba(6, 52, 74, 0.4) 0%, rgba(6, 52, 74, 0.24) 55%, rgba(6, 52, 74, 0.06) 100%);
}

.page_head .inner {
  position: relative;
}

.page_head__en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.86);
}

.page_head__title {
  margin-top: 2px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 14px rgba(6, 52, 74, 0.26);
}

.page_head__lead {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.95;
  color: #fff;
  text-shadow: 0 1px 10px rgba(6, 52, 74, 0.3);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ステップ */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #b3bfc6;
}

.steps__item + .steps__item::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #e2e8ec;
  margin-right: 3px;
}

.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef3f6;
  font-size: 12.5px;
}

.steps__item.is_current {
  color: #4b4b4b;
}

.steps__item.is_current .steps__num {
  color: #3f6a7f;
  background: linear-gradient(90deg, #d9e792, #88caea);
}

.steps__item.is_done .steps__num {
  color: #fff;
  background: #a9d4e6;
}

/* フォーム本体 */
.form_card {
  margin-top: 24px;
  padding: 26px 20px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(51, 51, 51, 0.08);
}

.field + .field {
  margin-top: 26px;
}

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #4b4b4b;
}

.field__req,
.field__opt {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 2px;
}

.field__req {
  color: #b4615c;
  background: #fbeceb;
}

.field__opt {
  color: #8a9aa3;
  background: #eef3f6;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1.5px solid #e2e8ec;
  border-radius: 10px;
  background: #fbfdfe;
  font-size: 15px;
  line-height: 1.7;
  color: #4b4b4b;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b9c4ca;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: #88caea;
  background: #fff;
}

.field__note {
  margin-top: 6px;
  font-size: 11.5px;
  color: #9a9a9a;
}

.field__count {
  margin-top: 6px;
  font-size: 11.5px;
  text-align: right;
  color: #9a9a9a;
}

.field__error {
  display: none;
  margin-top: 7px;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #c2635d;
  background-repeat: no-repeat;
  background-position: 0 0.28em;
  background-size: 13px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23c2635d' stroke-width='2'/%3E%3Cpath d='M12 7v7M12 17.2v.3' stroke='%23c2635d' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.field.is_invalid .field__error {
  display: block;
}

.field.is_invalid input,
.field.is_invalid textarea {
  border-color: #e3b5b2;
  background: #fffafa;
}

/* ラジオ・チェックボックス */
.radios {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.radio,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8ec;
  border-radius: 10px;
  background: #fbfdfe;
  font-size: 14px;
  line-height: 1.6;
  color: #4b4b4b;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio input,
.checkbox input {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 0.1em;
  accent-color: #6fbcdd;
}

.radio:has(input:checked),
.checkbox:has(input:checked) {
  border-color: #88caea;
  background: #f2fafe;
}

.checkbox {
  margin-top: 4px;
}

.checkbox a {
  color: #4a90ab;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.form__actions .btn {
  min-width: 240px;
}

.form__actions--split {
  flex-wrap: wrap;
  gap: 12px;
}

.form__error_global {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #fbeceb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  color: #b4615c;
}

/* 確認ステップ */
.confirm__lead {
  font-size: 14px;
  line-height: 1.8;
  color: #636363;
}

.confirm__list {
  margin-top: 20px;
}

.confirm__row {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px dashed #e2e8ec;
}

.confirm__row:first-child {
  border-top: 1px dashed #e2e8ec;
}

.confirm__row dt {
  font-size: 12px
  ;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9a9a9a;
}

.confirm__row dd {
  font-size: 14.5px;
  line-height: 1.75;
  color: #4b4b4b;
  white-space: pre-wrap;
}

/* 完了ステップ */
.done {
  text-align: center;
  padding-block: 10px 6px;
}

.done__mark {
  display: block;
  width: 62px;
  margin: 0 auto;
}

.done__mark svg {
  width: 100%;
  height: auto;
}

.done__title {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 700;
  color: #4b4b4b;
}

.done__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.95;
  color: #636363;
}

.done__text a {
  color: #4a90ab;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 送信完了の演出（控えめ）--------------------------------------------
   チェックが描かれる → 波紋がひろがる → 文言が順にふわっと出る。
   STEP3 は hidden 属性が外れて表示されるので、アニメーションはその瞬間に走る。
   prefers-reduced-motion: reduce の環境では一切動かさず、静止状態で表示する。
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .done__mark {
    position: relative;
    animation: done_pop 520ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
  }

  .done__mark svg {
    position: relative;
    z-index: 1;
  }

  /* チェックの後ろで一度だけ広がる波紋 */
  .done__mark::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(136, 202, 234, 0.5);
    opacity: 0;
    pointer-events: none;
    animation: done_ripple 1100ms ease-out 280ms both;
  }

  /* ほのかな光 */
  .done__mark::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 231, 146, 0.5), rgba(136, 202, 234, 0) 70%);
    opacity: 0;
    pointer-events: none;
    animation: done_glow 950ms ease-out 200ms both;
  }

  /* チェックマークを描く */
  .done__mark svg path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: done_draw 620ms cubic-bezier(0.65, 0, 0.35, 1) 180ms forwards;
  }

  .done__title {
    animation: done_rise 520ms ease-out 640ms both;
  }

  .done__text {
    animation: done_rise 520ms ease-out 780ms both;
  }

  .done .form__actions {
    animation: done_rise 520ms ease-out 920ms both;
  }

  @keyframes done_pop {
    0% {
      transform: scale(0.72);
      opacity: 0;
    }
    60% {
      transform: scale(1.06);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  @keyframes done_draw {
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes done_ripple {
    0% {
      transform: scale(0.85);
      opacity: 0.9;
    }
    100% {
      transform: scale(1.9);
      opacity: 0;
    }
  }

  @keyframes done_glow {
    0% {
      transform: scale(0.6);
      opacity: 0;
    }
    45% {
      opacity: 1;
    }
    100% {
      transform: scale(1.45);
      opacity: 0;
    }
  }

  @keyframes done_rise {
    from {
      transform: translateY(10px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* 直接の連絡先 */
.direct {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.direct__item {
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(51, 51, 51, 0.08);
}

.direct__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.direct__value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #4b4b4b;
}

.direct__value a {
  color: #4a90ab;
}

/* --------------------------------------------------
   tablet / desktop
-------------------------------------------------- */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  .section {
    padding-block: 92px;
  }

  .pc_only {
    display: inline;
  }

  .sp_only {
    display: none;
  }

  .sec_heading::before {
    font-size: 13px;
  }

  .sec_heading__1,
  .sec_heading__2 {
    font-size: 33px;
  }

  .header__nav {
    display: block;
  }

  .band {
    min-height: 340px;
  }

  .band__text {
    font-size: 30px;
  }

  .company__table {
    padding: 10px 34px;
  }

  .company__row {
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: baseline;
    padding-block: 20px;
  }

  .contact {
    padding-block: 80px;
  }

  .contact__box {
    padding: 56px 40px 60px;
  }

  .contact__heading {
    font-size: 32px;
  }

  .footer__inner {
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
    gap: 40px;
  }

  /* contact.html */
  .page_head {
    padding-block: 60px 68px;
  }

  .page_head__title {
    font-size: 40px;
  }

  .page_head__lead {
    font-size: 15px;
  }

  .steps {
    gap: 16px;
  }

  .steps__item {
    font-size: 13px;
  }

  .form_card {
    margin-top: 30px;
    padding: 44px 48px 48px;
  }

  .radios {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .confirm__row {
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: baseline;
    padding-block: 18px;
  }

  .direct {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
  }
}

/* ==========================================================================
   Timee型のセクション構成（大きな英字見出し／斜めクリップ写真／くさび）
   ========================================================================== */

/* 英字見出し + 日本語サブ */
.sec_ttl__en {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #17262e;
}

.sec_ttl__ja {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a8c96;
}

.sec_ttl--center {
  text-align: center;
}

/* 濃色のピルボタン（Timeeの Read more 相当） */
.btn--ink {
  color: #fff;
  background: #17262e;
  box-shadow: 0 6px 18px rgba(23, 38, 46, 0.22);
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  letter-spacing: 0.02em;
}

.btn--ink::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  width: 19px;
  height: 19px;
}

/* 斜めにクリップした写真 */
.slant_photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  filter: var(--paper-shadow);
  -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.slant_photo--rev {
  -webkit-clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.slant_photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* アクセントのくさび（Timeeの黄色の三角をブランドグラデーションに置換） */
.wedge {
  position: absolute;
  z-index: 0;
  display: block;
  width: 46%;
  aspect-ratio: 1 / 1;
  background: var(--grad-bold);
}

.wedge--tl {
  top: -18px;
  left: -16px;
  -webkit-clip-path: polygon(0 0, 100% 0, 0 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.wedge--br {
  right: -16px;
  bottom: -18px;
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* --------------------------------------------------
   top message
-------------------------------------------------- */
.topmsg__inner {
  display: grid;
  gap: 30px;
}

.topmsg__visual {
  position: relative;
  padding: 18px 16px;
}

.topmsg__quote {
  margin-top: 22px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
  color: #17262e;
}

.topmsg__text {
  margin-top: 18px;
}

.topmsg__text p {
  font-size: 14.5px;
  line-height: 1.95;
  color: #5f6b72;
}

.topmsg__text p + p {
  margin-top: 14px;
}

.topmsg__sign {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e6edf1;
}

.topmsg__role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8a9aa3;
}

.topmsg__name {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #17262e;
}

.topmsg__name span {
  display: inline-block;
  margin-left: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9fb0b9;
  vertical-align: 3px;
}

.topmsg__profile {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #8a9aa3;
}

.topmsg__x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #4a8aa5;
}

.topmsg__x svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------
   service
-------------------------------------------------- */
.service {
  background: linear-gradient(180deg, rgba(242, 249, 254, 0) 0%, rgba(242, 249, 254, 0.9) 24%, rgba(242, 249, 254, 0.9) 76%, rgba(242, 249, 254, 0) 100%);
}

.service__inner {
  display: grid;
  gap: 30px;
}

.service__visual {
  position: relative;
  padding: 18px 16px;
}

.service__tag {
  display: inline-block;
  margin-top: 22px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 38, 46, 0.08);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5b8296;
}

.service__name {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #17262e;
}

.service__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #5f6b72;
}

.service__points {
  margin-top: 22px;
}

.service__actions {
  margin-top: 26px;
}

/* --------------------------------------------------
   band を斜めに
-------------------------------------------------- */
.band {
  -webkit-clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

/* --------------------------------------------------
   desktop
-------------------------------------------------- */
@media (min-width: 768px) {
  .sec_ttl__en {
    font-size: 58px;
  }

  .sec_ttl__ja {
    font-size: 14px;
  }

  .topmsg__inner {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 56px;
  }

  .topmsg__visual {
    padding: 26px 24px;
  }

  .topmsg__quote {
    margin-top: 26px;
    font-size: 27px;
  }

  .topmsg__text p {
    font-size: 15px;
  }

  .service__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }

  .service__visual {
    order: 2;
    padding: 26px 24px;
  }

  .service__body {
    order: 1;
  }

  .service__name {
    font-size: 30px;
  }

  .band {
    -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  }
}

/* ==========================================================================
   cover（表紙）
   白地に大きな英字。右側に斜めクリップの写真とブランドグラデーションのリボン。
   ========================================================================== */
.cover {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding-block: 0 44px;
}

/* 左上のくさび */
.cover__wedge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 46%;
  aspect-ratio: 1 / 0.72;
  background: linear-gradient(196deg, #cfe25a 0%, #7ccb99 40%, #3fa9dd 100%);
  filter: var(--paper-shadow);
  -webkit-clip-path: polygon(0 0, 100% 0, 0 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cover__visual {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 375 / 250;
}

.cover__photo {
  position: absolute;
  overflow: hidden;
  filter: var(--paper-shadow);
}

.cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__photo--main {
  top: 0;
  right: 0;
  width: 78%;
  height: 78%;
  -webkit-clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 82%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 82%);
}

.cover__photo--sub {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 40%;
  -webkit-clip-path: polygon(24% 0, 100% 14%, 100% 100%, 0 100%);
  clip-path: polygon(24% 0, 100% 14%, 100% 100%, 0 100%);
}

.cover__ribbon {
  position: absolute;
  background: var(--grad-bold);
  filter: var(--paper-shadow);
}

.cover__ribbon--1 {
  z-index: 2;
  top: 50%;
  right: 0;
  width: 92%;
  height: 20%;
  -webkit-clip-path: polygon(0 40%, 46% 4%, 100% 30%, 100% 62%, 46% 36%, 0 72%);
  clip-path: polygon(0 40%, 46% 4%, 100% 30%, 100% 62%, 46% 36%, 0 72%);
}

.cover__ribbon--2 {
  z-index: 2;
  right: 0;
  bottom: 2%;
  width: 66%;
  height: 22%;
  -webkit-clip-path: polygon(0 62%, 40% 26%, 100% 8%, 100% 40%, 40% 56%, 0 94%);
  clip-path: polygon(0 62%, 40% 26%, 100% 8%, 100% 40%, 40% 56%, 0 94%);
}

.cover__inner {
  position: relative;
  z-index: 3;
  margin-top: 24px;
}

.cover__en {
  display: block;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111d24;
}

.cover__ja {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #17262e;
}

.cover__lead {
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.95;
  color: #5f6b72;
}

/* ==========================================================================
   Vision / Mission
   中央にステートメント。左右に斜めクリップの写真とリボンを配置。
   ========================================================================== */
.vm {
  position: relative;
  overflow: hidden;
  padding-block: 62px;
  background: #fff;
}

.vm__inner {
  position: relative;
  z-index: 3;
  text-align: center;
}

.vm__label {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #17262e;
}

.vm__label span {
  margin: 0 2px;
  color: #a7b6bd;
}

.vm__heading {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #111d24;
}

.vm__rule {
  display: block;
  width: 190px;
  height: 1.5px;
  margin: 22px auto 0;
  background: #17262e;
}

.vm__lead {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.95;
  color: #5f6b72;
}

.vm__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* 装飾（スマホでは上下の帯として簡略表示） */
.vm__deco {
  position: absolute;
  z-index: 0;
  width: 40%;
  aspect-ratio: 1 / 1.35;
  opacity: 0.38;
}

.vm__deco--left {
  top: -4%;
  left: -20%;
}

.vm__deco--right {
  right: -20%;
  bottom: -4%;
}

.vm__photo {
  position: absolute;
  overflow: hidden;
  filter: var(--paper-shadow);
}

.vm__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vm__photo--l1 {
  top: 0;
  left: 0;
  width: 84%;
  height: 40%;
  -webkit-clip-path: polygon(0 0, 100% 10%, 84% 100%, 0 88%);
  clip-path: polygon(0 0, 100% 10%, 84% 100%, 0 88%);
}

.vm__photo--l2 {
  bottom: 0;
  left: 0;
  width: 92%;
  height: 40%;
  -webkit-clip-path: polygon(0 12%, 100% 0, 88% 96%, 0 100%);
  clip-path: polygon(0 12%, 100% 0, 88% 96%, 0 100%);
}

.vm__photo--r1 {
  top: 0;
  right: 0;
  width: 88%;
  height: 40%;
  -webkit-clip-path: polygon(14% 4%, 100% 0, 100% 92%, 0 100%);
  clip-path: polygon(14% 4%, 100% 0, 100% 92%, 0 100%);
}

.vm__photo--r2 {
  right: 0;
  bottom: 0;
  width: 80%;
  height: 40%;
  -webkit-clip-path: polygon(10% 0, 100% 8%, 100% 100%, 0 90%);
  clip-path: polygon(10% 0, 100% 8%, 100% 100%, 0 90%);
}

.vm__ribbon {
  position: absolute;
  background: var(--grad-bold);
  filter: var(--paper-shadow);
}

.vm__ribbon--l1 {
  top: 32%;
  left: 2%;
  width: 112%;
  height: 26%;
  -webkit-clip-path: polygon(0 30%, 44% 2%, 100% 26%, 100% 56%, 44% 32%, 0 74%);
  clip-path: polygon(0 30%, 44% 2%, 100% 26%, 100% 56%, 44% 32%, 0 74%);
}

.vm__ribbon--r1 {
  right: 2%;
  bottom: 32%;
  width: 112%;
  height: 26%;
  -webkit-clip-path: polygon(0 26%, 56% 2%, 100% 30%, 100% 62%, 56% 34%, 0 58%);
  clip-path: polygon(0 26%, 56% 2%, 100% 30%, 100% 62%, 56% 34%, 0 58%);
}

/* ==========================================================================
   service のキャッチコピー（Timeeの黄色マーカーをブランド色に置換）
   ========================================================================== */
.service__catch {
  margin-top: 24px;
}

.service__catch span {
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 5px;
  padding: 0 6px;
  background: linear-gradient(transparent 58%, rgba(217, 231, 146, 0.9) 58%);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: #17262e;
}

/* ==========================================================================
   desktop
   ========================================================================== */
@media (min-width: 768px) {
  .cover {
    padding-block: 0 0;
    min-height: 620px;
  }

  .cover__wedge {
    width: 26%;
    aspect-ratio: 1 / 0.58;
  }

  .cover__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    aspect-ratio: auto;
  }

  .cover__photo--main {
    top: 0;
    right: 0;
    width: 58%;
    height: 82%;
    -webkit-clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 78%);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 78%);
  }

  .cover__photo--sub {
    right: 0;
    bottom: 0;
    width: 42%;
    height: 40%;
    -webkit-clip-path: polygon(26% 0, 100% 18%, 100% 100%, 0 100%);
    clip-path: polygon(26% 0, 100% 18%, 100% 100%, 0 100%);
  }

  .cover__ribbon--1 {
    top: 58%;
    right: 0;
    width: 62%;
    height: 14%;
  }

  .cover__ribbon--2 {
    width: 40%;
    height: 18%;
  }

  .cover__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    margin-top: 0;
  }

  .cover__en {
    font-size: 96px;
  }

  .cover__ja {
    margin-top: 14px;
    font-size: 15px;
  }

  .cover__lead {
    margin-top: 44px;
    font-size: 15.5px;
  }

  .vm {
    padding-block: 110px;
  }

  .vm__label {
    font-size: 16px;
  }

  .vm__heading {
    margin-top: 18px;
    font-size: 52px;
    line-height: 1.38;
  }

  .vm__rule {
    width: 330px;
    margin-top: 30px;
  }

  .vm__lead {
    margin-top: 26px;
    font-size: 15px;
  }

  .vm__actions {
    margin-top: 40px;
  }

  .vm__deco {
    width: 34%;
    aspect-ratio: 1 / 1.25;
    opacity: 1;
  }

  .vm__deco--left {
    top: -8%;
    left: -8%;
  }

  .vm__deco--right {
    right: -8%;
    bottom: -8%;
  }

  .service__catch {
    margin-top: 28px;
  }

  .service__catch span {
    font-size: 23px;
  }
}

/* ==========================================================================
   animation
   ・スクロールで一度だけ表示（js/site.js が .is_in を付ける）
   ・prefers-reduced-motion: reduce では動かさない
   ========================================================================== */
.header {
  transition: box-shadow 0.3s ease;
}

.header.is_scrolled {
  box-shadow: 0 6px 20px rgba(17, 45, 62, 0.07);
}

@media (prefers-reduced-motion: no-preference) {

  /* 基本：下からふわっと */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
      clip-path 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
  }

  .reveal.is_in {
    opacity: 1;
    transform: none;
  }

  /* 大きな見出しは内側の行をマスクの下から送り出す
     （要素自身に clip-path をかけると IntersectionObserver が交差を検知できないため、
       観測は親、動かすのは中の span にしている） */
  .reveal.mask_up {
    opacity: 1;
    transform: none;
  }

  .mask_up > span {
    transform: translateY(112%);
    transition: transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--d, 0s);
  }

  .mask_up.is_in > span {
    transform: none;
  }

  .mask_up.is_in > span:nth-child(2) {
    transition-delay: calc(var(--d, 0s) + 110ms);
  }

  .mask_up.is_in > span:nth-child(3) {
    transition-delay: calc(var(--d, 0s) + 220ms);
  }


  /* 横から */
  .reveal--left {
    transform: translateX(-34px);
  }

  .reveal--right {
    transform: translateX(34px);
  }

  /* 罫線は中央から伸ばす */
  .reveal--rule {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--d, 0s);
    opacity: 1;
  }

  .reveal--rule.is_in {
    transform: scaleX(1);
  }

  /* キャッチコピーのマーカーは左から引く */
  .service__catch span {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--d, 0s);
  }

  .service__catch.is_in span {
    background-size: 100% 100%;
  }

  .service__catch.is_in span:nth-child(2) {
    transition-delay: calc(var(--d, 0s) + 180ms);
  }

  /* ---------- 表紙は読み込み時に組み上がる ---------- */
  @keyframes cover_text_in {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes cover_wedge_in {
    from {
      opacity: 0;
      transform: translate(-26px, -26px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes cover_photo_in {
    from {
      opacity: 0;
      transform: translate(34px, -18px) scale(1.03);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes cover_ribbon_in {
    from {
      opacity: 0;
      transform: translateX(64px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .cover__wedge {
    animation: cover_wedge_in 1.05s 0.05s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__photo--main {
    animation: cover_photo_in 1.15s 0.14s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__photo--sub {
    animation: cover_photo_in 1.15s 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__ribbon--1 {
    animation: cover_ribbon_in 1.05s 0.46s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__ribbon--2 {
    animation: cover_ribbon_in 1.05s 0.58s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__reading {
    animation: cover_text_in 0.9s 0.22s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__en {
    animation: cover_text_in 1s 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__ja {
    animation: cover_text_in 0.9s 0.46s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .cover__lead {
    animation: cover_text_in 0.9s 0.58s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
}

/* ==========================================================================
   cover の読み（ミーパス）
   ========================================================================== */
.cover__reading {
  display: block;
  margin-bottom: 10px;
  padding-left: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #6f8f9f;
}

.cover__reading::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--grad-bold);
  vertical-align: 4px;
}

@media (min-width: 768px) {
  .cover__reading {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .cover__reading::before {
    width: 30px;
    margin-right: 13px;
  }
}

/* ==========================================================================
   mission.html
   ========================================================================== */
.statement {
  padding-block: 62px 56px;
}

.vmp {
  position: relative;
  padding: 30px 0 30px 20px;
  border-left: 3px solid #e6edf1;
}

.vmp + .vmp {
  margin-top: 34px;
}

.vmp--accent {
  border-left-color: transparent;
  border-image: var(--grad-bold) 1;
  border-left-width: 3px;
  border-left-style: solid;
}

.vmp__en {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #17262e;
}

.vmp__ja {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8a9aa3;
}

.vmp__text {
  margin-top: 18px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #111d24;
}

/* ---------- story ---------- */
.story {
  max-width: 760px;
  margin: 34px auto 0;
}

.story__block + .story__block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px dashed #e2e8ec;
}

.story__ttl {
  position: relative;
  padding-left: 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  color: #17262e;
}

.story__ttl::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--grad-bold);
}

.story__block p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 2;
  color: #5f6b72;
}

/* ---------- value ---------- */
.value_sec {
  background: linear-gradient(180deg, rgba(242, 249, 254, 0) 0%, rgba(242, 249, 254, 0.9) 22%, rgba(242, 249, 254, 0.9) 78%, rgba(242, 249, 254, 0) 100%);
}

.values {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.value_card {
  padding: 26px 24px 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(17, 45, 62, 0.08);
}

.value_card__num {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--grad-bold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.value_card__title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #17262e;
}

.value_card__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: #5f6b72;
}

/* ---------- next ---------- */
.next_sec {
  padding-block: 62px 0;
}

.next {
  display: grid;
  gap: 16px;
}

.next__item {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(17, 45, 62, 0.08);
}

.next__item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 78px;
  height: 78px;
  background: var(--grad-bold);
  -webkit-clip-path: polygon(0 0, 100% 0, 0 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.next__en {
  position: relative;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: #17262e;
}

.next__ja {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a9aa3;
}

.next__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: #5f6b72;
}

.next__item .btn {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .statement {
    padding-block: 96px 80px;
  }

  .vmp {
    padding: 36px 0 36px 34px;
  }

  .vmp + .vmp {
    margin-top: 48px;
  }

  .vmp__en {
    font-size: 44px;
  }

  .vmp__ja {
    font-size: 13px;
  }

  .vmp__text {
    margin-top: 22px;
    font-size: 34px;
  }

  .story {
    margin-top: 48px;
  }

  .story__ttl {
    padding-left: 20px;
    font-size: 24px;
  }

  .story__block p {
    font-size: 15.5px;
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 44px;
  }

  .next {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .next__item {
    padding: 40px 36px 42px;
  }

  .next__en {
    font-size: 32px;
  }
}

/* 見出しのマスク（行送り出し）の土台 */
.mask_up {
  display: block;
  overflow: hidden;
}

.mask_up > span {
  display: block;
}

/* スマホでは横移動をやめる（表示前に画面外へはみ出さないように） */
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {

  .reveal--left,
  .reveal--right {
    transform: translateY(26px);
  }
}

/* ==========================================================================
   VISION 2030（index.html トップメッセージの次）
   ・左の図は canvas 描画（js/vision2030.js）。画像を増やさないため
   ・枠の形は他の写真と同じ「斜めクリップ」の語彙で、下辺だけ大きく傾ける
   ========================================================================== */
.v30__inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.v30__visual {
  position: relative;
  filter: var(--paper-shadow);
}

.v30__frame {
  position: relative;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  /* 上辺は水平、左下を内側へ、右下を持ち上げる */
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 93%, 10% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 93%, 10% 100%);
  background: linear-gradient(180deg, #4fb3e6 0%, #8fd0ef 42%, #bfe3d4 74%, #e4f0bd 100%);
}

.v30__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.v30__body {
  text-align: center;
}

.v30__ttl {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #17262e;
}

.v30__ttl > span {
  display: block;
}

.v30__catch {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: #17262e;
  text-wrap: balance;
}

.v30__text {
  margin-top: 22px;
  font-size: 14px;
  line-height: 2.1;
  color: #5f6b72;
}

/* 1行ずつ意味で区切る。狭い画面では行の中で折り返す */
.v30__text > span {
  display: block;
}

@media (min-width: 768px) {
  .v30__inner {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 64px;
  }

  .v30__visual {
    margin-left: -24px;
  }

  .v30__ttl {
    font-size: 92px;
  }

  .v30__catch {
    margin-top: 30px;
    font-size: 20px;
  }

  .v30__text {
    margin-top: 34px;
    font-size: 15.5px;
    line-height: 2.2;
  }
}

/* ==========================================================================
   NEWS（トップの最新3件 / news.html / news/*.html）
   ・カードは js/news.js が js/news-data.js から描画
   ・サムネイルは画像を使わず文字で組む（data に image があれば写真に切り替え）
   ========================================================================== */
.news {
  background: linear-gradient(135deg, #e2f3fc 0%, #eaf6f0 55%, #f1f7dc 100%);
}

.news--page {
  background: none;
}

.news_list {
  display: grid;
  gap: 40px;
  margin-top: 36px;
}

.news_card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 22px;
  border-bottom: 3px solid #17262e;
}

.news_card__link:focus-visible {
  outline: 2px solid #3fa9dd;
  outline-offset: 6px;
}

/* ----- サムネイル ----- */
.news_thumb {
  position: relative;
  display: grid;
  place-content: center;
  gap: 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-align: center;
  color: #17262e;
  background: linear-gradient(135deg, #67c3ee 0%, #9fd7f3 50%, #d3e7b3 100%);
  box-shadow: 0 2px 14px rgba(51, 51, 51, 0.08);
}

.news_thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news_thumb--leaf {
  background: linear-gradient(135deg, #d9e792 0%, #b8dcc0 50%, #88caea 100%);
}

.news_thumb--ink {
  color: #fff;
  background: #17262e;
}

/* 右下のくさび（サイト全体の図形の語彙） */
.news_thumb::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.35);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news_thumb--ink::after {
  background: var(--grad-bold);
}

.news_thumb__brand {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.news_thumb__en {
  position: relative;
  z-index: 1;
  padding-inline: 16px;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.news_thumb__ja {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ----- メタ・見出し ----- */
.news_card__meta,
.article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.news_cat {
  display: inline-block;
  padding: 3px 12px 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #fff;
  background: #17262e;
}

.news_card__meta time,
.article__meta time {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #17262e;
}

.news_card__title {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #17262e;
}

@media (any-hover: hover) {
  .news_card__link:hover .news_thumb img {
    transform: scale(1.04);
  }

  .news_card__link:hover .news_thumb::after {
    transform: scale(1.12);
    transform-origin: right bottom;
  }

  .news_card__link:hover .news_card__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }
}

.news__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 44px;
}

.news_noscript {
  margin-top: 24px;
}

.news_noscript a {
  text-decoration: underline;
}

/* ----- news.html の絞り込み ----- */
.news_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news_tab {
  min-height: 40px;
  padding: 0 18px;
  border: 2px solid #17262e;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: #17262e;
  background: #fff;
  cursor: pointer;
}

.news_tab[aria-pressed="true"] {
  color: #fff;
  background: #17262e;
}

.news_tab:focus-visible {
  outline: 2px solid #3fa9dd;
  outline-offset: 2px;
}

.news_tabs + .news_list {
  margin-top: 32px;
}

/* ----- 記事ページ ----- */
.article__inner {
  max-width: 800px;
}

.article .breadcrumb {
  margin-top: 0;
  color: #7a868c;
}

.article__head {
  margin-top: 28px;
}

.article__meta {
  justify-content: flex-start;
  margin-top: 0;
}

.article__title {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #17262e;
  text-wrap: balance;
}

.article__thumb {
  margin-top: 28px;
}

.article__thumb .news_thumb__en {
  font-size: 40px;
}

.article__body {
  margin-top: 36px;
  font-size: 15px;
  line-height: 2;
  color: #3f4b52;
}

.article__body > * + * {
  margin-top: 1.1em;
}

.article__body h2 {
  margin-top: 2.4em;
  padding-bottom: 10px;
  border-bottom: 3px solid #17262e;
  font-size: 19px;
  line-height: 1.5;
  color: #17262e;
}

.article__body ul {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(51, 51, 51, 0.08);
}

.article__body li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.article__body li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--grad-bold);
}

.article__link a {
  font-weight: 700;
  color: #2f86b3;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article__dl {
  border-top: 1px solid #e6edf1;
}

.article__dl > div {
  display: grid;
  gap: 2px;
  padding-block: 12px;
  border-bottom: 1px solid #e6edf1;
}

.article__dl dt {
  font-size: 13px;
  font-weight: 700;
  color: #17262e;
}

.article__foot {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

@media (min-width: 768px) {
  .news_list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
    margin-top: 48px;
  }

  .news_thumb__en {
    font-size: 26px;
  }

  .article__title {
    font-size: 30px;
  }

  .article__thumb .news_thumb__en {
    font-size: 60px;
  }

  .article__body {
    font-size: 16px;
  }

  .article__body h2 {
    font-size: 22px;
  }

  .article__dl > div {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }
}


/* ==========================================================================
   詳細ページ（business.html / message.html）とトップの Read more
   ・トップの Service / Top message は要点だけにして、詳しくは各ページへ
   ========================================================================== */
.topmsg__actions {
  margin-top: 26px;
}

/* message.html は本文が長いので写真を上揃えにして追従させる */
.topmsg__inner--detail {
  align-items: start;
}

/* 特長：4枚を2列 */
.values--2 .value_card__title {
  margin-top: 0;
}

/* サポートの流れ（実際に進む順番なので Step を振る） */
.flow {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  counter-reset: none;
}

.flow__item {
  position: relative;
  padding: 22px 22px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(17, 45, 62, 0.08);
}

.flow__step {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3f8fb6;
}

.flow__title {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #17262e;
}

.flow__text {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #5f6b72;
}

/* 塾LPへの導線 */
.lp_sec {
  padding-block: 20px 0;
}

.lp_box {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px 24px 40px;
  border: 3px solid #17262e;
  text-align: center;
}

.lp_box__en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5b8296;
}

.lp_box__heading {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #17262e;
}

@media (min-width: 768px) {
  .topmsg__actions {
    margin-top: 32px;
  }

  .values--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp_box {
    padding: 48px 32px 52px;
  }

  .lp_box__heading {
    font-size: 26px;
  }
}

/* 5ステップを横一列に並べるのは十分な幅があるときだけ */
@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 44px;
  }

  /* 右向きのつなぎ */
  .flow__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -13px;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-top: 2px solid #88caea;
    border-right: 2px solid #88caea;
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ==========================================================================
   表紙の「Mepath」をロゴ（img/logo.svg）に
   ・h1 の読み上げは alt の「Mepath」で従来どおり
   ・ロゴの縦横比は変えない（幅だけ指定）
   ========================================================================== */
.cover__en img {
  display: block;
  width: min(270px, 74vw);
  height: auto;
}

@media (min-width: 768px) {
  .cover__en img {
    /* 右の写真は画面の右端基準、ロゴは中央の本文幅基準で動くため、
       広い画面ほど両者が近づく。どの幅でも写真と 90px 以上あくように上限を抑える */
    width: clamp(260px, 26vw, 320px);
    margin-left: -4px; /* マークの左の余白ぶん、読みの線と揃える */
  }
}

/* ==========================================================================
   CONTACT（ページ最後の誘導）をワクワクする見せ方に
   ・HTML は触らず CSS だけで演出（index / mission / business / message / news すべてに効く）
   ・背面：大きな英字「Find your path」が流れ続けるマーキー（社名 Me + path に掛けて）
   ・箱：表紙と同じ斜めカット＋濃いブランドグラデーションがゆっくり動く
   ・左上／右下：生徒の写真が箱からはみ出して重なる（PCのみ）
   ・ボタン：まわりに光の輪が広がる
   ・prefers-reduced-motion: reduce ではすべて止めて静止表示
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: 128px 80px;
}

/* 箱の上を流れるマーキー。-50% で継ぎ目なくループさせるため同じ文言を2回ぶん持つ */
.contact::before {
  content: "Find your path \2022  Find your path \2022  Find your path \2022  Find your path \2022  ";
  position: absolute;
  top: 26px;
  left: 0;
  z-index: 0;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: pre;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(63, 169, 221, 0.45);
  transform: translateX(0);
  pointer-events: none;
}

.contact .inner {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 34px rgba(17, 45, 62, 0.18));
}

.contact__box {
  position: relative;
  padding: 56px 24px 60px;
  border-radius: 0;
  background: linear-gradient(118deg, #d4e66a 0%, #9fd79a 30%, #57b8df 62%, #cfe25a 100%);
  background-size: 220% 100%;
  box-shadow: none;
  -webkit-clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

/* 箱の中の光のくさび（表紙のくさびと同じ語彙） */
.contact__box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 60%);
  -webkit-clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.contact__box > * {
  position: relative;
}

.contact__label {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #17262e;
}

.contact__heading {
  margin-top: 10px;
  font-size: 27px;
  line-height: 1.45;
  color: #17262e;
  text-wrap: balance;
}

.contact__text {
  margin-top: 16px;
  color: #1f3a47;
}

/* スマホでは固定の改行を外して自然に折り返す */
@media (max-width: 767px) {
  .contact__text br {
    display: none;
  }
}

.contact__mail {
  margin-top: 24px;
  color: #17262e;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ボタン：大きく、まわりに光の輪 */
.contact__actions .btn {
  position: relative;
  min-height: 60px;
  padding: 0 34px;
  border-radius: 30px;
  font-size: 16px;
  color: #17262e;
  box-shadow: 0 10px 26px rgba(9, 52, 72, 0.22);
}

.contact__actions .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
}

.contact__actions .btn::after {
  transition: transform 0.25s ease;
}

@media (any-hover: hover) {
  .contact__actions .btn:hover::after {
    transform: translateX(4px);
  }
}

.contact__actions .btn:focus-visible {
  outline: 3px solid #17262e;
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .contact {
    padding-block: 230px 120px;
  }

  .contact::before {
    top: 40px;
    font-size: 150px;
    -webkit-text-stroke-width: 2px;
  }

  .contact__box {
    padding: 84px 48px 88px;
  }

  .contact__heading {
    font-size: 40px;
  }

  .contact__text {
    font-size: 15.5px;
  }

  /* はみ出す写真（CSS から読むので全ページ共通で効く） */
  .contact .inner::before,
  .contact .inner::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 170px;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    pointer-events: none;
  }

  .contact .inner::before {
    top: -36px;
    left: -4px;
    background-image: url("../img/hero-friends.webp");
    -webkit-clip-path: polygon(0 0, 100% 8%, 88% 100%, 0 92%);
    clip-path: polygon(0 0, 100% 8%, 88% 100%, 0 92%);
  }

  .contact .inner::after {
    right: -4px;
    bottom: -40px;
    background-image: url("../img/hero-brass.webp");
    -webkit-clip-path: polygon(12% 0, 100% 6%, 100% 100%, 0 94%);
    clip-path: polygon(12% 0, 100% 6%, 100% 100%, 0 94%);
  }
}

/* 写真と本文がぶつかる幅では写真を小さく */
@media (min-width: 768px) and (max-width: 1099px) {
  .contact .inner::before,
  .contact .inner::after {
    width: 120px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .contact::before {
    animation: contact_marquee 38s linear infinite;
  }

  .contact__box {
    animation: contact_grad 9s ease-in-out infinite alternate;
  }

  .contact__actions .btn::before {
    animation: contact_ring 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  }

  @keyframes contact_marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  @keyframes contact_grad {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
  }

  @keyframes contact_ring {
    0%   { opacity: 0.9; transform: scale(1); }
    70%  { opacity: 0;   transform: scale(1.16, 1.36); }
    100% { opacity: 0;   transform: scale(1.16, 1.36); }
  }
}

/* ==========================================================================
   message.html：社会的養護への取り組み（NPO法人みらいてーぶる / タウンニュース）
   ・写真2枚をサイト共通の斜めクリップで重ね、うしろに「みらいてーぶる」の黄色い丸
   ・外部リンクはカード2枚。NPOはロゴ、メディアは紙面の見出し風のバッジ
   ========================================================================== */
.act {
  --act-yellow: #fcdd48;
  background: linear-gradient(180deg, rgba(255, 249, 214, 0) 0%, rgba(255, 249, 214, 0.75) 30%, rgba(255, 249, 214, 0.75) 70%, rgba(255, 249, 214, 0) 100%);
}

.act__intro {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}

.act__photos {
  position: relative;
  aspect-ratio: 5 / 4;
}

.act__sun {
  position: absolute;
  top: 6%;
  right: 4%;
  z-index: 0;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--act-yellow);
}

.act__photo {
  position: absolute;
  overflow: hidden;
  filter: var(--paper-shadow);
}

.act__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act__photo--main {
  top: 0;
  left: 0;
  z-index: 1;
  width: 78%;
  aspect-ratio: 4 / 3;
  -webkit-clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.act__photo--sub {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 50%;
  aspect-ratio: 9 / 7;
  -webkit-clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.act__catch {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
  color: #17262e;
}

.act__catch + .act__text {
  margin-top: 18px;
}

.act__text {
  font-size: 14.5px;
  line-height: 1.95;
  color: #5f6b72;
}

.act__text + .act__text {
  margin-top: 12px;
}

/* ----- リンクカード ----- */
.act_links {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.act_link a {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  overflow: hidden;
  border: 3px solid #17262e;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.act_link a:focus-visible {
  outline: 3px solid #3fa9dd;
  outline-offset: 4px;
}

@media (any-hover: hover) {
  .act_link a:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #17262e;
  }

  .act_link a:hover .act_link__more::after {
    transform: translateX(4px);
  }
}

.act_link__logo {
  display: grid;
  place-items: center;
  padding: 22px 28px;
  background: #fff;
  border-bottom: 3px solid #17262e;
}

.act_link__logo img {
  width: min(260px, 100%);
}

.act_link__badge {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px 24px;
  color: #fff;
  background: #17262e;
}

.act_link__badge_label {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--act-yellow);
}

.act_link__badge_name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.act_link__badge_date {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
}

.act_link__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
}

.act_link__meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8a9aa3;
}

.act_link__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #17262e;
}

.act_link__text {
  font-size: 13.5px;
  line-height: 1.85;
  color: #5f6b72;
}

.act_link__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #17262e;
}

/* 外部サイトへ出ることがわかる矢印 */
.act_link__more::after {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5h11v11M19 5L6 18' fill='none' stroke='%2317262e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.25s ease;
}

.act_link--npo .act_link__more {
  align-self: flex-start;
  background: linear-gradient(transparent 60%, var(--act-yellow) 60%);
}

@media (min-width: 768px) {
  .act__intro {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
    margin-top: 52px;
  }

  .act__catch {
    font-size: 26px;
  }

  .act__text {
    font-size: 15px;
  }

  .act_links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 64px;
  }

  .act_link a {
    grid-template-columns: 210px 1fr;
  }

  .act_link__logo {
    padding: 20px;
    border-bottom: 0;
    border-right: 3px solid #17262e;
  }

  .act_link__body {
    padding: 24px 26px 26px;
  }
}

/* 2枚並びでカード内が窮屈になる幅では、ロゴ／バッジを上に積む */
@media (min-width: 768px) and (max-width: 1099px) {
  .act_link a {
    grid-template-columns: 1fr;
  }

  .act_link__logo {
    border-right: 0;
    border-bottom: 3px solid #17262e;
  }
}

/* ==========================================================================
   privacy.html（プライバシーポリシー）
   ・読み物なので本文幅を 760px に絞り、記事ページ（.article__body）の組版を流用
   ・条項には通し番号（法務文書の慣習どおり、順番に意味がある）
   ========================================================================== */
.policy__inner {
  max-width: 800px;
}

.policy__lead {
  font-size: 15px;
  line-height: 2;
  color: #3f4b52;
}

.policy__toc {
  margin-top: 32px;
  padding: 22px 24px 24px;
  background: #fff;
  border: 3px solid #17262e;
}

.policy__toc_title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #17262e;
}

.policy__toc ol {
  display: grid;
  gap: 6px 24px;
  margin-top: 12px;
  padding-left: 2.2em;
  list-style: decimal-leading-zero;
  font-size: 14px;
  line-height: 1.7;
}

.policy__toc li::marker {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #3f8fb6;
}

.policy__toc a {
  color: #17262e;
  text-decoration: underline;
  text-decoration-color: rgba(23, 38, 46, 0.25);
  text-underline-offset: 4px;
}

@media (any-hover: hover) {
  .policy__toc a:hover {
    text-decoration-color: #3fa9dd;
  }
}

.policy__body {
  margin-top: 8px;
}

.policy__sec {
  scroll-margin-top: 90px;
}

.policy__body h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.policy__num {
  font-family: "Poppins", sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  color: #3f8fb6;
  font-variant-numeric: tabular-nums;
}

.policy__body h3 {
  margin-top: 1.6em;
  font-size: 15.5px;
  font-weight: 700;
  color: #17262e;
}

.policy__body ol {
  display: grid;
  gap: 6px;
  padding-left: 1.6em;
  list-style: decimal;
}

.policy__body ol li {
  padding-left: 4px;
  line-height: 1.8;
}

/* 記事本文の「■」マーカーは箇条書き（ul）だけ。番号付き（ol）には付けない */
.policy__body ol li::before {
  content: none;
}

.policy__body ol li::marker {
  font-weight: 700;
  color: #3f8fb6;
}

.policy__body ul li::before {
  top: 0.66em;
}

.policy__body a {
  color: #2f86b3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy__table_wrap {
  overflow-x: auto;
}

.policy__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
}

.policy__table th,
.policy__table td {
  padding: 12px 14px;
  border: 1px solid #dfe7ec;
  text-align: left;
  vertical-align: top;
}

.policy__table th {
  font-size: 13px;
  font-weight: 700;
  color: #17262e;
  background: #f2f9fe;
}

.policy__date {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #e6edf1;
  font-size: 14px;
  line-height: 1.9;
  text-align: right;
  color: #5f6b72;
}

.footer__policy {
  margin-right: auto;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .policy__lead {
    font-size: 16px;
  }

  .policy__toc {
    margin-top: 40px;
    padding: 26px 32px 28px;
  }

  /* 縦に流す2段組（上から下へ読める順番を保つ） */
  .policy__toc ol {
    display: block;
    columns: 2;
    column-gap: 40px;
  }

  .policy__toc li {
    break-inside: avoid;
    padding-block: 3px;
  }
}

/* 条項の中の段落・リスト・表の間隔（.article__body の間隔は直下の子にしか効かないため） */
.policy__sec > * + * {
  margin-top: 1.1em;
}

.policy__sec > h3 + ul {
  margin-top: 0.7em;
}

/* ==========================================================================
   contact.html：プライバシーポリシーのダイアログ
   ========================================================================== */
.pp_dialog {
  width: min(760px, calc(100% - 24px));
  max-height: min(86vh, 900px);
  max-height: min(86dvh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #3f4b52;
  background: #fff;
  box-shadow: 0 30px 80px rgba(17, 45, 62, 0.35);
  overflow: hidden;
}

.pp_dialog[open] {
  display: flex;
  flex-direction: column;
}

.pp_dialog::backdrop {
  background: rgba(17, 38, 46, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

body.is_dialog_open {
  overflow: hidden;
}

.pp_dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px 24px;
  border-bottom: 3px solid #17262e;
}

.pp_dialog__title {
  font-size: 17px;
  font-weight: 700;
  color: #17262e;
}

.pp_dialog__close {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2f6f8;
  cursor: pointer;
}

.pp_dialog__close::before,
.pp_dialog__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #17262e;
}

.pp_dialog__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pp_dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pp_dialog__close:focus-visible,
.pp_dialog__foot .btn:focus-visible {
  outline: 3px solid #3fa9dd;
  outline-offset: 2px;
}

.pp_dialog__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 28px;
}

/* ダイアログの中は少し詰めて読みやすく */
.pp_dialog__body .policy__lead {
  font-size: 14px;
}

.pp_dialog__body .policy__toc {
  margin-top: 20px;
}

.pp_dialog__body .policy__sec {
  scroll-margin-top: 8px;
}

.pp_dialog__body .article__body {
  font-size: 14px;
}

.pp_dialog__body .article__body h2 {
  font-size: 17px;
}

.pp_dialog__body .policy__date {
  margin-top: 32px;
}

.pp_dialog__foot {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e6edf1;
  background: #fafcfd;
}

.pp_dialog__foot .btn {
  min-height: 48px;
  padding: 0 24px;
  font-size: 14.5px;
}

.pp_dialog__foot .btn--ghost::after {
  display: none;
}

@media (min-width: 768px) {
  .pp_dialog__head {
    padding: 18px 18px 16px 32px;
  }

  .pp_dialog__body {
    padding: 28px 32px 36px;
  }

  .pp_dialog__foot {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pp_dialog[open] {
    animation: pp_in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .pp_dialog[open]::backdrop {
    animation: pp_fade 0.28s ease;
  }

  @keyframes pp_in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: none; }
  }

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

/* ==========================================================================
   business.html：総合型選抜アプリ（#app）と、これからの構想（#future）
   ・アプリはまだ画面を見せられないので、写真やモックは使わず
     「課題 → 目指すこと」を文字と番号で組む（0→1 だけ大きく遊ぶ）
   ・構想は濃紺の帯で空気を変え、高校生を真ん中に社会がつながる図（SVG）を置く
   ========================================================================== */
.app__dot {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fa9dd;
}

.app__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
}

.app__head {
  max-width: 760px;
}

.app__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 14px 5px 12px;
  border: 2px solid #17262e;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #17262e;
  background: #fff;
}

.app__catch {
  margin-top: 26px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #17262e;
  text-wrap: balance;
}

.app__zero,
.app__one {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 1.9em;
  line-height: 1;
  vertical-align: -0.12em;
}

.app__zero {
  color: #b8c4ca;
}

.app__one {
  background: var(--grad-bold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 「0→1」を、 がカギ括弧の前後で折り返されないように（スマホで「 だけが行末に残るのを防ぐ） */
.app__nowrap {
  white-space: nowrap;
}

.app__arrow {
  display: inline-block;
  margin-inline: 0.12em;
  font-family: "Poppins", sans-serif;
  color: #17262e;
}

.app__lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 2;
  color: #5f6b72;
}

.app__grid {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.app__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #17262e;
}

.app__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d5dfe4;
}

/* 課題：左に灰色の太線（まだ解決されていないもの） */
.app_issues {
  display: grid;
  gap: 14px;
}

.app_issue {
  padding: 22px 22px 24px;
  border-left: 5px solid #c5cfd4;
  background: #fff;
  box-shadow: 0 2px 14px rgba(17, 45, 62, 0.07);
}

.app_issue__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #17262e;
}

.app_issue__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: #5f6b72;
}

/* 目指すこと：順に進む流れなので番号と縦のつなぎ線 */
.app_steps {
  position: relative;
  display: grid;
  gap: 14px;
}

.app_steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, #cfe25a, #3fa9dd);
}

.app_step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.app_step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #17262e;
  background: #fff;
  box-shadow: inset 0 0 0 2px #17262e;
}

.app_step:last-child .app_step__num {
  color: #fff;
  background: #17262e;
}

.app_step > div {
  padding: 10px 0 14px;
}

.app_step__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #17262e;
}

.app_step__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.85;
  color: #5f6b72;
}

.app__note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 40px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #2f4a57;
  background: rgba(223, 241, 251, 0.8);
}

.app__note .app__dot {
  transform: translateY(-1px);
}

.app__note a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- これからの構想（濃紺の帯） ---------- */
.future {
  position: relative;
  overflow: hidden;
  padding-block: 80px 72px;
  color: #fff;
  background: #17262e;
  -webkit-clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

.future::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 169, 221, 0.28), rgba(63, 169, 221, 0) 65%);
  pointer-events: none;
}

.future__inner {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

.future__en {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  background: var(--grad-bold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.future__en > span {
  display: block;
  padding-bottom: 0.06em;
}

.future__title {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.future__quote {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 3px solid rgba(207, 226, 90, 0.9);
}

.future__quote p {
  font-size: 14.5px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.84);
}

.future__quote p + p {
  margin-top: 12px;
}

.future__sign {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

/* 図 */
.future__visual {
  width: min(520px, 100%);
  margin-inline: auto;
}

.net {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.net__line {
  stroke: rgba(136, 202, 234, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}

.net__ring {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.net__orbit {
  fill: none;
  stroke: rgba(207, 226, 90, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  transform-origin: 260px 210px;
}

.net__node circle {
  fill: #203540;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
}

.net__node text {
  fill: #fff;
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
}

.net__core circle {
  fill: url(#net-grad);
}

.net__core text {
  fill: #17262e;
  font-size: 20px;
  font-weight: 700;
  text-anchor: middle;
}

.net__core .net__core_sub {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: rgba(23, 38, 46, 0.7);
}

/* ロードマップ：Now → Next → Future（実際の順番） */
.road {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.road__item {
  position: relative;
  padding: 20px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.road__when {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #17262e;
  background: rgba(255, 255, 255, 0.85);
}

.road__item--next .road__when {
  background: #9fd79a;
}

.road__item--future {
  border-color: transparent;
  background: linear-gradient(118deg, rgba(207, 226, 90, 0.22), rgba(63, 169, 221, 0.3));
}

.road__item--future .road__when {
  background: var(--grad-bold);
}

.road__title {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.road__text {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- トップ：Service の下に置くアプリの一枚 ---------- */
.app_teaser {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 3px solid #17262e;
  color: #17262e;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app_teaser:focus-visible {
  outline: 3px solid #3fa9dd;
  outline-offset: 4px;
}

.app_teaser__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app_teaser__main {
  display: grid;
  gap: 2px;
}

.app_teaser__en {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.app_teaser__title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: #3f4b52;
}

.app_teaser__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.app_teaser__more::after {
  content: "";
  width: 19px;
  height: 19px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%2317262e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.25s ease;
}

@media (any-hover: hover) {
  .app_teaser:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #17262e;
  }

  .app_teaser:hover .app_teaser__more::after {
    transform: translateX(4px);
  }
}

@media (min-width: 768px) {
  .app__catch {
    margin-top: 32px;
    font-size: 36px;
  }

  .app__lead {
    font-size: 16px;
  }

  .app__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-top: 64px;
  }

  .app__note {
    margin-top: 56px;
    padding: 18px 26px;
    font-size: 15px;
  }

  .future {
    padding-block: 130px 110px;
  }

  .future__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .future__en {
    font-size: 72px;
  }

  .future__title {
    font-size: 34px;
  }

  .future__quote p {
    font-size: 15.5px;
  }

  .road {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 72px;
  }

  /* カードどうしを右向きの矢印でつなぐ */
  .road__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -16px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) rotate(45deg);
  }

  .app_teaser {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    margin-top: 56px;
    padding: 24px 32px;
  }

  .app_teaser__status {
    padding-right: 28px;
    border-right: 1px solid #d5dfe4;
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app__dot::after {
    animation: app_ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  .net__line {
    animation: net_flow 1.6s linear infinite;
  }

  .net__orbit {
    animation: net_spin 40s linear infinite;
  }

  .future__visual.is_in .net__node {
    animation: net_pop 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: calc(var(--i) * 90ms + 200ms);
  }

  @keyframes app_ping {
    0%   { opacity: 0.7; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(2.6); }
  }

  @keyframes net_flow {
    to { stroke-dashoffset: -20; }
  }

  @keyframes net_spin {
    to { transform: rotate(360deg); }
  }

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

/* ==========================================================================
   Vision / Mission の左右の写真：人物が画面の端で切れないように
   ・写真の枠は画面の外へ少しはみ出す作りなので、見えている側に顔が来るよう
     写真ごとに表示位置（object-position）を指定
   ・画面が狭いほど、はみ出す量を減らす
   ========================================================================== */
.vm__photo--l1 img { object-position: 64% 30%; }  /* 笑顔の2人：左が画面外になるので右寄せ */
.vm__photo--l2 img { object-position: 58% 40%; }  /* 剣道の面 */
.vm__photo--r1 img { object-position: 56% 45%; }  /* 吹奏楽 */
.vm__photo--r2 img { object-position: 42% 24%; }  /* 大学生3人：右が画面外になるので左寄せ */

/* 1200px 未満では写真を文字に重ねず、「上に2枚・文章・下に2枚」と縦に並べる。
   重ねると顔が切れたり見出しに写真がかぶったりするため */
@media (max-width: 1199px) {
  .vm {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .vm__deco {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 760px;
    height: clamp(170px, 40vw, 300px);
    margin-inline: auto;
    aspect-ratio: auto;
    opacity: 1;
  }

  .vm__deco--left  { order: 1; }
  .vm__inner       { order: 2; }
  .vm__deco--right { order: 3; }

  .vm__photo--l1,
  .vm__photo--r1 {
    top: 0;
    width: 60%;
    height: 88%;
  }

  .vm__photo--l1 { left: 4%; }
  .vm__photo--r1 { right: 36%; left: auto; }

  .vm__photo--l2,
  .vm__photo--r2 {
    top: auto;
    bottom: 0;
    width: 46%;
    height: 72%;
  }

  .vm__photo--l2 { right: 2%; left: auto; }
  .vm__photo--r2 { right: 4%; }

  .vm__ribbon--l1 {
    top: auto;
    bottom: -4%;
    left: -2%;
    width: 70%;
    height: 34%;
  }

  .vm__ribbon--r1 {
    top: -6%;
    right: -2%;
    bottom: auto;
    width: 70%;
    height: 34%;
  }

  /* 枠いっぱいに見えるので、中央寄りの位置で切り抜く */
  .vm__photo--l1 img { object-position: 50% 30%; }
  .vm__photo--r2 img { object-position: 55% 24%; }
}

@media (max-width: 767px) {
  .vm {
    gap: 28px;
  }
}


/* 2列カードでも番号がある場合は、番号と見出しの間をあける */
.values--2 .value_card__num + .value_card__title {
  margin-top: 12px;
}

/* 表紙の説明文は、右から伸びるリボンより手前に出す（広い画面で重なっても読めるように） */
.cover__inner {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   プライバシーポリシーのダイアログ：iPhone（Safari / LINE 内ブラウザ）対策
   ・高さを max-height だけで決めると、WebKit では本文（flex: 1 + overflow）が
     高さ 0 に潰れて、見出しとボタンしか出ない。高さを明示して本文に残りを渡す
   ・dvh 非対応のブラウザ向けに vh を先に書く
   ========================================================================== */
.pp_dialog {
  height: 86vh;
  height: 86dvh;
  max-height: 900px;
}

.pp_dialog__body {
  flex: 1 1 0;
  -webkit-overflow-scrolling: touch;
}

.pp_dialog__body:focus {
  outline: none;
}

/* スマホでは画面いっぱいに近いシートにして、読める面積を広く */
@media (max-width: 767px) {
  .pp_dialog {
    width: calc(100% - 16px);
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: none;
    border-radius: 14px;
  }

  .pp_dialog__head {
    padding: 10px 10px 10px 18px;
  }

  .pp_dialog__title {
    font-size: 16px;
  }

  .pp_dialog__body {
    padding: 18px 18px 24px;
  }

  .pp_dialog__foot {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .pp_dialog__foot .btn {
    flex: 1;
    min-height: 46px;
    padding: 0 12px;
    font-size: 14px;
  }

  .pp_dialog__foot .btn--primary {
    flex: 1.5;
  }
}

/* 念のため flex ではなく grid で「見出し・本文（残り全部）・ボタン」を割り当てる */
.pp_dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
