/* ============================================================
   Coding Pack - Top Page Styles
   Colors: Green #29AA91 / Pink #ED5754
   Fonts: System fonts only
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --green:        #29AA91;
  --green-dark:   #1E8C76;
  --green-light:  #E5F6F2;
  --pink:         #ED5754;
  --pink-dark:    #D43E3B;
  --pink-light:   #FEF0EF;
  --text:         #2D2D2D;
  --text-mid:     #666;
  --text-light:   #999;
  --border:       #E0E0E0;
  --bg-light:     #F7F8F8;
  --white:        #fff;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       8px;
  --radius-lg:    16px;
  --container:    1100px;
  --gap:          24px;
  --section-py:   80px;
  --font:         -apple-system, BlinkMacSystemFont, "Hiragino Sans",
                  "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --transition:   .2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; }
p + p { margin-top: .8em; }

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: var(--section-py) 0;
}
.bg-light { background: var(--bg-light); }

/* ---- Section Head ---- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--pink));
  border-radius: 2px;
}
.section-subtitle {
  margin-top: 16px;
  color: var(--text-mid);
  font-size: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.btn-primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(237,87,84,.3);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-logo {
  flex-shrink: 0;
}
.header-logo img {
  height: 42px;
  width: auto;
}
.header-nav {
  flex: 1;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link.is-current {
  color: var(--green);
  background: var(--green-light);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 100;
}
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}
.has-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a:hover {
  background: var(--green-light);
  color: var(--green);
}

/* Header CTA */
.header-cta {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--pink);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
}
.btn-contact:hover {
  background: var(--pink-dark);
  color: var(--white);
}
.btn-request {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.btn-request:hover {
  background: var(--green);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin-top: 68px;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--green-light) 0%, #f0faf9 40%, #fff 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 24px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
}
.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual {
  flex-shrink: 0;
  width: 460px;
  max-width: 50%;
}
.hero-visual img {
  width: 100%;
  height: auto;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--text-mid);
  font-size: 16px;
}
.about-text strong {
  color: var(--text);
  font-weight: 700;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--green);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.stat-num small {
  font-size: 15px;
  font-weight: 700;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 4px;
  font-weight: 600;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}
.service-card:hover {
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green);
}
.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon img {
  width: 40px;
  height: 40px;
}
.service-icon .fa-brands,
.service-icon .fa-solid {
  font-size: 36px;
  color: var(--green);
  line-height: 1;
}
.service-title {
  font-size: 21px;
  color: var(--text);
  margin-bottom: 8px;
}
.service-price {
  font-size: 15px;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.service-link {
  font-size: 15px;
  color: var(--green);
  font-weight: 700;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon img {
  width: 36px;
  height: 36px;
}
.feature-title {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: none;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  border-radius: 50%;
  margin-bottom: 16px;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.step-content h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}
.process-cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: color var(--transition), background var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}
.faq-question::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}
.faq-item[open] .faq-question {
  color: var(--green);
}
.faq-answer {
  padding: 0 16px 20px 56px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
}
.faq-answer a {
  color: var(--green);
  text-decoration: underline;
}
.faq-more {
  text-align: center;
  margin-top: 36px;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date {
  color: var(--text-light);
  white-space: nowrap;
  font-size: 14px;
}
.news-text { color: var(--text); }
.news-more {
  text-align: center;
  margin-top: 24px;
}
.link-more {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}
.link-more:hover { color: var(--green-dark); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  min-height: 200px;
}
.loading-text {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 48px 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  color: var(--text);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--text);
}
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--green-light);
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.blog-card-date {
  font-size: 13px;
  color: var(--text-light);
}
.blog-card-cat {
  display: inline-block;
  padding: 2px 8px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
}
.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-more {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 72px 20px;
  text-align: center;
}
.cta-title {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-desc {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 36px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1A1A1A;
  padding: 56px 20px 32px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-logo {
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-logo img {
  height: 36px;
  width: auto;
}
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 32px;
}
.footer-nav-list a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-nav-list a:hover {
  color: var(--white);
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet (≤ 960px) --- */
@media (max-width: 960px) {
  :root { --section-py: 60px; }

  /* Header */
  .header-nav,
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav open */
  .header-nav.is-open {
    display: block;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: var(--white);
    overflow-y: auto;
    padding: 16px 0;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .header-nav.is-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header-nav.is-open .nav-link {
    padding: 14px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .header-nav.is-open .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-light);
    padding: 0;
  }
  .header-nav.is-open .dropdown-menu li a {
    padding: 12px 36px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
  }

  /* Hero */
  .hero { padding: 48px 20px; }
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-visual { width: 100%; max-width: 360px; margin: 0 auto; }

  /* About */
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  /* Services / Features */
  .services-grid,
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card,
  .feature-card { text-align: left; }
  .service-icon,
  .feature-icon { margin: 0 0 16px; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
}

/* --- Mobile (≤ 540px) --- */
@media (max-width: 540px) {
  :root { --section-py: 48px; }

  .hero-title { font-size: 24px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }

  .footer-nav-list { gap: 4px 16px; }
}
