/* =========================================================
   株式会社ロンド・クローフ　サイト共通スタイル（全ページでこの1ファイルだけを使う）

   ■ 方針
   - 見た目は、できるだけ HTML の要素（h1, section, dl など）に直接つける。
   - クラスは、下の「部品」だけに使う。新しいクラスはむやみに増やさない。
   - 色・余白・角丸は :root の変数で一括管理する。色を変えたいときはここだけ直す。
   - 文字は Noto Sans JP（太さ400と700の2種類だけ）。assets/fonts/fonts.css で自社サーバーから配信する。

   ■ 部品（クラス）一覧 ― これ以外のクラスは作らない
   .btn            ボタン　　（.btn.call＝電話・お問い合わせ用のオレンジ）
   .grid           カードなどを横に並べる箱（画面幅に合わせて自動で折り返す）
   .card           枠つきの箱。中に <img> を入れると「写真の上に文字が乗るタイル」になる
   .tag            お金の向きのラベル（data-kind="free|buy|paid" で色が変わる）
   .alt            背景をうすい色にしたいセクション
   .photo          写真を入れる枠
   .steps          番号つきの手順（ol に付ける。data-kind="digital" を付けると青系の色違い）
   .news           お知らせの一覧（ul に付ける）
   .cta            お問い合わせの大きな箱

   ■ クラスを使わない決まり
   - ページの最初の section（main の1つ目）は「写真の見出し（ヒーロー）」になる。
     高さは全ページ共通（トップも他のページも同じ）
   - パンくず（今いる場所の表示）は <nav aria-label="パンくず"> で書く
   - よくあるご質問は <details><summary>質問</summary><p>答え</p></details> で書く
   - お問い合わせフォームの見た目は、form の中の label / input / select / textarea に直接つけている
   - section に data-en="SERVICE" のように書くと、背景に大きな英字がうすく入る
   - 要素に data-show を付けると、画面に入ったときにふわっと表示される（assets/main.js）
   ========================================================= */

:root{
  /* 色は「白＋明るい緑＋水色がかったミント」で、清潔感と透明感を出す */
  --ink:#1f2d29;          /* 文字 */
  --ink-soft:#55655f;     /* 補足の文字（白の上で読める濃さ） */
  --line:#dce9e3;         /* 罫線 */
  --bg:#ffffff;           /* 背景 */
  --bg-alt:#f2f9f6;       /* うすいミントの背景 */
  --mint:#e2f3ec;         /* ミント（面・ラベルの背景） */
  --aqua:#e5f3f7;         /* 水色（グラデーション用） */
  --brand:#1a7f5a;        /* 会社の緑（文字・ボタン。白の上で読める濃さ） */
  --brand-bright:#3cb68a; /* 明るい緑（線・飾りだけ。文字には使わない） */
  --call:#c2541c;         /* 電話・お問い合わせボタン（白文字が読める濃さ） */
  --free:#1a7f5a;
  --buy:#2a62a8;
  --paid:#8a5a24;
  --radius:16px;
  --width:1120px;
  --gap:20px;
  --shadow:0 10px 30px rgba(26,127,90,.08);
  --fresh:linear-gradient(135deg,var(--bg-alt) 0%,var(--aqua) 100%); /* 明るいグラデーション */
}

/* ---------- 基本 ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:"Noto Sans JP","Hiragino Sans","Yu Gothic UI",sans-serif;
  font-size:16px;line-height:1.9;letter-spacing:.03em;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}

/* ---------- 文字の折り返しのルール（全ページ共通） ----------
   ・本文：日本語の一般的な組み方（右端まで文字を詰めて折り返す）。行の頭に「、」「。」「ゃ」などが来ないようにする
   ・見出し・質問・表の項目名・見出しの下の短い説明文：文節（言葉のまとまり）の切れ目で折り返し、2行になるときは行の長さをそろえる
     ※ 文節での折り返しは Chrome・Edge で効く。Safari・Firefox では従来どおり
     ※ 2026-11-03 修正：Safari（iPhone）でも文節で折り返すよう、対象の文字に <wbr>（ここで改行してよい印）を入れた。
       word-break:keep-all で <wbr> の位置だけで改行する。<wbr> はページを直したあとに印付けの手順で入れ直す
       （手順は README.md）。<wbr> の無い長い見出しは、はみ出すときだけ途中で折り返す（body の overflow-wrap:break-word）
   ・電話番号、ボタン、ラベル、日付は途中で折り返さない */
