:root {
  --bg: #fdf6f2;
  --bg-card: #ffffff;
  --bg-soft: #fbe4ed;
  --text: #5a2e2a;
  --text-sub: #a07060;
  --accent: #ec8aae;
  --accent-light: #fce4ec;
  --border: #f4d4c5;
  --shadow: 0 2px 14px rgba(236, 138, 174, 0.10);
  --shadow-hover: 0 8px 28px rgba(236, 138, 174, 0.18);

  --c-apparel: #f4a8c2;
  --c-life:    #c9b6e5;
  --c-web:     #95c4dc;
  --c-tool:    #f0c454;
  --c-ai:      #a8cf95;

  --c-apparel-bg: #fce4ec;
  --c-life-bg:    #ece2f7;
  --c-web-bg:     #d8ecf6;
  --c-tool-bg:    #fceec5;
  --c-ai-bg:      #ddebcd;

  --c-apparel-text: #b34870;
  --c-life-text:    #6a4c9b;
  --c-web-text:     #2d6a8a;
  --c-tool-text:    #8a6a14;
  --c-ai-text:      #4d6a2f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='0.8' fill='%23ec8aae' opacity='0.18'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Sans", sans-serif;
  letter-spacing: 0.01em;
}
.kicker, .number, .label, .file, .pillar-card .eyebrow {
  font-family: "Quicksand", "Noto Sans JP", sans-serif;
  font-weight: 600;
}
.subtitle, h1 small {
  font-family: "Quicksand", "Noto Sans JP", sans-serif;
}

