/* =========================
   KINFUU common.css (Rebuild)
   - Minimal / White / Fine lines / Gold accent
   - Company page + Header(menu) + Footer + Scroll animations
========================= */

/* =========================
   1) DESIGN TOKENS
========================= */
:root {
  --color-bg: #ffffff;
  --color-bg-sub: #f9f9f9;

  --color-text-main: #222222;
  --color-text-sub: #666666;
  --color-text-light: #999999;

  --color-accent: #e2e2e2;
  --color-highlight: #bfa67a;

  --font-mincho: 'Shippori Mincho', "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS Mincho", serif;
  --font-gothic: 'Noto Sans JP', sans-serif;
  --font-en: 'Jost', sans-serif;

  --ease-slow: cubic-bezier(0.2, 0.8, 0.2, 1);

  --container: 1000px;

  --header-h: 80px;
  --header-h-sp: 70px;
}

/* =========================
   2) BASE
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-gothic);
  line-height: 2.2;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: normal;
}

p {
  font-size: 1.05em;
  font-weight: 300;
  margin: 30px 0 20px;
  color: var(--color-text-sub);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .3s;
  cursor: pointer;
}

a:hover {
  opacity: .7;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

@media (max-width:768px) {
  .container {
    padding: 0 22px;
  }
}

/* Utilities */
.mincho {
  font-family: var(--font-mincho);
}

.en {
  font-family: var(--font-en);
  letter-spacing: 0.15em;
}

.text-center {
  text-align: center;
}

/* =========================
   3) Scroll animation (optional)
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.5s var(--ease-slow), transform 1.5s var(--ease-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .2s;
}

.delay-2 {
  transition-delay: .4s;
}

/* =========================
   4) Buttons
========================= */
.btn-minimal {
  display: inline-block;
  padding: 15px 50px;
  border: 1px solid var(--color-text-main);
  font-family: var(--font-en);
  font-size: .9rem;
  background: var(--color-text-main);
  /* 黒背景 */
  color: #fff;
  /* 白文字 */
  transition: all .4s ease;
}

/* hoverで反転 */
.btn-minimal:hover {
  background: transparent;
  color: var(--color-text-main);
  opacity: 1;
}

/* =========================
   5) Header / Hamburger Menu
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 102;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 40px;
  transition: background-color .3s ease;
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hamburger-btn {
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  background: none;
  /* ← <button>要素のブラウザ標準の背景・枠線をリセット */
  border: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hamburger-line {
  width: 30px;
  height: 1px;
  background: #aaa;
  transition: all .4s var(--ease-slow);
}

.hamburger-btn:hover .hamburger-line {
  background: var(--color-text-main);
}

.hamburger-btn.is-active .hamburger-line {
  background: var(--color-text-main);
}

.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-bg);
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all .6s var(--ease-slow);
}

.nav-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.nav-list {
  text-align: center;
}

.nav-item {
  margin: 22px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: all .6s var(--ease-slow);
}

.nav-menu.is-active .nav-item {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu.is-active .nav-item:nth-child(1) {
  transition-delay: .10s;
}

.nav-menu.is-active .nav-item:nth-child(2) {
  transition-delay: .15s;
}

.nav-menu.is-active .nav-item:nth-child(3) {
  transition-delay: .20s;
}

.nav-menu.is-active .nav-item:nth-child(4) {
  transition-delay: .25s;
}

.nav-menu.is-active .nav-item:nth-child(5) {
  transition-delay: .30s;
}

.nav-menu.is-active .nav-item:nth-child(6) {
  transition-delay: .35s;
}

.nav-menu.is-active .nav-item:nth-child(7) {
  transition-delay: .40s;
}

.nav-menu.is-active .nav-item:nth-child(8) {
  transition-delay: .45s;
}

.nav-link {
  font-family: var(--font-mincho);
  font-size: 1.8rem;
  color: var(--color-text-main);
  display: inline-block;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-highlight);
  transition: width .3s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--color-highlight);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width:768px) {
  .header {
    height: var(--header-h-sp);
    padding: 0 25px;
  }

  .nav-link {
    font-size: 1.25em;
    font-weight: 300;
  }

  .nav-item {
    margin: 16px 0;
  }
}

/* ── トップページ簡易ヘッダーとハンバーガーの併用制御 ──
   デスクトップ：.top-nav（テキストナビ）を表示、モバイル用クラスタは非表示
   モバイル（≤768px）：.top-nav を隠し、お問い合わせCTA＋ハンバーガーを表示 ── */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

