/* =========================================================================
   ORiNET 公式サイト プロトタイプ スタイル
   ゾーニング設計:
   - 基調 = ORiNET（暖色オレンジ #eb5307・躍動・親しみ・warm white）
   - 製品ブロック = HOBO 世界観（静謐・冷色寄りクリーン・見出し明朝）
   ========================================================================= */

:root {
  /* --- ORiNET ゾーン（サイト基調・暖色） --- */
  --orange: #eb5307;          /* コーポレートカラー */
  --orange-deep: #d4430a;
  --amber: #f5921e;
  --gold: #ffc436;            /* ロゴ上部のイエロー */
  --warm-white: #fdf9f5;      /* 暖色オフホワイト背景 */
  --warm-paper: #f7efe6;
  --ink: #2a2320;             /* 暖色寄りのソフトブラック（本文） */
  --ink-soft: #6b605a;

  /* --- HOBO ゾーン（製品ブロック・冷色寄り） --- */
  --hobo-black: #333333;      /* HOBO ソフトブラック */
  --hobo-off: #edede7;        /* HOBO オフホワイト */
  --hobo-blue: #effdff;       /* HOBO 淡いクールブルー */
  --hobo-text: #222222;
  --hobo-line: #d8d8d2;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-sans: "Noto Sans JP", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* fixed ヘッダー（84px）へのアンカー潜り込み防止。 */
html { scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

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

/* ---------- リビール（IntersectionObserver） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* セクション見出し共通 */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.4rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* =========================================================================
   ヘッダー
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 84px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(253, 249, 245, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(42, 35, 32, 0.07);
  height: 68px;
}
.site-header .logo img { height: 30px; width: auto; transition: height 0.4s var(--ease); }
.site-header.scrolled .logo img { height: 26px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
/* プロトの .nav-links インライン style を CSS へ昇格。920px 未満は下部メディアクエリの display:none が上書きする。 */
.nav .nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--orange); }
.nav a:hover::after { transform: scaleX(1); }

.nav .nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--orange-deep); color: #fff; }

.nav-toggle { display: none; }

