/* ==========================================================================
   TIMENEX株式会社 コーポレートサイト  style.css

   構成
   1. 変数・リセット
   2. 共通部品（ボタン／ラベル／見出し／表示アニメーション）
   3. ヘッダー・ナビ
   4. トップページ（ファーストビュー／社名の由来／事業内容／強み／メッセージ／お知らせ／CTA）
   5. 下層ページ（ページ見出し／代表メッセージ／会社概要／お知らせ／お問い合わせ）
   6. フッター
   7. レスポンシブ
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. 変数・リセット
   -------------------------------------------------------------------------- */
:root {
  /* カラー：白を基調に、青（#00469b）を主色、赤（#9b1e23）はロゴ由来の差し色 */
  --white:    #ffffff;
  --paper:    #f6f7f9;
  --line:     #e6e8ec;
  --ink:      #111111;
  --ink-2:    #2b2b2b;
  --gray:     #737373;
  --gray-2:   #a3a3a3;
  --blue:     #00469b;
  --blue-soft: rgba(0, 70, 155, .08);
  --red:      #9b1e23;
  --red-soft: rgba(155, 30, 35, .10);

  /* 書体 */
  --font-jp: 'Noto Sans JP', system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: 'Outfit', 'Noto Sans JP', sans-serif;

  /* モーション */
  --ease:     cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fast:     .45s;

  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  overflow-x: hidden;
  opacity: 0;                              /* 読み込み後に .is-ready でフェードイン */
  transition: opacity .35s ease;
}
body.is-ready   { opacity: 1; }
body.is-leaving { opacity: 0; transition: opacity .22s ease; }  /* ページ遷移時 */

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.en        { font-family: var(--font-en); letter-spacing: .08em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); width: 100%; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* --------------------------------------------------------------------------
   2. 共通部品
   -------------------------------------------------------------------------- */

/* ボタン：角型。先頭の短い横線がホバーで伸び、背景が青に塗り替わる */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 30px; border-radius: 2px;
  background: var(--ink); color: #fff !important;
  font-family: var(--font-jp); font-size: 14px; letter-spacing: .06em;
  position: relative; overflow: hidden;
  transition: background var(--fast) var(--ease);
}
.btn::before { content: ''; width: 18px; height: 1px; background: currentColor; position: relative; z-index: 1; transition: width var(--fast) var(--ease); }
.btn::after  { content: ''; position: absolute; inset: 0; background: var(--blue); transform: translateX(-101%); transition: transform var(--fast) var(--ease); }
.btn span    { position: relative; z-index: 1; }
.btn:hover::before { width: 28px; }
.btn:hover::after  { transform: translateX(0); }

.btn-outline { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline::after { background: var(--ink); }
.btn-outline:hover  { color: #fff !important; }

/* セクションラベル（英語 / 日本語） */
.sec-label { display: flex; align-items: center; gap: 12px; font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: var(--blue); }
.sec-label small { font-family: var(--font-jp); font-size: 12px; letter-spacing: .1em; color: var(--gray); white-space: nowrap; }

/* セクション見出しブロック：上罫線が左から引かれる */
.sec-head {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 3vw, 40px);
  align-items: start; margin-bottom: clamp(40px, 5vw, 64px); padding-top: 28px; position: relative;
}
.sec-head::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.sec-head.is-in::before { transform: scaleX(1); }

.sec-title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.35; font-weight: 700; letter-spacing: .02em; }
.sec-title em { font-style: normal; color: var(--blue); }
.sec-lead  { color: var(--gray); font-size: 15px; max-width: 720px; margin-top: 20px; }

.section     { padding: 140px 0; }
.section.alt { background: var(--paper); }

/* スクロール表示：.rv を付けた要素が視界に入ると .is-in が付与される（main.js） */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }
.rv-d4 { transition-delay: .32s; }