.mobile-header-actions .contact-text {
  font-size: .85rem;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--color-text-sub);
  text-align: right;
}

.mobile-header-actions .contact-circle-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-highlight);
  ;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.mobile-header-actions .hamburger-btn {
  /* レイアウト（display/flex-direction/justify-content/align-items/gap）は
     base の .hamburger-btn（gap:8px）をそのまま使う。ここでは本当に必要な
     差分（ボタンサイズと、開いたメニューの上に来るための重なり順）だけを指定する。 */
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 102;
  /* .nav-menu(101) より前面に固定し、開いた状態でも常にタップできるようにする */
}

.mobile-header-actions .hamburger-line {
  /* 線の太さ・変形（✕字）は base の .hamburger-line /
     .hamburger-btn.is-active .hamburger-line をそのまま使う。
     ここでは幅と色（base は #aaa のグレー）だけを上書きする。
     transitionは base の transition:all だと不要なプロパティまで
     同時にアニメーションしてしまい、開閉時に線の残骸が見える不具合の
     原因になっていたため、transform / opacity のみに限定して上書きする。 */
  width: 30px;
  background: var(--color-text-main);
  transition: transform .35s var(--ease-slow), opacity .25s ease;
  will-change: transform, opacity;
}

@media (max-width:768px) {
  .mobile-header-actions {
    display: flex;
  }
}

/* =========================
   6) Company Page (layout)
========================= */

/* 会社概要：固定ヘッダー分の余白 */
.company-page {
  padding-top: 30px;
  padding-bottom: 50px;
}

@media (max-width:768px) {
  .company-page {
    padding-bottom: 10px;
  }
}

/* ページタイトル（H1） */
.company-page h1 {
  font-family: var(--font-mincho);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: .10em;
  margin: 0;
  text-align: center;
}

/* セクション間の呼吸 */
.company-page .section {
  margin-top: 70px;
}

.company-page .section:first-child {
  margin-top: 0;
}

/* 見出し（H2） */
.company-page h2 {
  font-family: var(--font-mincho);
  font-size: 1.25em;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 0 0 10px;
}

/* リード */
.company-page .lead {
  max-width: 920px;
  font-size: 1.05em;
  line-height: 2.15;
  color: var(--color-text-sub);
  margin: 0 0 34px;
}

/* ★スマホで「H1 < H2」にならないように保証 */
@media (max-width:768px) {
  .company-page h1 {
    font-size: 1.5em;
  }

  /* 28px相当 */
  .company-page h2 {
    font-size: 1.3em;
  }

  /* 21.6px相当 */
}

.legal-content h1 {
  margin-top: 30px;
  margin-bottom: 50px;
}

.legal-content h2 {
  margin-top: 48px;
}

.legal-content h2:first-of-type {
  margin-top: 32px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  list-style: disc;
  /* 全体共通の ul{list-style:none} を上書き */
  padding-left: 1.4em;
  margin: 0 0 20px;
}

.legal-content li {
  font-size: 1.05em;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

@media (max-width:768px) {
  .legal-content h2 {
    margin-top: 38px;
  }
}

/* =========================
   Google Map（MEO）埋め込み
========================= */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 24px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width:768px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* =========================
   7) Company Table
========================= */
.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-accent);
  background: #fff;
  margin: 18px 0 30px;
}

.company-table th,
.company-table td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--color-accent);
  vertical-align: top;
  font-size: 1.05em;
  font-weight: 300;
}

.company-table th {
  width: 220px;
  color: var(--color-text-main);
  background: #f9f9f9;
  letter-spacing: .08em;
}

.company-table td {
  color: var(--color-text-sub);
  letter-spacing: .06em;
}

@media (max-width:768px) {
  .company-table th {
    width: 38%;
  }

  .company-table th,
  .company-table td {
    padding: 14px 12px;
    font-size: 1em;
  }
}

/* =========================
   8) Business list (categorized)
========================= */
#business-list {
  margin-top: 14px;
}

/* category wrapper */
.service-cat {
  margin: 34px 0 0;
}

.service-cat:first-child {
  margin-top: 0;
}

/* category title label */
.service-cat-title {
  display: inline-block;
  padding: 6px 14px 6px 18px;
  margin: 0 0 14px;
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--color-text-main);
  background: var(--color-bg-sub);
  border-left: 7px solid var(--color-highlight);
  text-decoration: none;
  border-bottom: none;
  box-shadow: none;
  background-image: none;
}

/* list lines (flat) */
.services-line {
  border-top: 1px solid var(--color-accent);
}

