/*
Theme Name: hiya
Theme URI: https://hiyasan.com/
Author: らふがき（Takashi Kojima）
Description: 観光インフルエンサー「ひやさん」公式サイト用テーマ。構造確認＋軽いUI（サンプル入り）バージョン。くぼたび風のポップで可愛いトーンに、ひやさんの水色をアクセントに配色。UI本実装前に構造をクライアント確認するためのデモ表示に対応。
Version: 0.3.2-preview
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hiya
*/

/* =========================================================
   ひやさん公式サイト（軽量UI・サンプルプレビュー版）
   トーン：ポップ／可愛い／水色アクセント（くぼたび参考）
   ========================================================= */

:root {
  --hiya-accent: #33c3e8;       /* ひやさんの水色 */
  --hiya-accent-d: #1aa9cf;
  --hiya-pink: #ff8fab;
  --hiya-yellow: #ffd23f;
  --hiya-mint: #7ee0c0;
  --hiya-orange: #ffb35c;
  --hiya-ink: #2c2c3a;
  --hiya-sub: #6b6b7b;
  --hiya-line: #eceef2;
  --hiya-bg-soft: #f2fbfe;
  --hiya-bg-soft2: #fff7fb;
  --hiya-shadow: 0 10px 30px rgba(51, 195, 232, .12);
  --hiya-shadow-s: 0 4px 14px rgba(44, 44, 58, .08);
  --hiya-radius: 20px;
  --hiya-max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--hiya-ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.85;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.hiya-container {
  width: 100%;
  max-width: var(--hiya-max);
  margin-inline: auto;
  padding-inline: 22px;
}

/* --- ヘッダー / グローバルナビ --- */
.hiya-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hiya-line);
}
.hiya-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.hiya-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--hiya-accent-d);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.hiya-logo::before {
  content: "";
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bff0fb, var(--hiya-accent));
  box-shadow: 0 3px 8px rgba(51,195,232,.4);
}

/* 開閉トグル（チェックボックス）とハンバーガー：PCでは非表示 */
.hiya-nav-toggle { display: none; }
.hiya-hamburger { display: none; }

/* ナビ本体（PC） */
.hiya-gnav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.hiya-gnav > ul > li { position: relative; }
.hiya-gnav > ul > li > a {
  display: block; padding: 10px 15px; font-weight: 700; font-size: 15px; border-radius: 11px;
  transition: background .15s, color .15s;
}
.hiya-gnav > ul > li > a:hover { background: var(--hiya-bg-soft); color: var(--hiya-accent-d); }
.hiya-gnav .current-menu-item > a { color: var(--hiya-accent-d); }

/* 実績一覧のドロップダウン（PC・ホバーで表示） */
.hiya-gnav ul ul {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 14px; box-shadow: var(--hiya-shadow);
  min-width: 200px; opacity: 0; visibility: hidden; transition: .18s;
}
.hiya-gnav > ul > li:hover > ul,
.hiya-gnav > ul > li:focus-within > ul { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.hiya-gnav ul ul li { display: block; }
.hiya-gnav ul ul a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hiya-gnav ul ul a:hover { background: var(--hiya-bg-soft); color: var(--hiya-accent-d); }

/* --- モバイル：ハンバーガーメニュー --- */
@media (max-width: 820px) {
  .hiya-hamburger {
    display: inline-flex; flex-direction: column; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  }
  .hiya-hamburger span,
  .hiya-hamburger::before,
  .hiya-hamburger::after {
    content: ""; display: block; height: 2.5px; width: 24px; margin: 3px auto;
    background: var(--hiya-ink); border-radius: 2px; transition: transform .2s, opacity .2s;
  }
  .hiya-nav-toggle:checked ~ .hiya-hamburger::before { transform: translateY(8px) rotate(45deg); }
  .hiya-nav-toggle:checked ~ .hiya-hamburger span { opacity: 0; }
  .hiya-nav-toggle:checked ~ .hiya-hamburger::after { transform: translateY(-8px) rotate(-45deg); }

  .hiya-gnav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--hiya-line); box-shadow: var(--hiya-shadow);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .hiya-nav-toggle:checked ~ .hiya-gnav { max-height: 82vh; overflow: auto; }
  .hiya-gnav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0; }
  .hiya-gnav > ul > li { border-bottom: 1px solid var(--hiya-line); }
  .hiya-gnav > ul > li:last-child { border-bottom: 0; }
  .hiya-gnav > ul > li > a { padding: 15px 22px; border-radius: 0; font-size: 16px; }
  .hiya-gnav > ul > li > a:hover { background: var(--hiya-bg-soft); }

  /* サブメニュー（実績の5事業）は開いた状態で字下げ表示 */
  .hiya-gnav ul ul {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border-radius: 0; min-width: 0; padding: 4px 0 8px;
    background: var(--hiya-bg-soft);
  }
  .hiya-gnav ul ul a { padding: 11px 22px 11px 42px; font-size: 14px; }
}