body{line-break:strict;overflow-wrap:break-word}
h1,h2,h3,summary,dt,th,main > section:first-child p,hgroup p{word-break:keep-all;text-wrap:balance}   /* 見出しと、その下の短い説明文 */
@supports (word-break:auto-phrase){
  h1,h2,h3,summary,dt,th,main > section:first-child p,hgroup p{word-break:auto-phrase}   /* Chrome・Edge は自前で文節を判定 */
}
small > span:has(> .tag){display:block;margin-top:8px}   /* 「無料回収 費用はかかりません」などの凡例を1組ずつ1行に */
p:has(> .btn + .btn){display:flex;flex-wrap:wrap;gap:12px}   /* ボタンが2つ並ぶ所：折り返したときにくっつかないよう間をあける */
a[href^="tel:"],.btn,.tag,time{white-space:nowrap}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{line-height:1.45;letter-spacing:.05em;margin:0 0 .5em}
h1{font-size:clamp(32px,4.6vw,56px)}
h2{font-size:clamp(24px,3vw,34px)}
h3{font-size:19px}
p{margin:0 0 1em}

header > div, section > div, footer > div{max-width:var(--width);margin:0 auto;padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}

/* ---------- ヘッダー ---------- */
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
header > div{display:flex;align-items:center;justify-content:space-between;gap:16px;height:72px;max-width:none;padding-left:max(32px,env(safe-area-inset-left,0px));padding-right:max(32px,env(safe-area-inset-right,0px))}
header > div > a:first-child{text-decoration:none;font-weight:700;font-size:19px;letter-spacing:.08em}
header nav ul{display:flex;gap:30px;list-style:none;margin:0;padding:0;font-size:14.5px}
header nav a{text-decoration:none}
header nav a:hover{color:var(--brand)}
header address{font-style:normal;display:flex;align-items:center;gap:16px;font-size:11.5px;color:var(--ink-soft);line-height:1.3}
header address a[href^="tel"]{display:block;font-size:19px;font-weight:700;color:var(--ink);text-decoration:none;letter-spacing:.05em}
header .btn{padding:9px 20px;font-size:14px}
header address a[href$=".pdf"]{font-size:13px;color:var(--ink);text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:7px 16px;white-space:nowrap;background:#fff}   /* 業務カレンダー（PDF） */
header address a[href$=".pdf"]:hover{color:var(--brand);border-color:var(--brand)}

/* ---------- ヒーロー（main の最初の section） ---------- */
main > section:first-child{
  position:relative;min-height:420px;display:flex;align-items:center;   /* 写真の見出しの高さは全ページ共通 */
  color:var(--ink);padding:24px 0;overflow:hidden;background:var(--fresh);
}
main > section:first-child > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
main > section:first-child::after{ /* 文字を読みやすくする影 */
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.88) 50%,rgba(255,255,255,.15) 100%);
}
main > section:first-child > div{position:relative;z-index:1;width:100%}
main > section:first-child hgroup p:first-child{color:var(--brand)}
main > section:first-child hgroup p:first-child{max-width:none}
main > section:first-child hgroup{margin-bottom:20px}   /* 写真の見出しを420pxに収めるため詰める */
main > section:first-child p:last-child{margin-bottom:0}
main > section:first-child p{max-width:27em;color:var(--ink-soft);font-size:17px}
main > section:first-child h1{color:var(--ink)}
/* ヒーローの下に、明るい緑の細い線 */
main > section:first-child{border-bottom:4px solid var(--brand-bright)}

/* ---------- セクション ---------- */
section{padding:110px 0;position:relative;overflow:hidden}
section.alt{background:var(--fresh)}
article[id]{scroll-margin-top:96px}   /* お知らせへのリンクで飛んだとき、固定ヘッダーに隠れないように */

/* 背景の大きな英字：<section data-en="SERVICE"> */
section[data-en]::before{
  content:attr(data-en);position:absolute;top:28px;right:-12px;
  font-size:clamp(72px,13vw,180px);font-weight:700;line-height:1;letter-spacing:.02em;
  color:transparent;-webkit-text-stroke:1px rgba(60,182,138,.22);pointer-events:none;white-space:nowrap;
}