.services-line li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-text-sub);
  font-size: 1.05em;
  font-weight: 300;
  letter-spacing: .06em;
}

.services-line li:last-child {
  border-bottom: none;
}

@media (max-width:768px) {
  .service-cat {
    margin-top: 26px;
  }

  .service-cat-title {
    font-size: 1.1em;
    padding: 6px 12px 6px 16px;
    margin-bottom: 12px;
  }

  .services-line li {
    padding: 12px 0;
  }
}

/* =========================
   9) Footer
========================= */
footer {
  padding: 50px 0 50px;
  text-align: center;
  background: var(--color-bg);
}

.footer-msg {
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  margin: 0 0 40px;
  color: var(--color-text-main);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  font-family: var(--font-mincho);
  font-size: 1.05em;
  font-weight: 300;
}

.footer-link-item {
  position: relative;
}

.footer-link-item:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -15px;
  color: var(--color-accent);
  font-weight: 300;
}

/* SNS: square boxes */
.footer-sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.footer-sns a.sns-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  background: #fff;
  transition: all .3s ease;
}

.footer-sns a.sns-box i,
.footer-sns a.sns-box svg {
  font-size: 1.15rem;
  color: var(--color-text-sub);
}

.footer-sns a.sns-box:hover {
  border-color: var(--color-highlight);
  transform: translateY(-2px);
}

.footer-sns a.sns-box:hover i,
.footer-sns a.sns-box:hover svg {
  color: var(--color-text-main);
}

.footer-sns a.sns-box svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copyright {
  font-family: var(--font-en);
  font-size: .75rem;
  color: var(--color-text-light);
  letter-spacing: .1em;
}

@media (max-width:768px) {
  footer {
    padding: 50px 0 25px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .footer-link-item:not(:last-child)::after {
    content: none;
  }
}

/* =========================
   10) Scroll to top button
========================= */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .5s var(--ease-slow);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-text-main);
  border-color: var(--color-text-main);
}

.scroll-top-btn i {
  font-size: 1rem;
  color: var(--color-text-sub);
  transition: color .3s;
}

.scroll-top-btn:hover i {
  color: #fff;
}

@media (max-width:768px) {
  .scroll-top-btn {
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
  }
}

/* 代表者メッセージ：段落表示（JSが<p>生成） */
#person-description p {
  margin: 0 0 1.6em;
}

#person-description p:last-child {
  margin-bottom: 0;
}

/* =========================
   Company page simple header (title only)
   ※重複定義を1つに統合
========================= */
.site-header {
  padding: 60px 0 5px;
}

.site-header .page-title {
  font-family: var(--font-mincho);
  font-size: 28px;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-text-main);
}

@media (max-width:768px) {
  .site-header {
    padding: 60px 0 20px;
  }

  /* ★ここもH2より小さくならないように調整 */
  .site-header .page-title {
    font-size: 1.8em;
    margin-top: 60px;
  }
}

a.tel-link {
  text-decoration: underline;
  text-underline-offset: .15em;
}

/* ===============================
   フォントを全体で明朝体に統一
   =============================== */

/* 基本フォント */
html,
body {
  font-family:
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    "MS Mincho",
    serif;
}

/* 見出し・本文・表・リンクすべて強制 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
span,
table,
th,
td,
ul,
ol,
li,
a,
section,
article,
header,
footer,
input,
textarea,
button {
  font-family:
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    "MS Mincho",
    serif;
}

/* ===============================
   明朝体を「細すぎない・読みやすい」設定に
   =============================== */

html,
body {
  font-family:
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    "MS Mincho",
    serif;

  font-weight: 500;
  /* ← 重要：細すぎ防止 */
  line-height: 1.9;
  /* ← 明朝は行間広めが正解 */
  letter-spacing: 0.04em;
  /* ← ほんの少しだけ字間 */
}

.breadcrumb {
  max-width: var(--container);
  margin: 0 auto 20px;
  padding: 30px 40px 0;
  font-size: 14px;
  color: #888;
}

.breadcrumb a {
  text-decoration: none;
}

@media (max-width:768px) {
  .breadcrumb {
    padding: 24px 22px 0;
  }
}

#faq-area {
  margin-top: 20px;
}