/* --- セクション --- */
.hiya-section { padding-block: 72px; position: relative; }
.hiya-section--soft { background: var(--hiya-bg-soft); }
.hiya-section--soft2 { background: var(--hiya-bg-soft2); }
.hiya-section__label {
  display: inline-block;
  background: var(--hiya-accent);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
  box-shadow: 0 4px 10px rgba(51,195,232,.35);
}
.hiya-section__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 0 0 14px; letter-spacing: .01em; }
.hiya-section__lead { margin: 0 0 34px; color: var(--hiya-sub); }

/* セクション見出し（ラベル＋タイトル＋右側イラスト） */
.hiya-section__head { margin: 0 0 14px; }
.hiya-section__titlewrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hiya-section__titlewrap .hiya-section__title { margin: 0; }
.hiya-section__illust { flex: 0 0 auto; width: clamp(56px, 8vw, 92px); height: auto; }
.hiya-section__illust--ph { display: inline-flex; }
.hiya-section__illust--ph svg { width: 100%; height: auto; display: block; }
.hiya-center .hiya-section__titlewrap { justify-content: center; }

/* --- ヒーロー --- */
.hiya-hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, #d8f5fd 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 20%, #fff0f6 0%, transparent 55%),
    #fff;
  overflow: hidden;
  padding-block: 84px 72px;
}
/* 文字50% / 動画50% */
.hiya-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hiya-hero__copy h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; line-height: 1.4; margin: 14px 0 18px; }
.hiya-hero__copy .hiya-accent { color: var(--hiya-accent-d); }
.hiya-hero__lead { color: var(--hiya-sub); font-size: 16px; margin-bottom: 28px; }
.hiya-badge {
  display: inline-block; background: #fff; color: var(--hiya-accent-d); font-weight: 800; font-size: 13px;
  border: 2px solid var(--hiya-accent); border-radius: 999px; padding: 6px 16px;
}
.hiya-hero__visual { position: relative; }

/* --- ヒーローの縦型リール（右→左スライド） ---
   ・可視範囲は動画エリアの一部だけ（overflow:hidden）で、瞬間的に2〜3枚が見える。
   ・8枚を2周分（計16枚）並べて -50% までスライド→無限ループ。 */
.hiya-hero__reel {
  position: relative;
  overflow: hidden;
  height: min(74vh, 600px);
  border-radius: 20px;
  /* 左右の端をふわっと隠して「流れて見える」感じにする */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hiya-hero__track {
  display: flex;
  gap: 16px;
  height: 100%;
  width: max-content;
  animation: hiya-reel 26s linear infinite;
}
.hiya-reel__item {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 9/16;      /* 高さ基準で 9:16 の縦型 */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--hiya-shadow);
  background: #000;
}
.hiya-reel__item svg, .hiya-reel__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hiya-reel {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* 半分（1周分）流れたら先頭へ戻る＝シームレス */
}
@media (prefers-reduced-motion: reduce) {
  .hiya-hero__track { animation: none; }
}

/* 旧・コラージュ（未使用になったが念のため残置） */
.hiya-hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hiya-hero__collage .ph { border-radius: 18px; overflow: hidden; box-shadow: var(--hiya-shadow); }
.hiya-hero__collage .ph:nth-child(1) { aspect-ratio: 3/4; }
.hiya-hero__collage .ph:nth-child(2) { aspect-ratio: 4/3; margin-top: 30px; }
.hiya-hero__collage .ph:nth-child(3) { aspect-ratio: 4/3; }
.hiya-hero__collage .ph:nth-child(4) { aspect-ratio: 3/4; margin-top: -18px; }
.hiya-bubble {
  position: absolute; top: -10px; left: -14px; background: #fff; color: var(--hiya-ink);
  font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 14px; box-shadow: var(--hiya-shadow-s);
  z-index: 2;
}
.hiya-bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -8px; border: 8px solid transparent;
  border-top-color: #fff; border-bottom: 0;
}
@media (max-width: 820px) {
  .hiya-hero__inner { grid-template-columns: 1fr; }
  .hiya-hero__visual { order: -1; }
  .hiya-hero__reel { height: 52vh; max-height: 440px; }
}

