/* =========================================================
   Template 001 - Simple Business
   =========================================================

   ★ 初心者の方へ
   このCSSは「よく変更するところ」を上にまとめています。
   まずは下の「初心者向け編集エリア」だけ変更してください。

   色コードの例：
   #315d8f  → 青
   #2f6d5a  → 緑
   #8b5a42  → 茶色
   #7a4f87  → 紫
   ========================================================= */

/* =========================================================
   ★初心者向け編集エリア
   ========================================================= */
:root {
  /* ★サイトのメインカラー：ボタン・見出し・アクセントに使います */
  --main-color: #315d8f;

  /* ★メインカラーより濃い色：濃い背景に使います */
  --main-dark: #1f3552;

  /* ★サイト全体の文字色 */
  --text-color: #263142;

  /* ★説明文など少し薄い文字色 */
  --muted-color: #687487;

  /* ★ページの薄い背景色 */
  --soft-bg: #f4f7fa;

  /* ★白色 */
  --white: #ffffff;

  /* ★枠線の色 */
  --border-color: #dde4eb;

  /* ★サイトの最大横幅：数字を小さくすると全体が細くなります */
  --site-width: 1180px;

  /* ★カードの角丸：0px にすると四角くなります */
  --radius: 18px;

  /* ★基本文字サイズ：通常は16pxのままでOKです */
  --base-font-size: 16px;
}

