@charset "UTF-8";

/* ======================================================
   Japan Happy Lab スタイルシート

   編集のヒント
   ・色を変えたいときは、下の「色の設定」だけを書き換えれば全体が変わります
   ・文字の大きさや余白も、まずはこのファイルの上のほうで調整できます
   ====================================================== */

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


/* ------------------------------------------------------
   色の設定（ここを変えるとサイト全体の色が変わります）
   ------------------------------------------------------ */
:root {
  --color-primary: #f26a1b;        /* メインのオレンジ（明るく元気な印象） */
  --color-primary-dark: #d2540c;   /* ボタンにマウスを乗せたときの濃いオレンジ */
  --color-accent: #ffd166;         /* アクセントの黄色 */
  --color-line: #06c755;           /* LINEの緑 */
  --color-line-dark: #05a648;
  --color-text: #2f2a26;           /* 本文の文字色 */
  --color-text-light: #6b625c;     /* 補足の文字色 */
  --color-bg: #ffffff;             /* 背景の白 */
  --color-bg-soft: #fff7ef;        /* うすいオレンジの背景 */
  --color-border: #e8ded5;         /* 枠線 */

  --radius: 14px;                  /* 角の丸み */
  --shadow: 0 6px 20px rgba(47, 42, 38, 0.08);
  --container-width: 1080px;       /* 中身の最大幅 */
}


/* ------------------------------------------------------
   全体の土台
   ------------------------------------------------------ */
* { box-sizing: border-box; }

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

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

a { color: var(--color-primary-dark); }

h1, h2, h3 {
  line-height: 1.5;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; }

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

/* 中身をそろえる箱 */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* アイコンの共通設定（大きさと色はここで統一） */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* キーボード操作でどこを選んでいるかわかるようにする */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}


/* ------------------------------------------------------
   ボタン
   ------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.button:hover { transform: translateY(-2px); }

.button .icon { width: 20px; height: 20px; }

/* オレンジのボタン */
.button-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.button-primary:hover { background: var(--color-primary-dark); }

/* LINEの緑のボタン */
.button-line {
  background: var(--color-line);
  color: #ffffff;
}
.button-line:hover { background: var(--color-line-dark); }

/* 枠線だけのボタン */
.button-outline {
  background: #ffffff;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}
.button-outline:hover { background: var(--color-bg-soft); }

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ------------------------------------------------------
   ヘッダー（画面上部に固定）
   ------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

/* 少し下にスクロールしたときだけ影をつける（JavaScriptで切り替え） */
.header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.logo-text {
  font-weight: bold;
  font-size: 17px;
}

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

.nav-list {
  display: flex;
  gap: 20px;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  font-size: 15px;
  padding: 6px 0;
}

.nav-list a:hover { color: var(--color-primary-dark); }

.header-cta { padding: 10px 20px; font-size: 15px; }

/* スマートフォン用のメニューボタン（パソコンでは隠す） */
.menu-button {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px;
  color: var(--color-text);
  cursor: pointer;
}


/* ------------------------------------------------------
   セクション1: ファーストビュー
   ------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #ffffff 100%);
  padding: 56px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.hero-badge .icon { width: 18px; height: 18px; }

.hero-title {
  font-size: 40px;
  letter-spacing: 0.5px;
}

/* 見出しの一部に黄色いラインを引く */
.hero-title br + * { display: inline; }

.hero-lead {
  font-size: 17px;
  color: var(--color-text-light);
}

.hero-points {
  margin: 0 0 28px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: bold;
  margin-bottom: 8px;
}

.hero-points .icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-top: 4px;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  /* 縦長の写真でも間延びしないように高さを制限する */
  max-height: 420px;
  object-fit: cover;
}


/* ------------------------------------------------------
   セクションの共通部分
   ------------------------------------------------------ */
.section { padding: 72px 0; }

.section-title {
  font-size: 30px;
  text-align: center;
  margin-bottom: 12px;
}

/* 見出しの下に短い線を引く */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-accent);
  margin: 14px auto 0;
}

.section-title-left { text-align: left; }
.section-title-left::after { margin-left: 0; }

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
}


/* ------------------------------------------------------
   カード（お悩み・サービスで共通して使う）
   ------------------------------------------------------ */
.card-list {
  display: grid;
  gap: 24px;
}

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

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  font-size: 15px;
  margin: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* 写真つきのカード（サービス紹介） */
