/* ==========================================================
   Ayuka Tech Lab ポートフォリオ v2 トップページ
   カンプ: Figma PF Top (PC 1440 / Mobile 390)
   ========================================================== */

/* ---- 変数 ---- */
:root {
  --c-text: #1f2d3d;
  --c-text-sub: #4f5d6b;
  --c-blue: #2e7daf;
  --c-blue-sub: #5f84b1;
  --c-cta: #b05d16;
  --c-bg-blue: #eef4f9;
  --c-border: #d5e0ea;
  --c-footer: #17283a;
  --c-footer-text: #c9d6e2;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --inner: 1200px;
  --pad-x: 120px;
  --radius-card: 16px;
  --radius-btn: 8px;
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: #fff;
  overflow-wrap: anywhere;
}

:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }

.u-sp { display: none; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  white-space: nowrap;
  transition: opacity .2s, background-color .2s, color .2s;
}
.btn--primary { background: var(--c-cta); color: #fff; }
.btn--primary:hover { opacity: .85; }
.btn--outline { color: var(--c-blue); box-shadow: inset 0 0 0 2px var(--c-blue); }
.btn--outline:hover { background: var(--c-blue); color: #fff; }
.btn--white { background: #fff; color: var(--c-blue); }
.btn--white:hover { opacity: .85; }

/* ---- 続きを見るリンク ---- */
.more-link {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-blue);
}
.more-link:hover { text-decoration: underline; }

/* ---- ヘッダー ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}
.header__logo { display: flex; align-items: center; gap: 14px; }
.header__logo-img { width: 57px; height: 48px; }
.header__logo-text { font-weight: 700; font-size: 18px; line-height: normal; white-space: nowrap; }
.header__nav { display: flex; align-items: center; gap: 36px; }
.header__list { display: flex; align-items: center; gap: 36px; }
.header__link { font-weight: 500; white-space: nowrap; }
.header__link:hover { color: var(--c-blue); }
.header__cta { padding: 10px 24px; white-space: nowrap; }
.header__toggle { display: none; }
/* メニューを開いている間は背面のページをスクロールさせない */
html.is-menu-open { overflow: hidden; }

/* ---- セクション共通 ---- */
.section { padding: 120px var(--pad-x); }
.section--white { background: #fff; }
.section--blue { background: var(--c-bg-blue); }
.section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: var(--inner);
  margin: 0 auto;
}
.section__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

/* ---- 1 FirstView ---- */
.fv {
  position: relative;
  background: url("../img/kv.jpg") center / cover no-repeat;
  padding: 120px var(--pad-x);
}
.fv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(238, 244, 249, .96) 0%, rgba(238, 244, 249, .9) 55%, rgba(238, 244, 249, .6) 100%);
}
.fv__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
}
.fv__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.fv__title { font-size: 50px; font-weight: 700; line-height: 1.35; }
.fv__lead { font-size: 18px; line-height: 1.9; color: var(--c-text-sub); }
.fv__buttons { display: flex; gap: 16px; }

.facts {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 40px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
}
.facts__item { display: flex; flex-direction: column; gap: 2px; }
.facts__label { font-size: 16px; line-height: 1.7; color: var(--c-text-sub); }
.facts__value { font-size: 34px; font-weight: 700; line-height: 1.3; color: var(--c-blue); }

/* ---- 2 安心の3点 ---- */
.trust__list {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: stretch;
}
.trust-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
}
.trust-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}
.trust-card__title { font-size: 22px; font-weight: 700; line-height: 1.7; }
.trust-card__text { color: var(--c-text-sub); }

/* ---- 3 サンプル記事(Swiper) ---- */
.samples__slider { width: 100%; }
.samples__slider .swiper-slide { height: auto; }
.samples__controls[hidden] { display: none; }
.samples__controls { display: flex; align-items: center; gap: 16px; }
.samples__count {
  min-width: 64px;
  width: auto;
  position: static;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--c-text);
}
.samples__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-blue);
  color: var(--c-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .2s, color .2s;
}
.samples__btn:hover { background: var(--c-blue); color: #fff; }
.sample-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.sample-card__link { display: flex; flex-direction: column; width: 100%; transition: opacity .2s; }
.sample-card__link:hover { opacity: .85; }
.sample-card__img { width: 100%; height: 180px; object-fit: cover; }
.sample-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; }
.sample-card__cat { font-weight: 700; line-height: 1.7; color: var(--c-blue); }
.sample-card__title { font-size: 20px; font-weight: 700; line-height: 1.5; }
.sample-card__text { color: var(--c-text-sub); }

