/*
  リサイクリーンズ(recycleans.com)のホームページの見た目。
  色は看板の画像(青・水色・赤)に合わせている。
  本文(.entry の中)には、WordPress 版で使っていた装飾の名前(freebox・st-kaiwa-box など)がそのまま残っているので、
  このファイルでその装飾を再現している。
  スマホの幅を基準に書き、広い画面のときだけ @media で並べ方を変える。
*/

:root {
  --blue: #1c57b3;        /* 看板の青 */
  --blue-dark: #143f85;   /* 押したとき・濃い青 */
  --sky: #35b1f7;         /* 看板の水色 */
  --sky-pale: #e9f5fe;    /* 色つきの地 */
  --red: #e53935;         /* 看板の赤・強調 */
  --yellow: #fff176;      /* マーカー・固定ボタン */
  --bg: #f4f8fc;          /* ページの地の色 */
  --line: #cfd9e6;        /* 罫線 */
  --ink: #23282f;         /* 文字 */
  --ink-soft: #5c6673;    /* 薄い文字 */
  --ok: #1e7d3c;
  --ng: #c0392b;
  --white: #fff;
  --radius: 10px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  /* スマホでは下に固定の電話ボタンが出るので、その分だけ余白を空ける */
  padding-bottom: 58px;
}

img { max-width: 100%; height: auto; }
a { color: #0b5cad; }

/* 横幅をそろえる枠 */
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 14px; }

