/* SANDBOX CO., LTD. — static site stylesheet */
:root {
  --navy: #173a5e;
  --navy-deep: #0f2840;
  --blue: #2a6bb0;
  --ink: #1f2a36;
  --muted: #5d6b7a;
  --line: #dfe5ec;
  --bg-soft: #f4f7fa;
  --white: #fff;
  --max: 1040px;
  /* 本文：Windowsでは旧サイトと同じメイリオ、Macではヒラギノ */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif;
  /* 見出し用フォント */
  --font-head: "M PLUS 1", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .nav a, .eyebrow, .more, .card .num, .contact-items .value, .table th {
  font-family: var(--font-head);
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 165px; height: auto; }
.logo:hover { text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a {
  color: var(--ink); font-size: 15px; padding: 24px 0; display: block;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }

/* Hero — 旧サイトの白〜グレーのグラデーションと写真を継承 */
.hero {
  background: linear-gradient(to bottom, #fefefe 0, #fefefe calc(100% - 290px), #fdfdfd calc(100% - 280px), #fdfdfd calc(100% - 270px), #fcfcfc calc(100% - 260px), #fcfcfc calc(100% - 250px), #fafafa calc(100% - 240px), #fafafa calc(100% - 230px), #f8f8f8 calc(100% - 220px), #f7f7f7 calc(100% - 210px), #f6f6f6 calc(100% - 200px), #f4f4f4 calc(100% - 190px), #f3f3f3 calc(100% - 180px), #f3f3f3 calc(100% - 170px), #f2f2f2 calc(100% - 160px), #f1f1f1 calc(100% - 150px), #f0f0f0 calc(100% - 140px), #eeeeee calc(100% - 130px), #ececec calc(100% - 120px), #ebebeb calc(100% - 110px), #eaeaea calc(100% - 100px), #e9e9e9 calc(100% - 90px), #e9e9e9 calc(100% - 80px), #e9e9e9 calc(100% - 70px), #e7e7e7 calc(100% - 60px), #e6e6e6 calc(100% - 50px), #e5e5e5 calc(100% - 40px), #e5e5e5 calc(100% - 30px), #e5e5e5 calc(100% - 20px), #e5e5e5 calc(100% - 10px), #e6e6e6 100%);
  border-bottom: 4px solid var(--navy);
  overflow: hidden;
}
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 340px; }
.hero-text { padding: 48px 0 64px; align-self: center; }
.hero h1 { font-size: 30px; line-height: 1.6; margin: 0 0 20px; color: var(--navy); font-weight: 700; letter-spacing: .04em; }
.hero h1 strong { color: var(--blue); }
.hero p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; }
.hero-photo { display: block; flex-shrink: 0; }
.sb-mark { width: 64px; height: auto; display: block; margin-bottom: 20px; }

/* Page title (sub pages) */
.page-title {
  /* 旧サイトのタイトル画像と同じ、白〜グレーのグラデーション */
  background: linear-gradient(to bottom, #fefefe 0, #fefefe calc(100% - 136px), #fefefe calc(100% - 128px), #fefefe calc(100% - 120px), #fdfdfd calc(100% - 112px), #fcfcfc calc(100% - 104px), #fbfbfb calc(100% - 96px), #fafafa calc(100% - 88px), #f9f9f9 calc(100% - 80px), #f8f8f8 calc(100% - 72px), #f8f8f8 calc(100% - 64px), #f6f6f6 calc(100% - 56px), #f5f5f5 calc(100% - 48px), #f4f4f4 calc(100% - 40px), #f3f3f3 calc(100% - 32px), #f2f2f2 calc(100% - 24px), #f1f1f1 calc(100% - 16px), #f1f1f1 calc(100% - 8px), #f0f0f0 100%);
  border-bottom: 1px solid #c8c8c8;
}
.page-title .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-title-text { padding: 56px 0 48px; }
.page-title-img { display: block; flex-shrink: 0; }
.page-title .eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--muted); margin: 0 0 8px; }
.page-title h1 { margin: 0; font-size: 28px; color: var(--navy); letter-spacing: .06em; }