/* --------------------------------------------------------------------------
   3. ヘッダー・ナビ
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 150; padding: 22px 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); padding: 12px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img.mark { height: 36px; width: auto; }
.brand img.word { height: 16px; width: auto; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-family: var(--font-en); font-size: 13px; letter-spacing: .06em; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform var(--fast) var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--blue); }
.nav .btn { margin-left: 8px; padding: 11px 22px; font-size: 13px; }

/* ハンバーガー（1024px以下で表示） */
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 160; }
.burger i { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .35s; }
.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 22px; }
.burger i:nth-child(3) { top: 28px; }
.burger.is-open i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 155; background: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding: 0 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-en); font-size: 28px; letter-spacing: .08em; }
.mobile-nav a small { font-family: var(--font-jp); font-size: 12px; letter-spacing: .1em; color: var(--gray); }


/* --------------------------------------------------------------------------
   4. トップページ
   -------------------------------------------------------------------------- */

/* --- ファーストビュー --- */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: center; overflow: hidden; background: var(--white); }
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(110px, 14vh, 150px); padding-bottom: clamp(60px, 8vh, 100px);
}
.hero-eyebrow { display: inline-block; font-family: var(--font-en); font-size: 13px; letter-spacing: .18em; color: var(--gray); margin-bottom: 28px; }
.hero h1 { font-size: clamp(30px, 4.3vw, 62px); line-height: 1.22; letter-spacing: .02em; font-weight: 700; color: var(--ink); }
.hero h1 .l { display: block; overflow: hidden; }                       /* 1行ずつマスクして下からせり上がる */
.hero h1 .l > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-tag  { margin: 30px 0 14px; font-family: var(--font-en); font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .06em; color: var(--ink-2); font-weight: 500; }
.hero-sub  { color: var(--gray); font-size: 15px; max-width: 520px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* 読み込み完了（body.is-ready）後の登場順 */
.hero-eyebrow, .hero-tag, .hero-sub, .hero-ctas, .hero-scroll { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.is-ready .hero h1 .l:nth-child(1) > span { transform: none; transition-delay: .05s; }
.is-ready .hero h1 .l:nth-child(2) > span { transform: none; transition-delay: .15s; }
.is-ready .hero h1 .l:nth-child(3) > span { transform: none; transition-delay: .25s; }
.is-ready .hero-eyebrow { opacity: 1; transform: none; }
.is-ready .hero-tag     { opacity: 1; transform: none; transition-delay: .4s; }
.is-ready .hero-sub     { opacity: 1; transform: none; transition-delay: .5s; }
.is-ready .hero-ctas    { opacity: 1; transform: none; transition-delay: .6s; }
.is-ready .hero-scroll  { opacity: 1; transform: none; transition-delay: 1.3s; }

/* ロゴ環（SVG）：線が描かれ、最後に赤い点が出る。点は90秒で一周 */
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-left: auto; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .ring-red   { stroke: var(--red); stroke-width: 14; fill: none; stroke-dasharray: 1300; stroke-dashoffset: 1300; transition: stroke-dashoffset 1.5s cubic-bezier(.65, 0, .35, 1) .1s; }
.orbit .ring-black { stroke: var(--ink); stroke-width: 7;  fill: none; stroke-dasharray: 1300; stroke-dashoffset: 1300; transition: stroke-dashoffset 1.5s cubic-bezier(.65, 0, .35, 1) .3s; }
.orbit .dot  { fill: var(--red); transform: scale(0); transform-origin: 430px 118px; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) 1.2s; }
.orbit .spin { transform-origin: 260px 260px; animation: spin 90s linear infinite; }
.is-ready .orbit .ring-red, .is-ready .orbit .ring-black { stroke-dashoffset: 0; }
.is-ready .orbit .dot { transform: scale(1); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-scroll { position: absolute; left: 32px; bottom: 32px; display: flex; align-items: center; gap: 12px; font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gray); }
.hero-scroll i { width: 48px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; inset: 0; background: var(--blue); animation: slide 2s infinite var(--ease); }
@keyframes slide { 0% { transform: translateX(-100%); } 50%, 70% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* --- 社名の由来 --- */
.statement { padding: 140px 0; }
.statement p.big   { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.9; letter-spacing: .04em; }
.statement p.big b { color: var(--blue); font-weight: 600; }
.statement p.small { margin-top: 30px; color: var(--gray); font-size: 15px; max-width: 720px; }

/* --- 事業内容（4領域） --- */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.biz {
  background: var(--white); padding: 40px 32px 36px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), opacity .6s var(--ease-out);
}
.biz::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--blue); transition: width .6s var(--ease); }
.biz:hover { background: var(--paper); transform: translateY(-4px); }
.biz:hover::before { width: 100%; }
.biz h3 { font-size: 20px; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; position: relative; display: inline-block; }
.biz h3::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--blue); transition: width .5s var(--ease); }
.biz:hover h3::after { width: 100%; }
.biz .en-sub { font-family: var(--font-en); font-size: 12px; letter-spacing: .08em; color: var(--gray); margin-bottom: 18px; }
.biz p { color: var(--gray); font-size: 14px; line-height: 1.9; flex: 1; }

