/*
Theme Name: Higo Corporate
Theme URI: https://higosaitaniya.com
Author: HIGO SAITANIYA LLC
Description: 合同会社肥後才谷屋 専用のオリジナル企業サイトテーマ。紺 × 金の高級感ある企業サイトデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: higo-corporate
*/

/* =====================================================
   0. Design tokens
   ===================================================== */
:root {
  /* 肥後象がんインク (熊本の伝統工芸: 鉄に金銀を象嵌) */
  --hs-navy-900: #0e1118;   /* 最深墨 */
  --hs-navy-700: #1a2130;   /* 押し墨 */
  --hs-navy-500: #232d42;   /* 紺寄り墨 */
  --hs-navy-400: #2d3a52;   /* 藍鉄 */
  /* 金 (淡金 → 基本金 → 深金 の3トーンで立体感) */
  --hs-gold: #c3a46b;
  --hs-gold-light: #e3c98e;
  --hs-gold-deep: #a8894e;
  --hs-gold-pale: #f0e2bd;
  --hs-gold-grad: linear-gradient(100deg, var(--hs-gold-deep) 0%, var(--hs-gold-light) 45%, var(--hs-gold-pale) 50%, var(--hs-gold-light) 55%, var(--hs-gold-deep) 100%);
  /* 和紙ニュートラル */
  --hs-ink: #2b2e36;
  --hs-muted: #6b7078;
  --hs-line: #e2ddd2;
  --hs-paper: #f7f5f0;
  --hs-paper-2: #efece4;
  --hs-card-bg: #fdfcfa;
  --hs-container: 1160px;
  --hs-gutter: clamp(20px, 5vw, 48px);
  --hs-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================
   1. Reset / Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  color: var(--hs-ink);
  background: var(--hs-paper);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--hs-gold); color: #fff; }

.hs-container {
  width: 100%;
  max-width: calc(var(--hs-container) + var(--hs-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--hs-gutter);
}

/* =====================================================
   2. Header
   ===================================================== */
.hs-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--hs-ease), box-shadow 0.4s var(--hs-ease), backdrop-filter 0.4s;
}

.hs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.4s var(--hs-ease);
}

.hs-header.is-scrolled {
  background: rgba(10, 28, 46, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hs-header.is-scrolled .hs-header__inner { height: 64px; }

.hs-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
}

.hs-brand__ja {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
}

.hs-brand__en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  background: var(--hs-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.hs-nav { display: flex; align-items: center; gap: 34px; }

.hs-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.3s;
}

.hs-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--hs-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--hs-ease);
}

.hs-nav a:hover { color: #fff; }
.hs-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hs-nav__cta {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid var(--hs-gold);
  color: var(--hs-gold-light) !important;
  font-size: 12px;
  transition: background 0.3s, color 0.3s;
}

.hs-nav__cta:hover { background: var(--hs-gold); color: var(--hs-navy-900) !important; }
.hs-nav__cta::after { display: none; }

/* --- mobile nav --- */
.hs-menu-btn {
  display: none;
  position: relative;
  z-index: 110;
  width: 48px; height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hs-menu-btn span {
  position: absolute;
  left: 12px;
  width: 24px; height: 1.5px;
  background: #fff;
  transition: transform 0.4s var(--hs-ease), opacity 0.3s;
}

.hs-menu-btn span:nth-child(1) { top: 18px; }
.hs-menu-btn span:nth-child(2) { top: 24px; }
.hs-menu-btn span:nth-child(3) { top: 30px; }

.hs-menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hs-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.hs-menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hs-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  background: rgba(10, 28, 46, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--hs-ease), visibility 0.4s;
}

.hs-mobile-nav.is-open { opacity: 1; visibility: visible; }

.hs-mobile-nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }

.hs-mobile-nav li { margin: 26px 0; }

.hs-mobile-nav a {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.hs-mobile-nav .hs-mobile-nav__en {
  display: block;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--hs-gold-light);
}

/* =====================================================
   3. Hero
   ===================================================== */
.hs-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(195, 164, 107, 0.1), transparent 55%),
    linear-gradient(160deg, var(--hs-navy-900) 0%, var(--hs-navy-700) 48%, var(--hs-navy-500) 100%);
  color: #fff;
}