/* セクションの見出し：<hgroup><p>英字ラベル</p><h2>見出し</h2><p>説明</p></hgroup> */
hgroup{margin-bottom:48px;position:relative}
hgroup p{max-width:42em}   /* 説明文だけ読みやすい幅にする（見出しは折り返さない） */
hgroup p:first-child{font-size:13px;color:var(--brand);font-weight:700;letter-spacing:.2em;margin:0 0 10px;display:flex;align-items:center;gap:12px}
hgroup p:first-child::before{content:"";width:28px;height:2px;background:var(--brand-bright)}
hgroup p{color:var(--ink-soft);margin:0}

/* ---------- 部品 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border-radius:999px;padding:14px 28px;font-weight:700;font-size:15px;
  text-decoration:none;border:1.5px solid var(--brand);color:var(--brand);background:#fff;transition:.2s;
}
.btn:hover{background:var(--brand);color:#fff}
.btn.call{background:var(--call);border-color:var(--call);color:#fff}
.btn.call:hover{filter:brightness(.94)}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:var(--gap)}

.card{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:30px 28px 26px;text-decoration:none;transition:.25s;position:relative;
}
a.card:hover{border-color:var(--brand-bright);box-shadow:var(--shadow);transform:translateY(-3px)}
.card small{color:var(--ink-soft);font-size:12.5px}
.card p{font-size:14.5px;color:var(--ink-soft);flex:1}
.card > :last-child{margin-bottom:0}

/* 写真タイル：.card の中に <img> を入れたもの */
.grid{counter-reset:tile}
.card:has(> img){
  counter-increment:tile;padding:0;overflow:hidden;background:#fff;
}
.card:has(> img) > img{width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .6s}
.card:has(> img)::after{ /* 01, 02… の番号（写真の左上に、白い札で） */
  content:counter(tile,decimal-leading-zero);position:absolute;top:16px;left:16px;z-index:1;
  font-size:15px;font-weight:700;line-height:1;color:var(--brand);letter-spacing:.06em;
  background:rgba(255,255,255,.9);backdrop-filter:blur(6px);border-radius:999px;padding:9px 14px;
}
.card:has(> img) > :not(img){margin-left:26px;margin-right:26px}
.card:has(> img) > small{margin-top:22px}
.card:has(> img) > :last-child{margin-bottom:24px}
a.card:has(> img):hover > img{transform:scale(1.04)}

