/* 合同会社OneSales コーポレートサイト
   参考：紺の地に金のアクセント、細めの明朝の見出し、金の英字ラベル、紺とクリームの交互のセクション。 */

:root {
  --navy: #0a1c33;
  --navy-deep: #06132a;
  --gold: #ac8b3f;
  --gold-soft: #c9ac6a;
  --cream: #fbf7f4;
  --white: #ffffff;
  --ink: #1d2738;
  --ink-sub: #5d6676;
  --line: #e4ddd3;

  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--white); padding: 8px 12px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  transition: background-color 0.3s;
}
.site-header.is-solid { background: rgba(10, 28, 51, 0.96); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  font-family: var(--latin);
  font-style: italic;
  font-size: 19px;
  color: var(--gold-soft);
  letter-spacing: 0;
}
.brand-name {
  font-family: var(--latin);
  font-size: 24px;
  letter-spacing: 0.08em;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
}
.site-nav a:hover { color: var(--gold-soft); }
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 9px 20px;
}
.site-nav .nav-cta:hover { background: var(--gold-soft); color: var(--white); }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 28, 51, 0.92) 0%, rgba(10, 28, 51, 0.7) 45%, rgba(10, 28, 51, 0.25) 100%),
    url("img/hero-tokyo-night.webp") center / cover no-repeat;
  transform: scale(1.06);
  animation: settle 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 140px var(--gutter) 120px;
}
.hero-title {
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin: 0 0 22px;
  word-break: keep-all;
  opacity: 0;
  animation: rise 1.2s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-en {
  font-family: var(--latin);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  margin: 0 0 30px;
  opacity: 0;
  animation: rise 1.2s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  opacity: 0;
  animation: rise 1.2s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-tags li {
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 5px 14px;
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--white);
  font-family: var(--latin);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.1em;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.55);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; transform: none; }
  .hero-title, .hero-en, .hero-tags { animation: none; opacity: 1; }
}

/* ---------- 写真の帯 ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  height: clamp(200px, 26vw, 360px);
  background: var(--navy);
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: clamp(80px, 11vw, 140px) 0;
  scroll-margin-top: 76px;
}
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }

.section-head { margin: 0 0 48px; }
.section-head-center { text-align: center; margin-bottom: 72px; }
.section-en {
  font-family: var(--latin);
  font-weight: 500;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 0 0 14px;
}
.section-ja {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.2em;
  margin: 0;
}
.section-navy .section-ja { color: var(--white); }

/* ---------- 私たちについて ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: 40px 80px;
}
.about-lead {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 36px;
  word-break: keep-all;
}
.about-body p:not(.about-lead) {
  max-width: 36em;
  margin: 0 0 1.4em;
}

/* ---------- 事業 ---------- */
.biz {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px 72px;
  align-items: center;
}
.biz + .biz { margin-top: clamp(72px, 9vw, 120px); }
.biz-reverse .biz-photo { order: 2; }
.biz-photo { margin: 0; position: relative; }
.biz-photo::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  z-index: 0;
}
.biz-reverse .biz-photo::after { inset: 18px 18px -18px -18px; }
.biz-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.biz-en {
  font-family: var(--latin);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin: 0 0 4px;
}
.biz-name {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0;
}
.biz-kind {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 22px;
}
.biz-text > p:not(.biz-en):not(.biz-kind) {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 22px;
}
.biz-facts { margin: 0 0 28px; border-top: 1px solid rgba(172, 139, 63, 0.5); }
.biz-facts div {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(172, 139, 63, 0.5);
  font-size: 14px;
}
.biz-facts dt { color: var(--gold-soft); }
.biz-facts dd { margin: 0; color: rgba(255, 255, 255, 0.88); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
}
.more::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s;
}
.more:hover::after { width: 40px; }

