/* ============================================================
   CloudSecure WP Security - Service Site
   Design tokens (from Figma)
   ============================================================ */
:root {
  --primary-main: #0f8fef;
  --primary-dark: #2561cc;
  --primary-deep: #084e83;
  --text-primary: #0f2650;
  --text-white: #ffffff;
  --text-tertiary: #8792a7;
  --text-secondary: #576885;
  --accent-main: #fa7a34;
  --bg-primary: #f2f7fd;
  --bg-secondary: #e8eff9;
  --bg-tertiary: #e7e9ed;
  --bg-quaternary: #f7f8fa;
  --bg-nav-active: #e9f5ff;
  --border-default: #cfd4dc;
  --border-secondary: #d0dfee;
  --gradient-brand: linear-gradient(90deg, #0f8fef 0%, #0f8fef 25%, #2561cc 100%);

  --font-jp: "Noto Sans JP", sans-serif;
  --font-nimbus: "nimbus-sans", "Noto Sans JP", sans-serif;

  /* SVG icon color filters */
  --filter-icon-white:        invert(99%) sepia(0%) saturate(7500%) hue-rotate(190deg) brightness(102%) contrast(100%);
  --filter-icon-primary:      invert(53%) sepia(87%) saturate(4558%) hue-rotate(185deg) brightness(100%) contrast(90%);
  --filter-icon-primary-dark: invert(39%) sepia(98%) saturate(746%) hue-rotate(173deg) brightness(97%) contrast(104%);
  --filter-icon-muted:        invert(60%) sepia(20%) saturate(307%) hue-rotate(181deg) brightness(92%) contrast(86%);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  color: var(--text-primary);
  background: #fff;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Fixed desktop canvas (Figma = 1440px) */
.service-nav,
.header,
.mv,
.feature,
.function,
.news,
.cta,
.footer,
.page-heading,
.breadcrumb { margin-inline: auto; }

/* shared content container (1000px, 220px side margins) */
.section-heading,
.feature__container,
.function__container,
.news__list,
.breadcrumb__inner {
  width: 1000px;
  max-width: 100%;
  margin-inline: auto;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  overflow: hidden;
}
.btn--accent { background: var(--accent-main); border-radius: 100px; border: solid 2px var(--accent-main); position: relative; }
.btn--accent span{ position: relative; z-index: 1; }
.btn--sm { height: 40px; width: 160px; padding: 0 24px; font-size: 14px; }
.btn--lg { padding: 23px 95px; font-size: 20px; line-height: 1.2; }
.btn--gradient { background: var(--gradient-brand); border-radius: 4px; position: relative; }
.btn--gradient span{ position: relative; z-index: 1; flex: 1; text-align: center; }
.btn--wide { width: 340px; height: 72px; font-size: 16px; padding: 0 30px; }
.btn__arrow { width: 24px; height: 24px; filter: var(--filter-icon-white); z-index: 10; }

.btn--accent:hover { color: var(--accent-main); }
.btn--accent::after{
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  transition: .3s;
  z-index: 0;
}
.btn--accent:hover::after{
  width: 100%;
}

.btn--gradient::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #0f8fef 0%, #0f8fef 25%, #2561cc 100%);
  transition: .3s;
  z-index: 0;
}
.btn--gradient:hover::after {
  width: 100%;
}

/* ============================================================
   ServiceNav
   ============================================================ */
.service-nav {
  height: 50px;
  background: #e4ecf9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-nav__list { display: flex; align-items: center; gap: 48px; }
.service-nav__link { display: flex; align-items: center; gap: 10px; }
.service-nav__link:hover .service-nav__text { color: var(--primary-main); transition: color .2s ease; }
.service-nav__icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.service-nav__icon img { width: 100%; height: 100%; }
.service-nav__text { font-size: 14px; color: var(--text-primary); }

/* ============================================================
   Header
   ============================================================ */
.header {
  height: 80px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .2s ease;
}
.header--stuck { box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.header__left { display: flex; align-items: center; gap: 36px; }
.header__logo { display: flex; align-items: center; }
.header__logo-full { height: 36px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 24px; }
.header__nav-link {
  font-size: 15px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.header__nav-link:hover { color: var(--primary-main); }
.header__nav-link .caret { font-size: 10px; }

.header-dropdown { position: relative; display: flex; }
.header-dropdown__toggle {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.header-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 220px;
  background: var(--text-white);
  border: 1px solid var(--border-default);
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 100;
}
.header-dropdown.is-open .header-dropdown__menu,
.header-dropdown:hover .header-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-dropdown__item {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
  transition: color .2s ease, background .2s ease;
}
.header-dropdown__item:hover { color: var(--primary-main); background: var(--bg-nav-active); }
.header-dropdown__ext-icon { width: 16px; height: 16px; }
.header-dropdown__item:hover .header-dropdown__ext-icon { filter: var(--filter-icon-primary); }

/* ============================================================
   Hero (mv)
   ============================================================ */
.mv {
  height: 770px;
  background: url("../assets/fv_bg.webp") center / cover no-repeat, var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mv__inner {
  width: 1022px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.mv__content { display: flex; flex-direction: column; align-items: flex-start; gap: 48px; width: 560px; }

/* tags */
.mv__tags { 
  position: relative; 
  height: 50px; 
  background: linear-gradient(-70deg, var(--primary-deep) 0%, var(--primary-deep) 41%, #FFF 41%, #FFF 100%);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 32px;
}
.mv__tag {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.mv__tag--main {
  color: var(--primary-deep);
}
.mv__tag--sub {
  color: #e6f6ff;
}

.mv__title {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #fff;
}
.mv__desc {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #fff;
}
.mv__desc .br-sp-only { display: none; }

.mv__btn { width: 310px; height: 74px; }

/* visual */
.mv__visual { position: relative; width: min(33vw, 422px); height: 100%; flex-shrink: 0; }
.mv__illust { width: 100%; height: 100%; object-fit: contain; }
.mv__badge {
  position: absolute;
  right: -30px;
  bottom: -16px;
  width: 154px;
  height: 162px;
}
.mv__badge img { height: auto; }

/* ============================================================
   Section heading (Heading/L)
   ============================================================ */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 39px;
}
.section-heading__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: center;
}
.section-heading__underline {
  width: 106px;
  height: 7px;
  border-radius: 20px;
  background: linear-gradient(90deg, #0f8fef 0%, #0f8fef 25%, #2561cc 100%);
}

/* ============================================================
   Page heading (Heading/XL) — 下層ページ共通タイトルバナー
   ============================================================ */
.page-heading {
  position: relative;
  height: 246px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-heading__cube {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
}
.page-heading__cube--left { left: 0; }
.page-heading__cube--right { right: 0; }
.page-heading__title {
  position: relative;
  z-index: 1;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   Breadcrumb — 下層ページ共通パンくず
   ============================================================ */
.breadcrumb {
  background: var(--bg-tertiary);
  display: flex;
  justify-content: center;
  padding: 18px 24px;
}
.breadcrumb__inner { display: flex; align-items: center; column-gap: 8px; row-gap: 4px;}
.breadcrumb__item { font-size: 12px; line-height: 1.5; color: var(--text-tertiary); }
.breadcrumb__arrow { width: 16px; height: 16px; display: flex; }
.breadcrumb__arrow img { width: 100%; height: 100%; filter: var(--filter-icon-muted);}

/* ============================================================
   feature (特長)
   ============================================================ */
.feature { background: #fff; padding: 100px 0; }
.feature__container { margin-top: 60px; display: flex; flex-direction: column; gap: 56px; }

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 246px;
}
.feature-row--reverse { flex-direction: row-reverse; }
.feature-row__content { width: 580px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.feature-row__visual { width: 380px; display: flex; justify-content: center; align-items: center; }
.feature-row__visual img { width: 380px; height: auto; }

.feature-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  padding: 6px 0 6px;
  background: var(--text-tertiary);
  color: #fff;
  font-family: var(--font-nimbus);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1;
}
.feature-row__subtitle {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--text-primary);
}
.feature-row__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  color: var(--text-primary);
}

/* ============================================================
   function (主な機能)
   ============================================================ */
.function { background: var(--bg-primary); padding: 100px 0; }
.function__container {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.function-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 288px;
}
.function-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: center;
  width: 100%;
}
.function-card__icon {
  width: 90px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.function-card__icon img { max-width: 90px; max-height: 80px; width: auto; height: auto; }
.function-card__desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-align: justify;
  color: var(--text-primary);
  width: 100%;
}
.function__more { display: flex; justify-content: center; margin-top: 60px; }

@media (max-width: 1040px) {
  .function__category-title { font-size: clamp(24px, 3.4vw, 30px); }
  .function-card { padding: 3.07vw; }
  .function-card__title { font-size: clamp(17px, 2.2vw, 22px); }
}

/* ============================================================
   news (お知らせ)
   ============================================================ */
.news { background: #fff; padding: 100px 0; }
.news__list { margin-top: 30px; display: flex; flex-direction: column; }
.news-item {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-default);
  transition: color .2s;
}
.news-item-last { border-bottom: none; }
.news-item:hover { color: var(--primary-main); }
.news-item:hover .news-item__text { text-decoration: underline; }
.news-item__date {
  font-family: var(--font-nimbus);
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--text-primary);
}
.news-item__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  flex: 1;
  color: var(--text-primary);
}
.news__more { display: flex; justify-content: center; margin-top: 60px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--gradient-brand);
  padding: 64px 0;
  display: flex;
  justify-content: center;
}
.cta__inner { display: flex; align-items: center; gap: 56px; }
.cta__visual { width: 330px; height: 330px; flex-shrink: 0; }
.cta__visual img { width: 330px; height: 330px; }
.cta__content { display: flex; flex-direction: column; gap: 32px; }
.cta__title { font-size: 36px; font-weight: 700; line-height: 1.6; color: #fff; }
.cta__title .br-sp-only { display: none; }
.cta__action { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-main);
}
.cta__slash { width: 18px; height: 3px; border-radius: 20px; background: var(--accent-main); flex-shrink: 0; }
.cta__slash--l { transform: rotate(64deg); }
.cta__slash--r { transform: rotate(-64deg); }
.cta__btn { width: 390px; }

/* ============================================================
   Footer
   ============================================================ */
.footer__top {
  background: #0f2650;
  padding: 48px 0;
  min-height: 203px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__nav {
  width: 1000px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__nav-link {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity .2s;
}
.footer__nav-link:hover { opacity: .8; }
.footer__nav-link--parent:hover { opacity: 1; }
.footer__nav-col { display: flex; flex-direction: column; gap: 16px; }
.footer__ext-icon { width: 13px; height: auto; display: inline-block; transform: translateY(2px); filter: var(--filter-icon-white);}

.footer__bottom { background: #fff; display: flex; justify-content: center; }
.footer__bottom-inner {
  width: 1000px;
  padding: 40px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer__row { display: flex; align-items: center; justify-content: space-between;  row-gap: 32px; }
.footer__row--top { column-gap: 40px; }
.footer__row--bottom { flex-wrap: wrap; column-gap: 24px; }
.footer__logo { width: 220px; height: 40px; }
.footer__meta { display: flex; align-items: center; gap: 40px; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.footer__link {
  font-size: 13px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color .2s;
}
.footer__link:hover { opacity: .8; }
.footer__link--ext .footer__ext-icon { transform: none; filter: none; }
.footer__sns { display: flex; align-items: flex-start; gap: 12px; }
.footer__sns-link { width: 28px; height: 28px; display: block; }
.footer__sns-link:hover { opacity: .8; }
.footer__sns-link img { width: 28px; height: 28px; }

.footer__divider { height: 1px; background: var(--border-default); width: 100%; }

.footer__seals { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__seal-group { display: flex; align-items: center; gap: 10px; }
.footer__seal-img { height: 50px; width: auto; }
.footer__seal-img--phishing { width: 140px; object-fit: contain; }
.footer__seal-text { font-size: 10px; line-height: 1.7; color: var(--text-primary); letter-spacing: 0.02em; transform: translateY(-3px); }
.footer__copyright { font-family: var(--font-jp); font-size: 12px; opacity: .8; color: var(--text-primary); white-space: nowrap; }

.first-pop {
  width: min(450px, 100%);
  height: -moz-fit-content;
  height: fit-content;
  background-color: #fff;
  border-top: 2px solid var(--primary-main);
  position: fixed;
  bottom: 0;
  right: 0;
  border-left: 1px solid #efefef;
  transition: 0.8s;
  z-index: 1000;
  transform: translateY(100%);
}
.first-pop.first { transform: translateY(0); }
.first-pop.first .first-pop__close-btn::after {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13.84px 8px 0 8px;
  border-color: var(--text-white) transparent transparent transparent;
}
.first-pop__wrapper {
  position: relative;
  padding: 40px;
  padding-bottom: 25px;
}
.first-pop__close-btn {
  width: 30px;
  height: 30px;
  background-color: var(--primary-main);
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-100%);
  border: none;
  padding: 0;
}
.first-pop__close-btn:hover { cursor: pointer; }
.first-pop__close-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  left: 7px;
  top: 8px;
  border-style: solid;
  border-width: 0 8px 13.84px 8px;
  border-color: transparent transparent var(--text-white) transparent;
}
.first-pop .first-pop__text {
  text-align: justify;
  font-size: 14px;
  line-height: 1.5;
}
.first-pop .first-pop__text a { color: var(--primary-main); text-decoration: underline; }
.first-pop .first-pop__text a:hover { opacity: .8; }


@media (min-width: 1100px) and (max-width: 1440px) {
  .mv { height: clamp(632px, calc(632px + (100vw - 1100px) * 0.4059), 770px); }
}

@media (max-width: 1120px) {
  .footer__copyright { width: 100%; text-align: right; }
}

@media (max-width: 960px) {
}

@media (max-width: 902px) {
  .footer__links { width: 320px; }
  .footer__row--bottom { align-items: flex-end; }
  .footer__seals { flex: 1; }
  .footer__copyright {width: fit-content; }
}

/* ============================================================
   Responsive fallback (keeps 1440 canvas usable on smaller screens)
   ============================================================ */
@media (max-width: 1040px) {
  .section-heading,
  .feature__container,
  .function__container,
  .news__list { width: 100%; padding-inline: 24px; }
}

/* ============================================================
   Tablet layout (769px–1100px)
   PCと同じレイアウト構造を維持したまま、固定px指定の要素を
   可変（%・clamp）にして横スクロールが発生しないようにする。
   768px以下（SPレイアウト）・1101px以上（PC）には影響しない。
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {

  /* ---- ServiceNav ---- */
  .service-nav__list { gap: clamp(14px, 2.4vw, 48px); }
  .service-nav__item { flex-shrink: 0; }
  .service-nav__icon { flex-shrink: 0; }
  .service-nav__text { font-size: clamp(11px, 1.4vw, 14px); white-space: nowrap; }

  /* ---- Header ---- */
  .header { padding: 0 clamp(16px, 2vw, 30px); }
  .header__left { gap: clamp(16px, 2.6vw, 36px); min-width: 0; }
  .header__logo-full { height: clamp(28px, 3.4vw, 36px); }
  .header__nav { gap: clamp(12px, 1.8vw, 24px); }
  .header__nav-link { font-size: clamp(13px, 1.4vw, 15px); white-space: nowrap; }
  .header__nav-link:hover { color: var(--primary-main); transition: color .2s ease; }
  .header__right .btn--sm {
    width: clamp(120px, 15vw, 160px);
    height: clamp(34px, 4vw, 40px);
    padding: 0 clamp(12px, 1.8vw, 24px);
    font-size: clamp(12px, 1.3vw, 14px);
  }

  /* ---- Hero (mv) ---- */
  .mv { height: auto; padding: 88px clamp(16px, 3vw, 32px); }
  .mv__inner { width: 100%; max-width: 1022px; gap: clamp(20px, 4vw, 40px); justify-content: center;}
  .mv__content {
    width: auto;
    flex: 0 1 54.8%;
    max-width: 560px;
    min-width: 0;
    gap: clamp(24px, 4vw, 48px);
  }

  .mv__tags { height: clamp(34px, 4vw, 50px); }
  .mv__tag { font-size: clamp(15px, 1.8vw, 22px); }

  .mv__title { font-size: clamp(26px, 3.4vw, 42px); }
  .mv__desc { font-size: clamp(13px, 1.5vw, 16px); }
  .mv__btn { width: clamp(220px, 26vw, 310px); height: clamp(50px, 6vw, 74px); }
  .mv__btn span { font-size: clamp(15px, 1.7vw, 20px); }

  .mv__visual {
    flex: 0 1 32%;
    width: 100%;
    height: auto;
    aspect-ratio: 422 / 551;
  }
  .mv__illust { width: 100%; height: 100%; }
  .mv__badge { right: -6.83%; bottom: -1.95%; width: 35.25%; height: 28.40%; }

  /* ---- CTA ---- */
  .cta { padding: 64px clamp(20px, 4vw, 40px); }
  .cta__inner { gap: clamp(28px, 4.4vw, 56px); }
  .cta__visual { width: clamp(180px, 26vw, 330px); height: auto; flex-shrink: 1; aspect-ratio: 1 / 1; }
  .cta__visual img { width: 100%; height: 100%; }
  .cta__content { min-width: 0; }
  .cta__title { font-size: clamp(24px, 3vw, 36px); }
  .cta__btn { width: 100%; max-width: 390px; }

  /* ---- Footer ---- */
  .footer__top { padding: 48px clamp(16px, 3vw, 40px); }
  .footer__bottom-inner { padding-inline: clamp(16px, 3vw, 40px); }
}

/* ============================================================
   SP layout — hidden-by-default safety net (must stay hidden
   above 768px regardless of media-query cascade order)
   ============================================================ */
.header__menu-toggle,
.mobile-nav,
.footer__note { display: none; }

/* ============================================================
   SP layout (max-width: 768px)
   新規モバイルブレークポイント。以下はすべて 768px 以下でのみ適用され、
   デスクトップ表示（768px 以上）には一切影響しない。
   ============================================================ */
@media (max-width: 768px) {

  /* ---- Fixed canvas -> fluid ---- */
  .service-nav,
  .header,
  .mv,
  .feature,
  .function,
  .news,
  .cta,
  .footer,
  .page-heading,
  .breadcrumb { width: 100%; }

  /* ---- ServiceNav: moved into mobile-nav drawer ---- */
  .service-nav { display: none; }

  /* ---- Header ---- */
  .header {
    height: 58px;
    padding: 0 18px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
  }
  .header__nav,
  .header__right { display: none; }
  .header__logo-full { height: 25px; width: auto; }

  .header__menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 26px;
    height: 22px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 210;
  }
  .header__menu-toggle-bar {
    width: 26px;
    height: 2px;
    background: var(--primary-main);
    transition: transform .25s ease, opacity .2s ease;
  }
  body.nav-open .header__menu-toggle-bar:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
  body.nav-open .header__menu-toggle-bar:nth-child(2) { opacity: 0; }
  body.nav-open .header__menu-toggle-bar:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

  /* ---- MobileNav (drawer) ---- */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    overflow-y: auto;
    z-index: 200;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .mobile-nav { display: flex; }
  body.nav-open { overflow: hidden; }

  .mobile-nav__menu { display: flex; flex-direction: column; width: 100%; }
  .mobile-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 56px;
    background: #fff;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    border-bottom: 1px solid var(--border-default);
  }
  .mobile-nav__item--toggle {
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
  }
  .mobile-nav__caret { font-size: 10px; }
  .mobile-nav__toggle-wrap { width: 100%; }
  .mobile-nav__submenu { display: none; flex-direction: column; width: 100%; }
  .mobile-nav__toggle-wrap.is-open .mobile-nav__submenu { display: flex; }
  .mobile-nav__toggle-wrap.is-open .mobile-nav__item--toggle { color: var(--primary-main); }
  .mobile-nav__toggle-wrap.is-open .mobile-nav__caret { transform: rotate(180deg); }
  .mobile-nav__subitem {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 56px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-default);
  }
  .mobile-nav__ext-icon { width: 16px; height: 16px; }

  .mobile-nav__cta-wrap {
    display: flex;
    justify-content: center;
    padding: 32px 16px;
    background: #fff;
  }
  .mobile-nav__cta { height: 40px; width: auto; padding: 0 24px; font-size: 14px; }

  .mobile-nav__services {
    margin: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px 25px;
  }
  .mobile-nav__service-link { display: flex; align-items: center; gap: 6px; }
  .mobile-nav__service-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
  .mobile-nav__service-icon img { width: 100%; height: 100%; }
  .mobile-nav__service-text { font-size: 14px; color: var(--text-primary); }

  /* ---- Hero (mv) ---- */
  .mv {
    height: auto;
    padding: 56px 24px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mv__inner {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .mv__content { display: contents; }

  .mv__tags { order: 1; height: min(8vw ,40px); padding: 0 12px; margin: 0 auto 40px; gap: clamp(22px, 3vw, 32px); }
  .mv__tag { font-size: min( 3.2vw, 18px); }

  .mv__title { order: 2; font-size: 28px; line-height: 1.6; text-align: center; letter-spacing: 0; margin-bottom: 32px; }
  .mv__desc { order: 3; font-size: 16px; line-height: 1.6; text-align: center; }

  .mv__visual { order: 4; width: 200px; height: 260px; margin: 40px 0; transform: translateX(-16.5px); }
  .mv__illust { width: 100%; height: 100%; object-fit: contain; }
  .mv__badge {  right: -67px; bottom: -8px; width: 92px; height: 92px; }

  .mv__btn { order: 5; width: 216px; height: 50px; padding: 0; font-size: 15px; }

  /* ---- Section heading / container 共通 ---- */
  .section-heading,
  .feature__container,
  .function__container,
  .news__list { padding-inline: clamp(16px, 3.4vw, 24px); }

  /* ---- Section heading (feature/function/news 共通) ---- */
  .section-heading { gap: 24px; }
  .section-heading__title { font-size: 25px; line-height: 1.5; }
  .section-heading__underline { width: 80px; height: 6px; }

  /* ---- Page heading / Breadcrumb（下層ページ共通） ---- */
  .page-heading { height: clamp(115px, calc(30px + 26.6vw), 234px); }
  .page-heading__title { font-size: clamp(24px, 4vw, 30px); }
  .breadcrumb { padding-inline: clamp(16px, 3.4vw, 24px); order: 1;}
  .breadcrumb__inner { flex-wrap: wrap; }

  /* ---- feature (特長) ---- */
  .feature { padding: 64px 0; }
  .feature__container { gap: 56px; }

  .feature-row,
  .feature-row--reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-height: 0;
  }
  .feature-row__content { width: 100%; }
  .feature-row__visual { width: 100%; justify-content: center; }
  .feature-row__visual img { width: 100%; max-width: 305px; height: auto; margin-inline: auto; }
  .feature-row__subtitle { font-size: 20px; line-height: 1.8; }
  .feature-row__desc { font-size: 16px; line-height: 1.8; }

  /* ---- 主な機能 (主な機能) ---- */
  .function { padding: 64px 0; }
  .function__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .function-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 24px 20px;
    padding: 20px 24px 24px;
    min-height: 0;
  }
  .function-card__icon { order: 1; width: 56px; height: 50px; }
  .function-card__icon img { max-width: 56px; max-height: 50px; }
  .function-card__title { order: 2; flex: 1; width: auto; text-align: left; font-size: 16px; }
  .function-card__desc { order: 3; flex-basis: 100%; width: 100%; text-align: left; font-size: 15px; line-height: 1.6; }

  .btn--wide { width: 242px; height: 51px; font-size: 15px; }
  .btn__arrow { width: 18px; height: 18px; filter: var(--filter-icon-white);}

  /* ---- news (お知らせ) ---- */
  .news { padding: 64px 0; }
  .news__list { margin-top: 62px; }
  .news-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; }
  .news-item__date { font-size: 15px; }
  .news-item__text { font-size: 15px; }
  .news__more { margin-top: 60px; }

  /* ---- CTA ---- */
  .cta { padding: 32px 20px; }
  .cta__inner { flex-direction: column; gap: 20px; width: 100%; }
  .cta__visual { width: 220px; height: 220px; }
  .cta__visual img { width: 220px; height: 220px; }
  .cta__content { align-items: center; gap: 32px; width: 100%; }
  .cta__title { font-size: 26px; line-height: 1.5; text-align: center; }
  .cta__action { gap: 8px; }
  .cta__lead { font-size: 15px; }
  .cta__btn { width: 100%; max-width: 340px; height: 54px; font-size: 15px; }

  /* ---- Footer ---- */
  .footer__top { padding: 40px 16px; min-height: 0; }
  .footer__nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 20px;
    align-items: start;
  }

  .footer__note {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 16px;
  }
  .footer__note-text { font-size: 11px; line-height: 1.5; text-align: left; color: var(--text-secondary); }

  .footer__bottom-inner { width: 100%; padding: 32px 16px; gap: 24px; }
  .footer__row--top { flex-direction: column; gap: 24px; }
  .footer__meta { flex-direction: column; gap: 24px; }
  .footer__links { justify-content: center; }
  .footer__row--bottom { flex-direction: column; gap: 20px; }
  .footer__seals { justify-content: center; gap: 20px; }
  .footer__seal-group { flex-wrap: wrap; justify-content: center; }
  .footer__logo { width: 210px; height: 36px; }
  .footer__copyright { width: 100%; text-align: center; }

  .first-pop__wrapper { padding: 24px; }
}

@media (max-width: 610px) {
  .mv__desc .br-sp-only { display: block; }
}

@media (max-width: 500px) {
  .cta__title { text-align: left; }
  .cta__title .br-sp-only { display: block; }
}

@media (max-width: 425px) {
  .footer__seal-text br { display: none; }
}

@media (max-width: 400px) {
  .mv { padding: 40px 16px 48px; }
  .mv__tags { margin-bottom: 24px; }
  .mv__title { margin: 0 -10px 24px; font-size: 26px; }
  .mv__desc { font-size: 14px; }
  .mv__visual { height: 240px; width: 180px; margin: 24px 0; }
}


@media (max-width: 600px) {
  .footer__row--bottom { align-items: center;}
  .footer__seal-group { width: 100%; flex-direction: column; }
  .footer__seal-text br { display: none; }

}