/* --- ボタン --- */
.hiya-btn {
  display: inline-block; font-weight: 800; border-radius: 999px; padding: 13px 34px;
  border: 2px solid var(--hiya-accent); color: var(--hiya-accent-d); background: #fff;
  transition: transform .15s, box-shadow .15s; box-shadow: var(--hiya-shadow-s);
}
.hiya-btn:hover { transform: translateY(-2px); box-shadow: var(--hiya-shadow); }
.hiya-btn--primary { background: var(--hiya-accent); color: #fff; border-color: var(--hiya-accent); }
.hiya-center { text-align: center; }
.hiya-mt { margin-top: 34px; }

/* --- カードグリッド（実績・取材） --- */
.hiya-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hiya-grid--clients { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .hiya-grid { grid-template-columns: repeat(2, 1fr); } .hiya-grid--clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .hiya-grid { grid-template-columns: 1fr; } .hiya-grid--clients { grid-template-columns: repeat(2, 1fr); } }

.hiya-card {
  background: #fff; border-radius: var(--hiya-radius); overflow: hidden;
  box-shadow: var(--hiya-shadow-s); transition: transform .18s, box-shadow .18s;
}
.hiya-card:hover { transform: translateY(-4px); box-shadow: var(--hiya-shadow); }
.hiya-card a { display: block; height: 100%; }
/* カード画像は 4:5（縦長）。画像の下はタイトル中心のコンパクトな情報だけ。 */
.hiya-card__thumb { aspect-ratio: 4/5; background: var(--hiya-bg-soft); overflow: hidden; }
.hiya-card__thumb img, .hiya-card__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.hiya-card__body { padding: 12px 14px 16px; }
.hiya-card__cat {
  display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--hiya-accent);
  padding: 2px 10px; border-radius: 999px; margin: 0 0 7px;
}
.hiya-card__title { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.5; }
.hiya-card__date { font-size: 11.5px; color: var(--hiya-sub); margin: 6px 0 0; }
.hiya-card__external { display: inline-block; font-size: 12px; color: var(--hiya-accent-d); font-weight: 700; margin-top: 6px; }