/* ---- 4 対応範囲 ---- */
.scope__columns { display: flex; gap: 32px; width: 100%; align-items: stretch; }
.scope-box {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 36px;
  background: #fff;
  border: 2px solid var(--c-blue);
  border-radius: var(--radius-card);
}
.scope-box--consult { border-color: var(--c-blue-sub); }
.scope-box__title { font-size: 22px; font-weight: 700; line-height: 1.7; color: var(--c-blue); }
.scope-box--consult .scope-box__title { color: var(--c-blue-sub); }
.scope-box__list { font-size: 17px; line-height: 2; }
.scope-box__list li::before { content: "・"; }

/* ---- 5 プロフィール ---- */
.profile { padding: 120px var(--pad-x); }
.profile__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  max-width: var(--inner);
  margin: 0 auto;
}
.profile__img {
  flex: 0 0 280px;
  width: 280px;
  height: 280px;
  object-fit: cover;
  border: 2px solid var(--c-border);
  border-radius: 50%;
}
.profile__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.profile__title { font-size: 32px; font-weight: 700; line-height: 1.7; }
.profile__name { font-size: 24px; font-weight: 700; line-height: 1.5; }
.profile__career { font-size: 18px; line-height: 2; }

/* ---- 6 お問い合わせ ---- */
.cta {
  position: relative;
  background: url("../img/cta-contact.jpg") center / cover no-repeat;
  padding: 120px var(--pad-x);
  color: #fff;
  text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(46, 125, 175, .88); }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta__title { font-size: 32px; font-weight: 700; line-height: 1.7; }
.cta__lead { font-size: 17px; }

/* ---- フッター ---- */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 0 var(--pad-x);
  background: var(--c-footer);
  color: var(--c-footer-text);
}
.footer {
  flex-direction: column;
  gap: 12px;
}
.footer__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer__link { font-size: 14px; }
.footer__link:hover { text-decoration: underline; }
.footer small { font-size: 16px; }

/* ==========================================================
   ヘッダー: 1081〜1240pxは余白を詰めてPCナビを収め、1080px以下はハンバーガーに折りたたむ(本文のスマホ版と同じ幅)
   ========================================================== */
@media (min-width: 1081px) and (max-width: 1240px) {
  .header__inner { padding-left: 16px; padding-right: 16px; }
  .header__nav { gap: 16px; }
  .header__list { gap: 12px; }
  .header__link { font-size: 14px; }
}

@media (max-width: 1080px) {
  .header__inner { padding: 10px 20px; }
  .header__logo { gap: 10px; }
  .header__logo-img { width: 48px; height: 40px; }
  .header__logo-text { font-size: 14px; }

  .header__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
  }
  .header__bar {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--c-text);
    transition: transform .25s, opacity .2s;
  }
  .header__toggle[aria-expanded="true"] .header__bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] .header__bar:nth-child(2) { opacity: 0; }
  .header__toggle[aria-expanded="true"] .header__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .header__nav {
    /* 画面いっぱいに表示する。ロゴと×ボタンはヘッダー内で z-index:-1 のメニューより手前に残る */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 109px 20px 24px; /* 上=ヘッダーの高さ61px+48px */
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .header__nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .header__list { flex-direction: column; align-items: stretch; gap: 0; }
  .header__link {
    display: block;
    padding: 22px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
  }
  .header__cta { margin-top: 32px; padding: 16px 24px; }
}

/* ==========================================================
   FV: 1081〜1260px は見出しを幅に合わせて縮め、右カードは400px固定のまま
   ========================================================== */
@media (min-width: 1081px) and (max-width: 1260px) {
  .fv { padding-left: 60px; padding-right: 60px; }
  .fv__title { font-size: min(50px, calc((100vw - 584px) / 12)); }
}