/* 金砂子 (きんざこ) — 背景に散らす微細な金粒 */
.hs-hero .hs-hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 24%, rgba(227, 201, 142, 0.5), transparent 100%),
    radial-gradient(1px 1px at 28% 68%, rgba(195, 164, 107, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 15%, rgba(240, 226, 189, 0.35), transparent 100%),
    radial-gradient(1px 1px at 62% 82%, rgba(227, 201, 142, 0.3), transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 38%, rgba(195, 164, 107, 0.45), transparent 100%),
    radial-gradient(1px 1px at 88% 72%, rgba(240, 226, 189, 0.3), transparent 100%),
    radial-gradient(1px 1px at 8% 84%, rgba(195, 164, 107, 0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 52% 55%, rgba(227, 201, 142, 0.25), transparent 100%);
  pointer-events: none;
}

/* 光の円 (象嵌の輪) */
.hs-hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: 62vw; height: 62vw;
  max-width: 880px; max-height: 880px;
  border: 1px solid rgba(195, 164, 107, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(195, 164, 107, 0.04),
    0 0 0 130px rgba(195, 164, 107, 0.03),
    inset 0 0 140px rgba(195, 164, 107, 0.12);
  animation: hs-orb 14s ease-in-out infinite alternate;
}

@keyframes hs-orb {
  from { transform: translateY(-52%) scale(1); }
  to   { transform: translateY(-48%) scale(1.06); }
}

/* 金の差し色ライン */
.hs-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--hs-gold-grad);
}

/* ヒーロー下の金グラデをキラっと流す */
.hs-hero.is-loaded::after {
  background: linear-gradient(90deg, var(--hs-gold-deep), var(--hs-gold-pale), var(--hs-gold-deep));
  background-size: 200% auto;
  animation: hs-goldflow 6s linear infinite;
}

@keyframes hs-goldflow {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.hs-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 140px 90px;
}

.hs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hs-gold-light);
}

.hs-kicker::before {
  content: "";
  width: 48px; height: 1px;
  background: var(--hs-gold);
}

.hs-hero h1 {
  margin: 28px 0 0;
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.hs-hero h1 .hs-em {
  font-style: normal;
  background: linear-gradient(transparent 68%, rgba(195, 164, 107, 0.42) 68%);
}

.hs-hero__lead {
  max-width: 560px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.82);
}

.hs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

/* 共通ボタン */
.hs-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 38px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.35s var(--hs-ease);
}

.hs-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--hs-ease);
  z-index: -1;
}

.hs-btn:hover::before { transform: scaleX(1); }

.hs-btn__arrow { transition: transform 0.35s var(--hs-ease); }
.hs-btn:hover .hs-btn__arrow { transform: translateX(5px); }

.hs-btn--gold {
  background: var(--hs-gold-grad);
  background-size: 200% auto;
  color: var(--hs-navy-900);
  box-shadow: 0 4px 18px rgba(195, 164, 107, 0.35);
  transition: background-position 0.6s var(--hs-ease), box-shadow 0.4s, transform 0.4s var(--hs-ease);
}
.hs-btn--gold::before { background: var(--hs-gold-pale); }
.hs-btn--gold:hover {
  background-position: right center;
  box-shadow: 0 6px 26px rgba(195, 164, 107, 0.5);
  transform: translateY(-2px);
}

.hs-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.hs-btn--ghost::before { background: rgba(255, 255, 255, 0.12); }

/* スクロールインジケーター */
.hs-scroll {
  position: absolute;
  right: 40px; bottom: 36px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
}

.hs-scroll::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--hs-gold), transparent);
  animation: hs-scroll-line 2.2s var(--hs-ease) infinite;
}

@keyframes hs-scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =====================================================
   4. Sections 共通
   ===================================================== */
.hs-section { padding-block: clamp(80px, 11vw, 140px); }

.hs-section--paper { background: var(--hs-paper-2); }

.hs-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.hs-section-head__num {
  font-family: Georgia, serif;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--hs-gold);
}

.hs-section-head__label {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hs-gold);
}

.hs-section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.08em;
  color: var(--hs-navy-700);
}

/* 見出しの「―」を金グラデに */
.hs-section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 22px;
  background: var(--hs-gold-grad);
  border-radius: 2px;
}

/* =====================================================
   5. Business (事業内容)
   ===================================================== */
.hs-business__lead {
  max-width: 720px;
  margin-bottom: 56px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--hs-muted);
}

.hs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hs-card {
  position: relative;
  padding: 40px 32px 36px;
  background: var(--hs-card-bg);
  border-top: 2px solid transparent;
  box-shadow:
    0 1px 2px rgba(26, 33, 48, 0.04),
    0 6px 30px rgba(26, 33, 48, 0.06);
  transition: transform 0.5s var(--hs-ease), box-shadow 0.5s var(--hs-ease), border-color 0.5s;
}

.hs-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--hs-gold);
  box-shadow:
    0 2px 4px rgba(26, 33, 48, 0.05),
    0 18px 44px rgba(26, 33, 48, 0.13),
    0 12px 28px -12px rgba(195, 164, 107, 0.25);
}

.hs-card__num {
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--hs-gold);
}

