/* =========================================================
   HM SP SHOP サイト共通スタイル
   ---------------------------------------------------------
   色・フォント・幅は :root の変数でまとめて管理しています。
   顧客サイトに流用する場合は、まずここを書き換えてください。
   ========================================================= */

:root {
  --color-main: #1f3a5f;        /* メインカラー（見出し・ヘッダー） */
  --color-accent: #d9822b;      /* アクセント（ボタン） */
  --color-accent-dark: #b86a1d;
  --color-text: #2b2b2b;
  --color-text-sub: #5f6368;
  --color-bg: #ffffff;
  --color-bg-alt: #eef6fc;      /* 交互セクションの背景（青空に合わせた薄い空色） */
  --color-border: #dde2e8;
  --color-todo: #c0392b;        /* 【要入力】表示 */

  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --width-container: 1080px;
  --width-narrow: 760px;
  --radius: 8px;
  --header-height: 64px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-main); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: var(--width-narrow); }
.center { text-align: center; }

.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

.todo { color: var(--color-todo); font-weight: bold; }
.nowrap { display: inline-block; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: #fff; color: var(--color-main); border-color: var(--color-main); }
.btn-outline:hover { background: var(--color-bg-alt); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; min-width: 240px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-main);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn) {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-main);
  margin: 5px 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .site-nav li .btn { display: block; margin-top: 16px; }
}

/* ---------- ファーストビュー ---------- */
/* 背景：青空のグラデーション＋やわらかい雲（画像は使わずCSSのみ） */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #5fb4ec 0%, #9ed4f5 45%, #d8effc 80%, #ffffff 100%);
  padding: 72px 0 64px;
  text-align: center;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(6px);
}
.hero::before {
  top: 10%;
  left: -6%;
  width: 46%;
  height: 34%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,255,255,.95) 0 35%, transparent 62%),
    radial-gradient(ellipse at 60% 45%, rgba(255,255,255,.9) 0 30%, transparent 60%),
    radial-gradient(ellipse at 80% 65%, rgba(255,255,255,.85) 0 25%, transparent 55%);
}
.hero::after {
  top: 22%;
  right: -8%;
  width: 40%;
  height: 30%;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255,255,255,.85) 0 30%, transparent 60%),
    radial-gradient(ellipse at 55% 40%, rgba(255,255,255,.9) 0 32%, transparent 62%),
    radial-gradient(ellipse at 80% 60%, rgba(255,255,255,.8) 0 25%, transparent 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero .btn-outline { background: #fff; }
.hero-label {
  background: rgba(255,255,255,.85);
  display: inline-block;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--color-main);
  border: 1px solid var(--color-main);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--color-main);
  margin-bottom: 20px;
}
.hero-lead { color: var(--color-text); margin-bottom: 32px; }
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.9rem; color: var(--color-text-sub); }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--color-main);
  text-align: center;
  margin-bottom: 16px;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 14px auto 0;
}
.section-lead { text-align: center; color: var(--color-text-sub); margin-bottom: 40px; }

/* ---------- お悩み ---------- */
.problem-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.problem-list li {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 16px 16px 16px 44px;
  position: relative;
}
.problem-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--color-accent);
  font-weight: bold;
}
.problem-answer { text-align: center; font-size: 1.1rem; }

/* ---------- コンセプト ---------- */
.concept-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.concept-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--color-main);
}
.concept-num { font-size: 0.85rem; font-weight: bold; color: var(--color-accent); }
.concept-step h3 { font-size: 1.4rem; color: var(--color-main); margin: 4px 0 12px; }
.concept-goal { text-align: center; }

/* ---------- 対象 ---------- */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.tag-list li {
  border: 1px solid var(--color-main);
  color: var(--color-main);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.95rem;
}
.target-note { text-align: center; color: var(--color-text-sub); }