/* ==========================================================
   スマホ・タブレット(1080px以下)は1列のスマホレイアウトに統一
   ========================================================== */
@media (max-width: 1080px) {
  :root { --pad-x: 20px; }
  .u-sp { display: inline; }

  .btn { padding: 16px 24px; }

  .section { padding: 120px var(--pad-x); }
  .section__inner { gap: 28px; }
  .section__title { font-size: 26px; line-height: 1.5; }
  .more-link { font-size: 15px; }

  .fv__inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .fv::before { background: rgba(238, 244, 249, .92); }
  .fv__copy { gap: 24px; align-items: stretch; }
  .fv__title { font-size: 30px; line-height: 1.4; }
  .fv__lead { font-size: 16px; }
  .fv__buttons { flex-direction: column; gap: 24px; }
  .facts { flex: none; gap: 18px; padding: 24px; border-radius: var(--radius-card); }
  .facts__label { font-size: 14px; }
  .facts__value { font-size: 28px; }

  .trust__list, .scope__columns { flex-direction: column; gap: 28px; }
  .trust-card { flex: none; padding: 24px; }
  .sample-card__cat { font-size: 13px; }
  .sample-card__text { font-size: 15px; }

  .scope-box { flex: none; gap: 12px; padding: 24px; }
  .scope-box__title { font-size: 20px; }
  .scope-box__list { font-size: 16px; }

  .profile__inner { flex-direction: column; gap: 24px; }
  .profile__img { flex: none; width: 200px; height: 200px; }
  .profile__body { align-items: center; gap: 24px; text-align: center; }
  .profile__title { font-size: 26px; line-height: 1.7; }
  .profile__name { font-size: 22px; }
  .profile__career { font-size: 16px; }

  .cta__inner { gap: 28px; }
  .cta__title { font-size: 26px; line-height: 1.5; }
  .cta__lead { font-size: 16px; }
  .cta .btn { align-self: stretch; }
  .cta__note { font-size: 13px; }

  .footer { height: auto; padding: 40px 20px; }
  .footer small { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ==========================================================
   下層ページ(自己紹介・対応範囲・お仕事の流れ・サンプル記事・料金・記事ページ)
   カンプ: Figma PF 各ページ (PC 1440 / Mobile 390)
   ========================================================== */

/* ---- ページタイトル(背景はトップのFVと同じ写真) ---- */
.page-title {
  position: relative;
  background: url("../img/kv.jpg") center / cover no-repeat;
  padding: 96px var(--pad-x);
}
.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(238, 244, 249, .96) 0%, rgba(238, 244, 249, .9) 55%, rgba(238, 244, 249, .6) 100%);
}
.page-title__inner { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: var(--inner); margin: 0 auto; }
.page-title__heading { font-size: 44px; font-weight: 700; line-height: 1.35; }
.page-title__lead { font-size: 18px; line-height: 1.9; color: var(--c-text-sub); }

