/*
Theme Name: HONRAI
Theme URI: https://honrai.example.com
Author: HONRAI_FACTORY
Description: HONRAI 自社HP用カスタムテーマ。AI 製造工場（漫画 / キャリアカード / KAIDO WALK / 世界観IP）の成果物を非公開で保存・閲覧する個人ポータル。和テイスト（藍・朱）× モダン工場感。
Version: 0.3.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: honrai
*/

:root {
  --ink: #14161f;
  --ink-2: #1d2030;
  --ai: #243b6b;        /* 藍 indigo */
  --ai-soft: #3f5ea8;
  --shu: #e0563b;       /* 朱 vermillion */
  --shu-soft: #f07a5f;
  --paper: #f7f4ee;     /* 和紙 */
  --paper-2: #efe9df;
  --gold: #c9a14a;
  --text: #1c1f29;
  --text-dim: #5a6072;
  --line: rgba(0, 0, 0, 0.1);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 31, 0.12);
  --max: 1120px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ai); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--shu); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--ai), var(--shu));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; letter-spacing: .04em;
  box-shadow: var(--shadow);
}
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: .14em; color: var(--ink); }
.brand__sub { font-size: 11px; color: var(--text-dim); letter-spacing: .22em; }

.nav { display: flex; gap: 22px; align-items: center; }
.nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }
.nav__cta {
  background: var(--ink); color: #fff !important;
  padding: 9px 16px; border-radius: 999px; font-size: 13px;
}
.nav__cta:hover { background: var(--shu); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(224, 86, 59, .35), transparent 60%),
    radial-gradient(900px 600px at 0% 10%, rgba(63, 94, 168, .5), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ai) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 50% 0%, #000, transparent 80%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 92px 0 104px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .18em;
  margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.18; margin: 0 0 18px; font-weight: 900; letter-spacing: .01em;
}
.hero h1 .accent { color: var(--shu-soft); }
.hero p { font-size: clamp(15px, 2.2vw, 19px); max-width: 620px; color: rgba(255,255,255,.86); margin: 0 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--shu); color: #fff; }
.btn--primary:hover { background: var(--shu-soft); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--large { padding: 16px 28px; font-size: 16px; }
.hero__note { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.72); }
.hero__inner--center { text-align: center; }
.hero__inner--center p { margin-left: auto; margin-right: auto; }
.hero__split {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: 88px 0 96px;
}
.hero__mascot img { margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); }
.hero--home .hero__inner { padding: 92px 0 88px; }
.hero--b .hero__inner { padding: 88px 0 96px; }
.hero__actions--center { justify-content: center; }

/* ---------- FC (B page) ---------- */
.fc-support-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.fc-support-card h3 { margin: 0 0 10px; color: var(--ink); font-size: 20px; }
.fc-support-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

.fc-pricing {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
}
.fc-pricing__table { width: 100%; border-collapse: collapse; }
.fc-pricing__table th,
.fc-pricing__table td {
  padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.fc-pricing__table th { width: 38%; color: var(--text-dim); font-size: 14px; font-weight: 700; }
.fc-pricing__table td { color: var(--ink); font-size: 15px; }
.fc-pricing__table td strong { font-size: 28px; color: var(--shu); }
.fc-pricing__table td span { display: block; margin-top: 4px; font-size: 13px; color: var(--text-dim); }
.fc-pricing__note { margin: 16px 0 0; font-size: 13px; color: var(--text-dim); }

.cta-band__inner--stack { grid-template-columns: 1fr; text-align: center; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.fc-inquiry-note { margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.65); text-align: center; }

/* ---------- Home entry cards ---------- */
.entry-grid { margin-top: 8px; }
.entry-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  color: inherit;
}
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,22,31,.16); color: inherit; }
.entry-card__label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--shu); margin-bottom: 10px; }
.entry-card h2 { margin: 0 0 12px; font-size: 28px; color: var(--ink); }
.entry-card p { margin: 0 0 18px; color: var(--text-dim); font-size: 15px; }
.entry-card__link { font-weight: 800; color: var(--ai); }
.entry-card--b .entry-card__label { color: var(--ai-soft); }

.home-quick {
  display: flex; align-items: center; gap: 28px; justify-content: center; text-align: left;
}
.home-quick h2 { margin: 0 0 8px; font-size: 24px; color: var(--ink); }
.home-quick p { margin: 0 0 16px; color: var(--text-dim); }