.tag{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:2px 11px;border:1px solid currentColor;margin-right:6px;color:var(--ink-soft);background:#fff}
.tag[data-kind="free"]{color:var(--free)}
.tag[data-kind="buy"]{color:var(--buy)}
.tag[data-kind="paid"]{color:var(--paid)}

.photo{border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;background:var(--bg-alt);box-shadow:var(--shadow)}
.photo img{width:100%;height:100%;object-fit:cover}

.steps{list-style:none;margin:0;padding:0;counter-reset:step}
.steps + *{margin-top:40px}   /* 手順のカードのすぐ後ろに表や文章が続くときの余白 */
/* 手順のカードの色違い：<ol class="steps grid" data-kind="digital"> で青系にする（紙と電子のマニフェストを見分けるため） */
.steps[data-kind="digital"] li{border-top-color:var(--buy)}
.steps[data-kind="digital"] li::before{color:var(--buy)}
.steps.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}   /* 手順は細めの列にして、5つまで横に並べる */
.steps li{background:#fff;border:1px solid var(--line);border-top:3px solid var(--brand-bright);border-radius:var(--radius);padding:34px 30px;counter-increment:step;position:relative}
.steps li::before{content:"STEP " counter(step,decimal-leading-zero);display:block;font-size:13px;font-weight:700;letter-spacing:.18em;color:var(--brand);margin-bottom:14px}
.steps p{font-size:14.5px;color:var(--ink-soft);margin:0}

.news{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.news li{border-bottom:1px solid var(--line);display:grid;grid-template-columns:130px 1fr auto;gap:16px;padding:22px 4px;align-items:center}
.news li::after{content:"→";color:var(--brand)}
.news time{color:var(--ink-soft);font-size:14px}
.news a{text-decoration:none}
.news a:hover{color:var(--brand)}

.cta{background:var(--fresh);border:1px solid var(--line);color:var(--ink);border-radius:24px;padding:64px;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;box-shadow:var(--shadow)}
.cta p{color:var(--ink-soft)}
.cta a[href^="tel"]:not(.btn){display:block;font-size:42px;font-weight:700;letter-spacing:.05em;color:var(--brand);text-decoration:none;line-height:1.3;margin-bottom:6px}
.cta .btn{width:100%;margin-bottom:12px}

/* ---------- 項目と内容の表（会社概要・許可など、サイト全体で共通） ---------- */
dl{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:0 0 28px}
dl:last-child{margin-bottom:0}
dl > div{display:grid;grid-template-columns:minmax(7em,13em) 1fr;gap:16px;padding:16px 22px;border-bottom:1px solid var(--line)}
dl > div:last-child{border-bottom:0}
dt{font-size:14px;color:var(--ink-soft)}
dd{margin:0;font-size:15px;line-height:1.7}

/* ---------- 並べ方のきまり ---------- */
section > .grid{align-items:center;gap:64px}   /* 写真と文章を左右に並べる */
.grid + p{margin-top:24px}

/* ---------- ふわっと表示（data-show） ---------- */
/* JSが動かないときは最初から表示する（html に data-js が付いたときだけ隠す） */
/* 参考：大栄環境グループのサイト（50px下から、1.8秒かけて現れる）。少しだけ速くして1.6秒にしている */
html[data-js] [data-show]{opacity:0;transform:translateY(50px);transition:opacity 1.6s ease,transform 1.6s ease}
html[data-js] [data-show="on"]{opacity:1;transform:none}
/* 最初の画面（ヒーロー）は待たせずにすぐ表示する */
html[data-js] main > section:first-child > [data-show]{opacity:1;transform:none;transition:none}
@media (prefers-reduced-motion:reduce){html[data-js] [data-show]{opacity:1;transform:none;transition:none}}


/* ---------- パンくず（ヒーローの中） ---------- */
nav[aria-label="パンくず"] ol{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--ink-soft)}
nav[aria-label="パンくず"] li+li::before{content:"／";margin-right:6px;opacity:.6}
nav[aria-label="パンくず"] a{color:var(--brand)}

/* ページ内リンクで飛んだとき、固定ヘッダーに隠れないようにする */
[id]{scroll-margin-top:96px}

/* ---------- 本文の中の小見出し・リスト ---------- */
section h3{margin-top:1.6em}
section h3:first-child, .card h3, .steps h3{margin-top:0}
section ul:not([class]){padding-left:1.3em;margin:0 0 1em}
section ul:not([class]) li{margin-bottom:.3em}
section > div > p:not(:last-child), section > div > ul{max-width:46em}
section[data-en="MESSAGE"] > div > p:last-child{max-width:46em;text-align:right;margin-top:2em}   /* 代表あいさつの署名は本文の右端にそろえる */
/* 注意書き（法令・未確認など）：<p role="note"> */
p[role="note"]{border-left:4px solid var(--brand);background:var(--bg-alt);padding:16px 20px;border-radius:0 var(--radius) var(--radius) 0;font-size:15px}

/* ---------- 表（料金の考え方など） ---------- */
table{width:100%;border-collapse:collapse;font-size:15px;background:#fff;border-radius:var(--radius);overflow:hidden}
th, td{border-bottom:1px solid var(--line);padding:16px 18px;text-align:left;vertical-align:top}
thead th{background:var(--mint);color:var(--brand);font-weight:700;font-size:14px;text-align:center}
tbody th{white-space:nowrap}

/* ---------- よくあるご質問 ---------- */
details{background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:12px}
summary{cursor:pointer;list-style:none;padding:20px 52px 20px 24px;font-weight:700;position:relative}
summary::-webkit-details-marker{display:none}
summary::before{content:"Q";color:var(--brand);margin-right:12px}
summary::after{content:"+";position:absolute;right:24px;top:18px;font-size:22px;color:var(--brand);line-height:1}
details[open] summary::after{content:"−"}
details p{padding:0 24px 20px 50px;margin:0;color:var(--ink-soft)}

/* ---------- お問い合わせフォーム ---------- */
form{display:grid;gap:22px;max-width:46em}
form > [aria-hidden="true"]{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}   /* 迷惑送信対策の見えない欄 */
form [role="status"]{margin:0;font-weight:700}
form [role="status"]:empty{display:none}
form label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:700;font-size:15px}
form label > input, form label > select, form label > textarea, form label > small{flex-basis:100%}
form label small{font-weight:400;color:var(--ink-soft)}
form b{display:inline-block;background:var(--call);color:#fff;font-size:11px;line-height:1.7;border-radius:4px;padding:0 6px;margin-left:4px}
input, select, textarea{font:inherit;font-weight:400;font-size:16px;padding:13px 14px;border:1px solid #c7ddd3;border-radius:10px;background:#fff;color:var(--ink);width:100%}
input:focus, select:focus, textarea:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
textarea{min-height:180px;resize:vertical}
form label:has(input[type="checkbox"]){flex-wrap:nowrap;gap:10px;font-weight:400}
form label > input[type="checkbox"]{flex-basis:auto}
input[type="checkbox"]{width:20px;height:20px;accent-color:var(--brand)}
button{font:inherit;cursor:pointer}

/* ---------- 地図 ---------- */
iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:var(--radius);display:block}

/* ---------- フッター ---------- */
footer{padding:64px 0 40px;font-size:13.5px;color:var(--ink-soft);background:var(--bg-alt);border-top:4px solid var(--brand-bright)}
footer > div{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px}
footer strong{color:var(--ink);font-size:16px;letter-spacing:.06em}
footer ul{list-style:none;margin:0;padding:0;line-height:2.2}
footer a{text-decoration:none}
footer a:hover{color:var(--brand)}
footer small{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px}

body > aside{display:none}

/* ---------- スマホ・タブレット ---------- */
@media (max-width:900px){
  header > div{padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px));height:64px}
  header nav, header address span, header address .btn, header address a[href$=".pdf"]{display:none}   /* スマホでは業務カレンダーはフッターから */
  main > section:first-child, main > section:first-child[data-hero="large"]{min-height:auto;padding:80px 0 72px}
  table{font-size:14px}
  th, td{padding:12px}
  tbody th{white-space:normal}
  main > section:first-child::after{background:linear-gradient(180deg,rgba(255,255,255,.80),rgba(255,255,255,.93))}
  section{padding:72px 0}
  section[data-en]::before{top:16px}
  .cta{grid-template-columns:1fr;padding:40px 24px;border-radius:18px}
  .cta a[href^="tel"]:not(.btn){font-size:32px}
  .news li{grid-template-columns:1fr;gap:2px}
  dl > div{grid-template-columns:1fr;gap:2px;padding:14px 18px}
  .news li::after{display:none}
  footer{padding-bottom:110px}
  body > aside{
    display:grid;grid-template-columns:1fr 1fr;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:30;
    background:#fff;border-top:1px solid var(--line);padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  body > aside .btn{padding:12px 8px;font-size:14.5px}
}

/* ---------- 事業内容：当社の強み（ABOUT） ---------- */
section[data-en="ABOUT"] ol.grid{list-style:none;padding:0;margin:40px 0 36px;grid-template-columns:repeat(2,1fr);gap:24px;counter-reset:point}
section[data-en="ABOUT"] ol.grid > li{position:relative;padding:34px 30px 30px;border-top:4px solid var(--brand-bright);counter-increment:point;overflow:hidden}
section[data-en="ABOUT"] ol.grid > li::before{content:"0" counter(point);position:absolute;top:6px;right:18px;font-size:72px;font-weight:700;line-height:1;color:var(--brand);opacity:.08;letter-spacing:0}
section[data-en="ABOUT"] ol.grid svg{display:block;width:76px;height:76px;padding:14px;margin-bottom:18px;border-radius:50%;background:var(--mint);fill:none;stroke:var(--brand);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
section[data-en="ABOUT"] ol.grid small{display:block;color:var(--brand);font-weight:700;letter-spacing:.14em;font-size:12px;margin-bottom:4px}
section[data-en="ABOUT"] ol.grid h3{font-size:20px;margin:0 0 .6em}
section[data-en="ABOUT"] ol.grid p{margin:0}
@media (max-width:900px){
  section[data-en="ABOUT"] ol.grid{grid-template-columns:1fr}
  section[data-en="ABOUT"] ol.grid > li{padding:28px 22px 24px}
}

/* ---------- ヘッダー：中くらいの幅で折り返さないように ---------- */
header > div > a:first-child, header nav a, header address a{white-space:nowrap}
@media (max-width:1320px){
  header nav ul{gap:20px;font-size:14px}
  header address{gap:12px}
  header address span{display:none}
}
@media (max-width:1230px){
  header > div > a:first-child{font-size:17px;letter-spacing:.04em}
  header address a[href$=".pdf"]{display:none}
}
@media (max-width:1060px){
  header nav ul{gap:16px;font-size:13.5px}
  header address .btn{display:none}
}
/* 2026-11-03：スマホ（幅430px以下）で社名と電話番号が右端に詰まっていたので小さくする */
@media (max-width:430px){
  header > div{gap:10px}
  header > div > a:first-child{font-size:15px;letter-spacing:.02em}
  header address a[href^="tel"]{font-size:16px;letter-spacing:.02em}
}