/* ---- パンくず ---- */
.breadcrumb { padding: 20px var(--pad-x); background: #fff; }
.breadcrumb__inner { max-width: var(--inner); margin: 0 auto; color: var(--c-text-sub); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- 下層ページのセクション ---- */
.page-section { padding: 120px var(--pad-x); background: #fff; }
.page-section--blue { background: var(--c-bg-blue); }
.page-section__inner { display: flex; flex-direction: column; gap: 40px; max-width: var(--inner); margin: 0 auto; }
.page-section__inner--narrow-gap { gap: 32px; }
.page-section__title { font-size: 28px; font-weight: 700; line-height: 1.5; }
.page-section__note { line-height: 1.8; color: var(--c-text-sub); }

/* ---- お仕事の流れ ---- */
.steps { display: flex; flex-direction: column; gap: 40px; }
.step {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
}
.step__badge {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.step__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step__title { font-size: 22px; font-weight: 700; line-height: 1.5; }
.step__desc { font-size: 17px; line-height: 1.9; color: var(--c-text-sub); }

/* ---- 項目と内容の表(連絡の目安・稼働時間) ---- */
.info-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 40px;
  background: #fff;
  border: 2px solid var(--c-blue);
  border-radius: var(--radius-card);
}
.info-box--wide { padding: 40px 48px; }
.info-rows { margin: 0; }
.info-row { display: flex; gap: 32px; padding: 20px 0; border-bottom: 1px solid #c9d6e2; }
.info-row:last-child { border-bottom: 0; }
.info-row__label { flex: 0 0 160px; margin: 0; color: var(--c-text-sub); }
.info-row__body { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.info-row__main { font-size: 20px; font-weight: 700; line-height: 1.5; }
.info-row__sub { color: var(--c-text-sub); }
.info-box__note { color: var(--c-text-sub); }

/* ---- 料金 ---- */
.price { display: flex; flex-direction: column; gap: 12px; }
.price__main { font-size: 32px; font-weight: 700; line-height: 1.5; color: var(--c-blue); }
.price__text { font-size: 17px; line-height: 1.9; color: var(--c-text-sub); }

/* ---- 自己紹介 ---- */
.about { display: flex; gap: 72px; align-items: flex-start; max-width: var(--inner); margin: 0 auto; }
.about__figure { flex: 0 0 280px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.about__img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--c-border);
  border-radius: 50%;
}
.about__caption { color: var(--c-text-sub); text-align: center; white-space: nowrap; }
.about__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.about__block { display: flex; flex-direction: column; gap: 12px; }
.about__name { font-size: 32px; font-weight: 700; line-height: 1.5; }
.about__career { font-size: 18px; line-height: 2; }
.about__heading { font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--c-blue); }
.about__list { font-size: 17px; line-height: 2; }
.about__list li::before { content: "・"; }
.about__text { font-size: 17px; line-height: 1.9; }

/* ---- 対応範囲 ---- */
.scope-row { display: flex; gap: 80px; align-items: flex-start; }
.scope-row__img { flex: 0 0 360px; width: 360px; height: 240px; object-fit: cover; }
.scope-row__body { flex: 1 1 0; min-width: 0; }
.scope-items { display: flex; flex-direction: column; gap: 24px; line-height: 1.5; }
.scope-item { display: flex; flex-direction: column; gap: 4px; }
.scope-item__title { font-size: 20px; font-weight: 700; line-height: 1.5; }
.scope-item__desc { color: var(--c-text-sub); line-height: 1.5; }
.scope-text { font-size: 20px; line-height: 2; }

/* ---- サンプル記事一覧 ---- */
.articles { display: flex; gap: 32px; align-items: stretch; }
.articles .sample-card { flex: 1 1 0; min-width: 0; }

/* ---- 記事ページ ---- */
.article {
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: content-box;
  max-width: 800px; /* カンプ: 1440pxの左右320px余白 → 本文800px */
  margin: 0 auto;
  padding: 96px var(--pad-x) 120px;
}
.article__meta { display: flex; align-items: center; gap: 16px; }
.article__cat { font-weight: 700; color: var(--c-blue); }
.article__date { color: var(--c-text-sub); }
.article__figure { display: flex; flex-direction: column; gap: 12px; }
.article__thumb { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius-card); }
.article__caption { font-size: 14px; text-align: right; color: var(--c-text-sub); }
.article__body { display: flex; flex-direction: column; gap: 24px; }
.article__body p, .article__body li { font-size: 17px; line-height: 2; color: var(--c-text-sub); }
.article__body > p:first-child { font-size: 18px; color: var(--c-text); }
.article__body h2 { margin-top: 16px; font-size: 28px; font-weight: 700; line-height: 1.5; }
.article__body h3 { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.5; }
.article__body ul, .article__body ol { margin: 0; padding-left: 1.5em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body strong { color: var(--c-text); }
.article__body img { max-width: 100%; height: auto; border: 1px solid var(--c-border); border-radius: 8px; }
.article__body .c_article-figure { line-height: 0; }
.article__note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 40px;
  background: var(--c-bg-blue);
  border: 2px solid var(--c-blue);
  border-radius: var(--radius-card);
}
.article__note-title { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--c-blue); }
.article__note-text { font-size: 17px; line-height: 1.9; color: var(--c-text-sub); }
.article__back { font-weight: 700; color: var(--c-blue); }
.article__back:hover { text-decoration: underline; }

/* ---- 下層ページ スマホ・タブレット(1080px以下) カンプ: Mobile 390 ---- */
@media (max-width: 1080px) {
  .page-title { padding: 80px var(--pad-x) 40px; }
  .page-title__heading { font-size: 30px; }
  .page-title__heading--article { font-size: 24px; }
  .page-title__lead { font-size: 16px; }
  .breadcrumb { padding: 20px var(--pad-x); }
  .breadcrumb__inner { font-size: 14px; }

  .page-section { padding: 120px var(--pad-x); }
  .page-section__inner { gap: 40px; }
  .page-section__inner--narrow-gap { gap: 32px; }
  .page-section__title { font-size: 24px; }

  .steps { gap: 40px; }
  .step { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
  .step__badge { flex-basis: 44px; width: 44px; height: 44px; font-size: 18px; }
  .step__text { flex: none; width: 100%; }
  .step__title { font-size: 18px; }
  .step__desc { font-size: 16px; }

  .info-box { padding: 16px 24px 24px; gap: 20px; }
  .info-box--wide { padding: 24px; }
  .info-box--wide .info-row { gap: 24px; padding: 20px 0; }
  .info-box--wide .info-row:last-child { padding-bottom: 20px; }
  .info-row { flex-direction: column; gap: 4px; padding: 16px 0; }
  .info-row__label { flex: none; }
  .info-row__main { font-size: 18px; }

  .price__main { font-size: 26px; }
  .price__text { font-size: 16px; }

  .about { flex-direction: column; align-items: stretch; gap: 24px; }
  .about__figure { flex: none; }
  .about__img { width: 200px; height: 200px; }
  .about__body { gap: 40px; }
  .about__name { font-size: 26px; }
  .about__career { font-size: 16px; }
  .about__heading { font-size: 18px; }
  .about__list, .about__text { font-size: 16px; }

  .scope-row { flex-direction: column; gap: 24px; }
  .scope-row__img { flex: none; width: 100%; height: 240px; }
  .scope-item__title { font-size: 18px; }
  .scope-text { font-size: 16px; }

  .articles { flex-direction: column; gap: 24px; }
  .articles .sample-card { flex: none; }
  .articles .sample-card__cat { font-size: 16px; }
  .articles .sample-card__text { font-size: 16px; }

  .article { padding: 96px var(--pad-x) 120px; gap: 40px; }
  .article__caption { font-size: 13px; }
  .article__thumb { height: 197px; }
  .article__body p, .article__body li { font-size: 16px; }
  .article__body > p:first-child { font-size: 16px; }
  .article__body h2 { font-size: 24px; }
  .article__body h3 { font-size: 18px; }
  .article__note { padding: 24px 20px; }
  .article__note-title { font-size: 18px; }
  .article__note-text { font-size: 16px; }
}

/* ---- WordPressの管理バー(ログイン中のみ表示)の分だけ、ヘッダーとメニューを下げる ---- */
.admin-bar .header { top: 32px; }
@media (max-width: 1080px) {
  .admin-bar .header__nav { padding-top: calc(109px + 32px); }
}
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
  .admin-bar .header__nav { padding-top: calc(109px + 46px); }
}

/* ==========================================================
   お問い合わせページ(Contact Form 7)
   ========================================================== */
.contact { display: flex; flex-direction: column; gap: 24px; max-width: 720px; margin: 0 auto; }
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px;
  background: #fff;
  border: 2px solid var(--c-blue);
  border-radius: var(--radius-card);
}
.contact__lead { font-size: 18px; font-weight: 700; line-height: 1.7; }
.contact__unavailable { color: var(--c-text-sub); }
.contact__card--thanks { align-items: center; text-align: center; }
.contact__text { line-height: 1.8; }

