*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:      #5a9b2e;
  --green-mid:  #7ec142;
  --green-pale: #f3f9ec;
  --text:       #333;
  --text-sub:   #666;
  --border:     #ddd;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.85;
}

/* ── ナビ ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 3px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
}
.nav-logo { font-size: 1.2rem; font-weight: bold; color: var(--green); flex-shrink: 0; }
.nav-logo a { color: inherit; text-decoration: none; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links li { flex-shrink: 0; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 0.88rem; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--green); }

/* ── 共通 ── */
section { padding: 88px 40px; }
/* 外枠は1200pxまで広げる。文章の幅は各所で760px前後に抑えて読みやすさを保つ */
.inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: 1.75rem;
  color: var(--green);
  text-align: center;
  margin-bottom: 4px;
}
.section-en {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: .1em;
  color: var(--text-sub);
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 13px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .2s;
}
.btn:hover { background: var(--green-mid); }

.btn-outline {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 13px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all .2s;
}
.btn-outline:hover { background: #fff; color: var(--green); }

/* ── ヒーロー ── */
#hero {
  background: url('images/TOP.PNG') center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
#hero .inner { position: relative; z-index: 1; }
.hero-name { color: rgba(255,255,255,.8); margin-bottom: 14px; }
.hero-h1 { font-size: 2.2rem; line-height: 1.6; margin-bottom: 20px; color: #fff; }
.hero-sub {
  color: rgba(255,255,255,.85);
  max-width: 440px;
  margin: 0 auto 36px;
  font-size: 0.95rem;
}

/* ── 自己紹介 ── */
#about { background: #fff; }
.about-center { text-align: center; }
.about-photo {
  width: 220px;
  height: 280px;
  border-radius: 8px;
  margin: 0 auto 32px;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-body h3 { font-size: 1.3rem; color: var(--green); margin-bottom: 14px; }
.about-body { max-width: 760px; margin: 0 auto; }
.about-body p { color: var(--text-sub); margin-bottom: 10px; font-size: 0.95rem; }

/* ── サービス ── */
#services { background: var(--green-pale); padding: 88px 0; }
.services-header { padding: 0 40px; }
.service-item {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.service-item:first-of-type { border-top: 4px solid var(--green-mid); }
.service-icon { width: 60px; height: 60px; min-width: 60px; object-fit: contain; margin-top: 4px; }
.service-body h3 { font-size: 1.3rem; color: var(--green); margin-bottom: 12px; }
.service-body p { color: var(--text-sub); font-size: 0.95rem; max-width: 760px; margin-bottom: 20px; }
.service-body .btn { padding: 10px 28px; font-size: 0.88rem; }

/* ── 料金 ── */
#pricing { background: #fff; padding: 88px 0; }
.pricing-header { padding: 0 40px; }
.pricing-item { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border); }
.pricing-item:first-of-type { border-top: 4px solid var(--green-mid); }
.pricing-item-head { background: var(--green); color: #fff; padding: 24px 80px; }
.pricing-item-head h3 { font-size: 1.1rem; margin-bottom: 2px; }
.pricing-item-head p { font-size: 0.82rem; opacity: .85; }
.pricing-item-body { padding: 28px 80px; }
.pricing-desc { color: var(--text-sub); font-size: 0.92rem; margin-bottom: 24px; max-width: 700px; }
.pricing-sub-heading {
  font-weight: bold;
  color: var(--green);
  font-size: 0.92rem;
  margin: 24px 0 6px;
}
.pricing-sub-heading:first-child { margin-top: 0; }
.pricing-theme-heading { font-size: 1.15rem; }
.pricing-condition { color: var(--text-sub); font-size: 0.85rem; margin-bottom: 8px; }
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row .plan-name { font-weight: bold; }
.pricing-row .plan-detail {
  display: block;
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: normal;
  margin-top: 3px;
}
.pricing-row .plan-price { color: var(--green); font-weight: bold; white-space: nowrap; }
.pricing-note-inline { color: var(--text-sub); font-size: 0.8rem; margin-top: 10px; }
.pricing-small-text { color: var(--text-sub); font-size: 0.82rem; margin-top: 18px; max-width: 700px; }
.pricing-theme-list { list-style: none; margin-top: 6px; max-width: 700px; }
.pricing-theme-list li { padding: 6px 0; font-size: 0.92rem; font-weight: bold; }
.pricing-annotation { font-weight: normal; color: var(--text-sub); font-size: 0.82rem; margin-left: 6px; }
.pricing-note {
  text-align: center;
  margin-top: 32px;
  padding: 0 40px;
  color: var(--text-sub);
  font-size: 0.82rem;
}

/* ── Kindle ── */
#kindle {
  background: var(--green-pale);
  --kindle-card-w: 260px;
}
.kindle-carousel { margin-top: 8px; }
.kindle-carousel .splide__slide { display: flex; justify-content: center; height: auto; }
.kindle-carousel .splide__pagination {
  position: static;
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.kindle-carousel .splide__pagination__page {
  width: 9px; height: 9px;
  margin: 0;
  border-radius: 50%;
  background: var(--border);
  opacity: 1;
  transform: scale(1);
  transition: background 0.3s, transform 0.3s;
}
.kindle-carousel .splide__pagination__page.is-active {
  background: var(--green);
  transform: scale(1.3);
}
.kindle-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--kindle-card-w);
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  height: 100%;
}
.kindle-cover {
  width: 100%;
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  display: block;
  margin-bottom: 20px;
}
.kindle-cover img { width: 100%; height: auto; display: block; border-radius: 4px; }
.kindle-body h3 { font-size: 1.05rem; color: var(--green); margin-bottom: 10px; }
.kindle-body p { color: var(--text-sub); font-size: 0.85rem; margin-bottom: 18px; line-height: 1.7; }
.kindle-all-link {
  display: block;
  margin-top: 36px;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity .2s;
}
.kindle-all-link:hover { opacity: .85; }
.kindle-all-link img { width: 100%; height: auto; display: block; }

/* ── SNS ── */
#sns { background: #fff; text-align: center; }
.sns-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sns-btn {
  display: inline-block;
  padding: 11px 26px;
  border: 2px solid var(--green-mid);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: all .2s;
}
.sns-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ── お問い合わせ ── */
#contact { background: var(--green-pale); text-align: center; }
.contact-sub { color: var(--text-sub); margin-bottom: 32px; font-size: 0.95rem; }
.contact-options { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.contact-box {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 28px 44px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s;
}
.contact-box:hover { border-color: var(--green); }
.contact-label { font-size: 0.75rem; color: var(--text-sub); margin-bottom: 6px; }
.contact-value { font-size: 0.95rem; color: var(--green); font-weight: bold; }

/* ── フッター ── */
footer {
  background: #333;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 22px;
  font-size: 0.8rem;
}
.footer-links { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
}
.footer-links a:hover { color: #fff; border-bottom-color: #fff; }

/* ── 規約ページ（プライバシーポリシー等） ── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.legal .legal-lead {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal h1 {
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 1.1rem;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--green-mid);
}
.legal p { margin-bottom: 14px; }
.legal p a { color: var(--green); }
.legal .legal-back {
  display: inline-block;
  margin-top: 48px;
  color: var(--green);
  font-weight: bold;
  text-decoration: none;
}
.legal .legal-back:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .legal { padding: 100px 20px 60px; }
  .legal h1 { font-size: 1.35rem; }
}

@media (max-width: 700px) {
  nav { padding: 0 20px; gap: 16px; }
  .nav-links { gap: 20px; mask-image: linear-gradient(to right, #000 88%, transparent); }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.7rem; }
  .service-item { padding: 36px 24px; flex-direction: column; gap: 16px; }
  .pricing-item-head { padding: 24px; }
  .pricing-item-body { padding: 24px; }
  #kindle { --kindle-card-w: 280px; }
  .kindle-card { padding: 20px; }
}

/* ── ブログ ── */
#blog { background: #fff; text-align: center; }
.blog-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  text-align: left;
}
/* display:grid が hidden 属性に勝ってしまうので明示的に消す */
.blog-list[hidden] { display: none; }
.blog-list li { display: flex; }
.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.blog-card { border-top: 4px solid var(--green-mid); }
.blog-body { padding: 22px 22px 24px; }
.blog-body time { font-size: 0.78rem; color: var(--text-sub); }
.blog-body h3 { font-size: 0.98rem; color: var(--green); margin: 6px 0 10px; line-height: 1.5; }
.blog-body p { font-size: 0.85rem; color: var(--text-sub); line-height: 1.7; }
.blog-skeleton { height: 200px; border-radius: 8px; background: var(--green-pale); }

@media (max-width: 800px) {
  .blog-list { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .blog-skeleton:not(:first-child) { display: none; }
}

/* こんな方ははやたんにお任せください（料金欄のお悩みカード）
   料金欄の本文幅（約720px）だと3枚が窮屈なので、カードの列だけ本文より広く取る */
.worry-heading { font-size: 1.3rem; font-weight: bold; text-align: center; margin: 8px 0 20px; }
.worry-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(1200px, calc(100vw - 32px));
  margin: 0 0 40px calc(50% - min(600px, 50vw - 16px));
}
.worry-cards li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 180px;
  padding: 20px 18px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.worry-cards img { flex: 0 0 auto; width: 96px; height: 96px; object-fit: contain; }
.worry-cards p { font-weight: bold; font-size: 1.05rem; line-height: 1.7; color: var(--text); word-break: auto-phrase; }
@media (max-width: 900px) {
  .worry-cards { grid-template-columns: 1fr; gap: 12px; }
  .worry-cards li { min-height: 0; padding: 16px; }
  .worry-cards img { width: 72px; height: 72px; }
}