/* ── よくある質問（Q/Aラベル付き） ── */
.faq-item {
  border-bottom: 1px solid var(--color-accent);
  padding: 26px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q,
.faq-a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.faq-q {
  margin-bottom: 14px;
}

.faq-label {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: .95rem;
  font-weight: 300;
}

.faq-q .faq-label {
  background: var(--color-highlight);
  color: #fff;
}

.faq-a .faq-label {
  background: var(--color-bg-sub);
  color: var(--color-text-main);
  border: 1px solid var(--color-accent);
}

.faq-q h3 {
  font-family: var(--font-mincho);
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: .03em;
  color: var(--color-text-main);
  margin: 0;
  margin-top: -2px;
  padding-bottom: 5px;
}

.faq-a p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin: 0;
  padding-top: 4px;
}

/* =========================
   11) トップページ・共有コンポーネント
   ※フォントサイズは company.html（本セクション上部の h1/h2/lead/table/
     services-line 等）の基準に統一。company.html と index.html の両方が
     このセクションのクラスを共有する。
========================= */

/* ── 簡易ヘッダー（ロゴ＋ナビ） ── */
.top-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
}

.top-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

.top-header .brand-name,
.brand-name {
  font-family: var(--font-mincho) !important;
  font-size: 1.3rem;
  letter-spacing: .1em;
  color: var(--color-text-main);
}

.top-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.top-nav a {
  font-size: 1.05em;
  letter-spacing: .04em;
  color: var(--color-text-sub);
  padding: 6px 2px;
}

.top-nav a:hover {
  color: var(--color-highlight);
}

@media (max-width:768px) {
  .top-header {
    height: var(--header-h-sp);
  }

  .top-nav {
    display: none;
  }

  .top-nav a {
    font-size: .9em;
  }
}

/* ── トップページのみ：ヘッダーを固定表示にする ──────────────
   固定にすることで、スクロール時にコンテンツがヘッダーの下に
   潜り込むように見える「重なり」の効果が生まれる（wameyou.jp/moissmois/ と同様）。
   company.html には影響しないよう、body に付けた .page-home でスコープしている。
   ヘッダーがドキュメントフローから外れる分、本文側に --header-h ぶんの
   上余白を追加して、ページ冒頭の内容が隠れないようにしている。 */
.page-home .top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 103;
  /* position:fixed は独自の重なり階層を作るため、内部の
                  hamburger-btn(z-index:102) 単体では #nav-menu(101) に
                  勝てない。ヘッダー自体をnav-menuより上に固定する。 */
  background: var(--color-bg);
}

.page-home {
  padding-top: var(--header-h);
}

@media (max-width:768px) {
  .page-home {
    padding-top: var(--header-h-sp);
  }
}

/* ── 会社概要ページ／お問い合わせ／メルマガ登録／ニュース／ブログ／サービス一覧／実績紹介も同じ固定ヘッダーを使う ── */
.page-company .top-header,
.page-contact .top-header,
.page-newsletter .top-header,
.page-news .top-header,
.page-blog .top-header,
.page-service .top-header,
.page-works .top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 103;
  background: var(--color-bg);
}

.page-company,
.page-contact,
.page-newsletter,
.page-news,
.page-blog,
.page-service,
.page-works {
  padding-top: var(--header-h);
}

@media (max-width:768px) {
  .page-company,
  .page-contact,
  .page-newsletter,
  .page-news,
  .page-blog,
  .page-service,
  .page-works {
    padding-top: var(--header-h-sp);
  }
}

/* ── ヒーロー（h1 は company-page h1 と同一サイズ） ── */
.hero {
  padding: 50px 25px 50px;
  text-align: center;
}

.hero-en {
  font-size: 1.15em;
  letter-spacing: .15em;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-mincho);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .10em;
  color: var(--color-text-main);
  max-width: 780px;
  margin: 0 auto 26px;
  margin-top: 45px;
  margin-bottom: 45px;
}

.hero-desc {
  color: var(--color-text-sub);
  line-height: 2.1;
  max-width: 960px;
  margin: 0 auto 40px;
  text-align: left;
  padding: 0px 10px;
  /* 段落が複数になったため、読みやすさを優先して左寄せにする */
}

.hero-desc p {
  margin-bottom: 28px;
}

/* 段落ごとに大きめの余白を作る */
.hero-desc p:last-child {
  margin-bottom: 0;
}

/* 見出し内の強調語（画像内の水色部分に相当。色は仮に既存のサイトアクセントカラーを使用。
   後ほど配色を変更する場合はこの1行を書き換えるだけでよい） */
.hero-highlight {
  color: var(--color-highlight);
}