/* ---------- 代表あいさつ ---------- */
.message {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px 80px;
  align-items: start;
}
.message-photo { margin: 0; }
.message-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 18% center; }
.message-lead {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 32px;
}
.message-text > p:not(.message-lead):not(.message-sign) {
  max-width: 34em;
  margin: 0 0 1.3em;
}
.message-sign {
  margin: 40px 0 0;
  font-size: 14px;
  color: var(--ink-sub);
}
.message-sign span {
  display: block;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

/* ---------- 会社概要 ---------- */
.company {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 24px 80px;
}
.company-table { margin: 0 0 24px; border-top: 1px solid var(--navy); }
.company-table div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.company-table dt { font-family: var(--mincho); font-weight: 600; color: var(--navy); }
.company-table dd { margin: 0; }
.company-table a { color: var(--navy); }
.company-note { font-size: 14px; color: var(--ink-sub); margin: 0; }
.company-note a { color: var(--navy); }

/* ---------- お問い合わせ ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px 64px;
  align-items: start;
}
.contact-side-lead {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: clamp(28px, 4vw, 48px);
}
.field { margin-bottom: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.req, .opt {
  font-size: 11px;
  margin-left: 8px;
  padding: 1px 7px;
  vertical-align: 1px;
}
.req { background: var(--gold); color: var(--white); }
.opt { border: 1px solid var(--line); color: var(--ink-sub); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 14px;
}
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  background: var(--white);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 4px 0 16px;
}
.consent input { width: 18px; height: 18px; accent-color: var(--navy); }
.consent a { color: var(--navy); }
.form-status { min-height: 1.5em; font-size: 14px; margin: 0 0 16px; }
.form-status.is-error { color: #a12a2a; }
.form-status.is-done { color: var(--navy); font-weight: 500; }
.submit {
  width: 100%;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--navy);
  border: 0;
  padding: 16px;
  cursor: pointer;
  transition: background-color 0.25s;
}
.submit:hover { background: var(--gold); }
.submit:disabled { opacity: 0.6; cursor: wait; }
.submit:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 40px 34px;
  border: 1px solid var(--gold);
  text-decoration: none;
  color: var(--white);
  transition: background-color 0.25s;
}
.contact-box:hover { background: rgba(172, 139, 63, 0.12); }
.contact-box-title {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.contact-box-text { font-size: 14px; color: rgba(255, 255, 255, 0.78); flex: 1; }
.contact-box-go {
  color: var(--gold-soft);
  font-size: 15px;
  border-top: 1px solid rgba(172, 139, 63, 0.5);
  padding-top: 14px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }
.copyright { margin: 0; }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 960px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .about, .biz, .message, .company, .contact-layout { grid-template-columns: 1fr; }
  .biz-reverse .biz-photo { order: 0; }
  .biz-photo::after, .biz-reverse .biz-photo::after { inset: 12px -12px -12px 12px; }
  .biz-text { padding-top: 12px; }
  .message-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .header-inner { height: 64px; }
  .brand-name { font-size: 21px; }
  .site-nav .nav-cta { padding: 7px 14px; font-size: 13px; }
  .hero-inner { padding: 120px var(--gutter) 140px; }
  .scroll-cue { width: 60px; height: 60px; font-size: 13px; bottom: 56px; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .photo-strip img { aspect-ratio: 4 / 3; }
  .photo-strip img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .field-row { grid-template-columns: 1fr; }
  .contact-box { padding: 30px 24px 26px; }
  .company-table div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
}

/* ---------- 下層ページ（プライバシーポリシー） ---------- */
.legal { padding-top: calc(76px + clamp(56px, 8vw, 96px)); }
.legal-inner { max-width: 860px; }
.legal h2 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 48px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.legal p, .legal li { max-width: 40em; }
.legal a:not(.more) { color: var(--navy); }
.legal-date { margin-top: 48px; font-size: 14px; color: var(--ink-sub); }
.legal .more { color: var(--navy); margin-top: 16px; }
