/* =====================================================================
   hi tot Web版プロトタイプ — スタイル
   スマホ：縦1カラムのアプリUI / PC：中央に端末風フレーム＋左右余白
   ===================================================================== */
:root {
  --navy: #002e59;          /* 青帯タイトル */
  --navy-d: #00224a;
  --sky: #93b9c9;           /* 水色 見出し帯 */
  --sky-l: #aed5e3;         /* メニューボタン */
  --sky-ll: #e8f3f7;
  --red: #e60012;           /* 強調ボタン */
  --blue: #1166c9;          /* 工法ボタン */
  --ink: #1f2733;
  --ink-soft: #44505f;
  --line: #e2e7ec;
  --bg: #5b6b7a;            /* PC背景 */
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .25);
  --maxw: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 50% -10%, #6f8092 0%, #4a5765 60%, #3a4451 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ====== レイアウト（レスポンシブ） ======
   スマホ（〜599px）   : 1カラムのアプリUI。ナビは☰ドロワー
   タブレット縦/中間（600〜1023px）: 1カラム（やや広め）。ナビは☰ドロワー
   iPad横・PC（1024px〜）: 左サイドバー常時表示 ＋ 本文の2カラム               */

/* --- 既定（スマホ）：#view がカード、サイドバーはドロワーとして画面外に待機 --- */
#view {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
#sidebar {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 284px; max-width: 82vw; height: 100vh; overflow-y: auto;
  background: #0e2647; color: #cdd9e8; padding: 16px 12px 40px;
  transform: translateX(-104%); transition: transform .25s ease;
  -webkit-overflow-scrolling: touch;
}
.sb-overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.drawer-open #sidebar { transform: translateX(0); }
.drawer-open .sb-overlay { opacity: 1; visibility: visible; }

@media (min-width: 600px) and (max-width: 1023px) {
  body { padding: 22px 0 36px; }
  #view { max-width: 720px; min-height: calc(100vh - 58px); border-radius: 20px; }
  #view .body { padding: 22px 26px 56px; }
  .fig img, .video-ph, .act-btn, .clip-btn { max-width: 600px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- iPad横・PC：サイドバー常時表示の2カラム --- */
@media (min-width: 1024px) {
  body { padding: 0; }
  #app {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    max-width: 1180px; margin: 0 auto; min-height: 100vh;
    background: #fff; box-shadow: var(--shadow);
  }
  #sidebar {
    position: sticky; transform: none; z-index: 1;
    align-self: start; height: 100vh; max-width: none; width: auto;
  }
  .sb-overlay { display: none; }
  #view { max-width: none; margin: 0; min-height: 100vh; box-shadow: none; border-radius: 0; }
  #view .appbar__logo { visibility: hidden; }
  #view .appbar__burger { display: none; }
  #view .body { max-width: 820px; padding: 22px 28px 60px; }
  .fig img, .video-ph, .act-btn, .clip-btn { max-width: 600px; }
  .clip-btn { margin-left: 0; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; }
}