/* =========================================================================
   ヒーロー（ORiNET ゾーン）
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--warm-white);
}
/* パララックス背景レイヤー（登別カルルス温泉の情景写真） */
.hero-bg {
  position: absolute;
  inset: -9% 0 0 0;
  z-index: 0;
  will-change: transform;
}
/* picture 化しても img の height:118% の基準（親要素の高さ）を保つ。 */
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center 38%;
}
/* 暖色スクリム：左のコピーを読みやすく保ちつつ右に写真を見せる */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(253, 249, 245, 0.97) 0%,
      rgba(253, 249, 245, 0.88) 32%,
      rgba(253, 249, 245, 0.55) 58%,
      rgba(253, 249, 245, 0.28) 100%),
    radial-gradient(120% 90% at 82% 12%, rgba(235, 83, 7, 0.12), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  width: 100%;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.03em;
  margin-bottom: 1.6rem;
}
.hero h1 .accent { color: var(--orange); }
.hero h1 .ln { display: inline-block; white-space: nowrap; word-break: keep-all; }
.hero .sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
  letter-spacing: 0.08em;
}
.hero .lead {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: var(--ink);
  line-height: 2.1;
  max-width: 32em;
}
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo img {
  width: min(360px, 80%);
  filter: drop-shadow(0 26px 50px rgba(235, 83, 7, 0.22));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1.2deg); }
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.64rem; letter-spacing: 0.32em; color: var(--ink-soft);
  text-transform: uppercase;
}
.scroll-cue .bar {
  width: 1px; height: 46px;
  background: linear-gradient(var(--orange), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .bar::after {
  content: ""; position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%; background: var(--orange);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* =========================================================================
   情景フォトプレースホルダ（striped）
   ========================================================================= */
.placeholder {
  position: relative;
  width: 100%;
  background-color: var(--warm-paper);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(235, 83, 7, 0.07) 0, rgba(235, 83, 7, 0.07) 1px,
    transparent 1px, transparent 11px);
  border: 1px dashed rgba(235, 83, 7, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(107, 96, 90, 0.85);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.04em; text-align: center;
  padding: 1rem;
}
.placeholder.cool {
  background-color: var(--hobo-off);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(51, 51, 51, 0.07) 0, rgba(51, 51, 51, 0.07) 1px,
    transparent 1px, transparent 11px);
  border-color: rgba(51, 51, 51, 0.22);
  color: rgba(34, 34, 34, 0.6);
}

/* =========================================================================
   HOBO 製品ゾーン（冷色・静謐・スティッキー）
   ========================================================================= */
.hobo-zone {
  background: #fff;
  color: var(--hobo-text);
  position: relative;
}
.hobo-zone .eyebrow { color: var(--hobo-black); }

/* スティッキー製品切替 */
.product-scroll { position: relative; height: 250vh; }
.product-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
.product-visual {
  position: relative;
  height: 100%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.product-visual .stage { position: relative; width: 100%; height: 100%; }
.product-img {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}
.product-img.active { opacity: 1; transform: scale(1); }
.product-img img {
  max-height: 78%;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(34, 34, 34, 0.16));
}

.product-text {
  position: relative;
  height: 100%;
  background: var(--hobo-blue);
  padding: 0 clamp(32px, 5vw, 88px);
}
.product-brandmark {
  position: absolute;
  top: 12vh;
  left: clamp(32px, 5vw, 88px);
  width: clamp(170px, 15vw, 220px);
  opacity: 0.95;
}
.product-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-40%);
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  padding-right: clamp(32px, 5vw, 88px);
  pointer-events: none;
}
.product-panel.active { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.product-panel .locale {
  font-size: 0.68rem; letter-spacing: 0.4em; color: var(--hobo-black);
  font-weight: 600; margin-bottom: 1rem;
}
.product-panel h3 {
  font-family: var(--font-serif);     /* 製品見出しのみ明朝（HOBO踏襲） */
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
  color: var(--hobo-text);
}
.product-panel p {
  font-size: 1rem; line-height: 2.05; color: #444;
  max-width: 30em; margin-bottom: 2rem;
}
.product-link {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--hobo-black);
  border-bottom: 1px solid var(--hobo-black);
  padding-bottom: 5px;
  transition: gap 0.3s var(--ease), opacity 0.3s;
}
.product-link:hover { gap: 1.2em; }

/* 製品インジケータ */
.product-dots {
  position: absolute;
  left: clamp(32px, 5vw, 88px);
  bottom: 8vh;
  display: flex; gap: 12px; z-index: 5;
}
.product-dots span {
  width: 34px; height: 2px; background: var(--hobo-line);
  transition: background 0.4s;
}
.product-dots span.on { background: var(--hobo-black); }

/* 製品ゾーン イントロ／アウトロ帯 */
.hobo-intro, .hobo-outro {
  /* 左右は .wrap の gutter を維持する（ショートハンドの 0 が .wrap の padding を
     ソース順で潰し、モバイルで本文が画面端に張り付くバグがあった。2026-07-22 修正） */
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  text-align: center;
}
.hobo-intro .section-title, .hobo-outro .section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.hobo-intro p, .hobo-outro p {
  max-width: 36em; margin: 1.6rem auto 0; color: #555; font-size: 1.02rem;
}

/* =========================================================================
   汎用セクション（ORiNET ゾーン）
   ========================================================================= */
.section { padding: clamp(86px, 14vh, 170px) 0; }
.section.warm { background: var(--warm-white); }
.section.paper { background: var(--warm-paper); }

/* 社名の由来 */
.origin-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.origin-visual { position: relative; }
.origin-visual img {
  width: 78%; margin: 0 auto;
  filter: drop-shadow(0 20px 44px rgba(235, 83, 7, 0.18));
}
.weave-word {
  display: flex; gap: 0.1em; font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem); margin: 1rem 0 1.6rem;
  letter-spacing: 0.04em;
}
.weave-word .o { color: var(--orange); }
.weave-word .plus { color: var(--ink-soft); font-weight: 400; margin: 0 0.3em; }
.body-text { font-size: 1.04rem; line-height: 2.15; color: var(--ink); max-width: 34em; }
.body-text + .body-text { margin-top: 1.4rem; }

