/* CYCLE株式会社 コーポレートサイト
   黒に近い深緑を地に、写真と文字組みで見せる。ブランド色：CYCLE Green / BARREL Sand */

:root {
  /* 色 */
  --color-bg:        #0a100c; /* ほぼ黒の深緑 */
  --color-bg-2:      #111914;
  --color-brand:     #083317; /* CYCLE Green */
  --color-accent:    #eed8b5; /* BARREL Sand */
  --color-fg:        #f1f0eb;
  --color-fg-dim:    #6f7a72; /* 二色見出しの暗い側 */
  --color-fg-muted:  #a3aca5;
  --color-line:      rgba(241, 240, 235, 0.14);
  --color-veil:      rgba(10, 16, 12, 0.45);
  --color-danger:    #f0a493;

  /* 書体 */
  --font-display: "Big Shoulders Display", "Zen Kaku Gothic New", sans-serif; /* 英字見出し：細身で背の高いスポーツ系 */
  --font-latin:   "Barlow Semi Condensed", "Zen Kaku Gothic New", sans-serif; /* 英字の小見出し・ナビ */
  --font-body:    "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* タイポスケール */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   clamp(1.5rem, 2.6vw, 2.25rem);
  --text-2xl:  clamp(1.75rem, 3.4vw, 3rem);
  --text-display: clamp(4.5rem, 14vw, 15rem);

  --tracking-tight: -0.04em;
  --tracking-label: 0.12em;

  /* 余白 */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --space-5: 8rem;
  --gutter: clamp(1.25rem, 3.5vw, 3rem);
  --maxw: 1360px;
  --header-h: 76px;

  /* 角丸：ほぼ使わない */
  --radius: 2px;

  /* モーション */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 500ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-fg);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.85;
  font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--color-accent); outline-offset: 4px; }
::selection { background: var(--color-accent); color: var(--color-bg); }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-2); top: -100px; z-index: 100; background: var(--color-fg); color: var(--color-bg); padding: var(--space-1) var(--space-2); }
.skip:focus { top: var(--space-2); }

/* 小見出し */
.eyebrow {
  font-family: var(--font-latin); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-fg-muted);
}

/* 英字ディスプレイ：細めのウェイトを大きく、二色で */
.display {
  margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--text-display); line-height: 0.86; letter-spacing: 0.005em;
}
.display .dim { color: var(--color-fg-dim); }
.l { display: block; overflow: hidden; padding-bottom: 0.06em; }
.l > span { display: inline-block; }

/* 写真：ブランドの緑をわずかに乗せる */
.photo { position: relative; overflow: hidden; background: var(--color-bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) contrast(1.05) brightness(0.92); }
.photo::after { content: ""; position: absolute; inset: 0; background: var(--color-brand); mix-blend-mode: soft-light; opacity: 0.7; pointer-events: none; }

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  border: 1px solid var(--color-fg); background: transparent; color: var(--color-fg); cursor: pointer;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn--light { background: var(--color-fg); color: var(--color-bg); }
.btn--light:hover { background: var(--color-accent); border-color: var(--color-accent); }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: 500;
  text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--color-line);
  transition: border-color var(--dur) var(--ease-out);
}
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { border-color: var(--color-fg); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  transition: background var(--dur) var(--ease-out), transform 600ms var(--ease-out);
}
.site-header.is-scrolled { background: rgba(10, 16, 12, 0.8); backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand img { width: 108px; }
.nav ul { list-style: none; display: flex; gap: 0.4em; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-family: var(--font-latin); font-size: var(--text-sm); font-weight: 500; transition: color var(--dur) var(--ease-out); }
.nav a:hover { color: var(--color-fg-dim); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: var(--space-3); }
.header-login { font-family: var(--font-latin); font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: color var(--dur) var(--ease-out); }
.header-login:hover { color: var(--color-accent); }
.header-cta { min-height: 36px; padding: 0 var(--space-2); font-family: var(--font-latin); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100dvh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { object-position: 50% 35%; }
.hero-media::before { /* 文字の可読性を保つための下側の暗幕 */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,16,12,0.35) 0%, rgba(10,16,12,0) 35%, rgba(10,16,12,0.85) 100%);
}
.hero-meta {
  position: absolute; z-index: 2; top: calc(var(--header-h) + var(--space-3)); right: var(--gutter);
  display: grid; justify-items: end; font-family: var(--font-latin); font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-fg-muted); line-height: 1.9;
}
.hero-content {
  position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) var(--space-4);
  display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: var(--space-3); align-items: end;
}
.hero-side { display: grid; gap: var(--space-2); padding-bottom: 0.6em; }
.hero-jp { font-size: var(--text-lg); font-weight: 700; letter-spacing: 0.08em; }
.hero-lead { font-size: var(--text-sm); color: var(--color-fg-muted); line-height: 1.9; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: var(--space-2); translate: -50% 0;
  font-family: var(--font-latin); font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-fg-muted); display: none;
}