/* ---------- C page ---------- */
.check-list {
  max-width: 680px; margin: 0 auto 24px; padding: 0; list-style: none;
}
.check-list li {
  position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); font-size: 16px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--shu); font-weight: 800;
}
.section__lead--center { text-align: center; }

.point-grid { align-items: stretch; }
.point-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.point-card__num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-soft), var(--shu)); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.point-card h3 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.point-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

.steps {
  max-width: 720px; margin: 0 auto; padding: 0; list-style: none; counter-reset: step;
}
.steps li {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: step;
}
.steps li::before {
  content: counter(step); font-weight: 900; color: var(--shu); margin-right: 12px; min-width: 24px;
}
.steps li strong { flex: 1; color: var(--ink); }
.steps li span { color: var(--text-dim); font-size: 14px; }

.cta-band { background: linear-gradient(160deg, var(--ink), var(--ai)); color: #fff; }
.cta-band__inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 34px); }
.cta-band p { margin: 0; color: rgba(255,255,255,.84); }
.cta-band__action { text-align: center; }
.cta-band__mascot { margin: 0 auto 12px; }

.note--soft { border-left-color: var(--ai-soft); }

.creator-section { padding-top: 72px; padding-bottom: 72px; }
.creator-profile {
  display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 32px; box-shadow: var(--shadow);
}
.creator-profile__photo { margin: 0; }
.creator-profile__photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(20, 22, 31, 0.12);
}
.creator-profile__body p { margin: 0 0 16px; color: var(--text); }
.section__title--left { text-align: left; margin-top: 8px; }
.creator-tags {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 8px 0 18px; padding: 0;
}
.creator-tags li {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--ai);
}
.creator-profile__sign { margin: 0; font-weight: 800; color: var(--ink); letter-spacing: .12em; font-size: 18px; }
.creator-profile__catch {
  margin: 0 0 14px; font-size: clamp(18px, 2.5vw, 22px); font-weight: 900;
  color: var(--shu); letter-spacing: .06em; line-height: 1.5;
}

/* ---------- Section ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__eyebrow { color: var(--shu); font-weight: 800; letter-spacing: .24em; font-size: 12px; }
.section__title { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 12px; font-weight: 900; color: var(--ink); }
.section__lead { color: var(--text-dim); font-size: 16px; }

/* ---------- Lines grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.line-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.line-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,22,31,.16); }
.line-card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--ai-soft), var(--ai)); color: #fff;
}
.line-card:nth-child(2) .line-card__icon { background: linear-gradient(135deg, var(--shu-soft), var(--shu)); }
.line-card:nth-child(3) .line-card__icon { background: linear-gradient(135deg, #6ea8c9, #3f5ea8); }
.line-card:nth-child(4) .line-card__icon { background: linear-gradient(135deg, var(--gold), #a07c2e); }
.line-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.line-card p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ---------- Works ---------- */
.works-grid { grid-template-columns: repeat(3, 1fr); }
.work {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease;
}
.work:hover { transform: translateY(-4px); }
.work__thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--paper-2), #dcd5c8); overflow: hidden; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 16px 18px; }
.work__type { font-size: 11px; letter-spacing: .14em; color: var(--shu); font-weight: 800; text-transform: uppercase; }
.work__title { font-size: 16px; margin: 6px 0 4px; color: var(--ink); font-weight: 700; }
.work__date { font-size: 12px; color: var(--text-dim); }
.works-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-dim); background: #fff;
}

/* ---------- Private note ---------- */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--shu);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.note__icon { font-size: 24px; }
.note h4 { margin: 0 0 6px; color: var(--ink); }
.note p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0 32px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer small { color: rgba(255,255,255,.5); }

/* ---------- Single / Archive ---------- */
.page-hero { background: linear-gradient(160deg, var(--ink), var(--ai)); color: #fff; padding: 56px 0; }
.page-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin: -40px auto 0; max-width: 820px; }
.entry__meta { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.entry__content p { margin: 0 0 16px; }
.back-link { display: inline-block; margin-top: 28px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__split, .cta-band__inner { grid-template-columns: 1fr; }
  .creator-profile { grid-template-columns: 1fr; }
  .creator-profile__photo { max-width: 280px; margin: 0 auto; }
  .hero__mascot { order: -1; max-width: 220px; margin: 0 auto; }
  .home-quick { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .grid--4, .grid--3, .grid--2, .works-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 64px 0 72px; }
  .hero__split { padding: 64px 0 72px; }
}
