/* Google Fonts "M PLUS Rounded 1c" is imported in index.html */
:root {
  /* Colors for illustration (Neo-brutalism/Pop) style */
  --bg: #fffdf5;         /* Warm background */
  --bg-dots: #efe9d3;    /* Dot pattern color */
  --text: #2f2d33;       /* Main text (almost black) */
  --sub: #5c5966;        /* Sub text */
  --primary: #4dade2;    /* Blue main */
  --primary-dark: #3a8ebd;
  --accent: #ff7657;     /* Orange/Red accent */
  --accent-dark: #e04b2a;
  --yellow: #ffdb58;     /* Fun yellow */
  --green: #2ecc71;      /* Success green */
  --pink: #ff9a9e;       /* Decorative pink */
  --card: #ffffff;
  
  /* Illustration features */
  --line: #2f2d33;       /* Thick drawing lines */
  --border: 3px solid var(--line);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1100px;
  
  /* Hard shadow for comic look */
  --shadow: 6px 6px 0px var(--line);
  --shadow-btn: 4px 4px 0px var(--line);
  --shadow-hover: 1px 1px 0px var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Comic Dot Background */
body {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dots) 2px, transparent 2px);
  background-size: 24px 24px;
  line-height: 1.8;
  font-weight: 800; /* Rounded font looks better bolded */
  word-break: auto-phrase; /* Modern Japanese text wrapping */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3, h4, b, strong { font-weight: 900; }
p { font-weight: 500; }

.section { padding: 80px 0; border-bottom: var(--border); }
.section-sm { padding: 50px 0; border-bottom: var(--border); }
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
  background: white;
  padding: 10px 30px;
  border-radius: 50px;
  border: var(--border);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.section-lead {
  font-size: 1.1rem;
  font-weight: 800;
  background: white;
  padding: 10px 20px;
  border: var(--border);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0 auto;
}

/* Base Cards */
.card, .stat-card, .phone, .bubble, .mini-stat, .result-item, 
.company-card, .form-panel, .form-intro {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0px var(--line);
}

/* Badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  background: var(--card);
  border: var(--border);
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: var(--shadow-btn);
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 16px 32px;
  border-radius: 50px; font-weight: 900; font-size: 1.1rem;
  border: var(--border);
  box-shadow: var(--shadow-btn);
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-outline { background: var(--yellow); color: var(--text); }
.btn:hover { transform: translate(3px, 3px); box-shadow: var(--shadow-hover); }

/* Hero */
.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  background-color: #e5f6ff;
  border-bottom: var(--border);
}
.hero-wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.hero-wrap > div:first-child { flex: 1.2; }
.hero-visual { flex: 0.8; margin-top: 0 !important; }
.hero-wrap .badge-row { justify-content: flex-start; }
.hero-wrap .btns { justify-content: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 8px 20px; background: var(--yellow);
  border: var(--border); border-radius: 50px;
  font-weight: 900; box-shadow: 2px 2px 0 var(--line);
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.3; margin: 0 0 20px;
  text-shadow: 2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white;
}
.hero h1 .accent {
  background: var(--yellow);
  padding: 0 10px;
  border-radius: 10px;
  display: inline-block;
  transform: rotate(-2deg);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--accent);
}
.hero p {
  font-size: 1.1rem; font-weight: 800; background: rgba(255,255,255,0.8);
  padding: 15px; border-radius: 15px; border: var(--border);
}

/* Hero Stats */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.stat-card { padding: 20px 10px; text-align: center; }
.stat-card strong {
  display: block; font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent); margin-bottom: 5px;
  text-shadow: 1px 1px 0 var(--line);
}