/* Sections */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--blue); margin: 0 0 6px; }
.section-head h2 { margin: 0; font-size: 24px; color: var(--navy); letter-spacing: .06em; }
.lead { max-width: 720px; color: var(--muted); margin: 0; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line); border-radius: 10px; padding: 28px 26px;
  background: var(--white);
}
.card .num { font-size: 12px; color: var(--blue); letter-spacing: .16em; font-weight: 700; }
.card h3 { font-size: 18px; color: var(--navy); margin: 8px 0 10px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* Two column (business detail) */
.biz { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.biz:first-of-type { border-top: 0; padding-top: 0; }
.biz h3 { margin: 0; font-size: 19px; color: var(--navy); }
.biz h3 small { display: block; font-size: 11px; letter-spacing: .16em; color: var(--muted); font-weight: 400; margin-top: 4px; }
.biz p { margin: 0 0 10px; }
.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--ink); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table tr:first-child th, .table tr:first-child td { border-top: 2px solid var(--navy); }
.table th { width: 200px; background: var(--bg-soft); color: var(--navy); font-weight: 700; white-space: nowrap; }
.table ul { margin: 0; padding: 0; list-style: none; }
.table ol.purpose { margin: 0; padding-left: 1.8em; }
.table ol.purpose li { padding-left: .2em; }

/* Message */
.message { max-width: 760px; }
.message p { margin: 0 0 1.4em; }

/* Company summary on top page */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.dl { margin: 0; }
.dl div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); font-size: 14px; }
.dl dd { margin: 0; }
.more { display: inline-block; margin-top: 24px; font-weight: 700; }
.more::after { content: " →"; }

/* Contact band */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0; }
.contact .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact h2 { margin: 0 0 4px; font-size: 20px; color: var(--navy); }
.contact p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-items { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-items .label { display: block; font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.contact-items .value { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); font-size: 13px; padding: 32px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }

/* Responsive */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; gap: 32px; }
  .biz { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 16px; }
  .nav ul { gap: 22px; }
  .nav a { padding: 12px 0 14px; }
  .hero-inner { flex-direction: column; align-items: center; min-height: 0; gap: 0; }
  .hero-text { padding: 36px 0 16px; }
  .hero { background: linear-gradient(to bottom, #fefefe 0, #fefefe calc(100% - 229px), #fdfdfd calc(100% - 221px), #fdfdfd calc(100% - 213px), #fcfcfc calc(100% - 205px), #fcfcfc calc(100% - 197px), #fafafa calc(100% - 189px), #fafafa calc(100% - 182px), #f8f8f8 calc(100% - 174px), #f7f7f7 calc(100% - 166px), #f6f6f6 calc(100% - 158px), #f4f4f4 calc(100% - 150px), #f3f3f3 calc(100% - 142px), #f3f3f3 calc(100% - 134px), #f2f2f2 calc(100% - 126px), #f1f1f1 calc(100% - 118px), #f0f0f0 calc(100% - 111px), #eeeeee calc(100% - 103px), #ececec calc(100% - 95px), #ebebeb calc(100% - 87px), #eaeaea calc(100% - 79px), #e9e9e9 calc(100% - 71px), #e9e9e9 calc(100% - 63px), #e9e9e9 calc(100% - 55px), #e7e7e7 calc(100% - 47px), #e6e6e6 calc(100% - 39px), #e5e5e5 calc(100% - 32px), #e5e5e5 calc(100% - 24px), #e5e5e5 calc(100% - 16px), #e5e5e5 calc(100% - 8px), #e6e6e6 100%); }
  .hero h1 { font-size: 19px; }
  .hero-photo { width: 300px; }
  .page-title-text { padding: 40px 0 32px; }
  .page-title-img { width: 150px; }
  .page-title { background: linear-gradient(to bottom, #fefefe 0, #fefefe calc(100% - 78px), #fefefe calc(100% - 74px), #fefefe calc(100% - 69px), #fdfdfd calc(100% - 65px), #fcfcfc calc(100% - 60px), #fbfbfb calc(100% - 55px), #fafafa calc(100% - 51px), #f9f9f9 calc(100% - 46px), #f8f8f8 calc(100% - 42px), #f8f8f8 calc(100% - 37px), #f6f6f6 calc(100% - 32px), #f5f5f5 calc(100% - 28px), #f4f4f4 calc(100% - 23px), #f3f3f3 calc(100% - 18px), #f2f2f2 calc(100% - 14px), #f1f1f1 calc(100% - 9px), #f1f1f1 calc(100% - 5px), #f0f0f0 100%); }
  .section { padding: 56px 0; }
  .table th, .table td { display: block; width: 100%; border-bottom: 0; }
  .table th { padding: 12px 16px 6px; }
  .table td { padding: 6px 16px 16px; border-bottom: 1px solid var(--line); }
  .table tr:first-child td { border-top: 0; }
  .contact-items .value { font-size: 19px; }
}