.contact-form { display: flex; flex-direction: column; gap: 28px; }
.contact-form__field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form__field > .wpcf7-form-control-wrap { display: block; }
.contact-form__label { display: flex; align-items: center; gap: 8px; padding: 0; font-weight: 700; line-height: 1.5; }
.contact-form__badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--c-bg-blue);
  color: var(--c-text-sub);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.contact-form__badge--required { background: var(--c-cta); color: #fff; }
.contact-form__input,
.contact-form__textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: #fff;
  font: inherit;
  line-height: 1.7;
  color: var(--c-text);
}
.contact-form__textarea { min-height: 200px; resize: vertical; }
.contact-form__input:focus-visible,
.contact-form__textarea:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 0; border-color: var(--c-blue); }
/* 「お問い合わせ項目」と選択肢のあいだを、ほかの項目より16px広げる */
.contact-form__field--group .contact-form__label { margin-bottom: 16px; }
.contact-form .wpcf7-list-item { display: block; margin: 0; }
.contact-form .wpcf7-list-item + .wpcf7-list-item { margin-top: 12px; }
.contact-form .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.contact-form .wpcf7-list-item input { flex: 0 0 auto; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--c-blue); }
.contact-form__submit { align-self: center; min-width: 280px; cursor: pointer; font-family: inherit; }
.contact-form .wpcf7-not-valid-tip { margin-top: 4px; font-size: 14px; color: #b3261e; }
.contact-form .wpcf7-not-valid { border-color: #b3261e; }
.contact-form .wpcf7-spinner { margin: 0 auto; }
.contact-form .wpcf7-response-output {
  margin: 0;
  padding: 16px 20px;
  border: 2px solid var(--c-blue);
  border-radius: var(--radius-btn);
  line-height: 1.7;
}
/* 送信成功時は完了ページへ移動するので、ボタン下のメッセージは出さない */
.contact-form.sent .wpcf7-response-output { display: none; }
.contact-form.invalid .wpcf7-response-output,
.contact-form.failed .wpcf7-response-output,
.contact-form.unaccepted .wpcf7-response-output,
.contact-form.spam .wpcf7-response-output { border-color: #b3261e; }

@media (max-width: 1080px) {
  .contact__card { gap: 24px; padding: 24px 20px; }
  .contact__lead { font-size: 16px; }
  .contact-form { gap: 24px; }
  .contact-form__submit { align-self: stretch; min-width: 0; }
}

/* ---- Cookieバナー(Complianz): 拒否ボタンを同意ボタンと同じ強さにし、スマホ幅で画面を覆う面積を減らす ---- */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  --cmplz_button_deny_background_color: #3B29FF;
  --cmplz_button_deny_border_color: #3B29FF;
  --cmplz_button_deny_text_color: #ffffff;
}

@media (max-width: 768px) {
  #cmplz-cookiebanner-container .cmplz-cookiebanner { padding: 10px 14px; gap: 6px; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header { min-height: 0; margin: 0; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-divider { display: none; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message { margin: 0; font-size: 12px; line-height: 1.5; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { min-height: 44px; padding: 6px; font-size: 14px; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept,
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny { width: auto; flex: 1 1 calc(50% - 4px); }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences { min-height: 36px; font-size: 13px; }
}

/* ---- 固定ページの汎用テンプレート(page.php): プライバシーポリシー・Cookie Policy などの本文 ---- */
.page-content { max-width: 800px; width: 100%; line-height: 1.9; overflow-wrap: anywhere; }
.page-content > * + * { margin-top: 1.2em; }
.page-content h2 { margin-top: 2.4em; font-size: 24px; font-weight: 700; line-height: 1.5; }
.page-content h3 { margin-top: 2em; font-size: 20px; font-weight: 700; line-height: 1.5; }
.page-content ul, .page-content ol { padding-left: 1.5em; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li + li { margin-top: 0.4em; }
.page-content a { color: var(--c-blue); text-decoration: underline; }
.page-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.page-content th, .page-content td { padding: 8px 12px; border: 1px solid var(--c-border); text-align: left; vertical-align: top; }

@media (max-width: 768px) {
  .page-content h2 { font-size: 20px; }
  .page-content h3 { font-size: 18px; }
}

/* ---- お問い合わせフォーム: 送信ボタンの上の注意書き(プライバシーポリシーへのリンク) ---- */
.contact-form__notice { margin: 0 0 -12px; font-size: 14px; line-height: 1.7; color: var(--c-text-sub); text-align: center; }
.contact-form__notice a { color: var(--c-blue); text-decoration: underline; }

/* 固定ページ(page.php)の本文: 最初の要素の上の余白をなくす */
.page-content > :first-child { margin-top: 0; }