/* Splashes & Map */
.hero-visual { position: relative; min-height: 550px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.hero-bg-illust {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 0;
  background: #e8f3ff;
}
.hero-bg-illust svg { width: 100%; height: 100%; object-fit: cover; }



/* Band split */
.band {
  padding: 30px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px;
  align-items: center; background: var(--card); border-radius: 30px; border: var(--border); box-shadow: var(--shadow);
}
.band .rightbox { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.mini-stat { background: var(--yellow); padding: 20px; text-align: center; }
.mini-stat b { display: block; font-size: 1.5rem; line-height: 1.2; margin-bottom: 5px; }

/* Layout Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Reused Card Styles */
.problem-card, .point-card, .reason-card, .voice-card, .effect-card, .industry-card {
  padding: 30px 20px;
  text-align: center;
}
.icon-circle {
  width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin: 0 auto 20px;
  background: white; border: var(--border); box-shadow: var(--shadow-btn);
}
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-green { color: var(--green); }
.text-yellow { color: #d9a400; }
.text-pink { color: var(--pink); }

.highlight {
  display: inline-block; padding: 5px 15px; margin: 5px;
  background: var(--yellow); border: var(--border); border-radius: 10px;
  color: var(--text); font-weight: 900; transform: rotate(1deg);
}

/* Result Section */
.result-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; margin-top: 40px; }
.result-main {
  padding: 40px; background: var(--primary); color: white;
  border: var(--border); border-radius: 30px; box-shadow: var(--shadow);
}
.result-main h3 { font-size: 1.8rem; margin: 0 0 15px; text-shadow: 2px 2px 0 var(--line); }
.result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.result-item { padding: 25px; border-radius: 25px; background: var(--pink); border: var(--border); box-shadow: var(--shadow); }
.result-item b { display: block; font-size: 1.2rem; margin-bottom: 10px; }

/* Industry List & Logos */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.logo-pill {
  padding: 12px 24px; border-radius: 50px; background: white; border: var(--border);
  font-weight: 900; box-shadow: var(--shadow-btn); font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.logo-pill:hover { transform: translate(3px, 3px); box-shadow: var(--shadow-hover); }
.logo-pill:nth-child(5n+1) { background: var(--yellow); }
.logo-pill:nth-child(5n+2) { background: var(--primary); color: white; }
.logo-pill:nth-child(5n+3) { background: var(--pink); }
.logo-pill:nth-child(5n+4) { background: var(--green); color: white; }
.logo-pill:nth-child(5n+5) { background: var(--accent); color: white; }
.industry-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 30px; margin-top: 30px;
}
.industry-tags span {
  font-size: 1.3rem; font-weight: 900; display: inline-flex; align-items: center;
}
.industry-tags span::before {
  content: "✓"; color: var(--accent); font-size: 1.2rem; margin-right: 8px; font-weight: 900;
}

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 40px; position: relative; }
.flow-card { position: relative; background: white; padding: 30px 20px; border: var(--border); border-radius: 25px; box-shadow: var(--shadow); text-align: center;}
.step {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--yellow); border: var(--border);
  font-size: 1.5rem; font-weight: 900; box-shadow: 2px 2px 0 var(--line);
}

