/* ============================================================
   MOVIA site.css — LP（index.html）のデザイントークンを抽出した
   下層ページ共通スタイル。Tailwind非依存・このファイル単体で成立。
   ============================================================ */

:root {
  --cream: #FFFAF0;
  --cream-hi: #FFF4DC;
  --ink: #1F1147;
  --sub: #5B4F8C;
  --mute: #9892B5;
  --line: #EAE4D2;
  --coral: #E96B6B;
  --coral-dk: #E84A4A;
  --lemon: #F2CC4A;
  --lime: #86C18B;
  --lime-dk: #48B956;
  --sky: #6CBCB6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

.h-display, h1, h2, h3 {
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

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

/* ---- レイアウト ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
/* ヘッダーはLP（max-w-[1320px] / px-5 lg:px-8）と横位置を一致させる */
.site-header .wrap { max-width: 1320px; padding: 0 20px; }
@media (min-width: 1024px) { .site-header .wrap { padding: 0 32px; } }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, .95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(31, 17, 71, .1);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.site-header .logo img { height: 28px; width: auto; display: block; }
.site-header .site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.site-header .site-nav a { text-decoration: none; }
.site-header .site-nav a:hover { color: var(--coral); }

/* ハンバーガー（下層ページ・モバイル） */
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer;
  padding: 4px 6px;
}
.mobile-menu { padding: 6px 20px 18px; border-top: 1px solid rgba(31,17,71,.1); background: var(--cream); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn-pop) { display: block; padding: 11px 0; font-weight: 700; font-size: 15px; text-decoration: none; }
.mobile-menu a:not(.btn-pop):hover { color: var(--coral); }
.mobile-menu .btn-pop { width: 100%; margin-top: 10px; }

@media (max-width: 1023px) {
  .site-header .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
/* LPヘッダーのCTA（hidden md:inline-flex）と同じ表示条件 */
@media (max-width: 767px) {
  .site-header .header-cta { display: none; }
}

/* ---- ポップボタン（LP .btn-pop 抽出） ---- */
.btn-pop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: 1rem;
  white-space: nowrap;
  border: 2px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  transition: transform .2s cubic-bezier(.16,.84,.44,1), box-shadow .2s, background .25s;
}
.btn-pop:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }
.btn-pop:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-pop.is-coral { background: var(--coral); color: #fff; }
.btn-pop.is-small { padding: .5rem 1rem; font-size: .75rem; box-shadow: 3px 3px 0 var(--ink); }

/* ---- ポップカード（LP .pop-card 抽出） ---- */
.pop-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
}

/* ---- テープ見出し（LP .tape 抽出） ---- */
.tape {
  display: inline-block;
  padding: .35rem .9rem;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(31,17,71,.18);
  clip-path: polygon(2% 8%, 99% 0%, 100% 92%, 1% 100%);
}

/* ---- マーカー下線 ---- */
.uline-coral { background: linear-gradient(transparent 62%, rgba(255,107,107,.45) 62%, rgba(255,107,107,.45) 92%, transparent 92%); padding: 0 .08em; }
.uline-lemon { background: linear-gradient(transparent 62%, rgba(255,217,61,.65) 62%, rgba(255,217,61,.65) 92%, transparent 92%); padding: 0 .08em; }

/* ---- ページヒーロー ---- */
.page-hero { padding: 56px 0 32px; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .4em 0 .3em; }
.page-hero .lede { font-weight: 700; color: var(--sub); max-width: 44em; }

/* ---- パンくず ---- */
.breadcrumb {
  font-size: 12px; font-weight: 700; color: var(--mute);
  padding: 14px 20px 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--mute); }
.breadcrumb a { color: var(--sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral); }

/* ---- 記事ヒーロー画像 ---- */
.post-hero { margin: 8px 0 4px; }
.post-hero img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink);
}