/* 想い（代表メッセージ） */
.message-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.message-portrait { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.message-portrait .placeholder { height: 100%; }
.message-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700; line-height: 1.85; letter-spacing: 0.03em;
  margin-bottom: 2rem;
}
.message-quote .hl {
  background: linear-gradient(transparent 62%, rgba(255, 196, 54, 0.5) 62%);
}
.signature { margin-top: 2.4rem; font-size: 0.92rem; color: var(--ink-soft); }
.signature strong { font-size: 1.3rem; color: var(--ink); font-weight: 700; letter-spacing: 0.08em; }

/* 会社概要テーブル */
.company-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid rgba(42, 35, 32, 0.12); }
.company-table th, .company-table td { text-align: left; padding: 1.15rem 0; vertical-align: top; }
.company-table th {
  width: 32%; font-weight: 600; color: var(--orange);
  font-size: 0.92rem; letter-spacing: 0.06em;
}
.company-table td { font-size: 1rem; color: var(--ink); }
.company-map { position: relative; align-self: stretch; }

/* お知らせ */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.news-list { display: grid; gap: 0; }
.news-item {
  display: grid;
  grid-template-columns: 150px 130px 1fr auto;
  gap: 1.5rem; align-items: center;
  padding: 1.7rem 0.4rem;
  border-top: 1px solid rgba(42, 35, 32, 0.12);
  transition: background 0.3s, padding-left 0.3s var(--ease);
}
.news-list .news-item:last-child { border-bottom: 1px solid rgba(42, 35, 32, 0.12); }
.news-item:hover { background: rgba(235, 83, 7, 0.04); padding-left: 1.2rem; }
.news-date { font-size: 0.86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.news-cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--orange); border: 1px solid var(--orange);
  padding: 3px 12px; border-radius: 999px; justify-self: start;
}
.news-title { font-size: 1.02rem; font-weight: 500; }
.news-arrow { color: var(--orange); opacity: 0; transform: translateX(-8px); transition: 0.3s var(--ease); }
.news-item:hover .news-arrow { opacity: 1; transform: none; }

.btn-text {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 600; font-size: 0.9rem; color: var(--orange);
  border-bottom: 1.5px solid var(--orange); padding-bottom: 4px;
  transition: gap 0.3s var(--ease);
}
.btn-text:hover { gap: 1.1em; }

/* =========================================================================
   お問い合わせ CTA（ORiNET ゾーン・暖色フル）
   ========================================================================= */
.cta {
  position: relative;
  padding: clamp(90px, 16vh, 180px) 0;
  background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 60%, var(--gold) 130%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.4; letter-spacing: 0.04em; margin-bottom: 1.3rem;
}
.cta p { font-size: 1.05rem; opacity: 0.95; max-width: 30em; margin: 0 auto 2.6rem; line-height: 2; }
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  background: #fff; color: var(--orange);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.06em;
  padding: 18px 44px; border-radius: 999px;
  box-shadow: 0 18px 40px rgba(180, 60, 0, 0.32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(180, 60, 0, 0.4); }
.btn.ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   フッター
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: clamp(56px, 8vh, 84px) 0 2.4rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
/* ロゴは元色（オレンジ）のまま表示する。プロトの白反転（brightness(0) invert(1)）は 2026-07-22 のデザイン判断で廃止 */
.footer-logo img { height: 30px; margin-bottom: 1.3rem; }
.footer-addr { font-size: 0.88rem; line-height: 1.95; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: 0.22em; color: rgba(255,255,255,0.5); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: clamp(40px, 6vh, 64px); padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  /* コピーライト単独表示・中央寄せ（2026-07-22 デザイン判断。地名表記は廃止） */
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
}

