/* ==========================================================================
   下請け脱却プロジェクト TEAMOO — 共通スタイル
   既存LP（teamoo-lp）と同じブランドカラーを使用し、見た目の統一を保つ
   ========================================================================== */

:root {
  --ink: #15212b;
  --muted: #5f6b75;
  --line: #d9e3e7;
  --paper: #ffffff;
  --soft: #f4f8f8;
  --teal: #0e9f97;
  --teal-dark: #08726d;
  --amber: #f3a21a;
  --coral: #e65b4f;
  --navy: #18384e;
  --line-green: #06c755;
  --shadow: 0 16px 42px rgba(21, 33, 43, .12);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.85;
  font-feature-settings: "palt";
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-dark); }

.wrap { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 36px)); margin: 0 auto; }

/* --- 共通パーツ ---------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border: 1px solid rgba(14, 159, 151, .28);
  border-radius: 999px; color: var(--teal-dark);
  background: rgba(14, 159, 151, .08);
  font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 15px 26px; border-radius: 8px; border: 0;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px rgba(230, 91, 79, .26);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: #d9483d; }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-line {
  background: var(--line-green); color: #fff;
  box-shadow: 0 10px 22px rgba(6, 199, 85, .24);
}
.btn-line:hover { background: #05b34c; }

.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid rgba(24, 56, 78, .24); box-shadow: none;
}
.btn-ghost:hover { background: rgba(24, 56, 78, .05); transform: translateY(-2px); }

/* --- ヘッダー ------------------------------------------------------------ */

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 227, 231, .9);
}
.header-inner {
  min-height: 70px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-weight: 900; font-size: 19px; color: var(--navy); text-decoration: none;
  line-height: 1.2;
}
.brand small { font-size: 12px; font-weight: 700; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 700; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--teal-dark); }
.nav .nav-cta {
  padding: 10px 16px; border-radius: 7px; color: #fff;
  background: var(--coral); white-space: nowrap;
}
.nav .nav-cta:hover { color: #fff; background: #d9483d; }

.nav-toggle { display: none; }

/* --- ヒーロー ------------------------------------------------------------ */

.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 64px 0 0;
  background: linear-gradient(118deg, #0d2430 0%, #143a4a 52%, #0c5c5c 100%);
}
/* 斜めの光。写真の背後に奥行きを出す */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  right: -12%; top: -30%; width: 68%; aspect-ratio: 1/1;
  background: radial-gradient(closest-side, rgba(14,159,151,.34), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 40px; align-items: end;
}
.hero-copy { padding-bottom: 88px; }
.hero h1 {
  margin: 20px 0 22px;
  font-size: clamp(32px, 5vw, 57px); line-height: 1.26;
  letter-spacing: -.025em; text-wrap: balance;
}
.hero-lead {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.5vw, 24px); font-weight: 800; color: #ffd889;
  line-height: 1.6;
}
.hero-sub {
  max-width: 560px; margin: 0 0 34px;
  font-size: clamp(15px, 1.9vw, 17px); color: #c3d7dc; font-weight: 650;
}
.hero .eyebrow { color: #b9ece6; background: rgba(14,159,151,.2); border-color: rgba(255,255,255,.26); }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.38); }
.btn-on-dark:hover { background: rgba(255,255,255,.1); }

.hero-photo { position: relative; margin: 0; align-self: end; }
.hero-photo img {
  width: 100%; max-width: 470px; margin: 0 0 0 auto;
  filter: drop-shadow(0 26px 46px rgba(0,0,0,.5));
}
.hero-photo figcaption {
  position: absolute; right: 0; bottom: 26px;
  padding: 11px 18px; border-radius: 8px;
  background: rgba(9,24,31,.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-photo strong { display: block; font-size: 17px; line-height: 1.3; }
.hero-photo span { display: block; color: #a9c6cb; font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 34px; }
  .hero-photo img { max-width: 320px; margin: 0 auto; }
  .hero-photo figcaption { right: 50%; transform: translateX(50%); bottom: 14px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .hero-photo img { max-width: 260px; }
}

/* --- セクション ---------------------------------------------------------- */

section { padding: 86px 0; }
.band { background: var(--soft); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy .section-title { color: #fff; }
.band-navy .section-lead { color: #cfe0e4; }
.band-navy .eyebrow { color: #b9ece6; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }

.section-title {
  margin: 16px 0 18px;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.35; letter-spacing: -.01em;
  text-wrap: balance;
}
/* text-wrap:pretty で、最終行に1〜2文字だけ取り残される折り返しを防ぐ */
.section-lead {
  margin: 0; max-width: 780px; color: var(--muted); font-size: 16.5px;
  text-wrap: pretty;
}

/* --- カード -------------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: 0 8px 22px rgba(21, 33, 43, .045);
}
.card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.45; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .num {
  display: block; margin-bottom: 6px;
  color: var(--coral); font-size: 30px; font-weight: 900; line-height: 1;
}

/* --- 記事一覧 ------------------------------------------------------------ */

.post-list { display: grid; gap: 18px; }
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 8px 22px rgba(21,33,43,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(21,33,43,.1); }
.post-card a { display: block; padding: 30px 32px; text-decoration: none; color: inherit; }
.post-tag {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px;
  border-radius: 999px; background: rgba(14,159,151,.1);
  color: var(--teal-dark); font-size: 12.5px; font-weight: 900;
}
.post-card h2 { margin: 0 0 12px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; color: var(--navy); }
.post-card p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.post-more { color: var(--coral); font-weight: 900; font-size: 14.5px; }
.post-more::after { content: " →"; }

/* --- 記事本文の装飾 ------------------------------------------------------ */

.callout {
  margin: 34px 0; padding: 24px 28px; border-radius: var(--radius);
  background: var(--soft); border: 1px solid var(--line);
}
.callout > strong { display: block; margin-bottom: 10px; color: var(--navy); font-size: 16px; }
.callout p { margin: 0 0 10px; font-size: 15.5px; }
.callout p:last-child { margin-bottom: 0; }
.callout .small { color: var(--muted); font-size: 13.5px; }

.action {
  margin: 26px 0 34px; padding: 22px 26px;
  border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0;
  background: rgba(14,159,151,.07);
}
.action > strong { display: block; margin-bottom: 8px; color: var(--teal-dark); font-size: 15.5px; }
.action p { margin: 0 0 8px; font-size: 15.5px; }
.action p:last-child { margin-bottom: 0; }

.related-head {
  margin: 0 0 22px; padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  font-size: 21px; color: var(--navy);
}
.post-card h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.55; color: var(--navy); }

/* 記事内の比較ボックス */
.compare-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.compare-box-simple { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare-box-simple > strong {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border-radius: 999px; color: #fff; font-size: 13px; font-weight: 900;
}
.compare-box-simple.is-ng { border-color: rgba(230,91,79,.35); }
.compare-box-simple.is-ng > strong { background: var(--coral); }
.compare-box-simple.is-ok { border-color: rgba(14,159,151,.4); box-shadow: 0 8px 22px rgba(14,159,151,.1); }
.compare-box-simple.is-ok > strong { background: var(--teal); }
.compare-box-simple p { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.compare-box-simple .small { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }

@media (max-width: 700px) { .compare-simple { grid-template-columns: 1fr; } }

.back-link { display: inline-block; color: var(--teal-dark); font-weight: 800; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* --- 下層ページ見出し ---------------------------------------------------- */

.page-head {
  padding: 54px 0 58px;
  background: linear-gradient(120deg, #0d2430 0%, #143a4a 60%, #0c5c5c 100%);
  color: #fff;
}
.page-head h1 {
  margin: 18px 0 18px;
  font-size: clamp(27px, 4.4vw, 44px); line-height: 1.35;
  letter-spacing: -.02em; text-wrap: balance;
}
.page-head .eyebrow { color: #b9ece6; background: rgba(14,159,151,.2); border-color: rgba(255,255,255,.26); }
.page-lead { max-width: 680px; margin: 0; color: #c3d7dc; font-size: 16.5px; font-weight: 650; text-wrap: pretty; }
.crumb { margin-bottom: 18px; font-size: 13px; color: #9dbac1; }
.crumb a { color: #b9ece6; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 4px; }

/* --- 地域リスト ---------------------------------------------------------- */

.area-list { display: grid; gap: 12px; margin-top: 34px; }
.area-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 26px;
  border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.area-item.is-ready { border-left-color: var(--teal); }
.area-name { font-size: 19px; font-weight: 900; color: var(--navy); }
.area-status { color: var(--muted); font-size: 14px; font-weight: 800; }
.area-item.is-ready .area-status { color: var(--teal-dark); }
.note {
  margin: 26px 0 0; padding: 18px 22px; border-radius: 8px;
  background: var(--soft); color: var(--muted); font-size: 14.5px;
}

@media (max-width: 560px) {
  .area-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }
}

/* --- 名前の由来（10:00:00） ---------------------------------------------- */

.origin { background: #0f232d; color: #fff; }
.origin .section-title { color: #fff; }
.origin .eyebrow { color: #b9ece6; background: rgba(14,159,151,.18); border-color: rgba(255,255,255,.22); }
.origin-grid {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: center;
}
.origin-photo { margin: 0; }
.origin-photo img {
  width: 100%; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 46px rgba(0,0,0,.42);
}
.origin-copy p { color: #c8dade; font-size: 16.5px; }
.origin-copy strong { color: #ffd889; }
.nowrap { white-space: nowrap; }
.origin-quote {
  border-left-color: var(--teal);
  background: rgba(14,159,151,.14);
  color: #fff;
}

@media (max-width: 900px) {
  .origin-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* --- 三種の神器カード ---------------------------------------------------- */

.jinki { border-top: 4px solid var(--amber); }
.jinki-no {
  display: inline-block; margin-bottom: 8px;
  color: var(--amber); font-size: 12.5px; font-weight: 900; letter-spacing: .12em;
}
.jinki h3 { margin: 0 0 4px; font-size: 23px; color: var(--navy); }
.jinki-sub {
  margin: 0 0 14px !important; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--teal-dark) !important; font-weight: 800; font-size: 14.5px !important;
}

/* --- 実績ストリップ ------------------------------------------------------ */

.proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.proof-item {
  padding: 16px 20px; border-left: 4px solid var(--teal);
  background: var(--soft); border-radius: 8px;
}
.proof-item strong {
  display: block; color: var(--navy);
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1;
  font-feature-settings: "palt"; letter-spacing: -.02em;
}
.proof-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 13.5px; font-weight: 700; }

/* --- 引用・ストーリー ---------------------------------------------------- */

.pull-quote {
  margin: 34px 0; padding: 26px 30px;
  border-left: 5px solid var(--amber); background: rgba(243, 162, 26, .07);
  border-radius: 0 8px 8px 0;
  font-size: clamp(17px, 2.3vw, 21px); font-weight: 700; line-height: 1.75;
}

.prose p { font-size: 16.5px; }
.prose h2 { margin: 44px 0 16px; font-size: clamp(22px, 3vw, 30px); line-height: 1.45; }
.prose h3 { margin: 32px 0 12px; font-size: 20px; }
.prose ul { padding-left: 1.3em; color: var(--muted); }
.prose li { margin: 8px 0; }

/* --- 署名（代表） -------------------------------------------------------- */

.signature {
  display: flex; align-items: center; gap: 22px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.signature img {
  width: 132px; height: auto; flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(21,33,43,.16));
}
.signature strong { display: block; font-size: 20px; color: var(--navy); }
.signature span { display: block; color: var(--muted); font-size: 13.5px; font-weight: 700; }

@media (max-width: 560px) {
  .signature { gap: 16px; }
  .signature img { width: 96px; }
  .signature strong { font-size: 17px; }
  .signature span { font-size: 12.5px; }
}

/* --- CTAブロック --------------------------------------------------------- */

.cta-block {
  padding: 44px 40px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy), #0b5d66 58%, var(--teal-dark));
  box-shadow: var(--shadow);
}
.cta-block h2 { margin: 0 0 14px; font-size: clamp(23px, 3.4vw, 32px); line-height: 1.4; }
.cta-block p { margin: 0 0 26px; color: #d5e6e8; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note { margin: 18px 0 0; color: #a9c6cb; font-size: 13.5px; }

/* --- 動画 ---------------------------------------------------------------- */

.video-embed {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: #000; border: 1px solid var(--line);
}
.video-embed--vertical { aspect-ratio: 9 / 16; max-width: 340px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 40px;
  align-items: center; margin-top: 38px;
}
.video-side h3 { margin: 0 0 14px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; color: var(--navy); }
.video-side p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; gap: 26px; }
  .video-embed--vertical { max-width: 300px; margin: 0 auto; }
}

/* --- リスト -------------------------------------------------------------- */

/* 子要素の数に影響されないよう、アイコンは絶対配置にする
   （グリッドだと strong + テキストが別々の列に押し出されて崩れる） */
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.check-list li {
  position: relative; padding-left: 36px;
  font-weight: 650; line-height: 1.8;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .28em;
  width: 24px; height: 24px;
  display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 13px; font-weight: 900;
}

/* --- フッター ------------------------------------------------------------ */

.footer {
  padding: 54px 0 34px; border-top: 1px solid var(--line);
  background: var(--soft); color: var(--muted); font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--teal-dark); text-decoration: underline; }
.footer-info { padding: 24px 0 4px; }
.footer-info dl {
  display: grid; grid-template-columns: 7em 1fr; gap: 8px 18px;
  margin: 0; font-size: 13.5px;
}
.footer-info dt { font-weight: 800; color: var(--ink); }
.footer-info dd { margin: 0; }
.footer-bottom { padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 560px) {
  .footer-info dl { grid-template-columns: 1fr; gap: 2px; }
  .footer-info dt { margin-top: 10px; }
}

/* --- 固定CTA（モバイル） ------------------------------------------------- */

.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.fixed-cta .btn { min-height: 50px; padding: 12px 10px; font-size: 14.5px; }

/* --- レスポンシブ -------------------------------------------------------- */

@media (max-width: 900px) {
  section { padding: 62px 0; }
  .grid-3, .grid-2, .proof, .footer-grid { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
  .fixed-cta { display: grid; }
  body { padding-bottom: 78px; }
  .cta-block { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { width: calc(100% - 28px); }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .card { padding: 22px; }
  .pull-quote { padding: 20px 22px; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