/* カテゴリ別カラー（タグ） */
.cat-sns-pr { background: var(--hiya-accent); }
.cat-casting { background: var(--hiya-pink); }
.cat-event { background: var(--hiya-orange); }
.cat-consulting { background: var(--hiya-mint); color: #1d6b53; }
.cat-operation { background: var(--hiya-yellow); color: #7a5a00; }
.cat-operation-consulting { background: var(--hiya-mint); color: #1d6b53; }

/* --- 実績サブタブ --- */
.hiya-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 26px; }
.hiya-tabs a { display: block; border: 2px solid var(--hiya-line); border-radius: 999px; padding: 8px 20px; font-size: 14px; font-weight: 700; color: var(--hiya-sub); background: #fff; }
.hiya-tabs a:hover { border-color: var(--hiya-accent); color: var(--hiya-accent-d); }
.hiya-tabs .is-active a { background: var(--hiya-accent); color: #fff; border-color: var(--hiya-accent); }
.hiya-tab-desc { margin: -6px 0 30px; color: var(--hiya-sub); background: var(--hiya-bg-soft); padding: 22px 24px; border-radius: 16px; }
.hiya-tab-desc__title { font-size: clamp(17px, 2.2vw, 20px); font-weight: 800; color: var(--hiya-ink); margin: 0 0 12px; }
.hiya-tab-desc p { margin: 0 0 10px; }
.hiya-tab-desc p:last-child { margin-bottom: 0; }

/* --- 動画セクション（ショート動画・縦型） --- */
.hiya-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .hiya-video-grid { grid-template-columns: repeat(2, 1fr); } }
.hiya-video {
  aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; position: relative;
  box-shadow: var(--hiya-shadow-s); background: #000;
}
.hiya-video svg, .hiya-video img { width: 100%; height: 100%; object-fit: cover; }
.hiya-video__play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
  background: rgba(255,255,255,.9); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.hiya-video__play::after { content: ""; margin-left: 4px; border: 11px solid transparent; border-left-color: var(--hiya-accent-d); border-right: 0; }
.hiya-video__cap { position: absolute; left: 12px; bottom: 12px; color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* --- 取引企業ロゴ --- */
.hiya-grid--clients li { background: #fff; border-radius: 16px; box-shadow: var(--hiya-shadow-s); aspect-ratio: 3/2; display: grid; place-items: center; padding: 14px; }
.hiya-grid--clients svg, .hiya-grid--clients img { max-height: 100%; width: auto; }

/* --- パンくず --- */
.hiya-bread { font-size: 12.5px; color: var(--hiya-sub); padding-block: 16px 0; }
.hiya-bread a:hover { color: var(--hiya-accent-d); }

/* --- お問い合わせフォーム --- */
.hiya-form { max-width: 660px; background: #fff; border-radius: var(--hiya-radius); box-shadow: var(--hiya-shadow-s); padding: 30px; }
.hiya-form p { margin: 0 0 20px; }
.hiya-form label { display: block; font-weight: 800; margin-bottom: 8px; }
.hiya-form input[type="text"], .hiya-form input[type="email"], .hiya-form select, .hiya-form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--hiya-line); border-radius: 12px; font: inherit; background: #fbfdfe;
}
.hiya-form input:focus, .hiya-form select:focus, .hiya-form textarea:focus { outline: none; border-color: var(--hiya-accent); background: #fff; }
.hiya-form textarea { min-height: 170px; resize: vertical; }
.hiya-required { color: #fff; background: var(--hiya-pink); font-size: 11px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* --- 記事本文 --- */
.hiya-article { max-width: 780px; }
.hiya-article h2 { font-size: 22px; margin-top: 34px; }
.hiya-article img { border-radius: 14px; margin-block: 18px; }

/* --- ひやさんとは？：画像と文章が左右交互 --- */
.hiya-about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hiya-about-row + .hiya-about-row { margin-top: 56px; }
.hiya-about-row:first-of-type { margin-top: 8px; }
/* 奇数番目は画像を右へ */
.hiya-about-row--reverse .hiya-about-media { order: 2; }
.hiya-about-media__img {
  aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  box-shadow: var(--hiya-shadow); background: var(--hiya-bg-soft); max-width: 420px; margin-inline: auto;
}
.hiya-about-media__img img, .hiya-about-media__img svg { width: 100%; height: 100%; object-fit: cover; }
.hiya-about-text h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin: 0 0 14px; }
.hiya-about-text p { margin: 0 0 14px; }
@media (max-width: 820px) {
  .hiya-about-row { grid-template-columns: 1fr; gap: 20px; }
  .hiya-about-row + .hiya-about-row { margin-top: 40px; }
  .hiya-about-row--reverse .hiya-about-media { order: 0; } /* 画像は常に上 */
  .hiya-about-media__img { max-width: 340px; }
}

/* --- 吹き出しCTA（お問い合わせはこちら！） --- */
.hiya-cta-bubble {
  position: relative; display: inline-block;
  background: var(--hiya-accent); color: #fff; font-weight: 800; font-size: 17px;
  padding: 20px 40px; border-radius: 26px; box-shadow: var(--hiya-shadow);
  transition: transform .15s, box-shadow .15s;
}
.hiya-cta-bubble:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(51,195,232,.3); }
.hiya-cta-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  border: 10px solid transparent; border-top-color: var(--hiya-accent); border-bottom: 0;
}

/* --- フッター --- */
.hiya-footer { border-top: 1px solid var(--hiya-line); padding-block: 40px; margin-top: 20px; font-size: 13px; color: var(--hiya-sub); background: var(--hiya-bg-soft); }
.hiya-footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0 0 18px; }
.hiya-footer__nav a { font-weight: 700; }
.hiya-footer__nav a:hover { color: var(--hiya-accent-d); }

/* --- プレビュー注記（本番前に削除） --- */
.hiya-devnote {
  background: linear-gradient(90deg, var(--hiya-accent), var(--hiya-mint));
  color: #fff; font-size: 12.5px; font-weight: 700; text-align: center;
  padding: 8px 14px;
}