/* =========================================================================
   レスポンシブ（モバイルブレークポイント）
   ========================================================================= */
@media (max-width: 920px) {
  body { font-size: 15px; }

  .nav { gap: 0; }
  .nav .nav-links { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px; z-index: 120;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(253, 249, 245, 0.98); backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.8rem; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  }
  body.nav-open .mobile-menu { opacity: 1; pointer-events: auto; }
  .mobile-menu a { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.08em; }
  .mobile-menu a.nav-cta { background: var(--orange); color: #fff; padding: 14px 36px; border-radius: 999px; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(253, 249, 245, 0.82) 0%,
        rgba(253, 249, 245, 0.9) 45%,
        rgba(253, 249, 245, 0.96) 100%),
      radial-gradient(120% 60% at 50% 8%, rgba(235, 83, 7, 0.1), transparent 60%);
  }
  .hero-copy { max-width: 100%; order: 2; }
  .hero .lead { margin-inline: auto; }
  .hero-logo { order: 1; margin-bottom: 1rem; }
  .hero-logo img { width: min(210px, 56%); }

  .product-sticky { grid-template-columns: 1fr; height: auto; position: relative; }
  .product-scroll { display: none; }              /* スティッキー演出はモバイル簡略化 */
  .product-mobile { display: block; background: var(--hobo-blue); }

  .origin-grid, .message-grid, .company-grid, .footer-top { grid-template-columns: 1fr; }
  .origin-visual { order: -1; }
  .message-portrait { max-width: 320px; }

  .news-item { grid-template-columns: auto 1fr; grid-template-areas: "date cat" "title title"; gap: 0.5rem 1rem; }
  .news-date { grid-area: date; }
  .news-cat { grid-area: cat; justify-self: end; }
  .news-title { grid-area: title; }
  .news-arrow { display: none; }
  .news-item:hover { padding-left: 0.4rem; }
}

@media (min-width: 921px) {
  .product-mobile { display: none; }
  .mobile-menu { display: none; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-logo img { animation: none; }
  .scroll-cue .bar::after { animation: none; }
  .hero-bg { transform: none !important; }
}

/* ===== News archive / single (Phase 4) ===== */
/* HOME #news のトークン・行デザイン（.section.paper / .news-list / .news-item /
   .news-cat / .btn-text）と、会社概要テーブルの罫線色を流用。新規クラスは
   news-archive- / entry- 接頭辞で衝突回避（.pagination / .page-numbers /
   .screen-reader-text は WordPress が生成する正規クラス名のため踏襲）。
   演出は既存 .reveal のみ。ここで新設する transition は色・背景のみで動きを伴わない。 */

/* WP 生成の見出し（the_posts_pagination 等）を視覚的に隠す標準ユーティリティ */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- お知らせ一覧（home.php） ---------- */
.news-archive-head { margin-bottom: clamp(2rem, 5vw, 3rem); }

/* 0 件時の空状態（news-list の罫線処理に揃える） */
.news-empty {
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  text-align: center;
  color: var(--ink-soft);
  border-top: 1px solid rgba(42, 35, 32, 0.12);
  border-bottom: 1px solid rgba(42, 35, 32, 0.12);
}

.news-archive-back { margin-top: clamp(2rem, 5vw, 3rem); }

/* ページネーション（the_posts_pagination・オレンジのピル・HOME のボタン様式と整合） */
.pagination { margin-top: clamp(2.5rem, 6vw, 4rem); }
.pagination .nav-links { justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 0.95rem;
  border: 1px solid rgba(235, 83, 7, 0.35); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--orange); font-variant-numeric: tabular-nums;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pagination a.page-numbers:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination .page-numbers.current { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination .page-numbers.dots { border-color: transparent; color: var(--ink-soft); }

/* ---------- お知らせ個別（single.php） ---------- */
.entry { max-width: 46rem; margin: 0 auto; }
.entry-header { margin-bottom: clamp(2rem, 5vw, 3rem); }
.entry-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }

/* 本文タイポグラフィ（body 基準 line-height 1.85 を段落で 1.95 に） */
.entry-content { color: var(--ink); }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { line-height: 1.95; }
.entry-content h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700;
  line-height: 1.5; letter-spacing: 0.04em; margin-top: 2.6rem;
}
.entry-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700;
  line-height: 1.5; letter-spacing: 0.04em; margin-top: 2.2rem;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-top: 0.5rem; line-height: 1.9; }
