/* ═══════════════════════════════
   VARIABLES & RESET
   ═══════════════════════════════ */

:root {
  --mint:       #3ECFAC;
  --mint-dark:  #1A6B60;
  --mint-mid:   #2A9B80;
  --mint-bg:    #F0FBF8;
  --mint-deep:  #0D4035;
  --text:       #1A1A1A;
  --text-muted: #5A6474;
  --font-ja: -apple-system, "Helvetica Neue", "Hiragino Kaku Gothic ProN",
             "Noto Sans JP", "Meiryo", sans-serif;
  --font-logo: "SF Pro Display", "Futura", "Century Gothic",
               "Trebuchet MS", "Hiragino Kaku Gothic ProN", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ja); color: var(--text); background: #fff; line-height: 1.7; -webkit-text-size-adjust: 100%; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }


/* ═══════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════ */

.site-header {
  background: var(--mint);
  padding: 10px 16px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav { display: flex; gap: 16px; margin-left: auto; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.logo-text-wrap { display: flex; flex-direction: column; gap: 1px; }
.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-family: var(--font-logo);
}
.logo-tagline {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.site-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}

@media (min-width: 600px) {
  .site-header {
    padding-left: max(16px, calc(50% - 250px));
    padding-right: max(16px, calc(50% - 250px));
  }
}


/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */

.site-footer { background: #0D4035; padding: 20px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }
.footer-links a { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--mint); }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.35); }


/* ═══════════════════════════════
   SHARED COMPONENTS
   (page wrap, breadcrumb, section label)
   ═══════════════════════════════ */

/* Gen page wrapper */
.page-wrap { max-width: 500px; margin: 0 auto; }

/* Breadcrumb — gen/ page version (padding-top inside page-wrap) */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px; font-size: 0.72rem; color: var(--text-muted);
  padding: 14px 16px 0;
}
.breadcrumb a { color: var(--mint-dark); }

/* Section label: mint square + bold text */
.section-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--mint);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Illustration column — base */
.illus-col {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  border-right: 3px solid var(--mint);
}
.illus-col img,
.illus-col .illus-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.illus-col img { object-fit: cover; object-position: top center; }
.illus-col .illus-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 3.8rem;
  line-height: 1;
}