/* --- 私たちの強み（3項目） --- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar .k { font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: var(--blue); padding-bottom: 16px; position: relative; }
.pillar .k::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .15s; }
.pillar.is-in .k::after { transform: scaleX(1); }
.pillar h3 { font-size: 18px; margin: 22px 0 10px; letter-spacing: .04em; }
.pillar p  { color: var(--gray); font-size: 14px; }

/* --- 代表メッセージ（抜粋） --- */
.msg { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding-top: 28px; position: relative; }
.msg::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.msg.is-in::before { transform: scaleX(1); }
.msg blockquote   { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.7; font-weight: 600; letter-spacing: .03em; margin: 0 0 24px; max-width: 760px; }
.msg blockquote b { color: var(--blue); font-weight: 600; }
.msg p { color: var(--gray); font-size: 15px; margin-bottom: 34px; }
.msg .sign { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.msg .sign i { width: 40px; height: 1px; background: var(--ink); }
.msg .sign span   { font-size: 13px; color: var(--gray); }
.msg .sign strong { font-size: 15px; letter-spacing: .1em; }

/* --- お知らせ（一覧行） --- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 140px 110px 1fr 40px; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding var(--fast) var(--ease);
}
.news-item:hover { padding-left: 12px; }
.news-item time { font-family: var(--font-en); font-size: 13px; letter-spacing: .1em; color: var(--gray); }
.news-item .cat { font-size: 11px; letter-spacing: .15em; color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 3px 10px; text-align: center; white-space: nowrap; }
.news-item .t   { font-size: 15px; }
.news-item .arr { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.4; transition: transform var(--fast) var(--ease); }
.news-item:hover .arr { transform: translateX(6px); stroke: var(--blue); }
.news-more { margin-top: 40px; display: flex; justify-content: flex-end; }

/* --- お問い合わせ導線（黒帯） --- */
.cta { position: relative; background: var(--ink); color: #fff; padding: 120px 0; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; right: -160px; top: 50%; width: 560px; height: 560px;
  border-radius: 50%; border: 10px solid var(--red); opacity: .55;
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-54%) scale(1.03); } }
.cta .container { position: relative; z-index: 1; }
.cta .sec-label { color: #fff; }
.cta h2 { font-size: clamp(30px, 3.6vw, 50px); margin: 20px 0 16px; line-height: 1.3; letter-spacing: .03em; }
.cta p  { color: rgba(255, 255, 255, .65); max-width: 560px; margin-bottom: 40px; }
.cta .btn { background: #fff; color: var(--ink) !important; }
.cta .btn::after { background: var(--blue); }
.cta .btn:hover  { color: #fff !important; }


/* --------------------------------------------------------------------------
   5. 下層ページ
   -------------------------------------------------------------------------- */

/* ページ見出し */
.page-hero { padding: 170px 0 70px; position: relative; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .sec-label { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: .03em; line-height: 1.25; }
.page-hero h1 small { display: block; font-family: var(--font-en); font-size: 14px; letter-spacing: .14em; color: var(--gray); margin-top: 12px; font-weight: 400; }
.breadcrumb { display: flex; gap: 10px; font-family: var(--font-en); font-size: 12px; letter-spacing: .06em; color: var(--gray); margin-bottom: 34px; }
.breadcrumb a:hover { color: var(--blue); }

/* 本文組み */
.prose { max-width: 760px; }
.prose p  { color: var(--ink-2); font-size: 16px; line-height: 2.1; margin-bottom: 28px; }
.prose h3 { font-size: 22px; letter-spacing: .04em; margin: 56px 0 18px; padding-left: 18px; border-left: 3px solid var(--blue); line-height: 1.5; }
.prose strong { color: var(--blue); font-weight: 600; }

/* 代表メッセージ */
.message-layout { display: grid; grid-template-columns: 1fr; }
.prose .lead-quote   { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1.6; letter-spacing: .03em; margin-bottom: 48px; }
.prose .lead-quote b { color: var(--blue); }
.sign-off { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sign-off span   { font-size: 13px; color: var(--gray); }
.sign-off strong { font-size: 18px; letter-spacing: .14em; }

/* 会社概要 */
.company-table { border-top: 1px solid var(--line); max-width: 880px; }
.company-table .row {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.company-table.is-in .row { opacity: 1; transform: none; }
.company-table.is-in .row:nth-child(2) { transition-delay: .06s; }
.company-table.is-in .row:nth-child(3) { transition-delay: .12s; }
.company-table.is-in .row:nth-child(4) { transition-delay: .18s; }
.company-table.is-in .row:nth-child(5) { transition-delay: .24s; }
.company-table.is-in .row:nth-child(6) { transition-delay: .30s; }
.company-table.is-in .row:nth-child(7) { transition-delay: .36s; }
.company-table dt { font-size: 14px; letter-spacing: .06em; color: var(--ink); font-weight: 500; padding-top: 2px; display: flex; flex-direction: column; gap: 2px; }
.company-table dt small { font-family: var(--font-en); font-size: 11px; letter-spacing: .08em; color: var(--gray-2); }
.company-table dd { font-size: 15px; line-height: 1.9; color: var(--ink); }
.company-table dd .sub { display: block; color: var(--gray); font-size: 13px; }
.company-table dd a { color: var(--blue); border-bottom: 1px solid currentColor; }
.map { margin-top: 64px; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.philosophy .ph { padding: 36px 30px; background: var(--white); border: 1px solid var(--line); position: relative; }
.philosophy .ph::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--blue); }
.philosophy .ph b { display: block; font-family: var(--font-en); font-size: 26px; letter-spacing: .16em; color: var(--ink); margin-bottom: 6px; }
.philosophy .ph small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--blue); margin-bottom: 16px; }
.philosophy .ph p { color: var(--gray); font-size: 14px; }

/* お知らせ（一覧・記事） */
.news-page .news-item { grid-template-columns: 140px 110px 1fr; }
.news-article { max-width: 760px; }
.news-article .meta { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.news-article h1 { font-size: clamp(24px, 3vw, 36px); line-height: 1.5; margin-bottom: 36px; }
.news-article .body p { color: var(--ink-2); font-size: 15px; line-height: 2.1; margin-bottom: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-top: 48px; }
.back-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform var(--fast) var(--ease); }
.back-link:hover { color: var(--blue); }
.back-link:hover svg { transform: translateX(-5px); }

/* お問い合わせ */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start; }
.contact-aside p { color: var(--gray); font-size: 14px; margin-bottom: 28px; }
.contact-aside .item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-aside .item:last-child { border-bottom: 1px solid var(--line); }
.contact-aside .item b { display: block; font-size: 12px; letter-spacing: .08em; color: var(--gray); margin-bottom: 6px; font-weight: 500; }
.contact-aside .item span { font-size: 14px; }

.form { max-width: 720px; }
.field { margin-bottom: 30px; }
.field label { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; font-weight: 500; }
.field label .req { font-size: 10px; letter-spacing: .15em; color: #fff; background: var(--red); padding: 2px 8px; border-radius: 2px; }
.field label .opt { font-size: 10px; letter-spacing: .15em; color: var(--gray); border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 16px 18px; color: var(--ink);
  border: 1px solid var(--line); background: var(--white); border-radius: 2px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { min-height: 200px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field .err { display: none; font-size: 12px; color: var(--red); margin-top: 8px; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--red); }
.field.is-error .err { display: block; }
.agree { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--ink-2); margin: 10px 0 36px; }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.agree a { color: var(--blue); border-bottom: 1px solid currentColor; }
.form .btn { padding: 18px 40px; font-size: 13px; cursor: pointer; border: 0; }
.form .btn[disabled] { opacity: .5; cursor: not-allowed; }
.form-note { font-size: 12px; color: var(--gray); margin-top: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }   /* スパム対策の隠し項目 */

/* 送信完了・404 */
.thanks { text-align: center; padding: 40px 0 20px; }
.thanks .ring { width: 96px; height: 96px; margin: 0 auto 32px; }
.thanks h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 18px; letter-spacing: .04em; }
.thanks p  { color: var(--gray); max-width: 560px; margin: 0 auto 36px; }


/* --------------------------------------------------------------------------
   6. フッター
   -------------------------------------------------------------------------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 70px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); margin-bottom: 56px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand address { font-style: normal; color: var(--gray); font-size: 13px; margin-top: 20px; line-height: 1.9; }
.footer h4 { font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; color: var(--gray); margin-bottom: 18px; }
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 14px; color: var(--ink); transition: color var(--fast) var(--ease); }
.footer li a:hover { color: var(--blue); }
.footer-note { font-size: 13px; color: var(--gray); line-height: 1.9; margin-top: 6px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--font-en); font-size: 12px; letter-spacing: .04em; color: var(--gray); }
.footer-bottom i { font-style: normal; margin: 0 6px; }


/* --------------------------------------------------------------------------
   7. レスポンシブ（広い順）
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --maxw: 1360px; }
}
@media (min-width: 1200px) {
  .hero h1 { white-space: nowrap; }
}
@media (max-width: 1280px) {
  .nav { gap: 28px; }
}
@media (max-width: 1100px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-head, .msg { grid-template-columns: 180px 1fr; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
  .pillars { grid-template-columns: 1fr; gap: 40px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 130px; }
  .orbit { width: min(70vw, 360px); margin: 16px auto 0; }
  .hero-scroll { display: none; }
  .contact-layout { grid-template-columns: 300px 1fr; gap: 48px; }
}
@media (max-width: 820px) {
  .sec-head, .msg { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 90px 0; }
  .statement, .cta { padding: 90px 0; }
  .cta::before { width: 380px; height: 380px; right: -220px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .news-item .cat { width: max-content; }
  .news-item .arr { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .page-hero { padding: 130px 0 50px; }
  .message-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .company-table .row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .philosophy { grid-template-columns: 1fr; }
  .news-page .news-item { grid-template-columns: 1fr; }
  .sign-off { flex-direction: column; align-items: flex-start; }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .header { padding: 16px 0; }
  .header.is-scrolled { padding: 10px 0; }
  .brand img.mark { height: 30px; }
  .brand img.word { height: 13px; }
  .hero .container { padding-top: 110px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .statement p.big { font-size: clamp(20px, 5.8vw, 26px); }
  .biz-grid { grid-template-columns: 1fr; }
  .biz { padding: 32px 22px 30px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .prose h3 { font-size: 19px; margin-top: 40px; }
  .prose p  { font-size: 15px; }
  .form .btn { width: 100%; justify-content: center; }
  .field { margin-bottom: 24px; }
}
@media (max-width: 400px) {
  .orbit { width: 78vw; }
  .sec-title { font-size: 26px; }
}

/* OSで「視差効果を減らす」設定時はアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv, .sec-head::before, .msg::before, .pillar .k::after, .company-table .row, .hero h1 .l > span,
  .hero-eyebrow, .hero-tag, .hero-sub, .hero-ctas, .orbit .dot { opacity: 1; transform: none; }
  .orbit .ring-red, .orbit .ring-black { stroke-dashoffset: 0; }
}