.hs-card h3 {
  margin: 14px 0 16px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hs-navy-700);
}

.hs-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 2;
  color: var(--hs-muted);
}

/* =====================================================
   6. Company (会社概要)
   ===================================================== */
.hs-company__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.hs-company__message {
  font-size: 15px;
  line-height: 2.3;
  color: var(--hs-muted);
}

.hs-company__message .hs-name {
  margin-top: 34px;
  text-align: right;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--hs-navy-700);
}

.hs-company__message .hs-name small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--hs-gold);
}

.hs-table {
  border-top: 2px solid var(--hs-navy-700);
}

.hs-table > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hs-line);
  font-size: 14px;
}

.hs-table dt {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--hs-navy-700);
  position: relative;
  padding-left: 16px;
}

.hs-table dt::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--hs-gold-grad);
}

.hs-table dd { margin: 0; color: var(--hs-muted); }

/* =====================================================
   7. Contact CTA
   ===================================================== */
.hs-contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(195, 164, 107, 0.16), transparent 42%),
    linear-gradient(135deg, var(--hs-navy-900) 0%, var(--hs-navy-700) 60%, var(--hs-navy-500) 100%);
  color: #fff;
}

.hs-contact::after {
  content: "";
  position: absolute;
  right: 6%; top: 12%;
  width: 300px; height: 300px;
  border: 1px solid rgba(195, 164, 107, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(195, 164, 107, 0.04), 0 0 0 110px rgba(195, 164, 107, 0.03);
}

.hs-contact .hs-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding-block: clamp(64px, 8vw, 100px);
}

.hs-contact h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hs-contact p {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.78);
}

.hs-btn--light { background: #fff; color: var(--hs-navy-900); }
.hs-btn--light::before { background: var(--hs-gold-light); }

/* =====================================================
   8. Footer
   ===================================================== */
.hs-footer {
  background: var(--hs-navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 56px 32px;
}

.hs-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hs-footer .hs-brand__ja { font-size: 16px; }

.hs-footer__nav { display: flex; flex-wrap: wrap; gap: 26px; }

.hs-footer__nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s;
}

.hs-footer__nav a:hover { color: var(--hs-gold-light); }

.hs-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
}

/* =====================================================
   9. Sub pages (事業内容 / お問い合わせ)
   ===================================================== */
.hs-page-hero {
  padding: 190px 0 70px;
  background: linear-gradient(118deg, var(--hs-navy-900), var(--hs-navy-500));
  color: #fff;
}

.hs-page-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hs-page-body {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(60px, 8vw, 100px) var(--hs-gutter);
}

.hs-page-body p { line-height: 2.3; color: var(--hs-muted); }

/* Contact Form 7 */
.hs-page-body .wpcf7-form p { margin-bottom: 22px; }

.hs-page-body .wpcf7 label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--hs-navy-700);
}

.hs-page-body .wpcf7 input[type="text"],
.hs-page-body .wpcf7 input[type="email"],
.hs-page-body .wpcf7 textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid var(--hs-line);
  background: #fff;
  border-radius: 0;
  transition: border-color 0.3s;
}

.hs-page-body .wpcf7 input:focus,
.hs-page-body .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--hs-gold);
}

.hs-page-body .wpcf7 input[type="submit"] {
  padding: 17px 60px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--hs-navy-700);
  border: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.hs-page-body .wpcf7 input[type="submit"]:hover { background: var(--hs-gold); }

/* =====================================================
   10. Reveal animation
   ===================================================== */
.hs-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--hs-ease), transform 0.9s var(--hs-ease);
}

.hs-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hs-reveal { opacity: 1; transform: none; transition: none; }
  .hs-hero::before, .hs-scroll::after { animation: none; }
}

/* =====================================================
   11. Responsive
   ===================================================== */
@media (max-width: 900px) {
  .hs-nav { display: none; }
  .hs-menu-btn { display: block; }
  .hs-cards { grid-template-columns: 1fr; }
  .hs-company__grid { grid-template-columns: 1fr; }
  .hs-contact .hs-container { grid-template-columns: 1fr; }
  .hs-section-head { grid-template-columns: auto 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .hs-brand__en { display: none; }
  .hs-header__inner { height: 68px; }
  .hs-hero__inner { padding-block: 120px 80px; }
  .hs-scroll { display: none; }
  .hs-table > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}

/* =====================================================
   12. Scroll progress bar
   ===================================================== */
.hs-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--hs-gold), var(--hs-gold-light));
  pointer-events: none;
}

/* =====================================================
   13. Hero entrance animation (ページ読み込み時)
   ===================================================== */
.hs-hero .hs-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s var(--hs-ease),
    transform 1.1s var(--hs-ease);
}