/* ---------- 上の帯 ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 6px; padding-bottom: 6px; }
.site-header__logo { display: block; flex: 0 1 300px; }
.site-header__logo img { display: block; width: 100%; }
.site-header__side { display: none; }

.tel-chip {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 7px 24px; border-radius: 999px; background: var(--blue); color: var(--white);
  text-decoration: none; line-height: 1.25; white-space: nowrap;
}
.tel-chip__label { font-size: 11px; letter-spacing: .1em; }
.tel-chip__num { font-size: 21px; font-weight: bold; letter-spacing: .02em; }
.tel-chip:hover, .tel-chip:focus-visible { background: var(--blue-dark); }

/* メニュー(スマホでは横にスクロールできる1行) */
.site-nav { background: var(--blue); }
.site-nav__list { list-style: none; margin: 0 auto; display: flex; overflow-x: auto; padding-top: 0; padding-bottom: 0; }
.site-nav__list a {
  display: block; padding: 11px 13px; color: var(--white);
  text-decoration: none; font-size: 14px; font-weight: bold; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { background: rgba(255, 255, 255, .15); }
.site-nav__list a[aria-current="page"] { border-bottom-color: var(--yellow); }

/* トップページの看板 */
.top-banner { background: #cfe6fa; }
.top-banner img { display: block; width: 100%; max-width: 1100px; margin: 0 auto; }

/* ---------- 本文と横の欄の並び ---------- */
.layout { display: grid; gap: 28px; padding-top: 22px; padding-bottom: 40px; }

/* ---------- 本文 ---------- */
.entry { min-width: 0; background: var(--white); border-radius: var(--radius); padding: 22px 16px 30px; box-shadow: 0 2px 10px rgba(28, 87, 179, .07); }
.entry > :first-child { margin-top: 0; }

.entry h1 { font-size: 22px; line-height: 1.5; margin: 0 0 22px; padding-bottom: 12px; color: var(--blue); border-bottom: 4px solid var(--sky); }
.entry h2 {
  font-size: 19px; line-height: 1.5; margin: 38px 0 16px; padding: 10px 14px;
  background: var(--blue); color: var(--white); border-radius: 6px;
}
.entry h3 { font-size: 17px; line-height: 1.5; margin: 28px 0 12px; padding: 4px 0 6px 12px; border-left: 6px solid var(--sky); border-bottom: 1px solid var(--line); color: var(--blue-dark); }
.entry h4, .entry h5 { font-size: 16px; margin: 22px 0 10px; }
.entry p { margin: 0 0 1em; }
.entry ul, .entry ol { margin: 0 0 1em; padding-left: 1.5em; }
.entry li { margin: 2px 0; }
.entry hr { border: 0; border-top: 1px dashed var(--line); margin: 22px 0; }
.entry img.aligncenter { display: block; margin: 0 auto; }
.entry blockquote { margin: 0 0 1.2em; padding: 14px 16px; background: var(--sky-pale); border-left: 5px solid var(--sky); border-radius: 0 var(--radius) var(--radius) 0; }
.entry blockquote > :last-child { margin-bottom: 0; }

/* 表(料金表・回収品目・エリア) */
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.entry td, .entry th { border: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.entry tr:first-child > td { background: var(--sky-pale); font-weight: bold; }
.entry td[rowspan] { background: var(--sky-pale); font-weight: bold; white-space: nowrap; }
/* 表の中の一覧は、行頭の印を付けない(料金表では文の先頭に「*」が書かれているため、印が二重になるのを避ける) */
.entry td ul { margin: 0; padding-left: 0; list-style: none; }
.entry td.price1 { color: var(--red); font-weight: bold; white-space: nowrap; text-align: center; }
.entry td.price2 { font-weight: bold; }
.entry td.color1 { background: var(--sky-pale); font-weight: bold; white-space: nowrap; }
/* エリアの一覧は数が多いので、横に並べる */
.entry td.price2 ul { columns: 2; }

/* WordPress 版のページで使われていた名前つきの装飾 */
.entry .red { color: var(--red); font-weight: bold; }
.entry p.guest { font-weight: bold; }
.entry .left15 { padding-left: 15px; }
.entry li.list { list-style: none; margin-left: -1.2em; }
.entry .ymarker { background: linear-gradient(transparent 55%, var(--yellow) 55%); font-weight: bold; }

/* 会話の吹き出し(顔の絵と言葉) */
.st-kaiwa-box { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 16px; }
.st-kaiwa-face, .st-kaiwa-face2 { flex: 0 0 60px; text-align: center; }
.st-kaiwa-face img, .st-kaiwa-face2 img { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: 50%; border: 2px solid var(--line); background: var(--white); }
.st-kaiwa-face-name, .st-kaiwa-face-name2 { font-size: 12px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.st-kaiwa-area, .st-kaiwa-area2 { flex: 1 1 auto; min-width: 0; }
.st-kaiwa-area2 { display: flex; justify-content: flex-end; }
.st-kaiwa-hukidashi, .st-kaiwa-hukidashi2 { position: relative; display: inline-block; padding: 12px 16px; border-radius: 12px; line-height: 1.7; }
.st-kaiwa-hukidashi { background: var(--sky-pale); }
.st-kaiwa-hukidashi::before { content: ""; position: absolute; left: -9px; top: 18px; border: 6px solid transparent; border-right-color: var(--sky-pale); border-left: 0; border-right-width: 10px; }
.st-kaiwa-hukidashi2 { background: #fff3c9; }
.st-kaiwa-hukidashi2::before { content: ""; position: absolute; right: -9px; top: 18px; border: 6px solid transparent; border-left-color: #fff3c9; border-right: 0; border-left-width: 10px; }

/* お客様の声(名前の札と、色つきの箱) */
.st-editor-margin { margin-top: 18px; }
.st-minihukidashi { position: relative; display: inline-block; margin: 0 !important; padding: 3px 14px; border-radius: 6px; font-weight: bold; line-height: 1.6; }
.st-minihukidashi span { position: absolute; left: 18px; bottom: -8px; border: 5px solid transparent; border-top-width: 8px; border-bottom: 0; }
.clip-memobox { display: flex; gap: 12px; align-items: stretch; padding: 14px 14px; border-radius: 0 var(--radius) var(--radius) var(--radius); margin: 0 0 16px; }
.clip-fonticon { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; }
/* 人の形の印(WordPress 版ではアイコンの文字で出していたもの) */
.clip-fonticon::before {
  content: ""; width: 30px; height: 30px; background: currentColor;
  -webkit-mask: radial-gradient(circle at 50% 30%, #000 0 26%, transparent 27%), radial-gradient(ellipse at 50% 105%, #000 0 52%, transparent 53%);
          mask: radial-gradient(circle at 50% 30%, #000 0 26%, transparent 27%), radial-gradient(ellipse at 50% 105%, #000 0 52%, transparent 53%);
}
.clip-memotext { flex: 1 1 auto; min-width: 0; padding-left: 12px; border-left: 2px solid; }
.clip-memotext p { margin: 0; }

/* 題名つきの箱(回収品目の一例・お客様の声と回答) */
.freebox { border: 2px solid var(--blue); border-radius: 0 6px 6px; margin: 0 0 16px; background: var(--white); }
.freebox .p-free { margin: 0; line-height: 1.6; }
.freebox .p-entry-f { display: inline-block; padding: 3px 16px; background: var(--blue); color: var(--white); border-radius: 0 0 6px 0; font-size: 15px; }
.freebox .free-inbox { padding: 12px 14px 4px; }
.freebox .free-inbox > :last-child { margin-bottom: 10px; }

/* 灰色の箱(問い合わせの案内・フォームの囲み) */
.graybox { background: #f6f7f9; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; margin: 0 0 20px; }
.graybox > h2:first-child { margin-top: 0; }
.graybox > :last-child { margin-bottom: 0; }

/* 丸い札(「お電話お問合せ時間」など) */
.st-marumozi-big-p { margin-bottom: 1em; }
.st-marumozi-big { display: inline-block; padding: 5px 18px; font-weight: bold; line-height: 1.6; }

/* 黒板ふうの箱(よくあるご依頼内容) */
.st-blackboard { background: #2d5a47; color: var(--white); border: 6px solid #b89264; border-radius: 6px; padding: 16px 16px 10px; margin: 0 0 20px; }
.st-blackboard-title-box { margin: 0 0 10px; text-align: center; }
.st-blackboard-title { display: inline-block; padding: 0 14px 4px; border-bottom: 2px dashed rgba(255, 255, 255, .7); font-weight: bold; font-size: 17px; }
.st-blackboard-list { margin: 0; padding-left: 1.4em; }
.st-blackboard-list li { margin: 6px 0; }

/* ---------- 問い合わせフォーム ---------- */
.contact-form label { display: block; font-weight: bold; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid #9aa7b6; border-radius: 8px; background: var(--white);
  font: inherit; font-weight: normal; color: var(--ink);
}
.contact-form select { max-width: 320px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
.contact-form [aria-invalid="true"] { border-color: var(--ng); }
.field-error { display: block; margin-top: 4px; color: var(--ng); font-size: 14px; font-weight: normal; }
/* 人には見せない入力欄(自動送信の対策) */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  display: inline-block; padding: 12px 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: var(--white); font: inherit; font-weight: bold;
}
.form-submit:hover, .form-submit:focus-visible { background: var(--blue-dark); }
.form-submit[disabled] { opacity: .6; cursor: default; }
.form-response { margin: 14px 0 0; padding: 0; }
.form-response.is-ok, .form-response.is-ng { padding: 12px 16px; border-radius: 8px; border: 2px solid; font-weight: bold; background: var(--white); }
.form-response.is-ok { border-color: var(--ok); color: var(--ok); }
.form-response.is-ng { border-color: var(--ng); color: var(--ng); }

/* ---------- 横の欄 ---------- */
.side { min-width: 0; }
.side__banner { display: block; max-width: 420px; margin: 0 auto; }
.side__banner img { display: block; width: 100%; border-radius: 6px; }
.side__note { margin: 6px 0 18px; text-align: center; font-weight: bold; color: var(--blue-dark); }
.side__links { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(28, 87, 179, .07); }
.side__links li + li { border-top: 1px solid var(--line); }
.side__links a { position: relative; display: block; padding: 12px 14px 12px 32px; color: var(--ink); text-decoration: none; font-weight: bold; line-height: 1.5; }
.side__links a::before { content: ""; position: absolute; left: 14px; top: 19px; border: 5px solid transparent; border-left: 8px solid var(--sky); border-right: 0; }
.side__links a:hover, .side__links a:focus-visible { background: var(--sky-pale); }

/* ---------- 下の帯 ---------- */
.site-footer { background: var(--blue-dark); color: var(--white); text-align: center; padding: 28px 0 22px; }
.site-footer a { color: var(--white); }
.site-footer__nav { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 14px; }
.site-footer__name { margin: 0; font-weight: bold; font-size: 17px; }
.site-footer__name a { text-decoration: none; }
.site-footer__lead { margin: 2px 0 6px; font-size: 14px; }
.site-footer__tel { margin: 0 0 14px; font-size: 22px; font-weight: bold; }
.site-footer__tel a { text-decoration: none; }
.site-footer__copy { margin: 0; opacity: .8; }

/* ---------- スマホの下に固定する電話ボタン ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: block; text-align: center;
  padding: 14px 10px calc(14px + env(safe-area-inset-bottom));
  background: var(--yellow); color: var(--ink);
  font-weight: bold; font-size: 16px; line-height: 1.4; text-decoration: none;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, .18);
}

a:focus-visible, button:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }

/* ---------- パンくず(今いるページの場所)。本文の一番上に小さく出す ---------- */
.entry .crumbs { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.entry .crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.entry .crumbs li { margin: 0; }
.entry .crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-soft); }
.entry .crumbs a { color: inherit; }

/* ---------- 会社概要の表(画像と同じ内容を文字でも載せる) ---------- */
.entry table.company-table th { width: 11.5em; max-width: 42%; background: var(--sky-pale); font-weight: bold; text-align: left; }
.entry table.company-table tr:first-child > td { background: transparent; font-weight: normal; }
.entry table.company-table td ul { padding-left: 0; list-style: none; }

/* ---------- 回収エリアのページ: 市町村名の一覧を、画面の幅に合わせて2〜4列に並べる(2026-11-24) ---------- */
.entry .area-list { columns: 2; column-gap: 20px; margin: 0 0 1.2em; padding: 14px 14px 14px 2em; background: var(--sky-pale); border-radius: var(--radius); }
.entry .area-list li { break-inside: avoid; margin: 0; padding: 3px 0; }

/* ---------- 広い画面(タブレット) ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .site-header__in { justify-content: space-between; }
  .site-header__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .site-header__lead { margin: 0; font-size: 14px; font-weight: bold; color: var(--ink-soft); }
  .site-nav__list { justify-content: center; }
  .site-nav__list a { padding: 13px 22px; font-size: 15px; }
  .entry { padding: 30px 30px 40px; }
  .entry h1 { font-size: 27px; }
  .entry h2 { font-size: 21px; }
  .entry h3 { font-size: 18px; }
  .entry td.price2 ul { columns: 4; }
  .entry .area-list { columns: 4; }
  .graybox { padding: 22px 24px; }
}

/* ---------- 広い画面(PC): 本文の右に横の欄を並べる ---------- */
@media (min-width: 980px) {
  body { font-size: 17px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; padding-top: 30px; padding-bottom: 60px; }
  .entry td.price2 ul { columns: 3; }
  .entry .area-list { columns: 3; }
}