.entry-content li::marker { color: var(--orange); }
.entry-content a {
  color: var(--orange); text-decoration: underline;
  text-underline-offset: 0.2em; text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease);
}
.entry-content a:hover { color: var(--orange-deep); }
.entry-content strong { font-weight: 700; }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin-top: 1.8rem; }
.entry-content figcaption {
  margin-top: 0.6rem; font-size: 0.8rem; color: var(--ink-soft); text-align: center;
}
.entry-content blockquote {
  margin-left: 0; padding: 0.3rem 0 0.3rem 1.4rem;
  border-left: 3px solid var(--orange);
  color: var(--ink-soft); font-style: italic;
}

.entry-footer { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* 前後記事ナビ（控えめ・罫線と ink-soft で主張を抑える） */
.entry-nav {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.8rem;
  border-top: 1px solid rgba(42, 35, 32, 0.12);
  font-size: 0.9rem; color: var(--ink-soft);
}
.entry-nav-prev { margin-right: auto; }
.entry-nav-next { margin-left: auto; text-align: right; }
.entry-nav a { color: var(--ink-soft); transition: color 0.25s var(--ease); }
.entry-nav a:hover { color: var(--orange); }

@media (max-width: 920px) {
  .pagination .page-numbers { min-width: 40px; height: 40px; }
  .entry-nav { gap: 1rem; }
}

/* ===== Pages / CF7 (Phase 5) ===== */
/* 固定ページ（お問い合わせ / プライバシーポリシー）は single.php の .entry /
   .entry-content タイポグラフィ（Phase 4）をそのまま流用し、ここでは重複定義しない。
   追加は 404 レイアウトと Contact Form 7 の実出力クラス（.wpcf7-*）＋フォーム内の
   独自ラッパ（.orinet-form / .form-*）のみ。すべて既存トークンで構成し、動きを
   伴う演出は追加しない（hover のみ既存 .btn / .nav-cta と同等）。920px 単一 BP。 */

/* ---------- 404 ---------- */
.error-404 { max-width: 40rem; margin-inline: auto; text-align: center; }
.error-404 p { margin-top: 1.3rem; color: var(--ink-soft); }
.error-404 .btn { margin-top: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Contact Form 7 ---------- */
/* フォームは page.php の .entry（版面 46rem）内に描画されるため幅はそこで決まる。
   .orinet-form 単体でも読みやすい幅に収まるよう保険で上限を持たせる。 */
.orinet-form { max-width: 46rem; margin-inline: auto; }

/* フィールド（ラベル + 入力の縦積み） */
.wpcf7-form .form-field { margin: 0 0 clamp(1.1rem, 2.5vw, 1.5rem); }
.wpcf7-form .form-label { display: block; }
.wpcf7-form .form-label-text {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink);
}
.wpcf7-form .form-required,
.wpcf7-form .form-optional {
  display: inline-block; margin-left: 0.5em;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 999px; vertical-align: 0.12em;
}
.wpcf7-form .form-required { color: var(--orange); background: rgba(235, 83, 7, 0.08); }
.wpcf7-form .form-optional { color: var(--ink-soft); background: rgba(42, 35, 32, 0.06); }

/* 入力欄（text / email / tel / textarea 共通クラス form-input） */
.wpcf7-form .form-input {
  width: 100%;
  font-family: inherit; font-size: 1rem; color: var(--ink); line-height: 1.7;
  background: #fff;
  border: 1px solid rgba(42, 35, 32, 0.18);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.wpcf7-form textarea.form-input { min-height: 11rem; line-height: 1.9; resize: vertical; }
.wpcf7-form .form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(235, 83, 7, 0.14);
}
.wpcf7-form .form-input::placeholder { color: rgba(107, 96, 90, 0.5); }

/* プライバシーポリシー同意（acceptance） */
.wpcf7-form .form-consent { margin: clamp(1.3rem, 3vw, 1.9rem) 0 0; text-align: center; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-acceptance label {
  display: inline-flex; align-items: flex-start; gap: 0.55em;
  text-align: left; cursor: pointer;
  font-size: 0.92rem; line-height: 1.7; color: var(--ink);
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 auto; margin-top: 0.28em;
  width: 1.05rem; height: 1.05rem; accent-color: var(--orange);
}

/* 送信ボタン（オレンジのピル・.nav-cta / .btn 系と整合） */
.wpcf7-form .form-submit { margin-top: clamp(1.7rem, 4vw, 2.4rem); text-align: center; }
.wpcf7-form .form-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  font-family: inherit; font-weight: 700; font-size: 1rem; letter-spacing: 0.06em;
  color: #fff; background: var(--orange);
  padding: 16px 48px; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 14px 30px rgba(235, 83, 7, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.wpcf7-form .form-button:hover {
  background: var(--orange-deep);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(235, 83, 7, 0.36);
}
.wpcf7-form .form-button:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* バリデーション（入力の .wpcf7-not-valid / 個別の .wpcf7-not-valid-tip） */
.wpcf7-form .wpcf7-not-valid { border-color: var(--orange-deep); box-shadow: 0 0 0 3px rgba(212, 67, 10, 0.12); }
.wpcf7-form .wpcf7-not-valid-tip {
  display: block; margin-top: 0.4rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: var(--orange-deep);
}

/* 送信結果メッセージ（.wpcf7-response-output・状態はフォームのクラスで判定）。
   CF7 標準 CSS より高い詳細度（3クラス）で色・余白を上書きする。初期状態の
   非表示（form.init）は CF7 標準 CSS に委ねる。 */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.sent .wpcf7-response-output {
  margin: 1.6rem 0 0; padding: 0.85rem 1.1rem;
  border: 1px solid; border-radius: 8px;
  font-size: 0.9rem; line-height: 1.75;
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  border-color: rgba(212, 67, 10, 0.45); background: rgba(235, 83, 7, 0.06); color: var(--orange-deep);
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: rgba(42, 35, 32, 0.25); background: var(--warm-paper); color: var(--ink);
}

/* 送信中スピナー（CF7 標準の回転はそのまま、円のみブランド色に整合） */
.wpcf7-form .wpcf7-spinner { background-color: var(--orange); opacity: 0.85; }

@media (max-width: 920px) {
  .wpcf7-form .form-button { width: 100%; padding: 15px 32px; }
}

/* ===== Code review fixes ===== */
/* 長いカテゴリ名がグリッド列からはみ出すのを防ぐ */
.news-cat { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* reduced-motion: hover リフト系も無効化（既存 reduce ブロックの網羅漏れ補完） */
@media (prefers-reduced-motion: reduce) {
  .btn, .wpcf7-form .form-button { transform: none !important; transition: none !important; }
}

/* ===== Company map (Google Maps embed) ===== */
/* 無料 iframe 埋め込みは地図自体のスタイル指定ができないため、CSS フィルタで
   サイトの暖色トーンに常時寄せる。grayscale は 0.5 に留め、赤ピン・Google ロゴ・
   帰属表示の色が判別できる状態を保つ（完全脱色は規約・視認性の両面で不可）。 */
.company-map-embed {
  display: block; width: 100%; height: 300px; border: 0; border-radius: 4px;
  filter: grayscale(0.5) sepia(0.45) saturate(1.25) brightness(1.03) hue-rotate(-6deg);
}
.company-map-link { margin-top: 0.9rem; text-align: right; }
@media (max-width: 920px) {
  .company-map-embed { height: 240px; }
}
