/* ブログ道場 — main stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --primary: #1a1a1a;
  --secondary: #CCE1D6;
  --accent: #CEE6ED;
  --text: #1a1a1a;
  --sec-green: #CCE1D6;
  --sec-peach: #FCE2CF;
  --sec-blue: #CEE6ED;
  --sec-pink: #F2D1E1;
  --sec-cream: #FFF3D8;
  --sec-lightblue: #E2F5FA;
  --footer-bg: #e8e8e8;
  --footer-bar: #1a1a1a;
  --footer-bar-text: #ffffff;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --max-w: 1200px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 80px;
  border-bottom: 1px solid #e8e8e8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 20px;
}

.header-spacer { padding-top: 80px; }

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link:hover { text-decoration: none; }

.logo-link svg { width: 36px; height: 36px; }

/* NAV */
.main-nav { flex: 1; }

.nav-list {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.nav-list a {
  font-size: 0.95rem;
  color: var(--primary);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  border-color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  border: none !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.85; text-decoration: none !important; }

/* Mobile burger */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 55;
  padding: 20px;
}

.mobile-menu.open { display: block; }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-list a {
  display: block;
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 580px;
  margin-bottom: 32px;
  opacity: 0.92;
  line-height: 1.75;
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ===== SECTIONS ===== */
.section { padding: 64px 20px; }

.section-colored { padding: 64px 20px; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-heading p {
  color: #444;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ICON GRID */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
}

.icon-card:hover { text-decoration: none; }

.icon-card-bg {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius);
  transition: filter 0.2s;
}

.icon-card:hover .icon-card-bg { filter: brightness(0.97); }

.icon-card-bg i { font-size: 3rem; color: var(--primary); }

.icon-card span {
  font-size: 1.05rem;
  font-weight: 600;
}

/* COLORED PANEL */
.colored-panel {
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.colored-panel .panel-heading {
  text-align: center;
  margin-bottom: 32px;
}

.colored-panel .panel-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.colored-panel .panel-heading p { font-size: 1rem; color: #333; }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card i {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p { font-size: 0.95rem; color: #333; line-height: 1.65; }

/* IMAGE + TEXT SPLIT */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.split-text p { font-size: 1rem; color: #333; margin-bottom: 12px; }

.split-img { border-radius: var(--radius); overflow: hidden; }
.split-img img { width: 100%; height: 340px; object-fit: cover; }

/* TESTIMONIALS */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.testimonial-stars { color: #f5a623; margin-bottom: 10px; font-size: 1rem; }

.testimonial p { font-size: 0.95rem; color: #222; font-style: italic; margin-bottom: 16px; line-height: 1.65; }

.testimonial-author { font-weight: 700; font-size: 0.9rem; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.price-card.featured {
  background: var(--primary);
  color: #fff;
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.price-card.featured .badge {
  background: #fff;
  color: #1a1a1a;
}

.price-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.price-period { font-size: 0.85rem; opacity: 0.7; margin-bottom: 20px; }

.price-features { text-align: left; margin-bottom: 24px; }

.price-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.price-card.featured .price-features li { border-color: rgba(255,255,255,0.15); }

.price-features li i { margin-top: 3px; font-size: 0.8rem; color: #2a9d5c; flex-shrink: 0; }
.price-card.featured .price-features li i { color: #a8e6bf; }

.price-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
}

.price-btn:hover { background: var(--primary); color: #fff; text-decoration: none; }
.price-card.featured .price-btn { border-color: #fff; color: #fff; }
.price-card.featured .price-btn:hover { background: #fff; color: var(--primary); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  gap: 12px;
}

.faq-question i { font-size: 0.85rem; transition: transform 0.25s; flex-shrink: 0; }

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer { display: none; padding: 0 0 18px; font-size: 0.95rem; color: #333; line-height: 1.7; }

.faq-item.open .faq-answer { display: block; }

/* CTA SECTION */
.cta-section {
  padding: 80px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p { font-size: 1.05rem; color: #333; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* CONTACT FORM */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  color: var(--primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.form-submit:hover { opacity: 0.85; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 1rem; opacity: 0.85; max-width: 560px; margin: 0 auto; }

/* TEXT CONTENT (legal pages) */
.text-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }

.text-content h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 12px; }
.text-content h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.text-content p { margin-bottom: 14px; color: #222; font-size: 0.98rem; }
.text-content ul { margin: 12px 0 14px 20px; list-style: disc; }
.text-content ul li { margin-bottom: 8px; font-size: 0.98rem; color: #222; }

/* ABOUT GRID */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.about-stat {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius);
}

.about-stat strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-stat span { font-size: 0.9rem; color: #333; }

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.team-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: #555; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  padding: 64px 20px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 48px;
}

.footer-brand { max-width: 260px; }

.footer-brand .logo-link { font-size: 1.15rem; margin-bottom: 12px; display: flex; }

.footer-brand p { font-size: 0.88rem; color: #444; line-height: 1.65; margin-top: 10px; }

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a { font-size: 0.9rem; color: #333; }
.footer-col ul a:hover { text-decoration: underline; }

.footer-contact p { font-size: 0.88rem; color: #333; margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.footer-contact i { margin-top: 3px; flex-shrink: 0; }

/* FOOTER BAR */
.footer-bar {
  background: var(--footer-bar);
  color: var(--footer-bar-text);
  padding: 20px;
  text-align: center;
}

.footer-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-bar p { font-size: 0.85rem; opacity: 0.85; }

.footer-socials { display: flex; gap: 18px; align-items: center; }

.footer-socials a {
  color: var(--footer-bar-text);
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-socials a:hover { opacity: 1; text-decoration: none; }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  z-index: 999;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

#cookie-banner p { flex: 1; min-width: 220px; line-height: 1.6; opacity: 0.9; }

#cookie-banner a { color: #cce1d6; text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-btn {
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cookie-btn:hover { opacity: 0.85; }

.cookie-accept { background: #CCE1D6; color: #1a1a1a; }
.cookie-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4) !important; border: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .burger-btn { display: flex; }

  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }

  .icon-grid { grid-template-columns: repeat(2, 1fr); }

  .colored-panel { padding: 32px 20px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }

  .footer-inner { flex-direction: column; gap: 32px; }

  .footer-bar-inner { flex-direction: column; text-align: center; }

  .contact-form { padding: 28px 20px; }

  #cookie-banner { flex-direction: column; align-items: flex-start; }

  .hero { min-height: 460px; }
}

@media (max-width: 480px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}
