/* Hirome landing site. Palette: 常磐 green on a cool, faintly green paper; 山吹 only for the fan's pivot. */
:root {
  --paper: #f2f5f1;
  --paper-2: #e8eee8;
  --ink: #15231e;
  --ink-2: #3e4f48;
  --ink-3: #5c6b65;
  --line: #d3ddd6;
  --green: #0a7a55;
  --green-deep: #07583e;
  --green-soft: #d7ecdf;
  --seg-a: #0a7a55;
  --seg-b: #0d936a;
  --seg-text: #ffffff;
  --kaname: #e2a72e;
  --focus: #0a7a55;
  --mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --gothic: 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a16;
    --paper-2: #15231e;
    --ink: #e4ece7;
    --ink-2: #b7c5be;
    --ink-3: #91a29a;
    --line: #26362f;
    --green: #43bd8d;
    --green-deep: #66d3a7;
    --green-soft: #173528;
    --seg-a: #1f8a62;
    --seg-b: #2f9e74;
    --focus: #66d3a7;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: 'palt' 0;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--green-deep);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* ---- header -------------------------------------------------------------------------- */
.site-header {
  padding-block: 20px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: auto;
}
.brand-name {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.02em;
}
.brand-kana {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 2px;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.site-nav a {
  white-space: nowrap;
}
.site-nav a:not(.button) {
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:not(.button):hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---- buttons ------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.3;
}
.button-primary {
  background: var(--green);
  color: #fff;
}
.button-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .button-primary,
  .button-primary:hover {
    color: #04140d;
  }
}
.button-quiet {
  color: var(--green);
  background: transparent;
}
.button-quiet:hover {
  background: var(--green-soft);
}
.site-nav .button {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 14px;
}

/* ---- hero ---------------------------------------------------------------------------- */
.hero {
  padding-block: 28px 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'fan title' 'lead title';
  align-items: start;
  gap: 8px 48px;
}
.hero h1 {
  grid-area: title;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.45;
  letter-spacing: 0.08em;
  align-self: start;
  white-space: nowrap;
}
.hero h1 span {
  display: block;
}
/* English headline: horizontal, set in the same display face. */
.hero h1.hero-title-en {
  writing-mode: horizontal-tb;
  letter-spacing: 0;
  line-height: 1.15;
  font-size: clamp(40px, 5.6vw, 76px);
  white-space: normal;
  max-width: 7em;
}
.hero h1.hero-title-en span + span {
  margin-top: 0;
}
.hero h1 span + span {
  margin-top: 2.2em;
}
.hero-fan-wrap {
  grid-area: fan;
  width: min(100%, 640px);
  margin-top: 24px;
}
.hero-lead {
  grid-area: lead;
  padding-bottom: 8px;
}
.hero-lead p {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin-top: 14px !important;
  font-size: 13px !important;
  color: var(--ink-3) !important;
}

.hero-fan {
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-fan .fan-seg path {
  fill: var(--seg-a);
}
.hero-fan .fan-seg:nth-child(even) path {
  fill: var(--seg-b);
}
.hero-fan text {
  fill: var(--seg-text);
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.hero-fan .fan-kaname {
  fill: var(--kaname);
}
.hero-fan .fan-seg {
  transform-box: view-box;
  transform-origin: 300px 330px;
  animation: unfold 1100ms cubic-bezier(0.2, 0.75, 0.15, 1) both;
  animation-delay: calc(var(--i) * 40ms + 150ms);
}
@keyframes unfold {
  from {
    transform: rotate(var(--from)) scale(0.92);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fan .fan-seg {
    animation: none;
  }
}

/* ---- sections ------------------------------------------------------------------------ */
.section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}
.section h2,
.feature h3,
.doc h1,
.doc h2 {
  text-wrap: balance;
  word-break: auto-phrase;
}
.section h2 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.5;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.section-intro {
  margin: 0 0 40px;
  color: var(--ink-2);
  max-width: 38em;
}

/* Features: two columns of plain text, each with a small sample of the real screen. */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature h3 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature h3 svg {
  width: 26px;
  flex: none;
}
.feature p {
  margin: 0 0 18px;
  color: var(--ink-2);
  max-width: 32em;
}
.sample {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  background: var(--paper-2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.sample dt {
  font-weight: 700;
  color: var(--ink);
}
.sample dd {
  margin: 0 0 6px;
}
.sample dd:last-child {
  margin-bottom: 0;
}
.ok {
  color: var(--green);
  font-weight: 700;
}

/* AI transcript */
.ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.ai p {
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 30em;
}
.transcript {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  font-size: 15px;
}
.transcript li {
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 34em;
}
.transcript .you {
  background: var(--green);
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  .transcript .you {
    color: #04140d;
  }
}
.transcript .ai-voice {
  background: var(--paper-2);
  border-bottom-left-radius: 4px;
}
.transcript .who {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 2px;
}
.transcript-caption {
  font-size: 13px !important;
  color: var(--ink-3) !important;
}

/* Support table */
.table-scroll {
  overflow-x: auto;
}
table.support {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}
.support th,
.support td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.support thead th {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 700;
}
.support tbody th {
  font-weight: 700;
  white-space: nowrap;
}
.support .no {
  color: var(--ink-3);
}
.support-note {
  font-size: 14px;
  color: var(--ink-3);
  margin: 16px 0 0;
}

/* Pricing + FAQ */
.pricing p {
  max-width: 36em;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.faq {
  max-width: 46em;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg) translateY(-2px);
  transition: transform 160ms ease;
}
.faq details[open] summary::before {
  transform: rotate(45deg) translateY(-3px);
}
.faq details p {
  margin: 0 0 18px 20px;
  color: var(--ink-2);
}

.closing {
  text-align: left;
}
.closing .hero-actions {
  margin-top: 8px;
}

/* ---- footer -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 56px;
  font-size: 14px;
  color: var(--ink-3);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: flex-start;
}
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  color: var(--ink-2);
}
.site-footer .operator {
  margin: 0;
}
.site-footer .copyright {
  margin: 0 0 0 auto;
}

/* ---- legal pages --------------------------------------------------------------------- */
.doc {
  padding-block: 32px 80px;
}
.doc article {
  max-width: 44em;
}
.doc h1 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.45;
  margin: 0 0 8px;
}
.doc .meta {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 32px;
}
.doc h2 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 21px;
  margin: 44px 0 10px;
}
.doc h3 {
  font-size: 16px;
  margin: 24px 0 6px;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc ul,
.doc ol {
  padding-left: 1.4em;
}
.doc li + li {
  margin-top: 6px;
}
.doc .en {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.doc .callout {
  border-left: 3px solid var(--green);
  background: var(--paper-2);
  padding: 12px 16px;
  margin: 16px 0;
}

/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    grid-template-areas: 'title' 'fan' 'lead';
    gap: 20px;
  }
  .hero h1 {
    writing-mode: horizontal-tb;
    font-size: clamp(32px, 8vw, 48px);
    white-space: normal;
    letter-spacing: 0.04em;
  }
  .hero h1 span + span {
    margin-top: 0;
  }
  .hero-fan-wrap {
    max-width: 560px;
  }
  .features,
  .ai {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
@media (max-width: 640px) {
  .site-nav a.hide-sm,
  .brand-kana {
    display: none;
  }
  /* The support table becomes one block per network. */
  table.support {
    min-width: 0;
  }
  .support thead {
    display: none;
  }
  .support,
  .support tbody,
  .support tr,
  .support th,
  .support td {
    display: block;
  }
  .support tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .support th,
  .support td {
    border: 0;
    padding: 2px 0;
  }
  .support tbody th {
    font-size: 17px;
    margin-bottom: 4px;
  }
  .support td::before {
    content: attr(data-label) '：';
    color: var(--ink-3);
    font-size: 13px;
  }
  .site-header .wrap {
    gap: 12px;
  }
  .section {
    padding-block: 56px;
  }
  .site-footer .copyright {
    margin-left: 0;
  }
}