/* ---------- Sections ---------- */
section { scroll-margin-top: var(--header-h); }
.section { padding: var(--space-5) 0; }
.sec-head { display: grid; gap: var(--space-2); align-content: start; }
.sec-title { margin: 0; font-size: var(--text-2xl); font-weight: 500; line-height: 1.35; letter-spacing: 0.01em; }
.sec-note { color: var(--color-fg-muted); font-size: var(--text-sm); max-width: 28em; }
.split { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: var(--space-4); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: var(--space-4); }
.statement { font-size: var(--text-2xl); font-weight: 500; line-height: 1.55; letter-spacing: 0.01em; }
.pillars { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-2) 0 0; border-top: 1px solid var(--color-line); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.pillars li { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.pillars span { color: transparent; -webkit-text-stroke: 1px var(--color-fg-dim); margin-right: 0.3em; }

/* Mission / Vision：ブランドの緑の面 */
.mv { background: var(--color-brand); }
.mv-row { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--color-line); }
.mv-row:first-of-type { border-top: 0; padding-top: 0; }
.mv .eyebrow { color: var(--color-accent); }
.mv-text { font-size: var(--text-2xl); font-weight: 500; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.mv-origin { margin: var(--space-3) 0 0 calc(25% + var(--space-3)); max-width: 46em; font-size: var(--text-sm); color: rgba(241, 240, 235, 0.72); line-height: 2; }

/* Business：行リスト */
.business .sec-head { margin-bottom: var(--space-4); }
.biz-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.biz-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1.6fr); gap: var(--space-3);
  align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line);
}
.biz-no { /* 見出しと同じ大きさの縁取り数字 */
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 7.5rem); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1px var(--color-fg-dim); transition: -webkit-text-stroke-color var(--dur) var(--ease-out);
}
.biz-row:hover .biz-no { -webkit-text-stroke-color: var(--color-accent); }
.biz-title {
  margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 7.5rem); text-transform: uppercase;
  line-height: 0.9; letter-spacing: 0.01em; color: var(--color-fg-dim);
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.biz-row:hover .biz-title { color: var(--color-fg); transform: translateX(10px); }
.biz-body { display: grid; gap: var(--space-1); }
.biz-jp { font-weight: 700; }
.biz-body p:not(.biz-jp) { color: var(--color-fg-muted); font-size: var(--text-sm); }
.biz-thumb { display: none; aspect-ratio: 3 / 2; grid-column: 1 / -1; }
.cursor-media {
  position: fixed; z-index: 30; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 5; pointer-events: none;
  opacity: 0; scale: 0.85; overflow: hidden; border-radius: var(--radius);
  transition: opacity 400ms var(--ease-out), scale 400ms var(--ease-out);
}
.cursor-media.is-on { opacity: 1; scale: 1; }
.cursor-media .photo { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms var(--ease-out); }
.cursor-media .photo.is-active { opacity: 1; }

/* Service */
.service .sec-head { margin-bottom: var(--space-4); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.svc { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); }
.svc-media { position: absolute; inset: 0; }
.svc-media img { transition: scale 1.2s var(--ease-out); }
.svc:hover .svc-media img { scale: 1.05; }
.svc-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,16,12,0.1) 20%, rgba(10,16,12,0.92) 100%); }
.svc-body { position: relative; z-index: 2; display: grid; gap: var(--space-2); padding: var(--space-3); max-width: 34em; }
.svc-logo { width: 150px; margin-bottom: var(--space-2); }
.svc-logo--barrel { width: 180px; }
.svc-cat { font-family: var(--font-latin); font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }
.svc h3 { margin: 0; font-size: var(--text-xl); font-weight: 500; line-height: 1.4; }
.svc-body p:not(.svc-cat) { color: var(--color-fg-muted); font-size: var(--text-sm); }
.svc .link-arrow { justify-self: start; margin-top: var(--space-1); }