/* サブヘッド（「──」始まりのキャッチコピー） */
.hero-subhead {
  font-size: 1.05em;
  color: var(--color-text-sub);
  letter-spacing: .04em;
  max-width: 720px;
  margin: 0 auto 40px;
}

/* 3枚の特徴カード（アイコン・配色は仮置き：後ほど差し替え予定） */
.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 56px;
  text-align: left;
}

.hero-feature-card {
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
  padding: 28px 26px;
}

.hero-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-sub);
  color: var(--color-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.hero-feature-card h3 {
  font-family: var(--font-mincho);
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.hero-feature-card p {
  font-size: 1.05em;
  line-height: 1.9;
  margin: 0;
}

@media (max-width:900px) {
  .hero-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* 図解（DATABASE → AI最適化 → WEBページ。アイコン・配色は仮置き：後ほど差し替え予定） */
.hero-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto 56px;
}

.hero-diagram-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-diagram-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: var(--color-bg-sub);
  color: var(--color-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-diagram-label {
  font-family: var(--font-en);
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--color-text-light);
}

.hero-diagram-arrow {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 30px;
}

@media (max-width:600px) {
  .hero-diagram {
    flex-direction: column;
  }

  .hero-diagram-arrow {
    transform: rotate(90deg);
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width:768px) {
  .hero {
    padding: 50px 20px 50px;
  }

  .hero-title {
    font-size: 1.85em;
    letter-spacing: .06em;
  }

  .hero-desc p {
    margin-bottom: 22px;
  }

  .hero-subhead {
    font-size: 1.2em;
  }
}

/* ── 共通ボタン（btn-minimal を軸に、アウトライン版を追加） ── */
.btn-outline-gold {
  display: inline-block;
  padding: 15px 50px;
  border: 1px solid var(--color-highlight);
  font-family: var(--font-en);
  font-size: .9em;
  background: transparent;
  color: var(--color-highlight);
  transition: all .3s ease;
}

.btn-outline-gold:hover {
  background: var(--color-highlight);
  color: #fff;
  opacity: 1;
}

@media (max-width:768px) {

  .btn-minimal,
  .btn-outline-gold {
    padding: 10px 25px;
    font-size: .85em;
  }
}

/* ── セクション共通（英字ラベル＋見出し。見出しは company-page h2 と同一サイズ） ── */
.top-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px;
    max-width: 980px;
}

.top-section.bg-sub {
  max-width: none;
  background: var(--color-bg-sub);
}

.top-section.bg-sub .top-section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-en {
  font-family: var(--font-en);
  font-size: .85rem;
  letter-spacing: .22em;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 14px;
}

.section-ja {
  font-family: var(--font-mincho);
  font-size: 1.35em;
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--color-text-main);
}

@media (max-width:768px) {
  .top-section {
    padding: 50px 15px 50px;
  }

  .section-ja {
    font-size: 1.35em;
  }
}

/* ── 課題提起リスト（services-line と同じ表現：横線区切りのシンプルなリスト） ── */
.issue-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--color-accent);
}

.issue-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-text-sub);
  font-size: 1em;
  font-weight: 300;
  letter-spacing: .06em;
}

.issue-list li:last-child {
  border-bottom: none;
}

@media (max-width:768px) {
  .issue-list li {
    padding: 12px 0;
  }
}

/* ── 代表メッセージ抜粋（lead と同一サイズ） ── */
.rep-excerpt {
  font-size: 1.075em;
  line-height: 2.1;
  color: var(--color-text-sub);
  white-space: pre-line;
  max-width: 760px;
  margin: 0 auto 30px;
}

.rep-full {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: left;
}

.rep-full p {
  font-size: 1em;
  line-height: 2.1;
  color: var(--color-text-sub);
  margin: 0 0 1.4em;
}

.rep-full p:last-child {
  margin-bottom: 0;
}

.rep-toggle-icon {
  margin-left: 8px;
  transition: transform .2s;
}

.rep-more {
  text-align: center;
  margin-top: 34px;
}

