/* =========================================================
   Tiewly — Home (Minimal Studio)
   Base: white / typography-led. HiFrom と えいたぷ が2本柱、
   まなたぷ・らいたぷ は えいたぷ の姉妹サービス。
   各カード内に実サービスのトップページを再現。
   ========================================================= */

:root {
  /* Brand / HiFrom */
  --navy: #072555;
  --navy-2: #0d3080;
  --cyan: #4dbee8;
  --cyan-bg: #ebf7fd;
  --warm: #ffb088;
  --stamp: #ff6b00;
  /* えいたぷ (eitapu.com の実カラー) */
  --et-blue: #2b7db5;
  --et-blue-d: #1f6699;
  --et-sky: #a8d8ea;
  --et-sky-bg: #ebf5fb;
  --et-cream: #fff9f0;
  --et-orange: #f6ad55;
  --et-slate: #2d3748;
  --et-slate-2: #4a5568;
  /* 姉妹 */
  --mana: #1a7b5a;
  --mana-bg: #edfaf3;
  --writa: #4b3b9a;
  --writa-bg: #f1efff;
  /* neutrals */
  --ink: #1a1a1a;
  --line: #ececec;
  --muted: #999;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

body.hp {
  margin: 0;
  background: #fff;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hp a { text-decoration: none; }

.hp-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.en { font-family: "Outfit", sans-serif; }

/* ===================== Header ===================== */
.hp-header { border-bottom: 1px solid #f0ece8; }
.hp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.hp-brand {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #2c2a27;
}
.hp-brand-dot { color: #e07a5f; }
.hp-brand-logo { height: 56px; width: auto; display: block; }
.hp-nav { display: flex; align-items: center; gap: 30px; }
.hp-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: color 0.15s ease;
}
.hp-nav a:hover { color: var(--navy); }
.hp-nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.hp-nav-cta:hover { background: var(--navy-2); }

/* ===================== Hero ===================== */
.hp-hero {
  padding: 88px 0 72px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.85) 100%),
    url('./assets/hero-bg.jpg') center/cover no-repeat;
}
.hp-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.hp-tick { width: 28px; height: 2px; background: var(--cyan); }
.hp-eyebrow span:last-child {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}
.hp-h1 {
  font-size: clamp(46px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 22px;
}
.hp-hero-en {
  font-family: "Outfit", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  color: #c4c0ba;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}
.hp-hero-lead {
  font-size: 16px;
  line-height: 1.95;
  color: #555;
  max-width: 500px;
  margin: 0;
}
.hp-hero-lead strong {
  font-weight: 600;
  color: var(--navy);
}

/* ===================== Products ===================== */
.hp-products { padding: 0 0 88px; }
.hp-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 44px;
  border-top: 1px solid #f0ece8;
  margin-bottom: 36px;
}
.hp-label {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
}
.hp-rule { flex: 1; height: 1px; background: #f0ece8; }
.hp-count {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: #ccc;
}

.hp-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.hp-col { display: flex; flex-direction: column; gap: 24px; }

/* ---- Pillar (主力カード) ---- */
.hp-pillar {
  border: 1.5px solid #eaeaea;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hp-pillar--hifrom:hover {
  border-color: var(--cyan);
  box-shadow: 0 10px 32px rgba(7, 37, 85, 0.10);
}
.hp-pillar--eitapu:hover {
  border-color: var(--et-blue);
  box-shadow: 0 10px 32px rgba(43, 125, 181, 0.10);
}

.hp-pillar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hp-tag {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.hp-tag--hifrom { color: var(--cyan); background: var(--cyan-bg); }
.hp-tag--eitapu { color: var(--et-blue); background: var(--et-sky-bg); }
.hp-tag--manatapu { color: var(--mana); background: var(--mana-bg); }
.hp-tag--writapu { color: var(--writa); background: var(--writa-bg); }
.hp-platform {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: #c4c4c4;
}
.hp-pillar-name {
  font-family: "Outfit", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hp-pillar-name--en { color: var(--navy); }
.hf-hi { color: #072555; }
.hf-from { color: #ff9300; }
.et-title {
  background: linear-gradient(90deg, #4a90d9, #9b6fd6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hp-pillar-name-en {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #cdd5dd;
}
.hp-pillar-tagline {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.7;
  color: #333;
  margin: 0 0 5px;
}
.hp-pillar-tagline-en {
  font-family: "Outfit", sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: #bbb;
  margin: 0 0 24px;
}

.hp-pillar-link {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-top: 24px;
  align-self: flex-start;
  transition: opacity 0.15s ease;
}
.hp-pillar-link--hifrom { color: var(--navy); }
.hp-pillar-link--hifrom:hover { color: var(--cyan); }
.hp-pillar-link--eitapu { color: var(--et-blue); }
.hp-pillar-link--eitapu:hover { color: var(--et-blue-d); }

/* =========================================================
   再現① HiFrom — マチュピチュのヒーロー写真＋タイムライン
   ========================================================= */
.hp-repro {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-top: auto;
}
.hp-repro--hifrom {
  background: var(--navy);
  padding: 22px 22px 26px;
}
.hf-thai {
  position: absolute;
  top: -28px;
  right: -10px;
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}
.hf-photo {
  position: relative;
  background: #fff;
  padding: 8px 8px 8px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.5deg);
  z-index: 1;
}
.hf-photo img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 3px;
}
.hf-stamp {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--stamp);
  text-shadow: 1px 1px 0 rgba(160, 0, 0, 0.45);
  letter-spacing: 0.02em;
}
.hf-watermark {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--cyan);
}
.hf-watermark .hi { color: var(--navy); }
.hf-watermark .from { color: var(--stamp); }

.hf-timeline {
  position: relative;
  z-index: 2;
  margin: -14px 10px 0 18px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.hf-tl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.hf-date {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.hf-date em { font-style: normal; color: #b6c0cc; font-weight: 600; margin-left: 2px; }
.hf-now {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--cyan);
  padding: 3px 9px;
  border-radius: 20px;
}
.hf-entry { display: flex; gap: 10px; }
.hf-time {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #9aa6b2;
  width: 38px;
  flex: none;
  padding-top: 1px;
}
.hf-rail {
  position: relative;
  flex: none;
  width: 12px;
}
.hf-rail::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: -4px;
  width: 1.5px;
  background: #e3e9f0;
}
.hf-rail i {
  position: absolute;
  left: 1px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 3px #fff;
}
.hf-msg { flex: 1; }
.hf-msg-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #1f2a38;
  margin: 0 0 4px;
}
.hf-loc {
  font-size: 11px;
  color: #aab4c0;
  margin: 0 0 6px;
}
.hf-loc::before { content: "📍 "; }
.hf-react {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: #8c98a6;
  margin: 0;
}
.hf-react b { color: var(--warm); font-weight: 400; }

/* =========================================================
   再現② えいたぷ — スライム＋タイピングUI
   ========================================================= */
.hp-repro--eitapu {
  background: linear-gradient(150deg, #ebf5fb 0%, #ede8f8 50%, #e8f4ed 100%);
  padding: 18px;
  border: 1px solid #e6eef5;
}
.et-screen {
  background: #fff;
  border: 1px solid #e3edf5;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(43, 125, 181, 0.08);
  text-align: center;
}
/* スライム＋吹き出し */
.et-slime-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.et-slime {
  width: 64px;
  height: 64px;
  flex: none;
  filter: drop-shadow(0 6px 12px rgba(43, 125, 181, 0.18));
  animation: et-bob 3.4s ease-in-out infinite;
}
@keyframes et-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.et-bubble {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: var(--et-blue);
  background: var(--et-sky-bg);
  padding: 6px 12px;
  border-radius: 14px;
}
.et-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--et-sky-bg);
}
/* 品詞・星・ランク */
.et-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.et-pos {
  font-size: 11px;
  font-weight: 700;
  color: var(--writa);
  background: var(--writa-bg);
  padding: 3px 10px;
  border-radius: 12px;
}
.et-stars i { font-style: normal; font-size: 14px; color: var(--et-orange); }
.et-stars i.off { color: #d8e0e8; }
.et-rank { font-size: 11px; font-weight: 600; color: #9aa6b2; }
/* プロンプト・日本語訳 */
.et-prompt { font-size: 10.5px; color: #aab4c0; margin: 0 0 8px; }
.et-jp {
  font-size: 26px;
  font-weight: 700;
  color: var(--et-slate);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
/* マス入力 */
.et-word {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 14px;
}
.et-word span {
  font-family: "Outfit", "Courier New", monospace;
  font-size: 20px;
  font-weight: 600;
  width: 24px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2.5px solid #dce6ee;
  color: #c4d0db;
}
.et-word span.done {
  color: var(--et-slate);
  border-bottom-color: var(--et-blue);
}
.et-word span.cur {
  color: var(--et-blue);
  border-bottom-color: var(--et-orange);
  background: #fff7ec;
  border-radius: 3px 3px 0 0;
  animation: et-blink 1s steps(1) infinite;
}
@keyframes et-blink {
  50% { background: #fff; }
}
/* ヒント・スキップ */
.et-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
}
.et-note { font-size: 10px; color: #b4bdc6; width: 100%; }
.et-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #dce6ee;
}
.et-btn--hint { color: var(--et-blue); background: #fff; }
.et-btn--skip { color: var(--et-slate-2); background: #fff; }

/* ===================== 姉妹サービス ===================== */
.hp-sisters {
  border-top: 1px solid #f0ece8;
  margin-top: 24px;
  padding-top: 20px;
}
.hp-sisters-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #9a9a9a;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.hp-sisters-brace {
  width: 18px;
  height: 1px;
  background: #d6d6d6;
}
.hp-sister-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hp-sister {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.hp-sister:hover { transform: translateY(-2px); }
.hp-sister--manatapu:hover {
  border-color: var(--mana);
  box-shadow: 0 8px 20px rgba(26, 123, 90, 0.10);
}
.hp-sister--writapu:hover {
  border-color: var(--writa);
  box-shadow: 0 8px 20px rgba(75, 59, 154, 0.10);
}
.hp-sister .hp-tag {
  align-self: flex-start;
  font-size: 9.5px;
  padding: 4px 9px;
  margin-bottom: 12px;
}
.hp-sister h3 {
  font-family: "Outfit", sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.hp-sister p {
  font-size: 13px;
  line-height: 1.65;
  color: #666;
  margin: 0 0 16px;
  flex: 1;
}
.hp-sister-go {
  font-family: "Outfit", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
}
.hp-sister--manatapu .hp-sister-go { color: var(--mana); }
.hp-sister--writapu .hp-sister-go { color: var(--writa); }
.hp-sister--manatapu h3 { color: #1a3a5c; }
.hp-sister--writapu h3 {
  background: linear-gradient(135deg, #5ab0d4, #9b6fd6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================== Contact ===================== */
.hp-contact { background: #f4fafe; border-top: 1px solid #e8eef5; }
.hp-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.hp-contact-jp { font-size: 15px; color: #444; margin: 0 0 5px; }
.hp-contact-jp a { color: var(--navy); font-weight: 700; }
.hp-contact-jp a:hover { text-decoration: underline; }
.hp-contact-en {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: #aaa;
  margin: 0;
}
.hp-contact-links { display: flex; gap: 18px; flex: none; }
.hp-contact-links a {
  font-size: 13px;
  color: #555;
  padding-bottom: 2px;
  border-bottom: 1px solid #ccc;
}
.hp-contact-links a:hover { color: var(--navy); border-color: var(--navy); }

/* ===================== Footer ===================== */
.hp-footer { border-top: 1px solid #f0ece8; }
.hp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.hp-copy {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: #ccc;
}
.hp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hp-footer-links a { font-size: 12px; color: #bbb; }
.hp-footer-links a:hover { color: #777; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hp-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hp-wrap { padding: 0 20px; }
  .hp-hero { padding: 56px 0 48px; }
  .hp-nav { gap: 16px; }
  .hp-nav a:not(.hp-nav-cta) { display: none; }
  .hp-pillar { padding: 24px; }
  .hp-repro--eitapu { flex-direction: column; text-align: center; }
  .hp-sister-grid { grid-template-columns: 1fr; }
  .hp-contact-inner, .hp-footer-inner { flex-direction: column; align-items: flex-start; }
}