/* Background colors per character */
.illus-bg-1 { background: #4A6080; } /* 言い訳博士 — slate blue */
.illus-bg-2 { background: #804040; } /* 敬語マエストロ — dark red */
.illus-bg-3 { background: #6B5230; } /* 田中部長 — amber brown */


/* ═══════════════════════════════
   CARD COMPONENTS
   ═══════════════════════════════ */

.card {
  background: #fff;
  border: 3px solid var(--mint);
  border-radius: 10px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-info {
  background: var(--mint-bg);
  padding: 14px 14px 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-title { font-size: 0.88rem; color: var(--text); line-height: 1.3; }
.card-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.chara-name { font-weight: 600; }
.card-btn-wrap { display: flex; justify-content: center; padding: 10px 14px 12px; }
.card-btn {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  background: var(--mint);
  padding: 7px 16px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Style C: rounded floating illustration + text in column */
.card.style-c {
  align-items: center;
  padding: 12px 5px 12px 12px;
  gap: 0;
  background: var(--mint-bg);
}
.card.style-c.demo-top {
  padding-bottom: 12px;
  border: none;
  border-bottom: 1px solid rgba(62,207,172,0.3);
  border-radius: 0;
  align-items: flex-start;
}
.card.style-c .bar { display: none; }
.card.style-c .illus-col {
  width: 100px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border-right: none;
  position: relative;
}
.card.style-c .illus-col img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.card.style-c .card-body { padding: 0; gap: 0; align-self: stretch; justify-content: flex-start; }
.card.style-c .card-info { background: transparent; padding: 10px 12px; height: auto; gap: 3px; }
.card.style-c .card-btn-wrap { background: transparent; padding: 10px 14px 12px; justify-content: center; }
.card.style-c .card-btn { font-size: 0.72rem; padding: 5px 12px; }


/* ═══════════════════════════════
   SPEECH BUBBLE
   ═══════════════════════════════ */

.speech-bubble {
  background: #fff;
  border: 1.5px solid var(--mint);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text);
  position: relative;
  flex: 1;
}

/* Intro row — bubble to the right of the character */
.demo-intro-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
}
/* Left arrow: points to character on the left */
.demo-intro-row .speech-bubble::before {
  content: '';
  position: absolute;
  top: 14px; left: -7px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid var(--mint);
}
.demo-intro-row .speech-bubble::after {
  content: '';
  position: absolute;
  top: 15px; left: -5px;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 6px solid #fff;
}


/* ═══════════════════════════════
   GEN PAGE — CHARACTER CARD
   ═══════════════════════════════ */

/* H1 / subtitle: visible to crawlers, invisible on screen */
.page-heading { padding: 0; }
.page-title { font-size: 1.45rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.page-subtitle { font-size: 0.82rem; color: var(--mint-mid); margin-top: 4px; }
.page-subtitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Demo section wrapper */
.demo-section { padding: 20px 16px 0; }

/* Demo card */
.demo-card {
  background: #fff;
  border: 3px solid var(--mint);
  border-radius: 10px;
  overflow: hidden;
}

/* Card header — vertical layout (info → portrait → bubble) */
.demo-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  background: var(--mint-bg);
  border-bottom: 1px solid rgba(62,207,172,0.3);
  gap: 14px;
}

/* Character portrait */
.chara-portrait {
  width: 160px; height: 160px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  /* background: page-specific */
}
.chara-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Character info block */
.chara-info { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.chara-info-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.chara-info-subtitle { font-size: 0.78rem; color: var(--text-muted); }
.chara-info-bio { font-size: 0.75rem; color: var(--text-muted); line-height: 1.55; }

/* Signature bubble — arrow points up toward portrait */
.chara-bubble { width: 100%; position: relative; }
.chara-bubble .speech-bubble { flex: none; }
.chara-bubble .speech-bubble::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--mint);
}
.chara-bubble .speech-bubble::after {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #fff;
}


/* ═══════════════════════════════
   GEN PAGE — DEMO INTERACTIVE
   ═══════════════════════════════ */

.demo-interactive { padding: 14px; }
.demo-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; justify-content: center; }
.preset-btn {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mint-dark);
  background: #fff;
  border: 1.5px solid var(--mint);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-ja);
  transition: background 0.15s, color 0.15s;
}
.preset-btn:hover, .preset-btn.selected { background: rgba(62,207,172,0.18); border-color: var(--mint-dark); color: var(--mint-dark); }
.demo-input-row { display: flex; margin-bottom: 8px; }
.demo-input {
  flex: 1;
  font-size: 0.85rem;
  font-family: var(--font-ja);
  padding: 9px 12px;
  border: 2px solid var(--mint);
  border-radius: 8px;
  outline: none;
  color: var(--text);
}
.demo-input::placeholder { color: #B0B8C1; }
.demo-input:focus { border-color: var(--mint-dark); }
.demo-btn {
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-ja);
  color: #fff;
  background: var(--mint);
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  display: block;
  margin: 0 auto;
}
.demo-btn:hover { opacity: 0.88; }
.demo-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-error { display: none; font-size: 0.78rem; color: #E05252; margin-top: 8px; text-align: center; }


/* ═══════════════════════════════
   GEN PAGE — DEMO RESULT
   ═══════════════════════════════ */

/* Result block — mirrors header, full-width mint-bg */
.demo-result {
  display: none;
  background: var(--mint-bg);
  border-top: 1px solid rgba(62,207,172,0.3);
  padding: 10px 5px 10px 12px;
}
.demo-result-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--mint-mid);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 8px;
}
.demo-result-row { display: flex; align-items: stretch; gap: 16px; }
/* Right arrow: points to character on the right */
.demo-result-row .speech-bubble::before {
  content: '';
  position: absolute;
  top: 14px; right: -7px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--mint);
}
.demo-result-row .speech-bubble::after {
  content: '';
  position: absolute;
  top: 15px; right: -5px;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
}
.demo-result-illus {
  width: 100px; min-height: 80px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  /* background: page-specific */
  position: relative;
}
.demo-result-illus img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.demo-share { display: none; flex-direction: column; gap: 6px; margin-top: 10px; }
.share-btn {
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-ja);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.82; }
.share-btn-copy { width: 100%; color: #fff; background: #8B9BAA; }
.demo-share-row { display: flex; gap: 6px; }
.share-btn-x    { flex: 1; color: #fff; background: #000; }
.share-btn-line { flex: 1; color: #fff; background: #06C755; }
.demo-disclaimer { font-size: 0.65rem; color: var(--text-muted); margin-top: 8px; text-align: center; }


/* ═══════════════════════════════
   GEN PAGE — AMAZON BLOCK
   ═══════════════════════════════ */

.amazon-section {
  margin: 16px 16px 0;
  background: #FFFDF5;
  border: 1px solid rgba(255,153,0,0.3);
  border-radius: 10px;
  padding: 14px;
  animation: fadeUp 0.4s ease;
}
.amazon-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; color: #CC7700; margin-bottom: 6px; }
.amazon-title { font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.45; margin-bottom: 12px; }
.amazon-list { display: flex; flex-direction: column; gap: 8px; }
.amazon-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 9px 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 7px;
  color: var(--text);
  transition: opacity 0.15s;
}
.amazon-item:hover { opacity: 0.8; }
.amazon-item-name { font-size: 0.82rem; font-weight: 600; }
.amazon-cta { font-size: 0.7rem; font-weight: 700; color: #fff; background: #FF9900; padding: 4px 10px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }


/* ═══════════════════════════════
   GEN PAGE — SEO / FAQ / DISCLAIMER / BANNERS
   ═══════════════════════════════ */

/* SEO text section */
.seo-section { padding: 28px 16px 0; }
.seo-section p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }

/* FAQ */
.faq-section { padding: 28px 16px 0; }
.faq-item { margin-bottom: 18px; }
.faq-q { font-size: 0.88rem; font-weight: 700; color: var(--mint-dark); margin-bottom: 6px; line-height: 1.5; background: var(--mint-bg); padding: 6px 10px; border-radius: 6px; }
.faq-a { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; }

/* Disclaimer */
.disclaimer-section { padding: 24px 16px 0; }
.disclaimer-text { font-size: 0.72rem; color: var(--text-muted); line-height: 1.75; border-left: 3px solid rgba(62,207,172,0.5); padding-left: 12px; }
.disclaimer-text a { color: var(--mint-dark); }

/* Other tools banners */
.tool-banners { display: flex; gap: 8px; padding: 28px 16px 40px; }
.tool-banner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 8px;
  border-radius: 10px;
  color: var(--text);
  text-align: center;
  border: 1px solid rgba(62,207,172,0.25);
  transition: opacity 0.15s;
}
.tool-banner:hover { opacity: 0.85; }
.tool-banner-1 { background: rgba(26,107,96,0.15); }
.tool-banner-2 { background: rgba(42,155,128,0.15); }
.tool-banner img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; object-position: top center; }
.tool-banner-name { font-size: 0.8rem; font-weight: 700; }
.tool-banner-tool { font-size: 0.7rem; color: var(--mint-dark); line-height: 1.4; }


/* ═══════════════════════════════
   ANIMATIONS
   ═══════════════════════════════ */

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