/* =========================================================
   ここから下はレイアウト用CSSです。
   慣れるまでは変更しなくても大丈夫です。
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text-color);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--site-width)); margin-inline: auto; }

/* ===== 共通テキスト ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--main-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title {
  margin: 0;
  color: #172235;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.2;
  letter-spacing: -.04em;
}
.section-lead { max-width: 720px; margin: 18px 0 0; color: var(--muted-color); }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ===== ボタン ===== */
.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--main-color); box-shadow: 0 12px 30px rgba(49,93,143,.22); }
.button-primary:hover { background: #284f79; }
.button-white { color: var(--main-dark); background: #fff; }
.button-outline { color: var(--main-color); border-color: var(--main-color); background: transparent; }
.text-link { color: var(--main-color); font-size: 14px; font-weight: 800; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(221,228,235,.9);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-symbol {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--main-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}
.logo-copy { line-height: 1.15; }
.logo-copy strong { display: block; color: #152033; font-size: 18px; letter-spacing: .08em; }
.logo-copy small { display: block; margin-top: 4px; color: #8a94a3; font-size: 9px; letter-spacing: .1em; }
.global-nav { display: flex; align-items: center; gap: 24px; color: #596577; font-size: 13px; font-weight: 700; }
.global-nav a { position: relative; }
.global-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--main-color); transition: right .2s ease; }
.global-nav a:hover::after, .global-nav a.is-current::after { right: 0; }
.global-nav .nav-contact { padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--main-dark); }
.global-nav .nav-contact::after { display: none; }

/* =========================================================
   トップページ：メインビジュアル
   ========================================================= */
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--main-dark);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,31,50,.94) 0%, rgba(18,31,50,.78) 48%, rgba(18,31,50,.22) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.hero-inner { position: relative; z-index: 2; padding-block: 92px; }
.hero-copy { max-width: 720px; color: #fff; }
.hero-copy .eyebrow { color: #b9d3ee; }
.hero-copy h1 { margin: 0; font-size: clamp(46px, 6.5vw, 82px); line-height: 1.1; letter-spacing: -.055em; }
.hero-copy h1 span { color: #bdd7f0; }
.hero-copy p { max-width: 590px; margin: 24px 0 0; color: #d7e0e9; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-scroll { position: absolute; z-index: 3; left: max(20px, calc((100% - var(--site-width))/2)); bottom: 22px; color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .15em; }

/* ===== Intro ===== */
.section { padding: 100px 0; }
.section-soft { background: var(--soft-bg); }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.intro-copy p { margin-top: 0; color: var(--muted-color); }
.intro-copy strong { color: #1e2a3c; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 30px; }
.stat-card { padding: 22px; border-top: 2px solid var(--main-color); background: #fff; box-shadow: 0 12px 36px rgba(31,53,82,.06); }
.stat-card strong { display: block; color: var(--main-dark); font-size: 30px; line-height: 1.1; }
.stat-card span { display: block; margin-top: 8px; color: #7b8798; font-size: 11px; }

/* ===== Service ===== */
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; }
.service-card { position: relative; min-height: 300px; padding: 34px; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius); background: #fff; }
.service-card::after { content: attr(data-number); position: absolute; right: 18px; bottom: -28px; color: rgba(49,93,143,.07); font-size: 110px; font-weight: 900; line-height: 1; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--main-color); font-size: 18px; font-weight: 900; }
.service-card h3 { margin: 24px 0 0; color: #1a2638; font-size: 22px; }
.service-card p { margin: 12px 0 0; color: var(--muted-color); font-size: 14px; }
.service-card .text-link { position: relative; z-index: 2; display: inline-block; margin-top: 20px; }

/* ===== Strength ===== */
.strength-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.photo-frame { position: relative; padding: 0 28px 28px 0; }
.photo-frame::after { content: ""; position: absolute; right: 0; bottom: 0; width: 72%; height: 72%; border-radius: var(--radius); background: #dfe9f2; }
.photo-frame img { position: relative; z-index: 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(31,53,82,.13); }
.point-list { display: grid; gap: 18px; margin-top: 34px; }
.point-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding-top: 18px; border-top: 1px solid var(--border-color); }
.point-item span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--main-dark); font-size: 11px; font-weight: 900; }
.point-item h3 { margin: 0; color: #1c283a; font-size: 18px; }
.point-item p { margin: 6px 0 0; color: var(--muted-color); font-size: 13px; }

/* ===== Works ===== */
.works-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; }
.work-card { overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--border-color); }
.work-card img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.work-body { padding: 23px; }
.work-body small { color: var(--main-color); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.work-body h3 { margin: 7px 0 0; color: #1c283a; font-size: 18px; }
.work-body p { margin: 8px 0 0; color: var(--muted-color); font-size: 12px; }

/* ===== News ===== */
.news-list { margin-top: 36px; border-top: 1px solid var(--border-color); }
.news-item { display: grid; grid-template-columns: 120px 100px 1fr auto; gap: 20px; align-items: center; min-height: 76px; border-bottom: 1px solid var(--border-color); }
.news-item time { color: #8c96a5; font-size: 12px; }
.news-tag { width: max-content; padding: 5px 9px; border-radius: 999px; color: var(--main-color); background: #eaf1f7; font-size: 10px; font-weight: 800; }
.news-item strong { color: #273346; font-size: 14px; }
.news-arrow { color: var(--main-color); font-weight: 900; }

/* ===== CTA ===== */
.cta { position: relative; overflow: hidden; padding: 72px 0; color: #fff; background: var(--main-dark); }
.cta::after { content: ""; position: absolute; right: -90px; top: -140px; width: 390px; height: 390px; border: 70px solid rgba(255,255,255,.045); border-radius: 50%; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin: 0; font-size: clamp(30px,4vw,48px); line-height: 1.25; }
.cta p { margin: 12px 0 0; color: #bdc9d6; }

/* =========================================================
   下層ページ共通
   ========================================================= */
.page-hero { padding: 78px 0 68px; background: linear-gradient(135deg,#f6f9fc,#edf3f8); border-bottom: 1px solid var(--border-color); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #8792a2; font-size: 11px; }
.breadcrumb a:hover { color: var(--main-color); }
.page-hero h1 { margin: 0; color: #182437; font-size: clamp(42px,5.5vw,68px); line-height: 1.12; letter-spacing: -.045em; }
.page-hero p { max-width: 720px; margin: 18px 0 0; color: var(--muted-color); }

.content-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 78px; align-items: start; }
.content-side { position: sticky; top: 112px; }
.content-side h2 { margin: 0; color: #1c283a; font-size: clamp(28px,3.2vw,42px); line-height: 1.3; letter-spacing: -.035em; }
.content-main > :first-child { margin-top: 0; }
.content-main p { color: var(--muted-color); }

/* ===== About ===== */
.message-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.message-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.message-copy h2 { margin: 0; color: #1c283a; font-size: clamp(30px,4vw,48px); line-height: 1.3; }
.message-copy p { color: var(--muted-color); }
.signature { margin-top: 26px; color: #31425b; font-weight: 700; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 18px 16px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.company-table th { width: 170px; color: #3a485c; background: #f8fafc; font-size: 13px; }
.company-table td { color: #647084; font-size: 14px; }

/* ===== Service detail ===== */
.detail-cards { display: grid; gap: 24px; margin-top: 38px; }
.detail-card { display: grid; grid-template-columns: 86px 1fr; gap: 24px; padding: 30px; border: 1px solid var(--border-color); border-radius: var(--radius); }
.detail-card-num { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--main-color); font-size: 13px; font-weight: 900; }
.detail-card h3 { margin: 0; color: #1c283a; font-size: 24px; }
.detail-card p { margin: 8px 0 0; color: var(--muted-color); }
.detail-card ul { margin: 16px 0 0; padding-left: 1.2em; color: #5e6b7e; font-size: 14px; }
.price-note { margin-top: 34px; padding: 24px; border-left: 4px solid var(--main-color); background: var(--soft-bg); color: #59677a; font-size: 13px; }

/* ===== Works ===== */
.works-page-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.works-page-grid .work-card:first-child { grid-column: span 2; }
.works-page-grid .work-card:first-child img { aspect-ratio: 16/7; }

/* ===== Access ===== */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.access-card { padding: 30px; border: 1px solid var(--border-color); border-radius: var(--radius); background: #fff; }
.access-card h3 { margin: 0; color: #1d293b; font-size: 21px; }
.access-card dl { margin: 22px 0 0; }
.access-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 15px; padding: 12px 0; border-top: 1px solid var(--border-color); }
.access-card dt { color: #435167; font-size: 12px; font-weight: 800; }
.access-card dd { margin: 0; color: var(--muted-color); font-size: 13px; }
.map-placeholder { min-height: 360px; display: grid; place-items: center; padding: 30px; border-radius: var(--radius); background: linear-gradient(135deg,#e5edf4,#f7f9fb); border: 1px solid var(--border-color); text-align: center; }
.map-placeholder strong { display: block; color: var(--main-dark); font-size: 22px; }
.map-placeholder p { max-width: 420px; margin: 8px auto 0; color: #738095; font-size: 13px; }

/* ===== Contact ===== */
.contact-alert { padding: 22px 24px; border-radius: 14px; color: #47556a; background: #fff6df; border: 1px solid #ead9a9; font-size: 13px; }
.contact-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 28px; }
.contact-option { padding: 30px; border: 1px solid var(--border-color); border-radius: var(--radius); background: #fff; }
.contact-option span { color: var(--main-color); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.contact-option h3 { margin: 10px 0 0; color: #1d293b; font-size: 23px; }
.contact-option p { color: var(--muted-color); font-size: 13px; }
.sample-form { margin-top: 40px; padding: 32px; border-radius: var(--radius); background: var(--soft-bg); }
.form-row { margin-top: 20px; }
.form-row:first-child { margin-top: 0; }
.form-row label { display: block; margin-bottom: 7px; color: #3b4960; font-size: 12px; font-weight: 800; }
.form-row input, .form-row textarea { width: 100%; padding: 13px 14px; border: 1px solid #ccd6e0; border-radius: 8px; background: #fff; color: #647084; }
.form-row textarea { min-height: 150px; resize: vertical; }
.form-help { margin: 14px 0 0; color: #7d8898; font-size: 11px; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { padding: 58px 0 26px; color: #b5c1cf; background: #141f30; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; }
.footer-logo .logo-symbol { background: #fff; color: var(--main-dark); }
.footer-logo .logo-copy strong { color: #fff; }
.footer-logo .logo-copy small { color: #8190a2; }
.footer-note { max-width: 500px; margin: 18px 0 0; color: #8391a3; font-size: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(2,auto); gap: 10px 28px; align-content: start; font-size: 12px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #667588; font-size: 10px; }
.footer-bottom a { color: #aebdd1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   スマートフォン・タブレット対応
   ========================================================= */
@media (max-width: 900px) {
  .global-nav { gap: 15px; font-size: 11px; }
  .intro-grid, .strength-grid, .content-grid, .message-grid { grid-template-columns: 1fr; gap: 42px; }
  .content-side { position: static; }
  .service-grid, .works-grid { grid-template-columns: 1fr 1fr; }
  .works-grid .work-card:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--site-width)); }
  .header-inner { min-height: 68px; }
  .logo-copy small { display: none; }
  .global-nav { display: grid; grid-template-columns: repeat(2,auto); gap: 7px 13px; text-align: right; }
  .global-nav a { font-size: 10px; }
  .global-nav .nav-contact { display: none; }
  .hero { min-height: 610px; }
  .hero::after { background: linear-gradient(90deg, rgba(18,31,50,.95), rgba(18,31,50,.74)); }
  .hero-inner { padding-block: 72px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy p { font-size: 14px; }
  .section { padding: 72px 0; }
  .service-grid, .works-grid, .stat-grid, .access-grid, .contact-options { grid-template-columns: 1fr; }
  .works-grid .work-card:last-child { grid-column: auto; }
  .news-item { grid-template-columns: 90px 1fr auto; gap: 10px; padding: 15px 0; }
  .news-tag { display: none; }
  .cta-inner { display: grid; }
  .page-hero { padding: 52px 0 48px; }
  .company-table th { width: 110px; }
  .detail-card { grid-template-columns: 1fr; }
  .works-page-grid { grid-template-columns: 1fr; }
  .works-page-grid .work-card:first-child { grid-column: auto; }
  .works-page-grid .work-card:first-child img { aspect-ratio: 10/7; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
