/* ==========================================================
   ymd33.com（山田ゆか総合リンク）LP スタイルシート
   色・余白・フォントなどはこのファイルだけで調整できます。
   ブロックエディタでは各ブロックの「追加CSSクラス」欄に
   ここにあるクラス名を入れて使います。
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-raised: #f7f7f5;
  --bg-hero: #0a0a0a;
  --ink: #111111;
  --ink-soft: #55534c;
  --ink-faint: #8c8a82;
  --rule: rgba(17, 17, 17, 0.12);
  --rule-strong: rgba(17, 17, 17, 0.32);
  --accent: #111111;
  --accent-ink: #ffffff;
  --on-hero: #f4f3ef;
  --on-hero-soft: rgba(244, 243, 239, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-raised: #171614;
    --bg-hero: #000000;
    --ink: #f2f0ea;
    --ink-soft: #a8a49a;
    --ink-faint: #726e64;
    --rule: rgba(242, 240, 234, 0.14);
    --rule-strong: rgba(242, 240, 234, 0.30);
    --accent: #f2f0ea;
    --accent-ink: #0a0a0a;
    --on-hero: #f2f0ea;
    --on-hero-soft: rgba(242, 240, 234, 0.68);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Shippori Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mincho {
  font-family: "Shippori Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- スクロールで表示するアニメーション ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.has-reveal-js .reveal { opacity: 0; transform: translateY(18px); }
.has-reveal-js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

a { color: inherit; }
img, svg { max-width: 100%; height: auto; }

/* ---------- ブロックエディタ既定スタイルのリセット ---------- */
.lp-content p,
.lp-content h1, .lp-content h2, .lp-content h3, .lp-content h4 {
  margin: 0;
}
.lp-content .wp-block-group,
.lp-content .wp-block-columns,
.lp-content .wp-block-buttons {
  margin-top: 0;
  margin-bottom: 0;
}
/* グループブロックが自動生成する内側ラッパーを「透明化」し、
   実際の子要素が直接グリッド/フレックスの対象になるようにする */
.wp-block-group__inner-container {
  display: contents;
}
.wp-block-button__link {
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- 共通レイアウト ---------- */
.lp-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 24px 96px;
}
@media (max-width: 760px) {
  .lp-section { padding: 60px 10% 68px; }
}
.section-head { margin-bottom: 44px; text-align: center; }
.section-head h2 {
  margin-top: 0.5em !important;
  font-family: "Shippori Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: 0.1em;
  text-wrap: balance;
}
.rule {
  width: 1px;
  height: 28px;
  margin: 20px auto 0;
  background: var(--rule-strong);
}

/* ---------- ヘッダー（サイト共通・コード側） ---------- */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.site-chrome.scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }
.brand .brand-name { font-size: 0.9rem; letter-spacing: 0.04em; font-weight: 600; color: var(--ink); }
.side-nav-vertical {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 39;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 26px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.side-nav-vertical.scrolled {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.side-nav-vertical a {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  transition: color 0.2s ease;
}
.side-nav-vertical a:hover { color: var(--ink); }
.side-nav-mark { writing-mode: horizontal-tb; }
.side-nav-mark img { display: block; width: 26px; height: auto; }
.side-nav-vertical .side-nav-phone {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.side-nav-phone-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='3' width='20' height='15' rx='7.5'/%3E%3Cpath d='M6 18 L6 22 L11 18 Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='3' width='20' height='15' rx='7.5'/%3E%3Cpath d='M6 18 L6 22 L11 18 Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.side-nav-phone-text { writing-mode: vertical-rl; }
@media (max-width: 720px) { .side-nav-vertical { display: none; } }
@media (min-width: 721px) { .site-chrome { display: none; } }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 9px 16px;
  border: 1px solid var(--rule-strong);
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav-cta::before,
.btn-primary .wp-block-button__link::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='3' width='20' height='15' rx='7.5'/%3E%3Cpath d='M6 18 L6 22 L11 18 Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='3' width='20' height='15' rx='7.5'/%3E%3Cpath d='M6 18 L6 22 L11 18 Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-cta:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* ---------- モバイル用ナビ（ヒーロー直下・スマホ時のみ表示） ---------- */
.mobile-nav { display: none; }
@media (max-width: 720px) {
  .mobile-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    padding: 16px 10%;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
  }
  .mobile-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.85rem;
  }
  .mobile-nav a:hover { color: var(--ink); }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--on-hero);
  background: var(--bg-hero);
  overflow: hidden;
  padding: 64px 24px !important;
  max-width: none !important;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.88) 100%),
    url("https://ymd33.com/cms/wp-content/uploads/2023/02/THIS-IS-YOUR-LIFE-The_Holstee_Manifesto.jpg") center 30% / cover no-repeat;
}
.hero > *,
.hero .wp-block-group__inner-container > * {
  position: relative;
  z-index: 1;
}
.hero .eyebrow { color: var(--on-hero-soft); letter-spacing: 0.3em; }
.hero h1 {
  margin-top: 18px !important;
  font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.35;
  text-wrap: balance;
}
.hero .sub {
  margin: 6px auto 0 !important;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--on-hero-soft);
}
.hero .roles {
  margin: 26px 0 0 !important;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--on-hero-soft);
}