/* ---- 記事本文 ---- */
.prose { max-width: 100%; }
.prose h2 {
  font-size: 1.45rem; margin: 2.2em 0 .7em;
  padding-left: .6em; border-left: 6px solid var(--coral);
}
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.prose p { margin: .8em 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: .8em 0; }
.prose li { margin: .35em 0; }
.prose li input[type="checkbox"] { margin-right: .45em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.2em 0; padding: .8em 1.2em;
  background: var(--cream-hi); border-left: 4px solid var(--lemon); border-radius: 8px;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.prose th, .prose td { border: 1.5px solid var(--ink); padding: .55em .8em; text-align: left; vertical-align: top; }
.prose th { background: var(--cream-hi); }
.prose code { background: #F3EFFA; padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.prose hr { border: none; border-top: 2px dashed var(--line); margin: 2em 0; }

/* ---- 記事メタ ---- */
.post-meta { font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 1.5em; }
.post-meta .cluster-tag {
  display: inline-block; margin-left: 10px; padding: 1px 10px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 11px; color: var(--ink); background: var(--cream-hi);
}

/* ---- CTAブロック（記事末尾） ---- */
.cta-block {
  margin: 3em 0 1em; padding: 28px 28px 30px;
  background: var(--cream-hi);
  border: 2px solid var(--ink); border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
}
.cta-block .cta-title { font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: 1.25rem; margin: 0 0 .5em; }
.cta-block p { margin: 0 0 1.1em; font-weight: 700; font-size: .95rem; color: var(--sub); }

/* ---- ブログカード ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 28px 0 56px; }
.blog-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.16,.84,.44,1), box-shadow .25s;
}
.blog-card:hover { transform: translate(-4px,-4px); box-shadow: 9px 9px 0 var(--ink); }
.blog-card.has-thumb { padding-top: 0; overflow: hidden; }
.blog-card .thumb { display: block; margin: -0px 0 4px; border-bottom: 2px solid var(--ink); }
.blog-card.has-thumb { padding: 0; }
.blog-card.has-thumb .thumb { margin: 0; }
.blog-card.has-thumb > :not(.thumb) { padding-left: 24px; padding-right: 24px; }
.blog-card.has-thumb > .date { padding-top: 18px; }
.blog-card.has-thumb > .more { padding-bottom: 24px; }
.blog-card .thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card .date { font-size: 12px; font-weight: 700; color: var(--mute); }
.blog-card h2, .blog-card h3 { font-size: 1.08rem; margin: 0; line-height: 1.5; }
.blog-card p { margin: 0; font-size: .88rem; font-weight: 700; color: var(--sub); }
.blog-card .more { margin-top: auto; font-size: .85rem; font-weight: 900; color: var(--coral); }

/* ---- 関連記事 ---- */
.related { margin: 3em 0; }
.related .related-title { font-size: 1.1rem; margin-bottom: .6em; }

/* ---- FAQ ---- */
.faq-cat { margin: 2.4em 0 1em; font-size: 1.3rem; }
details.faq-item {
  padding: 18px 22px; margin: 14px 0;
}
details.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: 1.02rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "＋"; color: var(--coral); font-size: 1.3rem; flex-shrink: 0; transition: transform .25s; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-a { padding-top: 12px; font-size: .95rem; font-weight: 700; }

/* ---- フッター ---- */
.site-footer {
  margin-top: 72px;
  border-top: 3px solid var(--ink);
  background: var(--cream);
  padding: 44px 0 28px;
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .logo img { height: 26px; width: auto; }
.site-footer .desc { font-size: .85rem; font-weight: 700; max-width: 24em; color: var(--sub); }
.site-footer h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(31,17,71,.6); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; font-size: .9rem; font-weight: 700; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--coral); }
.site-footer .legal {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(31,17,71,.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12px; font-weight: 700; color: var(--sub);
}

/* ---- 404 ---- */
.page-404 { text-align: center; padding: 96px 20px; }
.page-404 .code { font-size: 5rem; font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; color: var(--coral); line-height: 1; }

::selection { background: var(--lemon); color: var(--ink); }
