/* VIRE HOLDINGS コーポレートサイト(採用デザイン:design/image/design_d.html) */

:root {
  --black: #000;
  --white: #fff;
  --gray-on-black: #8c8c8c;
  --gray-text: #6e6e6e;
  --line-on-black: #333;
  --gray-line: #d9d9d9;
  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ja: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.inner { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header:黒いセクションの上では透明+白文字、白いセクションの上では白背景+黒ロゴ */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 10;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.header.is-light { background: rgba(255, 255, 255, .95); color: var(--black); border-bottom-color: var(--gray-line); }
.header .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo { position: relative; display: block; width: 150px; height: 22px; opacity: 0; transition: opacity .3s; }
.header.is-scrolled .header__logo { opacity: 1; }
.header__logo img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity .3s; }
.header__logo .dark { opacity: 0; }
.header.is-light .header__logo .dark { opacity: 1; }
.header.is-light .header__logo .light { opacity: 0; }
.nav { display: flex; gap: 40px; }
.nav a { font-family: var(--font-en); font-size: 12px; letter-spacing: .24em; text-decoration: none; }
.nav a:hover { opacity: .5; }

/* Hero:黒地にロゴのみ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 48px;
  background: var(--black);
  color: var(--white);
}
.hero h1 { margin: 0; }
.hero__logo { width: min(300px, 56vw); height: auto; display: block; }

/* Section:高さはトップと同じ1画面分。内容を上下中央に置き、収まらない場合は伸びる */
.section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 48px) 72px;
}
.section > .inner { width: 100%; }
.section__head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.section__title { margin: 0; font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .3em; }
.section__title span { display: block; margin-top: 8px; font-family: var(--font-ja); font-size: 12px; font-weight: 400; letter-spacing: .1em; color: var(--gray-text); }

.section--black { background: var(--black); color: var(--white); }
.section--black .section__title span,
.section--black .biz .ja { color: var(--gray-on-black); }
.section--black .biz li { border-bottom-color: var(--line-on-black); }
.section--black .biz li:first-child { border-top-color: var(--line-on-black); }

/* About */
.about__text { margin: 0; font-size: clamp(24px, 3.2vw, 40px); font-weight: 600; line-height: 1.6; letter-spacing: .06em; }
.about__words { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--black); }
.about__words li { padding-top: 16px; font-family: var(--font-en); font-size: 13px; letter-spacing: .08em; }
.about__words b { font-size: 28px; display: block; line-height: 1.2; }

/* Business:主張しない静かな一覧。文字サイズ・行の余白は COMPANY に合わせる */
.biz { list-style: none; margin: 0; padding: 0; }
.biz li { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: baseline; padding-block: 24px; border-bottom: 1px solid var(--gray-line); }
.biz li:first-child { border-top: 1px solid var(--gray-line); }
.biz .en { font-family: var(--font-en); font-size: 14px; letter-spacing: .04em; }
.biz .ja { font-size: 13px; color: var(--gray-text); }

/* Company */
.company { margin: 0; border-top: 1px solid var(--black); }
.company__row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--gray-line); }
.company dt { font-size: 13px; color: var(--gray-text); }
.company dd { margin: 0; font-size: 14px; }
.company .en { display: block; margin-top: 4px; font-family: var(--font-en); font-size: 13px; color: var(--gray-text); line-height: 1.6; }
.tel { text-decoration: none; }
.tel:hover { opacity: .5; }
.nw { white-space: nowrap; } /* 語の途中で折り返さず、「、」や空白の位置で折り返す */

/* Privacy policy */
.page { padding-block: calc(var(--header-h) + 96px) 120px; }
.page__body { max-width: 760px; }
.page__lead { margin: 0 0 48px; }
.policy h2 { margin: 48px 0 12px; font-size: 15px; font-weight: 600; }
.policy p, .policy ul { margin: 0 0 12px; font-size: 14px; }
.policy ul { padding-left: 1.4em; }
.policy__contact { margin-top: 12px; padding: 20px 24px; border: 1px solid var(--gray-line); font-size: 14px; }
.policy .policy__date { margin-top: 48px; font-size: 13px; color: var(--gray-text); text-align: right; }
.back, .policy .back { margin-top: 64px; font-family: var(--font-en); font-size: 12px; letter-spacing: .24em; }
.back a { text-decoration: none; }
.back a:hover { opacity: .5; }

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: var(--header-h) var(--gutter) 48px; background: var(--black); color: var(--white); text-align: center; }
.notfound h1 { margin: 0; font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .3em; }
.notfound p { margin: 0; font-size: 14px; color: var(--gray-on-black); }
.notfound .back { margin-top: 32px; }

/* Footer */
.footer { background: var(--black); color: var(--white); padding-block: 80px 40px; text-align: center; }
.footer__logo { width: 110px; height: auto; margin: 0 auto; display: block; }
.footer__links { margin-top: 48px; display: flex; justify-content: center; gap: 32px; font-size: 12px; color: var(--gray-on-black); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--white); }
.footer small { font-family: var(--font-en); font-size: 10px; letter-spacing: .1em; }

/* Fade-in(js クラスは js/main.js が付ける。JS が動かない環境では最初から表示) */
.reveal { transition: opacity .9s ease, transform .9s ease; }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .header, .header__logo, .header__logo img { transition: none; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .header__logo { width: 104px; height: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 10px; letter-spacing: .1em; }
  .section__head, .company__row { grid-template-columns: 1fr; gap: 8px; }
  .section__head { gap: 32px; }
  /* V・I・R・E を中央揃えで縦一直線に並べ、「VIRE」と読ませる */
  .about__words { grid-template-columns: 1fr; row-gap: 14px; padding-top: 20px; }
  .about__words li { display: flex; align-items: baseline; gap: 16px; padding-top: 0; }
  .about__words b { width: 1.1em; flex: none; text-align: center; }
  .biz li { grid-template-columns: 1fr; gap: 2px; padding-block: 20px; }
  .page { padding-block: calc(var(--header-h) + 56px) 96px; }
  .footer__links { flex-direction: column; gap: 12px; }
}