.hs-hero.is-loaded .hs-reveal {
  opacity: 1;
  transform: none;
}

/* キックラインが伸びる */
.hs-hero .hs-kicker::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--hs-ease) 0.9s;
}

.hs-hero.is-loaded .hs-kicker::before { transform: scaleX(1); }

/* 見出しのマスク表示 (clip で下からすっと出る) */
.hs-hero h1 {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--hs-ease) 0.35s;
}

.hs-hero.is-loaded h1 { clip-path: inset(0 0 -10% 0); }

/* ゴールドの輝き */
@keyframes hs-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hs-hero h1 .hs-em {
  background: linear-gradient(transparent 68%, rgba(195, 164, 107, 0.42) 68%);
  overflow: hidden;
}

.hs-hero.is-loaded h1 .hs-em {
  animation: hs-shimmer 3.2s ease-in-out 1.6s infinite;
  background: linear-gradient(
    100deg,
    rgba(195, 164, 107, 0.42) 40%,
    rgba(255, 235, 190, 0.85) 50%,
    rgba(195, 164, 107, 0.42) 60%
  );
  background-size: 200% auto;
  -webkit-background-clip: padding-box;
}

/* =====================================================
   14. Marquee band (金のティッカー)
   ===================================================== */
.hs-marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--hs-navy-900);
  border-block: 1px solid rgba(195, 164, 107, 0.35);
}

.hs-marquee__track {
  display: flex;
  width: max-content;
  animation: hs-marquee 30s linear infinite;
}

.hs-marquee:hover .hs-marquee__track { animation-play-state: paused; }

.hs-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(227, 201, 142, 0.75), var(--hs-gold-pale), rgba(227, 201, 142, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hs-marquee__item::after {
  content: "";
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--hs-gold);
}

@keyframes hs-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   15. Section head 装飾アニメーション
   ===================================================== */
.hs-section-head__num {
  position: relative;
}

.hs-section-head__num::after {
  content: "";
  position: absolute;
  left: 6px; bottom: -10px;
  width: calc(100% - 12px);
  height: 2px;
  background: linear-gradient(90deg, var(--hs-gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--hs-ease) 0.35s;
}

.hs-reveal.is-visible .hs-section-head__num::after,
.hs-section-head.hs-reveal.is-visible .hs-section-head__num::after {
  transform: scaleX(1);
}

/* =====================================================
   16. Card hover 演化 (金のコーナー)
   ===================================================== */
.hs-card::before,
.hs-card::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  opacity: 0;
  transition: opacity 0.45s var(--hs-ease);
  pointer-events: none;
}

.hs-card::before {
  top: 10px; left: 10px;
  border-top: 2px solid var(--hs-gold);
  border-left: 2px solid var(--hs-gold);
}

.hs-card::after {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid var(--hs-gold);
  border-right: 2px solid var(--hs-gold);
}

.hs-card:hover::before,
.hs-card:hover::after { opacity: 1; }

/* ボタンの光の走抜け */
.hs-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--hs-ease);
  z-index: 1;
}

.hs-btn:hover::after { left: 130%; }

/* =====================================================
   17. Stagger (順番に出現)
   ===================================================== */
.hs-reveal[data-delay="1"] { transition-delay: 0.12s; }
.hs-reveal[data-delay="2"] { transition-delay: 0.24s; }
.hs-reveal[data-delay="3"] { transition-delay: 0.36s; }
.hs-reveal[data-delay="4"] { transition-delay: 0.48s; }

/* 会社概テーブルの行を1行ずつ */
.hs-table > div {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.7s var(--hs-ease), transform 0.7s var(--hs-ease);
}

.hs-table.is-visible > div { opacity: 1; transform: none; }
.hs-table.is-visible > div:nth-child(1) { transition-delay: 0.05s; }
.hs-table.is-visible > div:nth-child(2) { transition-delay: 0.15s; }
.hs-table.is-visible > div:nth-child(3) { transition-delay: 0.25s; }
.hs-table.is-visible > div:nth-child(4) { transition-delay: 0.35s; }
.hs-table.is-visible > div:nth-child(5) { transition-delay: 0.45s; }

.hs-table.hs-reveal { opacity: 1; transform: none; }

/* フッターの金ライン */
.hs-footer {
  position: relative;
}

.hs-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hs-gold), rgba(195, 164, 107, 0) 60%);
}

@media (prefers-reduced-motion: reduce) {
  .hs-marquee__track { animation: none; }
  .hs-hero .hs-reveal, .hs-hero h1, .hs-hero .hs-kicker::before { transition: none; opacity: 1; transform: none; clip-path: none; }
  .hs-table > div { opacity: 1; transform: none; transition: none; }
}