/* ── 新着情報（リスト形式。/news/ 一覧ページと同じデザイン） ── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-en);
  font-size: 0.75em;
  letter-spacing: .1em;
  padding: 3px 15px;
  border: 1px solid var(--color-accent);
  color: var(--color-text-light);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-accent);
  transition: background .2s;
  cursor: pointer;
}

.news-item:first-child {
  border-top: 1px solid var(--color-accent);
}

.news-date {
  font-size: 0.9em;
  color: var(--color-text-light);
  letter-spacing: .06em;
  white-space: nowrap;
  min-width: 90px;
}

.news-cat {
  font-size: 0.75em;
  font-family: var(--font-en);
  color: #fff;
  background: var(--color-highlight);
  padding: 0px 10px;
  letter-spacing: .08em;
  white-space: nowrap;
  min-width: 50px;
  text-align: center;
}

.news-title {
  font-size: 1.05em;
  font-weight: 300;
  color: var(--color-text-main);
  line-height: 1.7;
  flex-grow: 1;
  transition: color .2s;
}

.news-item:hover .news-title {
  color: var(--color-highlight);
}

@media (max-width: 640px) {
  .news-item {
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
  }

  .news-date {
    min-width: auto;
  }
}

/* ── 旧デザイン（bento カード）。現在は未使用だが参考のため残置 ── */
.news-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

@media (max-width:900px) {
  .news-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:600px) {
  .news-teaser-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--color-bg);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.bento-card:hover {
  border-color: var(--color-highlight);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  transform: translateY(-2px);
}

.bento-card .bento-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--color-bg-sub);
}

.bento-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  font-family: var(--font-en);
  font-size: .95em;
  letter-spacing: .06em;
  color: var(--color-text-light);
}

.bento-cat {
  font-size: .65rem;
  color: var(--color-highlight);
  border: 1px solid var(--color-highlight);
  padding: 0px 5px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.bento-badge {
  background: var(--color-highlight);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .08em;
  padding: 3px 9px;
  border: 1px solid var(--color-highlight);
}

.bento-title {
  font-family: var(--font-mincho);
  font-size: 1.05em;
  font-weight: 100;
  line-height: 1.7;
  color: var(--color-text-main);
}

.news-empty,
.news-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-light);
  font-size: 1.1em;
  grid-column: 1 / -1;
}

.news-more {
  text-align: center;
}

/* ── 事業内容グリッド（company.html の service-cat とは別に、トップページでは
     カード型で簡潔に見せる。文字サイズは services-line と統一） ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width:700px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  border: 1px solid var(--color-accent);
  padding: 30px 32px;
  background: var(--color-bg);
}

.service-card h3 {
  font-family: var(--font-mincho);
  font-size: 1.2em;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--color-text-main);
  margin-bottom: 14px;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-sub);
  padding-left: 1.6em;
  position: relative;
}

.service-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-highlight);
}

@media (max-width:768px) {
  .service-card {
    padding: 22px 24px;
  }

  .service-card h3 {
    font-size: 1.2em;
  }

  .service-card li {
    font-size: 1.05em;
  }
}

/* ── CTA セクション ── */
.cta-section {
  text-align: center;
}

.cta-section p {
  font-size: 1.15rem;
}

.cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ── 記事モーダル（本文サイズは p と統一感を持たせる） ── */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(20, 15, 10, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
  padding: 24px;
}

.article-modal.open {
  opacity: 1;
  visibility: visible;
}

.article-modal-inner {
  background: #fff;
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform .2s;
}

.article-modal.open .article-modal-inner {
  transform: translateY(0);
}

.article-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text-main);
}

.article-modal-img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.article-modal-body {
  padding: 34px;
}

.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-size: .85rem;
  color: var(--color-text-light);
}

.article-modal-title {
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.article-modal-text {
  font-size: 1.08rem;
  line-height: 2;
  color: var(--color-text-sub);
  white-space: pre-wrap;
  margin-bottom: 28px;
}

.article-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-modal-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: .9rem;
  letter-spacing: .04em;
  color: #fff;
  background: var(--color-highlight);
  border: 1px solid var(--color-highlight);
  transition: opacity .2s;
}

.article-modal-actions a:hover {
  opacity: .85;
}

.article-modal-actions a.secondary {
  background: transparent;
  color: var(--color-highlight);
}

@media (max-width:768px) {
  .article-modal {
    padding: 14px;
  }

  .article-modal-body {
    padding: 24px;
  }

  .article-modal-title {
    font-size: 1.25em;
  }

  .article-modal-text {
    font-size: 1em;
  }

  .article-modal-actions a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 18px;
  }
}

/* ── コンテナ内で使う背景パネル（company.html 等、.container 入れ子内での
     セクション区切り用。100vw を使う全幅背景は .container のレスポンシブ
     paddingと衝突するリスクがあるため、こちらは安全にコンテナ幅内に収まる） ── */
.panel-sub {
  background: var(--color-bg-sub);
  padding: 56px 40px;
  margin: 0 0 0;
}

@media (max-width:768px) {
  .panel-sub {
    padding: 40px 22px;
  }
}