/* ============================================================
   みやもん研究所 LP - styles.css
   教科書風 × みやもんブランド黄色アクセント
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2937;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
}
.btn-primary {
  background: #FF8C42;
  color: #FFFFFF;
}
.btn-primary:hover { background: #FB7C32; }
.btn-line {
  background: #06C755;
  color: #FFFFFF;
}
.btn-line:hover { background: #05B04C; }
.btn-line .btn-icon {
  background: #FFFFFF;
  color: #06C755;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-line-large {
  font-size: 22px;
  padding: 22px 56px;
  border-radius: 12px;
}
.btn-line-large .btn-icon {
  font-size: 16px;
  padding: 4px 10px;
}
.btn-outline {
  background: #FFFFFF;
  color: #1F2937;
  border: 2px solid #E5E7EB;
  padding: 12px 24px;
}
.btn-outline:hover { border-color: #1F2937; }

/* === Navigation === */
.nav {
  background: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 18px;
}
.nav-logo-mark { font-size: 22px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-menu a:hover { color: #FF8C42; }
.nav-menu-login {
  border: 1px solid #E5E7EB;
  padding: 6px 14px;
  border-radius: 6px;
}
.nav-burger { display: none; font-size: 24px; }

/* === Hero === */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FEFCF3 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: 44px;
  line-height: 1.4;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: #4A5568;
  margin-bottom: 36px;
}
.hero-sub strong {
  color: #FF8C42;
  background: linear-gradient(transparent 60%, #FFE066 60%);
  padding: 0 4px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-image img {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* === Section title === */
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 220px;
  height: 6px;
  background: #FFE066;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 3px;
}
.title-mark-left, .title-mark-right {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #FFE066;
  border-radius: 50%;
}
.section-sub {
  text-align: center;
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 48px;
}

/* === Roadmap === */
.roadmap {
  background: #FFFFFF;
  padding: 80px 0;
}
.stages {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
}
.stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
}
.stage-num {
  font-size: 13px;
  font-weight: 700;
  color: #3B82F6;
  margin-bottom: 12px;
}
.stage-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.stage-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stage-name {
  font-size: 18px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 6px;
}
.stage-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
}
.stage-arrow {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #3B82F6;
  font-weight: bold;
  flex-shrink: 0;
  padding-bottom: 28px;
}

/* === Materials / Cards === */
.materials {
  background: #F9FAFB;
  padding: 80px 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #E5E7EB;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.card-stage-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FFE066;
  color: #1F2937;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}
.card-icon {
  margin: 32px 0 18px;
  display: flex;
  justify-content: center;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 16px;
  min-height: 44px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #6B7280;
}
.card-time { display: inline-flex; align-items: center; gap: 4px; }
.card-free {
  background: #DCFCE7;
  color: #166534;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.card-cta {
  width: 100%;
  background: #FF8C42;
  color: #FFFFFF;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s;
}
.card-cta:hover { background: #FB7C32; }

.materials-more {
  text-align: center;
}

/* === Works === */
.works {
  background: #FFFFFF;
  padding: 80px 0;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  display: flex;
  flex-direction: column;
}
.work-preview {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  font-size: 11px;
}
.work-preview-header {
  background: #F3F4F6;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid #E5E7EB;
}
.work-preview-body { padding: 12px; }
.work-preview-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr 0.8fr;
  gap: 6px;
  padding: 6px 4px;
  border-bottom: 1px dashed #F3F4F6;
}
.work-preview-row:last-child { border-bottom: none; }
.work-preview-row-head { font-weight: 700; color: #6B7280; font-size: 10px; }
.work-preview-row span:nth-child(3) { color: #1F2937; font-weight: 600; }
.badge-warn {
  background: #FEE2E2;
  color: #991B1B;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
  font-weight: 700;
}
.badge-ok {
  background: #DCFCE7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
  font-weight: 700;
}
.work-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 0 14px;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 8px;
}
.work-preview-stats > div { text-align: center; }
.stat-num { font-size: 18px; font-weight: 800; color: #1F2937; }
.stat-label { font-size: 10px; color: #6B7280; }
.work-preview-upload {
  background: #F3F4F6;
  border: 1px dashed #D1D5DB;
  padding: 8px;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 8px;
  color: #6B7280;
  font-size: 11px;
}
.work-desc {
  font-size: 13px;
  color: #4A5568;
  line-height: 1.6;
}

/* === About === */
.about {
  background: #FFFFFF;
  padding: 80px 0;
}
.about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  background: #FFFFFF;
  border: 2px solid #FFE066;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-width: 880px;
  margin: 0 auto;
}
.about-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #FFF8E1;
  border: 3px solid #FFE066;
  overflow: hidden;
  flex-shrink: 0;
}
.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.about-name-main {
  font-size: 28px;
  font-weight: 800;
  color: #1F2937;
}
.about-name-handle {
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
}
.about-role {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 24px;
  font-weight: 500;
}
.about-story {
  margin-bottom: 28px;
}
.about-story p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
}
.about-story p:last-child { margin-bottom: 0; }
.about-story strong {
  color: #C2410C;
  font-weight: 700;
}
.about-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.about-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6B7280;
  padding-left: 4px;
}
.about-social a {
  color: #2563EB;
  font-weight: 600;
}
.about-social a:hover { color: #1D4ED8; }
.about-social .dot { color: #D1D5DB; }

/* === LINE CTA === */
.line-cta {
  background: linear-gradient(135deg, #FFFCEB 0%, #FFF7D6 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.line-cta::before, .line-cta::after {
  content: "✨";
  position: absolute;
  font-size: 32px;
  opacity: 0.3;
}
.line-cta::before { top: 20px; left: 5%; }
.line-cta::after { bottom: 20px; right: 5%; }

.line-cta-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: center;
}
.line-cta-question {
  background: #FFFFFF;
  border: 2px solid #1F2937;
  border-radius: 100px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  position: relative;
  line-height: 1.5;
}
.line-cta-question-left::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 10px solid #1F2937;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.line-cta-question-right::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 10px solid #1F2937;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.line-cta-main { text-align: center; }
.line-cta-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #1F2937;
}
.line-cta-note {
  margin-top: 18px;
  font-size: 14px;
  color: #6B7280;
}

/* === Footer === */
.footer {
  background: #1F2937;
  color: #E5E7EB;
  padding: 48px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.footer-tagline {
  font-size: 13px;
  color: #9CA3AF;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}
.footer-links a:hover { color: #FFE066; }
.footer-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #374151;
  padding-top: 24px;
  margin-top: 16px;
  font-size: 12px;
  color: #6B7280;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-image img { max-width: 480px; }
  .hero-cta { justify-content: center; }
  .stages { flex-wrap: wrap; gap: 16px; }
  .stage-arrow { display: none; }
  .stage { flex: 1 1 30%; }
  .card-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .line-cta-inner { grid-template-columns: 1fr; }
  .line-cta-question { display: none; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .nav-menu { display: none; }
  .nav-burger { display: block; }
  .stage { flex: 1 1 45%; }
  .card-grid, .works-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .section-title { font-size: 22px; }
  .about-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    text-align: center;
  }
  .about-avatar {
    margin: 0 auto;
    width: 130px;
    height: 130px;
  }
  .about-name { justify-content: center; }
  .about-cta { align-items: center; }
  .about-story { text-align: left; }
}
