/* ===================================================
   SONORA — Functional Document
   Information-first · structured · highly readable
   =================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f7f9;
  --bg-muted:  #eef0f3;

  --text:      #1a1d22;
  --text-mid:  #4a525e;
  --text-mute: #7a8290;
  --text-dim:  #b3bac5;
  --line:      #dde1e7;
  --line-soft: #ecedf0;
  --line-strong: #1a1d22;

  --accent:    #c8102e;       /* Single accent — used sparingly */
  --accent-bg: #fef2f4;
  --highlight: #0a3a78;       /* Secondary deep blue */

  --max: 1180px;

  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* ===================================================
   Base
   =================================================== */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .005em;
}

.container {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--text); }

/* ===================================================
   Top utility bar (always visible info)
   =================================================== */
.top-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-mid);
}

.top-bar__inner {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
}

.top-bar__left { display: flex; gap: 1.5rem; }

.top-bar__right { display: flex; gap: 1.5rem; }

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.top-bar__item strong {
  color: var(--text);
  font-weight: 600;
}

.top-bar__item a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.top-bar__item a:hover { color: var(--accent); }

/* ===================================================
   Header
   =================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}

.header__logo-mark {
  width: 38px;
  height: 38px;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.header__logo-text { display: flex; flex-direction: column; line-height: 1.25; }

.header__logo-en {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .25em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.header__logo-ja {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.nav__list { display: flex; align-items: center; gap: 1.75rem; }

.nav__link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: .35rem 0;
}

.nav__link:hover { color: var(--accent); }

.nav__cta {
  background: var(--text);
  color: #fff !important;
  padding: .55rem 1.2rem;
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
  transition: background .2s;
}

.nav__cta:hover { background: var(--accent); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

/* ===================================================
   Hero — text first, no big photo
   =================================================== */
.hero {
  padding: clamp(60px, 7vw, 90px) 0 clamp(50px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__breadcrumb {
  font-size: .78rem;
  color: var(--text-mute);
  margin-bottom: 1.25rem;
  letter-spacing: .03em;
}

.hero__breadcrumb span:not(:last-child)::after {
  content: ' / ';
  color: var(--text-dim);
  margin: 0 .35rem;
}

.hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.005em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(200, 16, 46, .15) 60%);
  padding: 0 .15em;
}

.hero__lead {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.hero__cta-group { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--text);
  color: #fff;
  padding: .85rem 1.75rem;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}

.hero__cta:hover { background: var(--accent); }

.hero__cta--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.hero__cta--ghost:hover { background: var(--text); color: #fff; }

.hero__cta svg { width: 14px; height: 14px; }

.hero__photo {
  position: relative;
  aspect-ratio: 5/4;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 29, 34, 0.85);
  color: #fff;
  font-size: .72rem;
  padding: .5rem .85rem;
  letter-spacing: .03em;
}

/* ===================================================
   Quick facts strip
   =================================================== */
.facts {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0 1.5rem;
  border-right: 1px solid var(--line);
  align-items: center;
}

.fact:last-child { border-right: none; }
.fact:first-child { padding-left: 0; }

.fact__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}

.fact__label {
  font-size: .8rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.fact__label strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .15rem;
}

/* ===================================================
   Section — two-column document layout
   =================================================== */
.section {
  padding: clamp(70px, 9vw, 110px) 0;
  border-bottom: 1px solid var(--line);
}

.section--soft {
  background: var(--bg-soft);
}

.section__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.section__head {
  position: sticky;
  top: 110px;
}

.section__num {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}

.section__label {
  font-size: .7rem;
  color: var(--text-mute);
  letter-spacing: .2em;
  margin-bottom: .65rem;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: -.005em;
}

.section__lead {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.95;
}

.section__body {
  min-width: 0;
}

/* ===================================================
   Services — definition list
   =================================================== */
.services-list { display: flex; flex-direction: column; }

.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service-item:last-child { border-bottom: 1px solid var(--line); }

.service-item__num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .03em;
}

.service-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.5;
}

.service-item__body {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 38em;
}

/* ===================================================
   App (MountChecker)
   =================================================== */
.app__heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text);
}

.app__name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.app__tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: .3rem .65rem;
  text-transform: uppercase;
}

.app__sub {
  font-size: .9rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.app__desc {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.95;
  margin-bottom: 2rem;
}

.app__features-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
  font-size: .9rem;
}

.app__features-table tr { border-bottom: 1px solid var(--line); }
.app__features-table tr:first-child { border-top: 1px solid var(--line); }

