/*
Theme Name: monoitto-child
Theme URI: https://monoitto.com/
Description: monoitto 子テーマ（親テーマ: Twenty Twenty-Four）
Author: monoitto
Author URI: https://monoitto.com/
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monoitto-child
*/

/* ============================================================
   Hero Banner
   ============================================================ */

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  /* ブラウザ幅いっぱい：左右パディングなし、上下のみ */
  padding: clamp(80px, 10vw, 120px) clamp(40px, 6vw, 80px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 50%, #0e7490 100%);
}

/* 背景装飾 */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

/* レイアウト */
.hero-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- 左カラム ---- */
.hero-banner__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-banner__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero-banner__heading {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap; /* 折り返し防止 */
}

.hero-banner__heading span {
  display: block;
  color: #fde68a;
  white-space: nowrap;
}

.hero-banner__description {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap; /* 折り返し防止 */
}

/* CTA ボタン群 */
.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.hero-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

/* オレンジ CTA */
.hero-btn--primary {
  background-color: #f97316;
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.45);
}

.hero-btn--primary:hover {
  background-color: #ea6c0a;
  border-color: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.55);
}

/* 白いアウトラインボタン */
.hero-btn--secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.hero-btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 矢印アイコン */
.hero-btn__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hero-btn:hover .hero-btn__arrow {
  transform: translateX(4px);
}

/* ---- 右カラム（画像エリア） ---- */
.hero-banner__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ダミー画像プレースホルダー */
.hero-banner__dummy-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-banner__dummy-img svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

.hero-banner__dummy-img p {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* スクロールヒント */
.hero-banner__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-banner__scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: hero-scroll-line 1.8s ease-in-out infinite;
}

/* ============================================================
   アニメーション
   ============================================================ */

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes hero-scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* フェードイン（JS でクラスを付与） */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-animate:nth-child(1) { transition-delay: 0.1s; }
.hero-animate:nth-child(2) { transition-delay: 0.25s; }
.hero-animate:nth-child(3) { transition-delay: 0.4s; }
.hero-animate:nth-child(4) { transition-delay: 0.55s; }

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 960px) {
  .hero-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-banner__heading,
  .hero-banner__heading span,
  .hero-banner__description {
    white-space: normal; /* 狭い幅では折り返しを許可 */
  }

  .hero-banner__actions {
    justify-content: center;
  }

  .hero-banner__visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

/* スマートフォン */
@media (max-width: 600px) {
  .hero-banner {
    padding: 100px 24px 80px;
  }

  .hero-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-banner__scroll-hint {
    display: none;
  }
}

/* ============================================================
   Header Logo
   ============================================================ */

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.site-header__logo-text {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

/* ============================================================
   Header Navigation
   ============================================================ */

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.site-header__nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.25s ease;
}

.site-header__nav-list a:hover {
  color: #0d9488;
}

.site-header__nav-list a:hover::after {
  width: 100%;
}

/* ドロップダウン */
.site-header {
  position: relative;
  z-index: 1000; /* ヒーローバナーより前面に */
}

.has-dropdown {
  position: relative;
}

.nav-arrow {
  font-size: 0.7em;
  vertical-align: middle;
  margin-left: 2px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%; /* gapなしで直接つなげる */
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 16px 0 8px; /* 上パディングで視覚的な隙間を作りつつ判定はつながる */
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  /* 初期状態：非表示 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* ホバー判定を親liまで広げる透明ブリッジ */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 16px; /* ドロップダウンとの隙間をカバー */
}

/* 表示時 */
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ドロップダウン内リンク */
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown a::after {
  display: none; /* 親のアンダーライン装飾を無効化 */
}

.nav-dropdown a:hover {
  background-color: #f0fdfa;
  color: #0d9488;
}

/* 吹き出し三角 */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  rotate: 45deg;
}

/* モバイル：ハンバーガーは将来対応のためスタック非表示 */
@media (max-width: 600px) {
  .site-header__nav-list {
    gap: 16px;
  }

  .site-header__nav-list a {
    font-size: 0.875rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px clamp(24px, 6vw, 80px) 48px;
}

/* ブランドエリア */
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}

.site-footer__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* 白抜き */
}

.site-footer__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ナビゲーション */
.site-footer__nav {
  display: flex;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.site-footer__nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
}

.site-footer__nav-group a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__nav-group a:hover {
  color: #ffffff;
}

/* コピーライト */
.site-footer__copy {
  text-align: center;
  padding: 20px clamp(24px, 6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    gap: 32px;
  }
}

/* ============================================================
   Company Overview Page
   ============================================================ */

/* ページヘッダー */
.company-overview__hero {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  padding: clamp(64px, 10vw, 120px) clamp(24px, 6vw, 80px) clamp(48px, 7vw, 80px);
}

.company-overview__hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.company-overview__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px;
}

.company-overview__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

/* テーブルエリア */
.company-overview__body {
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  background: #ffffff;
}

.company-overview__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* テーブル本体 */
.company-overview__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.75;
}

.company-overview__table tr {
  border-bottom: 1px solid #e2e8f0;
}

.company-overview__table tr:first-child {
  border-top: 1px solid #e2e8f0;
}

.company-overview__table th,
.company-overview__table td {
  padding: 24px 16px;
  text-align: left;
  vertical-align: top;
}

.company-overview__table th {
  width: 200px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.company-overview__table td {
  color: #334155;
}

/* 事業内容リスト */
.company-overview__business-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-overview__business-list li {
  padding-left: 16px;
  position: relative;
}

.company-overview__business-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d9488;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .company-overview__table th,
  .company-overview__table td {
    display: block;
    padding: 12px 0;
  }

  .company-overview__table th {
    width: auto;
    padding-bottom: 4px;
    color: #0d9488;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
  }

  .company-overview__table tr {
    padding: 16px 0;
    display: block;
  }
}