/* ---------- ヒーロー内の名刺カード ---------- */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.business-card {
  background: var(--on-hero);
  width: 100%;
  max-width: 480px;
  min-height: 300px;
  margin: 0 auto;
  padding: 32px 34px;
  display: flex;
  border: 1px solid rgba(10, 10, 10, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: cardIn 1.1s ease 0.15s both;
}
@media (prefers-reduced-motion: reduce) {
  .business-card { animation: none; }
}
.card-main {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}
.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero .business-card .eyebrow { color: var(--ink-faint) !important; }
.hero .business-card h1 {
  margin-top: 10px !important;
  color: var(--ink) !important;
  font-size: clamp(1.3rem, 4vw, 1.7rem) !important;
}
.hero .business-card .sub {
  color: var(--ink-soft) !important;
  margin: 4px 0 0 !important;
}
.hero .business-card .roles {
  margin: 16px 0 0 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.04em;
  color: var(--ink-faint) !important;
}
.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-photo {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-text .card-mark { margin-bottom: 14px; }
.card-mark img { width: 28px; height: 28px; object-fit: contain; display: block; }
.hero .business-card .phone-line {
  margin: 14px 0 0 !important;
  font-size: 0.78rem !important;
}
.phone-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.phone-line a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='3' width='20' height='15' rx='7.5'/%3E%3Cpath d='M6 18 L6 22 L11 18 Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='3' width='20' height='15' rx='7.5'/%3E%3Cpath d='M6 18 L6 22 L11 18 Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.phone-line a:hover { color: var(--ink-soft); }

.hero .business-card .instagram-line {
  margin: 8px 0 0 !important;
  font-size: 0.78rem !important;
}
.instagram-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.instagram-line a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='6'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='6'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain;
}

.profile-spec-icon-link {
  display: inline-flex;
  align-items: center;
  vertical-align: -2px;
  margin-left: 6px;
  color: var(--ink-faint);
}
.profile-spec-icon-link:hover { color: var(--ink); }
.profile-spec-icon-link::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='6'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='6'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain;
}
.instagram-line a:hover { color: var(--ink-soft); }

@media (max-width: 600px) {
  .card-main { flex-direction: column; }
  .card-media { margin-top: 20px; }
}

.btn-ghost .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost .wp-block-button__link:hover { border-color: var(--ink); }

/* ---------- プロフィール ---------- */
.profile-content { max-width: 640px; margin: 0 auto; }
.profile-eyebrow {
  text-align: center;
  text-transform: none;
  font-family: "Shippori Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: 0.1em;
  color: var(--ink);
}
.profile-body { font-size: 0.94rem; line-height: 2.1; color: var(--ink-soft); margin-top: 24px !important; }
.profile-body strong { color: var(--ink); }
.profile-spec {
  list-style: none;
  margin: 0 auto !important;
  padding: 0;
  max-width: 360px;
}
.profile-spec li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.profile-spec li:first-child { border-top: 1px solid var(--rule); }
.profile-spec-label {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.profile-spec-value { font-size: 0.86rem; color: var(--ink-soft); text-align: right; }
.profile-numerology {
  text-align: center;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.profile-tags {
  margin-top: 20px !important;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--ink-faint);
}

/* ---------- 仕事・活動 ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}
@media (max-width: 900px) {
  .activity-grid { grid-template-columns: 1fr; gap: 56px; }
}
.activity-card { display: flex; flex-direction: column; }
.activity-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-raised);
  margin-bottom: 22px;
}
.activity-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.reveal-img { opacity: 1; transform: none; transition: opacity 1s ease, transform 1s ease, filter 5.4s ease; }
.has-reveal-js .reveal-img { opacity: 0; transform: scale(1.06); filter: grayscale(1); }
.has-reveal-js .reveal-img.in { opacity: 1; transform: scale(1); filter: grayscale(0); }
@media (prefers-reduced-motion: reduce) { .reveal-img { opacity: 1; transform: none; filter: none; transition: none; } }
.activity-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.activity-card .eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.activity-card h3 {
  margin-bottom: 6px !important;
  font-family: "Shippori Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.activity-card h3 a { text-decoration: none; }
.activity-card h3 a:hover { text-decoration: underline; }
.activity-role { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 18px !important; }
.activity-card p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 12px !important;
}
.activity-card .wp-block-buttons { margin-top: 18px !important; justify-content: center; }

/* ---------- お問い合わせ ---------- */
.contact-inner { text-align: center; max-width: 520px; }
.contact-inner .profile-body { margin: 0 auto; }
.contact-ctas { margin-top: 36px !important; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- フッター（サイト共通・コード側） ---------- */
footer.site {
  padding: 28px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  gap: 12px;
  flex-wrap: wrap;
}
footer.site .brand-name { color: var(--ink-faint); font-size: 0.8rem; }

/* ---------- 右下フローティング「上に戻る」ボタン ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 50;
}
.back-to-top.show {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { opacity: 1; }
@media (min-width: 721px) {
  .back-to-top { left: 20px; right: auto; }
}
@media (max-width: 480px) {
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---------- スマホ最適化（推奨表示） ---------- */
@media (max-width: 480px) {
  .hero { min-height: 100svh; padding: 100px 10% 64px !important; }
  .business-card { max-width: 300px; min-height: 340px; padding: 32px 26px; }
  .card-photo { width: 126px; height: 126px; }
  .hero .business-card h1 { font-size: clamp(1.3rem, 6vw, 1.6rem) !important; }
  header.site { padding: 12px 10%; }
  .nav-cta { padding: 8px 12px; font-size: 0.74rem; }
  .lp-section { padding: 52px 10% 60px; }
  footer.site { justify-content: center; text-align: center; }
}