/* News / Company：罫線の行 */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.row { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
.row time, .row dt { font-family: var(--font-latin); font-size: var(--text-sm); color: var(--color-fg-muted); }
.row-title { font-weight: 500; }
.row-text { margin-top: var(--space-1); color: var(--color-fg-muted); font-size: var(--text-sm); }
.profile dd { margin: 0; overflow-wrap: anywhere; }
.company { padding-top: 0; }

/* Closing */
.closing { position: relative; height: 100dvh; min-height: 560px; display: grid; place-items: center; overflow: hidden; text-align: center; }
.closing-media { position: absolute; inset: 0; }
.closing-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-veil); }
.closing-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: var(--space-4); padding: 0 var(--gutter); }

/* Contact */
.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: var(--space-1); }
.field label { font-size: var(--text-sm); font-weight: 500; }
.req { font-size: var(--text-xs); color: var(--color-accent); margin-left: var(--space-1); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-1) 0; border: 0; border-bottom: 1px solid var(--color-line); border-radius: 0;
  background: transparent; color: var(--color-fg); font: inherit; font-size: var(--text-base);
  transition: border-color var(--dur) var(--ease-out);
}
.field select option { background: var(--color-bg-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-fg); }
.field [aria-invalid="true"] { border-color: var(--color-danger); }
.err { color: var(--color-danger); font-size: var(--text-xs); min-height: 1.2em; }
.form-note { font-size: var(--text-xs); color: var(--color-fg-muted); }
.form-status { padding: var(--space-2); border: 1px solid var(--color-line); font-size: var(--text-sm); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: var(--color-danger); color: var(--color-danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: 0.6; cursor: wait; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* Footer */
.site-footer { padding: var(--space-5) 0 var(--space-3); border-top: 1px solid var(--color-line); }
.footer-theme { font-size: clamp(3rem, 9vw, 9.5rem); margin-bottom: var(--space-4); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2); }
.footer-row img { width: 120px; }
.footer-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0; padding: 0; }
.footer-row a { text-decoration: none; font-size: var(--text-sm); }
.footer-row a:hover { color: var(--color-fg-dim); }
.footer-bottom { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--color-line); color: var(--color-fg-muted); font-size: var(--text-xs); }

/* ---------- 法務ページ ---------- */
.page-head { padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-4); border-bottom: 1px solid var(--color-line); }
.page-head .display { font-size: clamp(3.5rem, 9vw, 8rem); margin-top: var(--space-2); }
.page-head .page-jp { margin-top: var(--space-2); font-size: var(--text-xl); font-weight: 500; }
.legal { padding: var(--space-4) 0 var(--space-5); }
.legal-body { max-width: 820px; }
.legal-body > p, .legal-body li { color: var(--color-fg-muted); font-size: var(--text-sm); line-height: 2; }
.legal-body h2 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-lg); font-weight: 700; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ol, .legal-body ul { margin: var(--space-1) 0 0; padding-left: 1.4em; }
.legal-body .rows { margin-top: 0; }
.legal-body .row dd { margin: 0; color: var(--color-fg-muted); font-size: var(--text-sm); }
.legal-meta { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--color-line); color: var(--color-fg-muted); font-size: var(--text-sm); }
.tbc {
  display: inline-block; margin-left: var(--space-1); padding: 0 0.5em; border: 1px dashed var(--color-danger); border-radius: var(--radius);
  font-size: var(--text-xs); line-height: 1.7; color: var(--color-danger); white-space: nowrap; vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: var(--space-2); }
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; justify-self: end;
    background: transparent; border: 0; color: var(--color-fg); cursor: pointer;
  }
  .menu-toggle span { width: 22px; height: 1px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav.is-open {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; background: var(--color-bg);
    padding: var(--space-3) var(--gutter) var(--space-4); border-bottom: 1px solid var(--color-line);
  }
  .nav.is-open ul { flex-direction: column; gap: var(--space-1); }
  .nav.is-open a { font-size: var(--text-2xl); }
}
@media (max-width: 900px) {
  .hero-content, .about-grid, .mv-row, .split, .svc-grid { grid-template-columns: 1fr; }
  .about-grid, .mv-row, .split { gap: var(--space-2); }
  .mv-origin { margin-left: 0; }
  .biz-row { grid-template-columns: auto 1fr; }
  .biz-body { grid-column: 2; }
  .biz-thumb { display: block; }
  .cursor-media { display: none; }
  .svc { min-height: 640px; }
  .hero-meta { display: none; }
}
@media (max-width: 640px) {
  .section { padding: var(--space-4) 0; }
  .row { grid-template-columns: 1fr; gap: var(--space-1); }
  .biz-row { gap: var(--space-2); }
  .biz-title, .biz-no { font-size: 9.5vw; }
  .grid-2 { grid-template-columns: 1fr; }
  .svc-body { padding: var(--space-3) var(--space-2); }
  .hero-content { padding-bottom: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
