:root {
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --text-dark: #1e293b;
  --soft-bg: #f8fafc;
}
* { box-sizing:border-box; }
html, body { margin:0; padding:0; font-family:'Noto Sans JP', sans-serif; color:var(--text-dark); background:#fff; overflow-x:hidden; }

header {
  position: fixed; top:0; left:50%; transform:translateX(-50%);
  width: 100%;
  max-width:1100px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 20px; z-index:1000;
}
header h1 { font-size:1.3rem; color:var(--accent-dark); font-weight:700; margin:0; }

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
nav .divider {
  color: #ccc;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1;
  margin: 0 16px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}
nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}
nav a:hover { color: var(--accent); }

@media (max-width: 768px) {
  nav { flex-direction: column; }
  nav .divider { display: none; }
}

.menu-toggle { display:none; flex-direction:column; justify-content:center; cursor:pointer; }
.menu-toggle span { width:25px; height:3px; background: var(--accent-dark); margin:4px 0; border-radius:2px; transition:0.3s; }

.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero::before {
  content:"";
  position:absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.3); /* ← マスクの濃さ（数値を大きくすると暗くなる） */
  z-index:1;
}

.hero-carousel { position:absolute; top:0; left:0; width:100%; height:100%; }
.hero-carousel img {
  width:100%; height:100%; object-fit:cover;
  position:absolute; top:0; left:0;
  opacity:0; transition: opacity 1s ease-in-out;
}
.hero-carousel img.active { opacity:1; }

.hero-content {
  position:relative; z-index:2; text-align:center; margin-top: 150px; /* 上に余白を作る */
}
.hero-content h2,
.hero-content p {
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  text-shadow: 3px 3px 8px rgba(0,0,0,1);
  line-height:1.3;
  word-break: keep-all;
}
.hero-content h2 { font-size:3rem; font-weight:800; margin:0; }
.hero-content p { font-size:1.2rem; margin-top:16px; line-height:1.5; }

.btn {
  display:inline-block;
  padding:12px 28px;
  border-radius:50px;
  font-weight:600;
  text-decoration:none;
  background: var(--accent);
  color:#fff;
  text-align:center;
  cursor:pointer;
  transition:0.3s;
}
.hero-content .btn {
  margin:16px auto 0;
  min-width:160px;
  display:inline-block;
}

section { padding:100px 6% 80px; max-width:1100px; margin:auto; }
h2,h3,h4 { margin:0; font-weight:700; }
h3 { font-size:1.8rem; text-align:center; color:var(--accent-dark); margin-bottom:50px; position:relative; }
h4 { text-align:center; }
h3::after {
  content:""; position:absolute; bottom:-12px; left:50%; transform:translateX(-50%);
  width:60px; height:3px; background:var(--accent);
}

.plans, .works, .voices, .flow-steps {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:35px;
}
.plan, .work, .voice, .flow-step {
  background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:40px;
  box-shadow:0 4px 16px rgba(0,0,0,0.08);
}
.work img { width:100%; border-radius:10px; margin-bottom:16px; }

form { max-width:600px; margin:auto; display:flex; flex-direction:column; gap:14px; }
form input, form textarea {
  padding:14px;
  border-radius:8px;
  border:1px solid #cbd5e1;
  font-size:1rem;
  width:100%;
  resize:none;
}
form button {
  padding:12px 24px;
  border-radius:50px;
  border:none;
  background: var(--accent);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  width:180px;
  margin:0 auto;
  display:block;
}

footer {
  background: var(--accent-dark);
  color:#fff;
  text-align:center;
  padding:20px 20px;
  margin-top:60px;
  white-space:nowrap;
}

img { max-width:100%; height:auto; display:block; }

/* セールストークゾーン CSS（グラデーション＋余白調整版） */
.why-section {
  background: linear-gradient(to bottom, #fff8f0, #f9f9f9); /* 上下グラデーション */
  padding: 10px 20px 60px; /* ヒーローとの余白を広めに調整 */
  text-align: center;
}

.why-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.why-section h3 {
  font-size: 1.9rem;
  margin-bottom: 30px;
  margin-top: 60px;
  word-break: keep-all;
}

.why-section p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #555;
  line-height: 1.7;
  word-break: keep-all;
}

/* 中央寄せ＋文章左揃え */
.why-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px auto;
  display: flex;
  flex-direction: column; /* 縦方向 */
  align-items: center; /* リスト全体を中央揃え */
  gap: 12px; /* 各項目の間隔 */
}

.why-features li {
  position: relative;
  padding-left: 25px; /* ✔用スペース */
  max-width: 600px; /* 左揃えテキストの横幅制限 */
  width: 100%;
  text-align: left; /* 文は左揃え */
  font-size: 1.15rem;
  word-break: keep-all;
}

.why-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #ff6b6b;
  font-weight: bold;
}

.btn-primary {
  display: inline-block;
  background-color:var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
}

@media (max-width:1024px){
  .plans, .works, .voices, .flow-steps { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:767px){
  .plans, .works, .voices, .flow-steps { grid-template-columns:1fr; }
  .menu-toggle { display:flex; }
  nav { display:none; flex-direction:column; width:calc(100% - 20px); background:#fff; position:absolute; top:60px; right:10px; box-shadow:0 2px 10px rgba(0,0,0,0.1);}
  nav a { padding:14px 20px; border-top:1px solid #e2e8f0;}
  nav.active { display:flex;}
  .hero-content h2 { font-size:2rem; }
  .hero-content p { font-size:1rem; }
}

/* スマホ・タブレット対応 */
@media screen and (max-width: 428px) {
  .why-section {
    padding: 60px 15px; /* 上下余白を少し縮小 */
  }

  .hero {
  min-height: 60vh;
  max-height: 80vh;
}

  .why-section h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
  }

  .why-section p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
  }

  .why-features li {
    font-size: 1rem;
    padding-left: 25px;
    margin-bottom: 12px;
    max-width: 320px; /* 左揃えテキストの横幅制限 */
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* フォーム周りを中央揃えに調整 */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* 横方向中央寄せ */
}

#contact form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contact button {
    width: 180px;
    margin: 0 auto;
}

#formMessage {
    display: block;       /* ここで必ず表示 */
    width: 100%;
    max-width: 600px;
    text-align: center;   /* 文字中央 */
    font-weight: bold;
    font-size: 1.2em;
    margin: 1em 0;
    line-height: 1.4;
}

.line {
  background:linear-gradient(transparent 70%, #FFFF00 0%);
}