@charset "UTF-8";

/* ============================================================
   おこまWebサービス スタイルシート
   1. 全体の設定    2. 部品（ボタン・アイコン）  3. ヘッダー
   4. ヒーロー      5. セクション共通           6. カード
   7. 選ばれる理由  8. よくある質問             9. 問い合わせ
   10. フッター     11. スマートフォン対応
   色を変えたいときは、下の「色の設定」の値だけを書きかえてください。
   ============================================================ */

/* ------------------------------------------------------------
   1. 全体の設定
   ------------------------------------------------------------ */

:root {
  /* 色の設定：紺色で信頼感を、オレンジであたたかさを出しています */
  --navy: #123a5e;        /* 主役の色。見出しや背景に使う */
  --navy-dark: #0d2b46;   /* 紺色の濃いほう */
  --navy-light: #2c5f8f;  /* 紺色の薄いほう */
  --orange: #e2803a;      /* アクセント。ボタンや飾り線に使う */
  --orange-dark: #c96a27;
  --text: #2c3742;        /* 本文の文字色 */
  --text-sub: #5d6b78;    /* 補足の文字色 */
  --bg: #ffffff;          /* 背景 */
  --bg-tint: #f6f2ec;     /* 一段落ち着かせた背景。あたたかいベージュ */
  --line: #e2dcd4;        /* 枠線 */

  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 58, 94, .08);
  --shadow-lg: 0 14px 40px rgba(18, 58, 94, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
  word-break: auto-phrase;

  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy-light); }

h1, h2, h3 {
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

/* 中身の横幅をそろえる箱 */
.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - 40px);
}

/* キーボード操作でどこにいるか分かるようにする */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   2. 部品（ボタン・アイコン）
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(226, 128, 58, .3);
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(226, 128, 58, .38);
}

/* 白抜きのボタン（副ボタン） */
.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--bg-tint);
  border-color: var(--navy-light);
  box-shadow: none;
}

/* 紺色の背景の上に置く白いボタン */
.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.btn--light:hover { background: #fdf6ee; }

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

/* ヘッダーの中の小さいボタン */
.btn--small {
  padding: 10px 22px;
  font-size: 15px;
}

/* SVGアイコンの大きさをそろえる */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   3. ヘッダー
   ------------------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}

/* 少しスクロールしたら影をつける（script.jsが is-scrolled を付け外しします） */
.header.is-scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .02em;
}

.logo__accent { color: var(--orange); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__list {
  display: flex;
  gap: 24px;
}

.nav__list a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav__list a:hover {
  color: var(--navy);
  border-bottom-color: var(--orange);
}

/* スマートフォン用のメニューボタン。広い画面では隠す */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform .25s, opacity .25s;
}

/* ------------------------------------------------------------
   4. ヒーロー（ファーストビュー）
   ------------------------------------------------------------ */

.hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%);
  padding: 72px 0 84px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: .01em;
  margin-bottom: 22px;
}

.hero__lead {
  color: var(--text-sub);
  margin-bottom: 32px;
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-sub);
}

.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  /* 写真が縦長でも間延びしないように、高さを決めて切り抜く */
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* ------------------------------------------------------------
   5. セクション共通
   ------------------------------------------------------------ */

.section { padding: 84px 0; }

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

.section__title {
  font-size: clamp(24px, 3.2vw, 32px);
  text-align: center;
  margin-bottom: 18px;
}

/* 見出しの下に短い飾り線を引く */
.section__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--orange);
  border-radius: 3px;
}

.section__lead {
  text-align: center;
  color: var(--text-sub);
  max-width: 40em;
  margin: 0 auto 48px;
}

/* ------------------------------------------------------------
   6. カード（お悩み・サービス）
   ------------------------------------------------------------ */

.cards {
  display: grid;
  gap: 26px;
}

.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--navy);
  margin-bottom: 18px;
}

.card__icon svg { width: 26px; height: 26px; }

.card__title {
  font-size: 18px;
  margin-bottom: 12px;
}

.card__text {
  color: var(--text-sub);
  font-size: 15px;
}

/* 写真つきのカード（サービス） */
.card--photo { padding: 0; overflow: hidden; }

.card--photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card__body { padding: 28px 26px 32px; }

/* カードの中の箇条書き */
.list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.list__mark {
  display: inline-flex;
  color: var(--orange);
  margin-top: 5px;
}

.list__mark svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------
   7. 選ばれる理由
   ------------------------------------------------------------ */

.reasons {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.reasons__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  /* 縦長の写真なので、高さを決めて切り抜く */
  max-height: 520px;
  object-fit: cover;
}

.reasons__list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.reason {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.reason__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}

.reason__icon svg { width: 24px; height: 24px; }

.reason__title {
  font-size: 17px;
  margin-bottom: 8px;
}

.reason__text {
  color: var(--text-sub);
  font-size: 15px;
}

/* ------------------------------------------------------------
   8. よくある質問（クリックで開閉）
   ------------------------------------------------------------ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq__item h3 { margin: 0; font-size: inherit; }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  line-height: 1.7;
}

.faq__q:hover { background: var(--bg-tint); }

.faq__mark {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--orange);
  transition: transform .25s;
}

.faq__mark svg { width: 22px; height: 22px; }

/* 開いているときは矢印を反転させる */
.faq__q[aria-expanded="true"] .faq__mark { transform: rotate(180deg); }

/* 答えの部分。閉じているときは高さ0で隠す */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq__a p {
  padding: 0 24px 24px;
  color: var(--text-sub);
  font-size: 15px;
}

/* ------------------------------------------------------------
   9. 問い合わせ
   ------------------------------------------------------------ */

.cta {
  margin-top: 84px;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta__title {
  color: #fff;
  font-size: clamp(23px, 3.2vw, 31px);
  margin-bottom: 20px;
}

.cta__text {
  color: rgba(255, 255, 255, .88);
  margin-bottom: 34px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta__note {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}

/* ------------------------------------------------------------
   10. フッター
   ------------------------------------------------------------ */

.footer {
  background: var(--bg-tint);
  padding: 52px 0 28px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.footer__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 8px;
}

.footer__text {
  font-size: 14px;
  color: var(--text-sub);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.footer__nav a:hover { text-decoration: underline; }

.footer__copy {
  margin-top: 36px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}

/* ------------------------------------------------------------
   11. スマートフォン対応
   ------------------------------------------------------------ */

/* タブレット：3列を2列にする */
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }

  .hero__inner,
  .reasons {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .reasons__media img { max-height: 340px; }
}

/* スマートフォン：すべて縦一列にする */
@media (max-width: 767px) {
  body { font-size: 15px; }

  .section { padding: 60px 0; }

  .hero { padding: 48px 0 60px; }

  .cards--3 { grid-template-columns: 1fr; }

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }

  /* メニューボタンを表示し、メニューは開くまで隠す */
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  /* script.jsが is-open を付けたときだけ表示する */
  .nav.is-open { display: flex; }

  .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav__list a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .reason { flex-direction: column; gap: 14px; }

  .footer__inner { flex-direction: column; }
}

/* 動きを減らす設定にしている人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
