/* ============================================================
   CLEAN BUSINESS — style.css
   ★ 顧客ごとに変更するのは「1. 設定」のCSS変数だけです。
   2以降は、レイアウトを変えたいとき以外は触らなくて構いません。
   ============================================================ */

/* ------------------------------------------------------------
   1. 設定（★ ここを書き換えるだけで配色・書体が変わります）
   ------------------------------------------------------------ */
:root {
  /* ブランドカラー */
  --c-bg: #FFFFFF;        /* 背景 */
  --c-main: #163A57;      /* メイン（見出し・フッター） */
  --c-accent: #2486BE;    /* アクセント（線・図・大きな数字など装飾用） */
  --c-sub: #EFF6FA;       /* サブ背景 */
  --c-text: #334B5C;      /* 本文 */

  /* ボタン・小さな青文字用
     アクセントは白背景でのコントラスト比が約4:1のため、
     文字を載せる箇所には少し深い青を使い、AA基準（4.5:1以上）を確保しています。
     アクセントを変えたら、この2色も合わせて調整してください。 */
  --c-cta: #1E73A5;
  --c-cta-hover: #165B85;
  --c-on-cta: #FFFFFF;

  --c-line: #D3E1EA;      /* 罫線 */

  /* 書体 */
  --font-serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* 寸法 */
  --maxw: 1120px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 8px;
  --section-y: clamp(72px, 11vw, 136px);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ------------------------------------------------------------
   2. ベース
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .02em;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open { overflow: hidden; }

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  color: var(--c-main);
  font-family: var(--font-serif);
  font-weight: 600;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-main);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------
   3. ボタン・リンク
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 54px;
  padding: 0 32px;
  border: 2px solid var(--c-cta);
  border-radius: 6px;
  background: var(--c-cta);
  color: var(--c-on-cta);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn::after {
  content: "→";
  content: "→" / "";
  font-weight: 400;
  transition: transform .2s ease;
}

.btn:hover {
  background: var(--c-cta-hover);
  border-color: var(--c-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 58, 87, .18);
}
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  background: var(--c-bg);
  color: var(--c-main);
  border-color: var(--c-main);
}
.btn--ghost:hover {
  background: var(--c-main);
  border-color: var(--c-main);
  color: #fff;
}

.btn--sm { min-height: 44px; padding: 0 22px; font-size: .9375rem; }
.btn--block { width: 100%; }

.text-link {
  color: var(--c-main);
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--c-main); }

/* ------------------------------------------------------------
   4. ヘッダー
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); }
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 2px 16px rgba(22, 58, 87, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-main);
  text-decoration: none;
}
.brand__logo { width: 32px; height: 32px; }
.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
}

/* メニューボタン（JS有効時のみ表示） */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-main);
  cursor: pointer;
}
.js .menu-toggle { display: block; }

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ナビ：JSなしの場合は常に表示（折り返して並ぶ） */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 28px;
}
.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-nav__list a {
  display: block;
  padding: 8px 0;
  color: var(--c-main);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  background: linear-gradient(var(--c-accent), var(--c-accent)) left bottom / 0 2px no-repeat;
  transition: background-size .25s ease;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="true"] { background-size: 100% 2px; }

/* JS有効・1080px未満：ドロワー式メニュー */
@media (max-width: 1079.98px) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 16px 24px rgba(22, 58, 87, .08);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list li + li { border-top: 1px solid var(--c-line); }
  .js .site-nav__list a {
    padding: 16px 4px;
    font-size: 1rem;
    background: none;
  }
  .js .site-nav .btn { width: 100%; min-height: 54px; font-size: 1rem; }
}

@media (min-width: 1080px) {
  .js .menu-toggle { display: none; }
}

/* ------------------------------------------------------------
   5. 共通：セクション・見出し
   ------------------------------------------------------------ */
.section { padding-block: var(--section-y); }
.section--sub { background: var(--c-sub); }

.section-head { max-width: 40em; margin-bottom: clamp(36px, 6vw, 64px); }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--c-cta);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
}
.section-label__no {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: .08em;
}
.section-label__no::after {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
}

.section h2 {
  font-size: clamp(1.625rem, 1.15rem + 2vw, 2.375rem);
  line-height: 1.5;
  letter-spacing: .04em;
}

.section-head__lead { margin-top: 22px; }

/* ------------------------------------------------------------
   6. 01 HERO
   ------------------------------------------------------------ */
.hero { padding-block: clamp(36px, 7vw, 96px) clamp(64px, 9vw, 120px); }

.hero__grid { display: grid; gap: clamp(36px, 6vw, 56px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--c-cta);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--c-accent); }

.hero__title {
  margin-bottom: 26px;
  font-size: clamp(2.125rem, 1.25rem + 3.7vw, 3.875rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: .03em;
}

.hero__lead { max-width: 33em; font-size: clamp(1rem, .95rem + .25vw, 1.0625rem); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 36px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  color: var(--c-main);
  font-size: .9375rem;
  font-weight: 500;
}
.hero__points li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 2px; top: .38em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--c-cta);
  border-bottom: 2px solid var(--c-cta);
  transform: rotate(-45deg);
}

.hero__visual {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--c-sub);
  border-radius: var(--radius);
}
.hero__visual svg, .hero__visual img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .hero__visual { aspect-ratio: 16 / 9; }
}

