@charset "UTF-8";

/* =========================================================
   株式会社彦ノ屋 トップページ スタイル
   ---------------------------------------------------------
   色や文字の大きさを変えたいときは、まず下の「基本設定」を
   書きかえてください。サイト全体にまとめて反映されます。
   ========================================================= */

/* ---------- 基本設定（色・文字・幅） ---------- */
:root {
  --navy: #0a2540;        /* ネイビー：見出し・フッターなど */
  --navy-2: #133a63;      /* ネイビー（少し明るい） */
  --blue: #1f6fd1;        /* ブルー：リンク・ボタン */
  --turquoise: #12b5b0;   /* ターコイズ：アクセント */
  --sky: #eef6fc;         /* 薄い水色：背景 */
  --white: #ffffff;
  --text: #1c2b3a;        /* 本文の文字色 */
  --muted: #5a6b7d;       /* 補足の文字色 */
  --line: #dbe5ee;        /* 区切り線 */

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Montserrat", var(--font-ja);

  --container: 1160px;    /* 中身の最大幅 */
  --radius: 10px;         /* 角の丸み */
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --header-h: 76px;
}

/* ---------- リセット・共通 ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* 見出しへ移動したとき、上の固定ヘッダーに隠れないよう余白をとる（なめらかな移動は js/main.js で行う） */
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* 見出しの不自然な改行を防ぐ（最後の行に1〜2文字だけ残らないように、言葉の切れ目で折り返す） */
h1, h2, h3, .hero__title, .entry__title, .contact__title, .intro__lead, .company__lead {
  text-wrap: balance; word-break: auto-phrase;
}
.hero__lead, .page-hero__lead, .section-head__lead, .contact__lead, .entry__text {
  text-wrap: pretty; word-break: auto-phrase;
}
.pc-only { display: inline; }
.sp-only { display: none; }
.nowrap { white-space: nowrap; }


/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  transition: transform .2s, background-color .2s, box-shadow .2s, color .2s;
}
.btn--primary { background: var(--turquoise); color: var(--white); box-shadow: 0 8px 20px rgba(18, 181, 176, .35); }
.btn--primary:hover { background: #0e9f9a; transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.8); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 10px 22px; font-size: 14px; box-shadow: none; }

.link-arrow { color: var(--blue); font-weight: 700; font-size: 15px; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(10,37,64,.06); }
.header__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__ja { font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: .06em; }
.logo__en { font-family: var(--font-en); font-size: 10px; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 24px; }
.nav__list a { font-size: 14px; font-weight: 500; color: var(--navy); position: relative; padding: 6px 0; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--turquoise); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__tel { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.nav__tel-num { font-family: var(--font-en); font-weight: 700; font-size: 18px; color: var(--navy); }
.nav__tel-time { font-size: 11px; color: var(--muted); }

.menu-btn { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,37,64,.88) 0%, rgba(10,37,64,.6) 45%, rgba(10,37,64,.05) 80%),
    url("../images/photo-hero.jpg") center / cover no-repeat;
  transform: scale(1.04); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__inner { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 80px 24px 120px; }
.hero__eyebrow {
  font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .3em; color: var(--turquoise);
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.hero__eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--turquoise); }
.hero__title { font-size: clamp(32px, 5.2vw, 60px); font-weight: 900; line-height: 1.35; letter-spacing: .04em; }
.hero__accent {
  background: linear-gradient(transparent 70%, rgba(18,181,176,.55) 70%);
}
.hero__lead { margin-top: 28px; font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,.88); max-width: 640px; }
.hero__buttons { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.7);
  padding-bottom: 44px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px; background: rgba(255,255,255,.7);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- セクション共通 ---------- */
.section { padding: 120px 0; }
.section--tint { background: var(--sky); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; gap: 16px; }
.section-head__en {
  font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .3em; color: var(--turquoise);
  margin-bottom: 8px;
}
.section-head__en--light { color: #7fe3df; }
.section-head__title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--navy); letter-spacing: .06em; line-height: 1.5; }
.section-head__lead { margin-top: 20px; color: var(--muted); }