.card-photo { padding: 0; overflow: hidden; }
.card-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.card-photo .card-body { padding: 24px; }


/* ------------------------------------------------------
   セクション2: お悩み
   ------------------------------------------------------ */
.section-worries { background: var(--color-bg-soft); }

.worries-answer {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin: 40px 0 0;
}


/* ------------------------------------------------------
   セクション4: 選ばれる理由
   ------------------------------------------------------ */
.section-reason { background: var(--color-bg-soft); }

.reason-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.reason-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.reason-list li {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.reason-list h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.reason-list p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 15px;
}

.reason-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
}


/* ------------------------------------------------------
   セクション5: よくある質問
   ------------------------------------------------------ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 52px 20px 22px;
  font-weight: bold;
  position: relative;
  list-style: none;
}

/* ブラウザが標準でつける三角の印を消す */
.faq-item summary::-webkit-details-marker { display: none; }

/* 開閉を示すプラス記号（縦棒と横棒を組み合わせて作る） */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--color-primary);
  transform: translateY(-50%);
}

.faq-item summary::before {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  width: 2px;
  height: 14px;
  background: var(--color-primary);
  transform: translateY(-50%);
  transition: opacity 0.2s;
}

/* 開いているときは縦棒を消してマイナス記号にする */
.faq-item[open] summary::before { opacity: 0; }

.faq-answer {
  padding: 0 22px 20px;
  color: var(--color-text-light);
}

.faq-answer p { margin: 0; }


/* ------------------------------------------------------
   お問い合わせ
   ------------------------------------------------------ */
.section-contact {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-soft) 100%);
  padding-bottom: 84px;
}

.contact-lead { font-size: 17px; }

.contact-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  transition: background-color 0.2s, transform 0.2s;
}

.contact-button:hover {
  background: var(--color-bg-soft);
  transform: translateY(-3px);
}

.contact-button strong { font-size: 18px; }

.contact-note {
  font-size: 14px;
  color: var(--color-text-light);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  margin-bottom: 6px;
}

.contact-icon .icon { width: 28px; height: 28px; }

/* LINEのボタンだけ緑にする */
.contact-button-line { border-color: var(--color-line); }
.contact-button-line .contact-icon { background: var(--color-line); }
.contact-button-line:hover { background: #f0fbf3; }


/* ------------------------------------------------------
   フッター
   ------------------------------------------------------ */
.footer {
  background: var(--color-text);
  color: #ffffff;
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.footer-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 14px;
  color: #d8d0ca;
  margin: 0;
}

.footer-nav ul {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
}

.footer-nav a:hover { text-decoration: underline; }

.copyright {
  text-align: center;
  font-size: 13px;
  color: #b9b0a9;
  margin: 36px 0 0;
}


/* ======================================================
   タブレット向けの調整（画面幅900px以下）
   ====================================================== */
@media (max-width: 900px) {
  .hero-inner,
  .reason-inner {
    grid-template-columns: 1fr;
  }

  /* スマートフォンでは 見出し → 説明 → 写真 の順にする */
  .hero-image { order: 2; }
  .hero-text { order: 1; }

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


/* ======================================================
   スマートフォン向けの調整（画面幅700px以下）
   ====================================================== */
@media (max-width: 700px) {

  body { font-size: 15.5px; }

  /* メニューは開閉式にする */
  .menu-button { display: inline-flex; }

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

  /* JavaScriptでこのクラスが付いたときだけ表示する */
  .nav.is-open { display: flex; }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .header-cta {
    justify-content: center;
    margin-top: 16px;
  }

  .header-inner { position: relative; }

  .logo-text { font-size: 15px; }

  .hero { padding: 36px 0 44px; }

  .hero-title { font-size: 28px; }

  .hero-lead { font-size: 16px; }

  .hero-image img { max-height: 260px; }

  /* ボタンは縦に3つ並べ、押しやすい大きさにする */
  .button-group { flex-direction: column; }
  .button { justify-content: center; }

  .section { padding: 52px 0; }

  .section-title { font-size: 24px; }

  .card-list-3,
  .contact-buttons {
    grid-template-columns: 1fr;
  }

  .reason-image img { max-height: 260px; }

  .footer-inner { grid-template-columns: 1fr; }
}