@media (min-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
  }
  .hero__visual { aspect-ratio: 7 / 6; }
}

/* ------------------------------------------------------------
   7. 02 PROBLEM / SOLUTION
   ------------------------------------------------------------ */
.ps-list { display: grid; gap: 20px; }

.ps-card {
  display: grid;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.ps-card__problem,
.ps-card__solution { padding: 28px 24px; }

.ps-card__solution { border-top: 1px solid var(--c-line); }

.ps-tag {
  margin-bottom: 12px;
  color: #5A6F7E;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
}
.ps-tag--solution { color: var(--c-cta); }
.ps-tag--solution::before { content: "→ "; content: "→ " / ""; }

.ps-card h3 {
  font-size: 1.1875rem;
  line-height: 1.65;
  letter-spacing: .03em;
}

@media (min-width: 768px) {
  .ps-card { grid-template-columns: 1fr 1fr; }
  .ps-card__problem, .ps-card__solution { padding: 36px 36px; }
  .ps-card__solution { border-top: 0; border-left: 1px solid var(--c-line); }
}

@media (min-width: 1080px) {
  .ps-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ps-card { grid-template-columns: 1fr; }
  .ps-card__problem, .ps-card__solution { padding: 36px 32px; }
  .ps-card__solution { border-left: 0; border-top: 1px solid var(--c-line); }
  /* 3枚の「お悩み」と「解決方針」の境界線を横一列にそろえる（非対応ブラウザでは通常表示） */
  @supports (grid-template-rows: subgrid) {
    .ps-card { grid-row: span 2; grid-template-rows: subgrid; gap: 0; }
  }
}

/* ------------------------------------------------------------
   8. 03 SERVICES
   ------------------------------------------------------------ */
.service-grid { display: grid; gap: 20px; }

.service-card {
  display: grid;
  gap: 22px;
  padding: 32px 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 58, 87, .08); }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  background: var(--c-sub);
  border-radius: 50%;
  color: var(--c-main);
}
.service-card__icon svg { width: 30px; height: 30px; }

.service-card__no {
  margin-bottom: 8px;
  color: var(--c-cta);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.375rem;
  line-height: 1.5;
  letter-spacing: .04em;
}

.service-card__note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  color: var(--c-main);
  font-size: .875rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .service-card { grid-template-columns: 60px 1fr; gap: 32px; padding: 36px 36px; }
}

@media (min-width: 1080px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service-card { grid-template-columns: 1fr; align-content: start; gap: 26px; padding: 40px 32px; }
}

/* ------------------------------------------------------------
   9. 04 ABOUT / STRENGTH
   ------------------------------------------------------------ */
.about__grid { display: grid; gap: clamp(40px, 7vw, 56px); }

.about__visual {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--c-main);
  border-radius: var(--radius);
}
.about__visual svg, .about__visual img { width: 100%; height: 100%; object-fit: cover; }

.about__body .section-head { margin-bottom: 8px; }

.strength-list { margin-top: 32px; }
.strength-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding-block: 26px;
  border-top: 1px solid var(--c-line);
}
.strength-list li:last-child { border-bottom: 1px solid var(--c-line); }

.strength-list__no {
  color: var(--c-accent);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.2;
}

.strength-list h3 { margin-bottom: 8px; font-size: 1.1875rem; line-height: 1.6; }

@media (min-width: 768px) {
  .about__visual { aspect-ratio: 16 / 10; }
  .strength-list li { grid-template-columns: 72px 1fr; }
}

@media (min-width: 1080px) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
  }
  .about__visual { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------------
   10. 05 CONTACT
   ------------------------------------------------------------ */
.contact-panel {
  display: grid;
  gap: 36px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 72px);
  background: var(--c-sub);
  border-radius: calc(var(--radius) * 1.5);
}
.contact-panel h2 { margin-bottom: 20px; }

.contact-panel__actions { display: grid; gap: 14px; align-content: center; }
.contact-panel__note { color: #4A5F6F; font-size: .875rem; text-align: center; }

@media (min-width: 1080px) {
  .contact-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: center; }
}

/* ------------------------------------------------------------
   11. フッター
   ------------------------------------------------------------ */
.site-footer {
  padding-block: 64px 32px;
  background: var(--c-main);
  color: #E4EDF3;
  font-size: .9375rem;
}
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

.footer__grid { display: grid; gap: 36px; }

.footer__name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.footer__tagline { margin-top: 8px; font-family: var(--font-serif); }

.footer__info { display: grid; gap: 10px; }
.footer__info > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; }
.footer__info dt { color: #B8CBD9; }

.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a { text-underline-offset: .3em; }
.footer__links a:hover { text-decoration-thickness: 2px; }

.footer__bottom {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #B8CBD9;
  font-size: .8125rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1.4fr; }
  .footer__links { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 28px; }
}

@media (min-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1.4fr auto; gap: 56px; }
  .footer__links { grid-column: auto; grid-auto-flow: row; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: end; }
}

/* ------------------------------------------------------------
   12. スクロール時のフェードイン（JS有効時のみ）
   ------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   13. 動きを減らす設定への対応（アニメーションなしでも全内容を表示）
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .service-card:hover { transform: none; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
}