/* ---------- サービス ---------- */
.service-group { margin-bottom: 40px; }
.service-group-title {
  font-size: 1.15rem;
  color: var(--color-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-badge {
  background: var(--color-main);
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 12px;
  border-radius: 999px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-title { font-size: 1.15rem; color: var(--color-main); margin-bottom: 10px; }
.card-for {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
  font-weight: bold;
}
.service-exclude { color: var(--color-text-sub); font-size: 0.9rem; }

/* ---------- 料金 ---------- */
.price-heading {
  font-size: 1.15rem;
  color: var(--color-main);
  border-left: 4px solid var(--color-accent);
  padding-left: 12px;
  margin: 40px 0 16px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.price-plan { font-weight: bold; color: var(--color-text-sub); letter-spacing: 0.05em; }
.price-amount { font-size: 2rem; font-weight: bold; color: var(--color-main); }
.price-unit { font-size: 0.95rem; margin-left: 4px; }
.price-note { margin-top: 12px; font-size: 0.95rem; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.price-table td { text-align: right; font-weight: bold; color: var(--color-main); white-space: nowrap; }
.price-remarks {
  margin: 32px 0;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-text-sub);
}
.price-remarks p + p { margin-top: 6px; }
.price-grid-single { max-width: 520px; margin: 0 auto; }
.price-catch { font-size: 0.9rem; margin: 4px 0 8px; }
.price-sub { font-size: 0.85rem; color: var(--color-text-sub); margin-top: 4px; }
.price-table-sub { font-size: 0.85rem; font-weight: normal; color: var(--color-text-sub); }

/* 比較表（スマートフォンでは横スクロール） */
.table-scroll { overflow-x: auto; margin-top: 24px; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table caption { text-align: left; font-weight: bold; color: var(--color-main); margin-bottom: 8px; }
.compare-table th, .compare-table td {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}
.compare-table thead th { background: var(--color-main); color: #fff; text-align: center; }
.compare-table tbody th { background: var(--color-bg-alt); color: var(--color-main); white-space: nowrap; }
.compare-table td { width: 39%; }

/* 補足の囲み */
.info-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.info-box-title { font-weight: bold; color: var(--color-main); margin-bottom: 6px; }
.info-box p + p { margin-top: 6px; }

/* ---------- 流れ ---------- */
.flow-list {
  list-style: none;
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.flow-list li {
  counter-increment: flow;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
}
.flow-list li::before {
  content: "STEP " counter(flow);
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.flow-list h3 { font-size: 1.05rem; color: var(--color-main); margin-bottom: 6px; }
.flow-list p { font-size: 0.93rem; color: var(--color-text-sub); }

/* ---------- 私たちについて ---------- */
.about-text p + p { margin-top: 16px; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.info-table th, .info-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.info-table th { width: 32%; color: var(--color-main); white-space: nowrap; }

/* ---------- よくある質問 ---------- */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: bold;
  color: var(--color-main);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--color-accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 20px; }

/* ---------- お問い合わせ ---------- */
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.form-row { margin-bottom: 20px; border: none; padding: 0; }
.form-row > label, .form-row legend { display: block; font-weight: bold; margin-bottom: 6px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-main);
  outline-offset: 1px;
}
.check-group { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check-group label, .form-agree label { font-weight: normal; cursor: pointer; }
.req {
  display: inline-block;
  background: var(--color-todo);
  color: #fff;
  font-size: 0.72rem;
  padding: 0 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.form-message { margin-bottom: 16px; font-weight: bold; text-align: center; }
.form-message.is-error { color: var(--color-todo); }
.form-message.is-info { color: var(--color-main); }

/* ---------- フッター ---------- */
.site-footer { background: var(--color-main); color: #fff; padding: 48px 0 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-logo { font-size: 1.2rem; font-weight: bold; margin-bottom: 6px; }
.footer-desc { font-size: 0.9rem; opacity: 0.85; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; font-size: 0.9rem; }
.copyright { text-align: center; font-size: 0.8rem; opacity: 0.7; margin-top: 40px; }

/* ---------- スマホ固定ボタン ---------- */
.sp-fixed-cta { display: none; }
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0; }
  .hero-label { font-size: 0.92rem; padding: 4px 14px; }
  .hero-lead { text-align: left; }
  .btn-lg { width: 100%; min-width: 0; }
  .problem-list { grid-template-columns: 1fr; }
  .sp-fixed-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 14px;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .site-footer { padding-bottom: 88px; }
  .price-table th, .price-table td { padding: 12px 8px; }
  .price-table td { white-space: normal; min-width: 7em; }
  .compare-table { min-width: 0; font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .compare-table tbody th { white-space: normal; width: 22%; }
  .info-table th { width: auto; }
}

/* ---------- 下層ページ（プライバシーポリシー等） ---------- */
.page-header { background: var(--color-bg-alt); padding: 48px 0; text-align: center; }
.page-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--color-main); }
.page-body h2 { font-size: 1.15rem; color: var(--color-main); margin: 36px 0 12px; }
.page-body p, .page-body ul { margin-bottom: 12px; }
.page-body ul { padding-left: 1.5em; }
.draft-notice {
  border: 2px solid var(--color-todo);
  color: var(--color-todo);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: bold;
  margin-bottom: 24px;
}

/* ---------- 動き（アニメーション） ----------
   1. ファーストビュー：文字とボタンが順にふわっと表示／雲がゆっくり流れる
   2. スクロール：各ブロックが画面に入ったときに下からふわっと表示（js/main.js の 4）
   3. ボタン・カード：マウスを乗せると少し浮く
   動きを減らす設定（OSの「視差効果を減らす」等）の方には動きを止める */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cloud-drift-l {
  from { transform: translateX(0); }
  to   { transform: translateX(8vw); }
}
@keyframes cloud-drift-r {
  from { transform: translateX(0); }
  to   { transform: translateX(-6vw); }
}
.hero .container > * { animation: fade-up .8s ease-out both; }
.hero .container > :nth-child(2) { animation-delay: .15s; }
.hero .container > :nth-child(3) { animation-delay: .3s; }
.hero .container > :nth-child(4) { animation-delay: .45s; }
.hero .container > :nth-child(5) { animation-delay: .6s; }
.hero::before { animation: cloud-drift-l 18s ease-in-out infinite alternate; }
.hero::after  { animation: cloud-drift-r 22s ease-in-out infinite alternate; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.is-visible { opacity: 1; transform: none; }

.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31,58,95,.18); }
.card, .price-card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .price-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(31,58,95,.12); }
.card.reveal, .price-card.reveal { transition: opacity .7s ease-out, transform .7s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .hero .container > *, .hero::before, .hero::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .price-card:hover { transform: none; }
}

/* ---------- 2ページ目以降の背景デザイン ----------
   青空のファーストビューとつながるように、空色を基調にする。
   ・白のセクション：角にやわらかい空色・オレンジの光
   ・交互のセクション：薄い空色のグラデーション＋細かい水玉
   ・お問い合わせ：ファーストビューと同じ青空と雲で締める
   画像は使わず、CSSのみ。文字は装飾より前面に表示する */
.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }

.section:not(.section-alt):not(.section-contact)::before,
.section:not(.section-alt):not(.section-contact)::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.section:not(.section-alt):not(.section-contact)::before {
  width: 420px; height: 420px;
  top: -160px; right: -140px;
  background: radial-gradient(circle, rgba(95,180,236,.16) 0%, rgba(95,180,236,0) 70%);
}
.section:not(.section-alt):not(.section-contact)::after {
  width: 360px; height: 360px;
  bottom: -150px; left: -130px;
  background: radial-gradient(circle, rgba(217,130,43,.10) 0%, rgba(217,130,43,0) 70%);
}

.section-alt {
  background: linear-gradient(180deg, #f3f9fe 0%, #e6f2fb 100%);
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(95,180,236,.22) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  /* 水玉は上下の端だけに見せ、中央は無地にして読みやすくする */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 28%, transparent 72%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 28%, transparent 72%, #000 100%);
}

.section-contact {
  background: linear-gradient(180deg, #ffffff 0%, #d8effc 30%, #9ed4f5 100%);
}
.section-contact::before,
.section-contact::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(6px);
}
.section-contact::before {
  top: 18%; left: -8%; width: 40%; height: 22%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,255,255,.9) 0 35%, transparent 62%),
    radial-gradient(ellipse at 65% 45%, rgba(255,255,255,.85) 0 30%, transparent 60%);
}
.section-contact::after {
  bottom: 12%; right: -10%; width: 42%; height: 24%;
  background:
    radial-gradient(ellipse at 35% 55%, rgba(255,255,255,.85) 0 32%, transparent 62%),
    radial-gradient(ellipse at 70% 45%, rgba(255,255,255,.9) 0 30%, transparent 60%);
}
.section-contact .contact-form { box-shadow: 0 12px 32px rgba(31,58,95,.10); }