/* ===== Hero (top page) ===== */
.hero {
  padding: 130px 24px 130px;
  text-align: center;
  background: linear-gradient(135deg, #fdf6f2 0%, #fbe4ed 50%, #f5e8f7 100%);
  position: relative;
  overflow: hidden;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  display: block;
  z-index: 1;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 280px;
  height: 280px;
  background: #fbc9d8;
  top: -80px;
  left: -60px;
}
.hero::after {
  width: 320px;
  height: 320px;
  background: #d8c5ed;
  bottom: -120px;
  right: -80px;
}
.hero > * { position: relative; z-index: 1; }
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-decor svg {
  position: absolute;
  animation: twinkle 4s ease-in-out infinite;
  opacity: 0.6;
}
.hero-decor .s1 { top: 18%; left: 12%; width: 18px; animation-delay: 0s; }
.hero-decor .s4 { bottom: 22%; right: 11%; width: 22px; animation-delay: 1.2s; }
.hero-decor .s5 { top: 12%; right: 22%; width: 14px; animation-delay: 2.1s; }
.hero-decor .s8 { bottom: 18%; left: 24%; width: 16px; animation-delay: 0.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%      { opacity: 0.85; transform: scale(1.1); }
}
.hero .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 4px 14px;
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero h1 small {
  display: block;
  font-size: 0.4em;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 12px;
  letter-spacing: 0.05em;
}
.hero .lead {
  font-size: clamp(14px, 2.2vw, 17px);
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* ===== Buttons & CTA ===== */
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #d26a92;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== Top-level Nav ===== */
nav.anchors {
  position: sticky;
  top: 0;
  background: rgba(253, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  padding: 14px 24px;
}
nav.anchors ul {
  list-style: none;
  display: flex;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.anchors ul::-webkit-scrollbar { display: none; }
nav.anchors a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s;
}
nav.anchors a:hover {
  background: var(--accent-light);
  color: var(--text);
}

/* ===== Manifesto ===== */
.manifesto {
  max-width: 680px;
  margin: 0 auto;
  padding: 130px 24px 80px;
  text-align: center;
  position: relative;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 16 L32 16 M16 0 L16 32' stroke='%23f4d4c5' stroke-width='0.8' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 32px 32px;
}
.manifesto::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #f4d4c5;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.manifesto::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid #e2d4ed;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}
.manifesto h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  margin-bottom: 24px;
}
.manifesto p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 2;
}
.manifesto .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px auto;
}
.manifesto .divider span {
  display: inline-block;
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.manifesto .divider span:nth-child(2) { color: #c9b6e5; transform: scale(1.3); }
.manifesto .divider span:nth-child(3) { color: #f0c454; }

/* ===== Main container ===== */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Pillar showcase (top page) ===== */
.pillar-showcase {
  padding: 100px 0 60px;
}
.pillar-showcase > h2 {
  text-align: center;
  font-size: clamp(22px, 3.2vw, 30px);
  margin-bottom: 8px;
}
.pillar-showcase > p {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 56px;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.pillar-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.45;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.pillar-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}
.pillar-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.pillar-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.pillar-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.2s ease;
  position: relative;
  z-index: 1;
}
.pillar-card:hover .arrow { gap: 10px; }
.pillar-card.apparel::before { background: var(--c-apparel); }
.pillar-card.apparel .eyebrow,
.pillar-card.apparel .arrow { color: var(--c-apparel-text); }
.pillar-card.life::before { background: var(--c-life); }
.pillar-card.life .eyebrow,
.pillar-card.life .arrow { color: var(--c-life-text); }
.pillar-card.web::before { background: var(--c-web); }
.pillar-card.web .eyebrow,
.pillar-card.web .arrow { color: var(--c-web-text); }
.pillar-card.tool::before { background: var(--c-tool); }
.pillar-card.tool .eyebrow,
.pillar-card.tool .arrow { color: var(--c-tool-text); }
.pillar-card.ai::before { background: var(--c-ai); }
.pillar-card.ai .eyebrow,
.pillar-card.ai .arrow { color: var(--c-ai-text); }

/* ===== Detail page header ===== */
.detail-hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.detail-hero.apparel { background: linear-gradient(135deg, #fdf6f2 0%, var(--c-apparel-bg) 100%); }
.detail-hero.life    { background: linear-gradient(135deg, #fdf6f2 0%, var(--c-life-bg) 100%); }
.detail-hero.web     { background: linear-gradient(135deg, #fdf6f2 0%, var(--c-web-bg) 100%); }
.detail-hero.tool    { background: linear-gradient(135deg, #fdf6f2 0%, var(--c-tool-bg) 100%); }
.detail-hero.ai      { background: linear-gradient(135deg, #fdf6f2 0%, var(--c-ai-bg) 100%); }
.detail-hero .number {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-sub);
  margin-bottom: 14px;
}
.detail-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 18px;
}
.detail-hero .subtitle {
  font-size: 15px;
  color: var(--text-sub);
  font-style: italic;
  margin-bottom: 20px;
}
.detail-hero p.lead {
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-sub);
  line-height: 1.95;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
  margin: 30px 24px 0;
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--accent); gap: 10px; }

/* ===== Topic sections (detail pages) ===== */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 0 100px;
}
.topic {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.topic:nth-child(even) { grid-template-columns: 1.3fr 1fr; }
.topic:nth-child(even) .topic-visual { order: 2; }
.topic-visual {
  min-height: 280px;
  padding: 50px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.topic-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  z-index: 0;
}
.topic-visual > * { position: relative; z-index: 1; }
.topic-visual .num {
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  opacity: 0.85;
  margin-bottom: 12px;
}
.topic-visual h2 {
  color: #fff;
  font-size: 28px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.topic-visual p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.9;
}
.topic-body {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.topic-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.topic-body h3:not(:first-child) { margin-top: 24px; }
.topic-body p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
}
.topic-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.95;
}
.topic-body ul li { margin-bottom: 4px; }
.topic-body .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.topic-body .tag-row span {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-family: "Zen Maru Gothic", sans-serif;
  background: var(--accent-light);
  color: var(--accent);
}

/* Color variants for topic-visual */
.topic.apparel .topic-visual { background: linear-gradient(135deg, #fce4ec 0%, #f4a8c2 70%, #ec8aae 100%); }
.topic.life    .topic-visual { background: linear-gradient(135deg, #ece2f7 0%, #c9b6e5 70%, #ad94d6 100%); }
.topic.web     .topic-visual { background: linear-gradient(135deg, #d8ecf6 0%, #95c4dc 70%, #6da9c5 100%); }
.topic.tool    .topic-visual { background: linear-gradient(135deg, #fceec5 0%, #f0c454 70%, #d8a630 100%); }
.topic.ai      .topic-visual { background: linear-gradient(135deg, #ddebcd 0%, #a8cf95 70%, #7cb567 100%); }

@media (max-width: 820px) {
  .topic, .topic:nth-child(even) { grid-template-columns: 1fr; }
  .topic:nth-child(even) .topic-visual { order: 0; }
  .topic-visual { min-height: 200px; padding: 40px 28px; }
  .topic-body { padding: 32px 28px; }
}

/* ===== Contact section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: block;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}
.contact-card .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}
.contact-card .value {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-card .note {
  font-size: 12px;
  color: var(--text-sub);
}

/* ===== Section block (used on top for contact/about) ===== */
section.block {
  padding: 80px 0;
}
section.block .section-header {
  margin-bottom: 40px;
  text-align: left;
}
section.block .section-header .number {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-sub);
  margin-bottom: 12px;
}
section.block .section-header h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 8px;
}
section.block .section-header .subtitle {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}
section.block .section-header .lead {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 720px;
}

/* ===== About ===== */
.about-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
}
.about-box h3 { font-size: 18px; margin-bottom: 16px; }
.about-box p { font-size: 14px; color: var(--text-sub); line-height: 1.9; }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 60px 24px 40px;
  color: var(--text-sub);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--accent-light);
  margin-top: 60px;
}
footer .quote {
  max-width: 540px;
  margin: 0 auto 20px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px 80px; }
  .pillar-showcase { padding: 60px 0 40px; }
  .topic-list { padding: 40px 0 60px; gap: 40px; }
  .about-box { padding: 24px; }
}