.app__features-table th {
  width: 7em;
  background: var(--bg-soft);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-mid);
  padding: .85rem 1rem;
  text-align: left;
  letter-spacing: .03em;
}

.app__features-table td {
  padding: .85rem 1rem;
  color: var(--text);
}

.app__screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app__screenshot {
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.app__screenshot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.app__screenshot-caption {
  font-size: .78rem;
  color: var(--text-mid);
  padding: .55rem .85rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-weight: 600;
}

.app__effects {
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--bg-soft);
}

.app__effects-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.app__effects-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.app__effects-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 2rem;
  font-size: .88rem;
  color: var(--text);
}

.app__effects-list li {
  display: flex;
  gap: .5rem;
  align-items: baseline;
}

.app__effects-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ===================================================
   Equipment
   =================================================== */
.equipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-bottom: 2.5rem;
}

.equipment-table tr { border-bottom: 1px solid var(--line); }
.equipment-table tr:first-child { border-top: 2px solid var(--text); }
.equipment-table tr:last-child { border-bottom: 2px solid var(--text); }

.equipment-table th,
.equipment-table td {
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: top;
}

.equipment-table th {
  background: var(--bg-soft);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: .03em;
  width: 11em;
  white-space: nowrap;
}

.equipment-table td { color: var(--text); }

.equipment__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin-top: 1.5rem;
}

.equipment__photo-item {
  border: 1px solid var(--line);
  background: var(--bg);
}

.equipment__photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.equipment__photo-item p {
  padding: .55rem .75rem;
  font-size: .78rem;
  color: var(--text);
  font-weight: 600;
  border-top: 1px solid var(--line);
}

.equipment__photo-item p span {
  display: block;
  font-size: .7rem;
  color: var(--text-mute);
  font-weight: 400;
  margin-top: .1rem;
}

/* ===================================================
   Company
   =================================================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.info-table tr { border-bottom: 1px solid var(--line); }
.info-table tr:first-child { border-top: 2px solid var(--text); }
.info-table tr:last-child { border-bottom: 2px solid var(--text); }

.info-table th,
.info-table td {
  padding: 1rem 1rem;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: var(--bg-soft);
  width: 9em;
  font-weight: 700;
  font-size: .82rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.info-table td { color: var(--text); }

/* ===================================================
   Clients
   =================================================== */
.clients-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.client {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 1.25rem;
  background: var(--bg);
}

.client__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .25rem;
}

.client__sub {
  font-size: .72rem;
  color: var(--text-mute);
  letter-spacing: .03em;
}

/* ===================================================
   Contact
   =================================================== */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.contact-table tr { border-bottom: 1px solid var(--line); }
.contact-table tr:first-child { border-top: 2px solid var(--text); }
.contact-table tr:last-child { border-bottom: 2px solid var(--text); }

.contact-table th,
.contact-table td {
  padding: 1.25rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.contact-table th {
  background: var(--bg-soft);
  width: 10em;
  font-weight: 700;
  font-size: .82rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.contact-table td {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-table td small {
  display: block;
  font-size: .8rem;
  color: var(--text-mute);
  font-weight: 400;
  margin-top: .25rem;
}

.contact-table a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-mute); text-underline-offset: .25em; }
.contact-table a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ===================================================
   Footer
   =================================================== */
.footer {
  background: var(--bg);
  border-top: 2px solid var(--text);
  padding: 1.75rem 0;
  font-size: .8rem;
  color: var(--text-mid);
}

.footer__inner {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer strong { color: var(--text); font-weight: 700; }

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 900px) {
  .top-bar { display: none; }
  .hero__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .facts__grid { grid-template-columns: 1fr 1fr; gap: 1rem 0; }
  .fact { border-right: none; padding: .5rem 1rem; }
  .fact:nth-child(odd) { padding-left: 0; }

  .section__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .section__head { position: static; }

  .app__screens { grid-template-columns: 1fr; }
  .app__effects-list { grid-template-columns: 1fr; }
  .equipment__photos { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { flex-direction: column; text-align: center; gap: .5rem; }
}

@media (max-width: 700px) {
  .nav__list {
    display: none;
    flex-direction: column;
    gap: 0;
  }
  .nav__list.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
  }
  .nav__link, .nav__cta {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem !important;
    border-top: 1px solid var(--line-soft);
  }
  .nav__cta { background: var(--text); color: #fff !important; margin-top: .5rem; text-align: center; }
  .nav__toggle { display: flex; }
}