/* CTA Box */
.cta-box {
  padding: 50px; background: var(--bg-dots); border: var(--border);
  border-radius: 30px; box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin: 0 0 20px; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.form-panel { padding: 40px; background: #eaffe5; }
.form-intro { padding: 40px; background: #fff2ed; }
.form-list { display: grid; gap: 20px; margin-top: 30px; }
.field { display: grid; gap: 10px; }
.field label { font-weight: 900; font-size: 1.1rem; }
.req {
  display: inline-block; margin-left: 10px; padding: 4px 12px;
  border-radius: 50px; background: var(--accent); color: white;
  font-size: 0.8rem; font-weight: 900; border: 2px solid var(--line);
}
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .field select {
  width: 100%; border: var(--border); background: white; border-radius: 15px;
  padding: 18px 20px; font-size: 1rem; font-family: inherit; font-weight: 800;
  box-shadow: inset 4px 4px 0px rgba(0,0,0,0.05); transition: 0.2s;
}
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fffcf0; box-shadow: inset 4px 4px 0px rgba(255,219,88,0.5); border-color: var(--primary);
}

/* Custom Radio Buttons */
.purpose-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}
.radio-btn { cursor: pointer; display: block; }
.radio-btn input { display: none; }
.radio-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; height: 100%; padding: 15px 10px;
  border: var(--border); border-radius: 15px; background: white;
  font-weight: 800; box-shadow: 4px 4px 0 var(--line);
  transition: 0.1s; line-height: 1.4;
}
.radio-text:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.radio-btn input:checked + .radio-text {
  background: var(--primary); color: white;
  box-shadow: inset 3px 3px 0 rgba(0,0,0,0.2);
  transform: translate(3px, 3px);
  border-color: var(--line);
}
.radio-text small { font-size: 0.8rem; font-weight: 700; color: var(--sub); margin-top: 4px; display: block; }
.radio-btn input:checked + .radio-text small { color: #e5f4ff; }

/* Footer & Company */
.company-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.company-card { padding: 30px; background: white; border: var(--border); border-radius: 25px; box-shadow: var(--shadow); }
.company-card h3 { font-size: 1.4rem; margin: 0 0 15px; border-bottom: 3px dashed var(--line); padding-bottom: 10px; }
.company-card p { font-size: 1rem; font-weight: 800; white-space: pre-line; line-height: 1.8; }
.footer { padding: 40px 0 120px; text-align: center; font-weight: 900; border-top: var(--border); background: white; }

/* Utilities */
.nowrap { display: inline-block; white-space: nowrap; }

/* Sticky Mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  background: white; border-top: var(--border); display: none;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.sticky-cta .btn { width: 100%; }

/* Specific Section BG overrides */
.section:nth-child(even) { background-color: var(--bg-accent); }
.section:nth-child(3n) { background-color: #fff9e6; }

/* Responsive visibility */
@media (max-width: 720px) {
  br.pc-only { display: none; }
}
@media (min-width: 721px) {
  br.sp-only { display: none; }
}

@media (max-width: 1100px) {
  .band, .form-wrap, .result-wrap { grid-template-columns: 1fr; }
  .grid-4, .flow { grid-template-columns: repeat(2,1fr); }
  .grid-3, .company-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; margin-top: 30px; }
}

@media (max-width: 720px) {
  .section { padding: 40px 0; }
  .section-sm { padding: 30px 0; }
  .section-title { font-size: clamp(1.3rem, 5vw, 1.6rem); padding: 10px 15px; margin-bottom: 20px; }
  .section-lead { font-size: 1rem; padding: 10px 15px; }

  .hero { padding: 20px 0 40px; }
  .hero-wrap { flex-direction: column; text-align: center; gap: 15px; }
  .hero-wrap .badge-row { 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 15px; 
    padding: 0 15px; /* 左右にマージンを確保 */
  }
  .hero-wrap .badge { 
    padding: 5px 12px; 
    font-size: 0.75rem; /* サイズをさらに微調整 */
    box-shadow: 2px 2px 0 var(--line); 
  }
  .hero-wrap .btns { justify-content: center; margin-top: 20px; }
  .hero h1 { 
    font-size: clamp(1.4rem, 7vw, 1.8rem); 
    line-height: 1.4; 
    margin-bottom: 15px;
    padding: 0 15px; /* 左右の文字切れを防止 */
  }
  /* モバイル時のみ、nowrapクラスを解除して改行を許可 */
  .hero h1 .nowrap {
    white-space: normal !important;
    display: inline !important;
  }
  .hero h1 .accent { 
    transform: rotate(-1deg) scale(1.05); 
    padding: 2px 8px; 
    margin: 0 2px;
    box-shadow: 3px 3px 0 var(--accent);
    display: inline-block; /* アクセント背景を維持 */
  }
  .hero p { font-size: 0.95rem; padding: 10px; line-height: 1.6; }
  .hero-visual { display: none; } /* スマホイラストを非表示にしてスッキリさせる */

  /* 背景SVGの調整 */
  .sp-hide { display: none; }
  .sp-pin { transform: translate(60px, 30px) scale(0.7); } /* ピンを少し右下にずらして文字を避ける */

  .grid-2, .grid-4, .result-grid, .flow, .purpose-group { grid-template-columns: 1fr; gap: 15px; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .band, .form-panel, .form-intro, .cta-box, .result-main, .company-card { padding: 25px 20px; }
  .band .rightbox { grid-template-columns: 1fr; }
  
  .problem-card, .point-card, .reason-card, .voice-card, .effect-card, .flow-card { padding: 20px 15px; }
  .icon-circle { width: 60px; height: 60px; font-size: 28px; margin-bottom: 15px; }
  
  .btns .btn { width: 100%; font-size: 1rem; padding: 12px 15px; min-height: 50px; }
  .sticky-cta { display: block; }
  .industry-tags { gap: 10px 20px; }
  .industry-tags span { font-size: 1.1rem; }
}
