/* ==========================================================================
   株式会社SAI ウェブサイト
   Layout: navy full-bleed opener, then sections with a sticky left label
   column and content on the right. Square corners, no English eyebrows.
   ========================================================================== */

:root {
  --navy: #012e55;
  --navy-deep: #021f3a;
  --teal: #118b9d;
  --teal-dark: #0d6f7e;
  --teal-soft: #e4f3f5;
  --ink: #1b2a36;
  --muted: #5e6f7d;
  --bg: #ffffff;
  --bg-alt: #f2f6f8;
  --line: #d6e0e6;

  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-num: "Outfit", "Noto Sans JP", sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.01em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.pc-br { display: inline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img { width: 52px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); }
.site-nav .nav-cta a {
  margin-left: 10px;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
}
.site-nav .nav-cta a:hover { background: var(--teal-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-fill { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-fill:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }

.inline-link {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.inline-link:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(64px, 9vw, 112px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 36%;
  height: 140%;
  background: var(--teal);
  opacity: 0.16;
  transform: skewX(-14deg);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: 24%;
  width: 6%;
  height: 140%;
  background: var(--teal);
  opacity: 0.1;
  transform: skewX(-14deg);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #7fd6e2;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.45;
}
.hero h1 em { font-style: normal; color: #7fd6e2; }
.hero-lead {
  margin-top: 26px;
  max-width: 32em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.shop-card {
  background: #fff;
  color: var(--ink);
  padding: 28px 28px 26px;
  border-radius: 4px;
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.shop-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.shop-card-head h2 { font-size: 1.15rem; }
.shop-card-head span { font-size: 0.75rem; color: var(--teal-dark); font-weight: 500; }
.shop-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 0.9rem;
}
.shop-card dt { color: var(--muted); font-weight: 500; }
.shop-card dd { margin: 0; }
.shop-card .inline-link { font-size: 0.88rem; justify-self: start; }

/* --------------------------------------------------------------------------
   News strip
   -------------------------------------------------------------------------- */
.news-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.news-strip .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.news-strip .label {
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  flex: none;
}
.news-strip a.item {
  display: flex;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}
.news-strip a.item:hover .title { color: var(--teal-dark); }
.news-strip .date { color: var(--muted); flex: none; }
.news-strip .title { min-width: 0; }
.news-strip .more { flex: none; margin-left: auto; }

/* --------------------------------------------------------------------------
   Sections (sticky label column)
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }
.section-alt { background: var(--bg-alt); }
.section-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.section-label {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 10px;
}
.section-label h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-left: 14px;
  border-left: 3px solid var(--teal);
  line-height: 1.3;
}
.section-label p {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 17px;
}
.section-body { display: grid; gap: clamp(28px, 4vw, 44px); min-width: 0; }
.lead-title {
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 700;
}
.lead-text { color: var(--muted); max-width: 38em; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Services: buy / sell panels
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 30px 30px 32px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.service.is-sell { border-top-color: var(--teal); }
.service-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.service-title h3 { font-size: 1.9rem; font-weight: 700; letter-spacing: 0.1em; }
.service-title span { font-size: 0.9rem; color: var(--muted); }
.service-list { display: grid; gap: 14px; }
.service-list li {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  position: relative;
  font-size: 0.93rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 7px; height: 7px;
  background: var(--teal);
}
.service-list strong { color: var(--navy); font-weight: 700; }
.service-list span { color: var(--muted); }
.service .btn { justify-self: start; }

/* --------------------------------------------------------------------------
   Store
   -------------------------------------------------------------------------- */
.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.info-table { width: 100%; font-size: 0.95rem; }
.info-table th,
.info-table td {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 7.5em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.info-table tr:first-child th,
.info-table tr:first-child td { border-top: 1px solid var(--line); }
.info-table td small { display: block; color: var(--muted); font-size: 0.85rem; }
.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-alt);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* --------------------------------------------------------------------------
   Purchase (kaitori)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 22px 26px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.steps li::before {
  content: "STEP " counter(step);
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--teal-dark);
}
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.9rem; color: var(--muted); }
.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.note {
  background: var(--teal-soft);
  padding: 20px 22px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}
.note strong { color: var(--navy); }
.note ul { display: grid; gap: 4px; padding-left: 1.2em; list-style: disc; color: var(--ink); }

/* --------------------------------------------------------------------------
   Company
   -------------------------------------------------------------------------- */
.message {
  display: grid;
  gap: 18px;
  max-width: 40em;
}
.message p { font-size: 1rem; }
.message-sign {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.message-sign strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.sub-title {
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.job {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: grid;
  gap: 8px;
}
.job h4 { font-size: 1.05rem; }
.job p { font-size: 0.9rem; color: var(--muted); }
.job .tag {
  justify-self: start;
  font-size: 0.75rem;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 2px 10px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.phone-box {
  background: var(--navy);
  color: #fff;
  padding: 26px 26px 24px;
  display: grid;
  gap: 6px;
}
.phone-box .label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.phone-box .number {
  font-family: var(--font-num);
  font-size: 1.75rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}
.phone-box .note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); }
.contact-note { font-size: 0.88rem; color: var(--muted); margin-top: 16px; }
.form-embed {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 360px;
}
.form-embed iframe { width: 100%; min-height: 1100px; border: 0; display: block; }
.form-placeholder {
  padding: 40px 32px;
  display: grid;
  gap: 14px;
  text-align: center;
  justify-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 360px;
  align-content: center;
}
.form-placeholder strong { color: var(--navy); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Sub pages
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(44px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  top: -20%; right: -8%;
  width: 30%; height: 140%;
  background: var(--teal);
  opacity: 0.16;
  transform: skewX(-14deg);
  pointer-events: none;
}
.page-head .container { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.breadcrumb a:hover { color: #fff; }

.news-list { display: grid; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 20px;
  padding: 20px 6px;
  align-items: baseline;
}
.news-list a:hover { background: var(--bg-alt); }
.news-list .date { color: var(--muted); font-size: 0.9rem; }
.news-list .title { font-weight: 500; }

.prose { max-width: 42em; display: grid; gap: 20px; font-size: 0.97rem; }
.prose h2 { font-size: 1.2rem; margin-top: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose ul { padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; }
.prose ol { padding-left: 1.4em; list-style: decimal; display: grid; gap: 6px; }
.prose .meta { color: var(--muted); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 56px 28px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.footer-brand { display: grid; gap: 16px; }
.footer-brand img { width: 110px; }
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}
.footer-brand address { font-style: normal; line-height: 1.9; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}
.footer-nav a { color: rgba(255, 255, 255, 0.8); }
.footer-nav a:hover { color: #7fd6e2; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .contact-grid { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { width: 44px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: 16px var(--gutter) 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  .site-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 18px 4px; font-size: 1.02rem; border-radius: 0; }
  .site-nav .nav-cta { border-bottom: 0; padding-top: 20px; }
  .site-nav .nav-cta a { margin-left: 0; text-align: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { width: 60%; right: -30%; }
  .hero::after { display: none; }
  .section-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-label { position: static; }
  .store-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .pc-br { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .service-grid, .steps, .note-grid, .jobs { grid-template-columns: 1fr; }
  .news-strip .container { gap: 8px 16px; }
  .news-strip a.item { flex-direction: column; gap: 2px; }
  .news-strip .more { margin-left: 0; }
  .info-table th { width: 6em; white-space: normal; }
  .news-list a { grid-template-columns: 1fr; gap: 4px; }
  .footer-nav { grid-template-columns: 1fr; }
  .shop-card dl { grid-template-columns: 4.5em minmax(0, 1fr); }
}