/* ---------- 選ばれる理由 ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reason {
  position: relative; padding: 44px 32px 36px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.reason::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--navy), var(--turquoise)); }
.reason:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.reason__num { font-family: var(--font-en); font-weight: 700; font-size: 44px; line-height: 1; color: var(--sky); -webkit-text-stroke: 1px var(--turquoise); margin-bottom: 20px; }
.reason__title { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 14px; }
.reason__text { font-size: 15px; color: var(--muted); }

/* ---------- 対応工事 ---------- */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(10,37,64,.04); transition: box-shadow .3s, transform .3s;
}
.work:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work__step { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--turquoise); }
.work__icon { display: block; width: 44px; height: 44px; color: var(--blue); margin: 14px 0 12px; }
.work__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.work__text { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- 事業内容 ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.service { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.service__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { padding: 32px; display: flex; flex-direction: column; }
.service__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--blue);
  background: #e6f0fc; border-radius: 4px; padding: 2px 10px; margin-bottom: 12px;
}
.service__title { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.5; }
.service__text { font-size: 15px; color: var(--muted); }
.service__points { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.service__points li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 500; color: var(--navy-2); line-height: 1.6; }
.service__points li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--turquoise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- 施工実績 ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case__img { aspect-ratio: 4 / 3; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
/* 小さい写真（押すと上の大きい写真が切りかわる） */
.case__thumbs { display: flex; gap: 6px; padding: 10px 20px 0; overflow-x: auto; }
.case__thumbs button { flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.case__thumbs button:hover { opacity: 1; }
.case__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--turquoise); }
.case__thumbs img { width: 56px; height: 42px; object-fit: cover; border-radius: 2px; }
.case__body { padding: 16px 20px 22px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.case__tags li { font-size: 11px; font-weight: 700; color: var(--navy-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.case__title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 10px; }
.case__spec { font-size: 13px; }
.case__spec div { display: flex; gap: 10px; border-top: 1px dashed var(--line); padding: 4px 0; }
.case__spec dt { color: var(--muted); width: 5em; flex-shrink: 0; }
.case__text { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.case__link { margin-top: 12px; }
.case__link .link-arrow { font-size: 14px; }

/* ---------- 工事の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: flow; }
.flow__item { position: relative; text-align: center; padding: 0 4px; }
.flow__item:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 40px); width: calc(100% - 64px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--turquoise) 0 6px, transparent 6px 12px);
}
.flow__num {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--font-en); font-weight: 700; font-size: 20px; color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue)); margin-bottom: 16px;
}
.flow__item h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.flow__item p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 会社案内 ---------- */
.company { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.company__lead { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.6; margin: 24px 0 16px; }
.company__message > p:not(.section-head__en):not(.company__lead) { color: var(--muted); }
.history { margin-top: 32px; border-left: 2px solid var(--line); padding-left: 20px; display: grid; gap: 10px; }
.history li { position: relative; font-size: 14px; display: flex; gap: 14px; }
.history li::before { content: ""; position: absolute; left: -26px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2px solid var(--turquoise); }
.history span { font-family: var(--font-en); font-weight: 700; color: var(--navy); flex-shrink: 0; width: 4.6em; }
.company__table { background: var(--white); border-radius: var(--radius); padding: 8px 32px; box-shadow: var(--shadow); }
.company__table div { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.company__table div:last-child { border-bottom: none; }
.company__table dt { width: 6.5em; flex-shrink: 0; font-weight: 700; color: var(--navy); }

/* ---------- お問い合わせ ---------- */
.contact {
  padding: 110px 0; color: var(--white); text-align: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(18,181,176,.35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1a5a8f 100%);
}
.contact__title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.contact__lead { margin-top: 16px; color: rgba(255,255,255,.85); }
.contact__boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 48px auto 0; }
.contact__box {
  display: flex; flex-direction: column; gap: 4px; padding: 32px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); transition: background .25s, transform .25s;
}
.contact__box:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.contact__box--accent { background: var(--turquoise); border-color: var(--turquoise); }
.contact__box--accent:hover { background: #0e9f9a; }
.contact__box-label { font-size: 13px; color: rgba(255,255,255,.85); }
.contact__box-main { font-size: 26px; font-weight: 700; font-family: var(--font-en), var(--font-ja); }
.contact__box--accent .contact__box-main { font-family: var(--font-ja); font-size: 20px; }
.contact__box-sub { font-size: 12px; color: rgba(255,255,255,.75); }
.contact__line {
  display: flex; align-items: center; gap: 24px; max-width: 860px; margin: 24px auto 0; padding: 20px 24px;
  border-radius: var(--radius); background: var(--white); color: var(--text); text-align: left;
}
.contact__line img { width: 104px; height: 104px; flex-shrink: 0; }
.contact__line-title { font-weight: 700; color: var(--navy); font-size: 17px; }
.contact__line-text { font-size: 14px; color: var(--muted); margin-top: 4px; }
/* LINEの友だち追加ボタン（LINEのブランドカラー） */
.btn--line { margin-top: 12px; padding: 12px 28px; font-size: 15px; background: #06c755; color: var(--white); }
.btn--line:hover { background: #05b14c; transform: translateY(-2px); }

/* =========================================================
   下層ページ（お問い合わせ・ソーラーシェアリング・プライバシーポリシー）
   ========================================================= */

/* ---------- ページ上部の見出し ---------- */
.page-hero {
  position: relative; color: var(--white); padding: 80px 0 64px; overflow: hidden;
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat;
  background-image: linear-gradient(120deg, rgba(10,37,64,.94), rgba(19,58,99,.85));
}
/* 背景写真は各ページの HTML に style="background-image: ..." で指定 */
.page-hero__en { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .3em; color: #7fe3df; margin-bottom: 8px; }
.page-hero__title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: .06em; line-height: 1.4; }
.page-hero__lead { margin-top: 16px; color: rgba(255,255,255,.85); max-width: 720px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }

/* ---------- お問い合わせフォーム ---------- */
.form-wrap { max-width: 860px; margin: 0 auto; }
.form-intro { text-align: center; margin-bottom: 40px; color: var(--muted); }
.form-intro--note { margin-top: -28px; font-size: 14px; }
.form-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.form-alt a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white); text-align: center; transition: box-shadow .25s;
}
.form-alt a:hover { box-shadow: var(--shadow); }
.form-alt__label { font-size: 12px; color: var(--muted); }
.form-alt__main { font-family: var(--font-en), var(--font-ja); font-size: 22px; font-weight: 700; color: var(--navy); }
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; }
.form__row { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.form__row:first-child { padding-top: 0; }
.form__label { font-weight: 700; color: var(--navy); padding-top: 10px; display: flex; align-items: flex-start; gap: 8px; }
.form__badge { flex-shrink: 0; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 3px; margin-top: 4px; color: var(--white); background: var(--turquoise); }
.form__badge--any { background: #9aa9b8; }
.form__input, .form__select, .form__textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #f7fafc;
  border: 1px solid #c9d6e2; border-radius: 6px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(18,181,176,.2); background: var(--white); }
.form__textarea { min-height: 180px; resize: vertical; }
.form__hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form__agree { margin-top: 32px; text-align: center; font-size: 15px; }
.form__agree label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form__agree input { width: 20px; height: 20px; accent-color: var(--turquoise); }
.form__agree a { color: var(--blue); text-decoration: underline; }
.form__submit { margin-top: 32px; text-align: center; }
.form__submit .btn { min-width: 320px; font-size: 16px; border: none; cursor: pointer; font-family: inherit; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 文章ページ（プライバシーポリシーなど） ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose > p { margin-bottom: 16px; }
.prose h2 { font-size: 20px; color: var(--navy); margin: 48px 0 16px; padding-left: 14px; border-left: 4px solid var(--turquoise); line-height: 1.5; }
.prose ul, .prose ol { margin: 0 0 16px 1.5em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose .prose__box { background: var(--sky); border-radius: var(--radius); padding: 24px 28px; margin-top: 16px; }
.prose .prose__date { margin-top: 48px; text-align: right; color: var(--muted); }

/* ---------- ソーラーシェアリング ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.intro__img { border-radius: var(--radius); overflow: hidden; }
.intro__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.intro__text p + p { margin-top: 16px; }
.intro__lead { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 20px; }
.crops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.crop { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); }
.crop__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.crop__text { font-size: 15px; color: var(--muted); }
.crops-other { margin-top: 32px; text-align: center; color: var(--muted); font-size: 15px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pc-box { background: var(--white); border-radius: var(--radius); padding: 36px 32px; border-top: 4px solid var(--turquoise); box-shadow: 0 2px 10px rgba(10,37,64,.05); }
.pc-box--caution { border-top-color: var(--navy-2); }
.pc-box__title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.pc-box ul { display: grid; gap: 10px; }
.pc-box li { position: relative; padding-left: 22px; font-size: 15px; }
.pc-box li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); }
.pc-box--caution li::before { background: var(--navy-2); }
.rules { counter-reset: rule; display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.rule { counter-increment: rule; display: grid; grid-template-columns: 56px 1fr; gap: 20px; background: var(--white); border-radius: var(--radius); padding: 24px 28px; border: 1px solid var(--line); }
.rule::before {
  content: counter(rule, decimal-leading-zero); font-family: var(--font-en); font-weight: 700; font-size: 20px; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.rule__title { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.rule__text { font-size: 15px; color: var(--muted); }
.rules-note { max-width: 900px; margin: 24px auto 0; font-size: 13px; color: var(--muted); }
.rules-note a { color: var(--blue); text-decoration: underline; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-row--4 { grid-template-columns: repeat(4, 1fr); }
.service__more { margin-top: 16px; }

/* ---------- トップ：一番上の見出し（H1） ---------- */
.hero__h1 {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: clamp(14px, 1.5vw, 17px); font-weight: 700; letter-spacing: .08em; line-height: 1.6; color: #7fe3df;
}
.hero__h1::before { content: ""; width: 40px; height: 2px; background: var(--turquoise); flex-shrink: 0; }

/* ---------- トップ：法人／住宅の入口 ---------- */
.entry-wrap { position: relative; z-index: 2; margin-top: -72px; }
.entry { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.entry__card {
  display: flex; flex-direction: column; padding: 36px 36px 32px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s;
}
.entry__card:hover { transform: translateY(-4px); }
.entry__card--biz { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: var(--navy); color: var(--white); }
.entry__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--turquoise); margin-bottom: 8px; }
.entry__card--biz .entry__tag { color: #7fe3df; }
.entry__title { font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--navy); margin-bottom: 10px; }
.entry__card--biz .entry__title { color: var(--white); }
.entry__text { font-size: 15px; color: var(--muted); flex-grow: 1; }
.entry__card--biz .entry__text { color: rgba(255,255,255,.82); }
.entry__more { margin-top: 20px; font-weight: 700; font-size: 15px; color: var(--blue); }
.entry__card--biz .entry__more { color: #7fe3df; }
.entry__more::after { content: " →"; }

/* ---------- 対応エリア（4県） ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.area-card--main { border: 2px solid var(--turquoise); }
.area-card__label { font-size: 12px; font-weight: 700; color: var(--turquoise); margin-bottom: 4px; }
.area-card__name { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.area-card__text { font-size: 14px; color: var(--muted); }
.areas-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 15px; }
.areas-more { margin-top: 20px; text-align: center; }

/* ---------- 関連ページへのリンク ---------- */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.links a {
  display: block; padding: 22px 24px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s;
}
.links a:hover { box-shadow: var(--shadow); border-color: var(--turquoise); }
.links__title { display: block; font-weight: 700; color: var(--navy); }
.links__title::after { content: " →"; color: var(--turquoise); }
.links__text { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- 箇条書きのボックス・表 ---------- */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info-table { max-width: 860px; margin: 0 auto; }
.section-note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.section-note a { color: var(--blue); text-decoration: underline; }
.center-btn { margin-top: 40px; text-align: center; }

/* ---------- フッター ---------- */
.footer { background: #071a2e; color: rgba(255,255,255,.75); padding: 64px 0 24px; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; }
.footer__nav a:hover { color: var(--turquoise); }
.footer__copy { text-align: center; font-family: var(--font-en); font-size: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

.sp-cta { display: none; }

/* ---------- スクロールでふわっと表示 ---------- */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .fade-in { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   タブレット（幅1100px以下）
   ========================================================= */
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  /* すりガラス効果があるとメニューが表示されないため、白背景にする */
  .header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; border: none; border-radius: 8px; background: var(--navy); cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 24px;
    background: var(--white); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 16px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__tel { text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
  .nav__cta .btn { padding: 16px; font-size: 15px; }

  .works { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow__item:nth-child(3)::after { display: none; }
  .company { grid-template-columns: 1fr; gap: 40px; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .crops { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   スマートフォン（幅700px以下）
   ========================================================= */
@media (max-width: 700px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .container { padding: 0 16px; }
  .header__inner { padding: 0 16px; }
  .logo__ja { font-size: 15px; }

  .hero { min-height: 640px; align-items: flex-end; }
  .hero__bg { background:
    linear-gradient(180deg, rgba(10,37,64,.35) 0%, rgba(10,37,64,.85) 55%, rgba(10,37,64,.95) 100%),
    url("../images/photo-hero-sp.jpg") center / cover no-repeat; }
  .hero__inner { padding: 120px 16px 104px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .2em; }
  .hero__eyebrow::before { width: 24px; }
  .hero__buttons .btn { width: 100%; }
  .hero__scroll { display: none; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .reasons, .services, .cases, .contact__boxes { grid-template-columns: 1fr; }
  .reason { padding: 36px 24px 28px; }
  .works { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work { padding: 20px 16px; }
  .work__title { font-size: 16px; }
  .work__text { font-size: 13px; }
  .service__body { padding: 24px 20px; }
  .service__title { font-size: 20px; }

  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__item { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; padding: 0 0 28px; }
  .flow__item::after { display: none !important; }
  .flow__item:not(:last-child)::before {
    content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px;
    background: repeating-linear-gradient(180deg, var(--turquoise) 0 6px, transparent 6px 12px);
  }
  .flow__num { width: 56px; height: 56px; font-size: 17px; grid-row: span 2; margin: 0; }
  .flow__item h3 { align-self: end; margin: 6px 0 2px; }

  .company__table { padding: 4px 20px; }
  .company__table div { flex-direction: column; gap: 2px; }

  .contact { padding: 80px 0; }
  .contact__box-main { font-size: 24px; }
  /* スマホでは自分の画面のQRコードは読み取れないので、QRコードを隠して「友だち追加」ボタンだけにする */
  .contact__line { flex-direction: column; text-align: center; gap: 4px; }
  .contact__line-qr { display: none; }
  .btn--line { width: 100%; }

  .footer__nav { grid-template-columns: repeat(2, auto); }

  .page-hero { padding: 56px 0 44px; }
  .form-alt { grid-template-columns: 1fr; }
  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; padding: 16px 0; }
  .form__label { padding-top: 0; }
  .form__submit .btn { min-width: 0; width: 100%; }
  .crops, .pros-cons, .photo-row { grid-template-columns: 1fr; }
  .photo-row--4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rule { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; }
  .rule::before { width: 44px; height: 44px; font-size: 16px; }
  .pc-box { padding: 28px 22px; }

  .hero__h1::before { width: 24px; }
  .entry-wrap { margin-top: -40px; }
  .entry, .check-grid, .links { grid-template-columns: 1fr; gap: 16px; }
  .entry__card { padding: 28px 22px 24px; }
  .entry__title { font-size: 19px; }
  .areas { grid-template-columns: 1fr 1fr; gap: 12px; }
  .area-card { padding: 20px 16px; }
  .area-card__name { font-size: 19px; }

  .sp-cta {
    display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -4px 16px rgba(10,37,64,.12);
  }
  .sp-cta a { display: flex; align-items: center; justify-content: center; height: 60px; font-weight: 700; font-size: 15px; color: var(--white); }
  .sp-cta__tel { background: var(--navy); }
  .sp-cta__mail { background: var(--turquoise); }
}