/* ---- サイドバー（PCのみ） ---- */
.sb__brand { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-weight: 800; font-size: 26px; padding: 6px 10px 16px; }
.sb__brand .logo-hi { color: #5aa8ff; }
.sb__brand .logo-tot { color: #fff; }
.sb__nav { display: flex; flex-direction: column; gap: 2px; }
.sb__home { text-align: left; background: none; border: 0; color: #cdd9e8; font-size: 14px; font-weight: 600; padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.sb__group { margin-top: 14px; }
.sb__cat { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #7f9ec4; padding: 6px 10px; text-transform: none; }
.sb__menu, .sb__art { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; border-radius: 7px; }
.sb__menu { color: #e7eef7; font-size: 13.5px; font-weight: 600; padding: 8px 10px; }
.sb__art { color: #aebfd4; font-size: 12.5px; padding: 6px 10px 6px 22px; line-height: 1.4; }
.sb__home:hover, .sb__menu:hover, .sb__art:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sb__art.is-active, .sb__menu.is-active, .sb__home.is-active { background: #2a6cb0; color: #fff; }
.sb__menu.is-onpath, .sb__art.is-onpath { color: #fff; }

.screen { display: flex; flex-direction: column; min-height: 100%; animation: fade .18s ease; }
@keyframes fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- アプリバー（共通ヘッダー） ---- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr 44px; align-items: center;
  height: 52px; padding: 0 4px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.appbar__left { display: flex; align-items: center; }
.appbar__burger {
  border: 0; background: none; font-size: 21px; color: var(--navy);
  width: 40px; height: 44px; cursor: pointer; line-height: 1;
}
.appbar__back, .appbar__clip {
  border: 0; background: none; font-size: 26px; color: var(--navy);
  height: 44px; cursor: pointer; line-height: 1;
}
.appbar__clip { font-size: 18px; }
.appbar__logo { border: 0; background: none; cursor: pointer; font-weight: 800; font-size: 26px; letter-spacing: .5px; }
.logo-hi { color: #1166c9; font-style: italic; }
.logo-tot { color: var(--navy); margin-left: 2px; }

/* ---- タブ（トップ） ---- */
.tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.tabs__item {
  flex: 1; border: 0; background: none; padding: 12px 4px; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent;
}
.tabs__item.is-active { color: var(--navy); border-bottom-color: var(--navy); }

.body { padding: 16px; flex: 1; }

/* ---- ページタイトル（青帯） ---- */
.page-title {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 17px;
  text-align: center; padding: 11px 14px; border-radius: 8px; margin: 2px 0 14px;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .08);
}
.lead { color: var(--ink-soft); font-size: 14px; margin: 0 4px 16px; }

/* ---- トップ：バナー ---- */
.banner {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: linear-gradient(135deg, #163a63, #2a6cb0); color: #fff;
  border: 0; border-radius: var(--radius); padding: 14px; cursor: pointer; margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(20, 60, 110, .35);
}
.banner__badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; background: rgba(255, 255, 255, .2);
  padding: 3px 7px; border-radius: 5px;
}
.banner__txt { flex: 1; }
.banner__title { font-weight: 700; font-size: 14px; }
.banner__sub { font-size: 11px; opacity: .85; }
.banner__char { font-size: 30px; }

.sec-label { font-weight: 700; color: var(--navy); border-left: 4px solid var(--navy); padding-left: 8px; margin: 4px 2px 12px; }

/* ---- トップ：アイコングリッド ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid__cell {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 16px 6px; cursor: pointer; transition: .12s; color: var(--ink);
}
.grid__cell:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .1); border-color: var(--sky); }
.grid__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; background: radial-gradient(circle at 35% 30%, #4a90d9, #1f5fa8); color: #fff;
}
.grid__label { font-size: 12px; font-weight: 600; }

/* ---- カテゴリ：カード ---- */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #2a6cb0, #163a63); color: #fff;
  border: 0; border-radius: var(--radius); padding: 20px 18px; cursor: pointer;
  font-size: 16px; font-weight: 700; box-shadow: 0 5px 14px rgba(20, 60, 110, .3); transition: .12s;
}
.card:hover { transform: translateY(-2px); filter: brightness(1.06); }
.card__arrow { font-size: 22px; opacity: .8; }

/* ---- リストメニュー ---- */
.menu-list { display: flex; flex-direction: column; gap: 11px; }
.menu-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  background: var(--sky-l); border: 0; border-radius: 10px; padding: 15px 16px;
  cursor: pointer; text-align: left; color: var(--navy-d); font-weight: 600; font-size: 15px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06); transition: .12s; position: relative;
}
.menu-item:hover { background: #9ccbdb; transform: translateX(2px); }
.menu-item__badge {
  position: absolute; right: 12px; top: 13px; font-size: 10px; font-weight: 700;
  background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 20px;
}
.menu-item__sub { font-size: 12px; font-weight: 500; color: var(--ink-soft); }

/* ---- 記事 ---- */
.section-bar {
  background: var(--sky); color: var(--navy-d); font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: 7px; margin: 22px 0 12px;
}
.subhead { font-weight: 700; color: var(--navy); margin: 12px 0 4px; font-size: 14px; }
.para { margin: 0 0 11px; font-size: 14.5px; color: #29333f; }
.note { margin: 6px 0; font-size: 12.5px; color: #6a7682; }

.fig { margin: 4px 0 14px; }
.fig img { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--line); background: #f6f8fa; }
.fig figcaption { font-size: 12px; color: #6a7682; margin-top: 5px; text-align: center; }
.fig--step img { border-radius: 6px; }

.qa { background: var(--sky-ll); border-radius: 8px; padding: 11px 14px; margin: 0 0 10px; }
.qa__q { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 5px; }
.qa__a { font-size: 13.5px; color: #29333f; }

.spec { background: var(--sky-ll); border-radius: 8px; padding: 10px 14px 10px 12px; margin: 0 0 12px; }
.spec__title { font-weight: 700; color: var(--navy); font-size: 13.5px; margin-bottom: 3px; }
.spec__ul { margin: 0; padding-left: 18px; }
.spec__ul li { font-size: 14px; margin: 3px 0; }
.numlist { margin: 0 0 12px; padding-left: 20px; }
.numlist li { font-size: 14px; margin: 6px 0; }

/* ---- ボタン類 ---- */
.act-btn {
  display: block; width: 100%; border: 0; border-radius: 8px; padding: 13px;
  font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; margin: 6px 0 12px; transition: .12s;
}
.act-btn:hover { filter: brightness(1.08); }
.act-btn--primary { background: var(--red); }
.act-btn--blue { background: var(--blue); }

.video-ph {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #0d1b2e; color: #fff; border: 0; border-radius: 10px; padding: 14px; cursor: pointer; margin: 6px 0 14px;
}
.video-ph__play {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .15);
  display: grid; place-items: center; font-size: 15px; flex: none;
}
.video-ph__txt b { font-size: 14px; display: block; }
.video-ph__txt small { font-size: 11px; opacity: .75; }

/* ---- フローチャート ---- */
.flow { background: #f4f7fa; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 4px 0 18px; }
.flow__title { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: 13.5px; }
.flow__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flow__node {
  background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 8px 9px; border-radius: 6px; line-height: 1.35;
}

/* ---- 施工手順ステップ ---- */
.step { border-left: 3px solid var(--sky); padding-left: 12px; margin: 4px 0 18px; }
.step__head { background: var(--sky); color: var(--navy-d); font-weight: 700; font-size: 14.5px; padding: 7px 12px; border-radius: 7px; margin: 0 0 10px -12px; display: flex; align-items: center; gap: 9px; }
.step__no { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }

/* ---- クリップボタン ---- */
.clip-btn {
  display: block; width: 100%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 30px; padding: 13px; font-size: 14px; font-weight: 700; cursor: pointer; margin: 24px 0 8px; transition: .15s;
}
.clip-btn:hover { background: var(--sky-ll); }
.clip-btn.is-on { background: var(--navy); color: #fff; }

/* ---- 準備中 ---- */
.soon { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.soon__icon { font-size: 44px; }
.soon__t { font-weight: 800; color: var(--navy); font-size: 18px; margin: 8px 0; }
.soon__p { font-size: 13.5px; max-width: 280px; margin: 0 auto; }
