/* =========================================================
   1. Variables & Reset
========================================================= */
:root {
  /* Colors */
  --color-primary: #E91E63;
  --color-primary-dark: #C2185B;
  --color-primary-light: #F48FB1;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9f9;
  --color-border: #eeeeee;
  
  /* Spacing */
  --container-width: 1200px;
  --container-padding: 20px;
  --section-padding: clamp(60px, 8vw, 96px);
  
  /* Typography */
  --font-base: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-heading: 'Roboto', sans-serif;
  
  /* Header */
  --header-height: 70px;
}

/* Modern Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

/* Utilities */
.container {
  width: min(var(--container-width), 100% - var(--container-padding) * 2);
  margin-inline: auto;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1;
  display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-smoothing: antialiased;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.text-highlight { color: var(--color-primary); font-family: var(--font-heading); }

/* Buttons with Premium Animations */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  position: relative; isolation: isolate;
}
.btn--primary {
  background: var(--color-primary); color: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(233, 30, 99, 0.35);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.45);
}
.btn--block { width: 100%; }

/* =========================================================
   2. Header
========================================================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  height: var(--header-height);
  display: flex; align-items: center;
  transition: background 0.3s;
}
.header__container {
  display: flex; align-items: center; justify-content: space-between;
}
.header__logo img { height: 40px; width: auto; }

/* Desktop Nav */
.header__nav ul { display: flex; gap: 28px; }
.header__nav a {
  font-weight: 700; font-size: 0.95rem; position: relative; padding-bottom: 4px;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--color-primary); transition: width 0.25s;
}
.header__nav a:hover::after { width: 100%; }

/* Mobile Nav Toggle */
.header__hamburger { display: none; }

/* =========================================================
   3. Hero (Fix for Overlap)
========================================================= */
.hero {
  position: relative;
  /* 画面高さいっぱいにしつつ、コンテンツが増えたら伸びるように設定 */
  min-height: calc(100vh - var(--header-height));
  
  /* Flexboxに変更して、バナーを自然に下に配置する（重なり防止の肝） */
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;
  
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #d83b78, #f48fb1);
  
  /* 上下に余白を持たせる（下はバナーがあるので0でも可だが調整用に少し確保） */
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: 0; 
}

/* Diagonal Mosaic Background */
.hero__bg-mosaic {
  position: absolute; inset: -30% -25%; z-index: 0;
  display: flex; flex-direction: column; gap: clamp(14px, 2.5vw, 28px);
  transform: rotate(-14deg) skewY(-6deg) scale(1.05);
  background: transparent;
  pointer-events: none;
}
.mosaic-row { display: flex; gap: clamp(14px, 2.5vw, 28px); animation: mosaic 30s linear infinite; }
.mosaic-row:nth-child(even) { animation-direction: reverse; animation-duration: 35s; }

.mosaic-card {
  flex: 0 0 clamp(220px, 26vw, 420px); aspect-ratio: 4/3;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  box-shadow: none;
}
@keyframes mosaic { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero Main Content */
.hero__container {
  position: relative; z-index: 1;
  /* Flexアイテムとして伸長させ、バナーとの間に余白を確保 */
  flex-grow: 1;
  width: min(var(--container-width), 100% - var(--container-padding) * 2);
  margin-inline: auto;
  
  /* 上下中央寄せのためのマージン */
  margin-top: 20px;
  margin-bottom: 40px; /* 下のバナーとくっつきすぎないように */

  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  align-items: center; 
  gap: clamp(30px, 5vw, 60px);
}

.hero__bubble {
  background: rgba(255, 255, 255, 0.96);
  color: #333;
  padding: clamp(30px, 5vw, 50px);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  line-height: 1.4;
  margin-bottom: 24px;
  text-shadow: none;
  color: #222;
}
/* ===== Hero Heading Tweaks ===== */

.hero__title {
  font-family: var(--font-heading);
  line-height: 1.35;
  margin-bottom: 26px;
  color: #222;
  text-align: center;
}

/* 上のバッジ（伊勢崎発） */
.hero__heading-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #ffe3f0;
  color: #c2185b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* メインコピー：一番目立たせる */
.hero__heading-middle {
  display: block;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  color: #222;
  margin-bottom: 10px;
}

/* 「成果につながる」だけ色を変える */
.hero__accent {
  color: var(--color-primary);
}

/* サブコピー：情報として読ませるゾーン */
.hero__heading-bottom {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: #666;
}

/* 会社名だけちょっと強めに */
.hero__brand {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  color: #222;
}

/* スマホのとき少しだけ縮める */
@media (max-width: 768px) {
  .hero__heading-middle {
    font-size: 1.6rem;
  }
  .hero__heading-bottom {
    font-size: 0.95rem;
  }
}


.hero__heading-top {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 900;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

.hero__heading-middle {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: #222;
  margin-bottom: 5px;
  display: block;
}

.hero__heading-bottom {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #222;
  display: block;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.8;
  margin-bottom: 32px;
  color: #555;
  text-align: center;
}
.hero__subtitle strong { color: var(--color-primary); font-weight: 700; }

/* Hero CTA Button Animation */
.hero__bubble .btn--primary {
  animation: heroPulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 10px rgba(233, 30, 99, 0.35), 0 0 0 0 rgba(233, 30, 99, 0.4);
}

.hero__bubble .btn--primary:hover {
  animation: none;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(233, 30, 99, 0.5);
}

@keyframes heroPulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.35), 0 0 0 0 rgba(233, 30, 99, 0.4);
  }
  50% {
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.35), 0 0 0 12px rgba(233, 30, 99, 0);
  }
}

.hero__visual img {
  width: 100%; max-width: 600px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Full Width Promo Banner - 重なり防止修正版 */
.hero-promo-full {
  /* position: absolute を削除し、通常のフロー配置に変更 */
  position: relative; 
  width: 100%;
  z-index: 2;
  
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #0B3B7A 100%);
  color: #fff;
  padding: 18px 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  
  /* Flex親要素内で最下部に配置されるようマージン調整（念のため） */
  margin-top: auto;
}

.hero-promo-full__bg { display: none; /* 不要になったので非表示 */ }

.hero-promo-full__content {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px;
  text-align: center; font-size: 0.95rem;
}
.hero-promo-full__label {
  background: rgba(255,255,255,0.15); padding: 5px 14px; border-radius: 99px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.hero-promo-full__cta {
  background: transparent; color: #fff;
  padding: 8px 20px; border-radius: 99px; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.8);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.hero-promo-full__cta:hover {
  background: rgba(255,255,255,0.1); transform: translateY(-2px);
}

/* =========================================================
   4. Strengths
========================================================= */
.strengths { padding: var(--section-padding) 0; }
.strengths__grid { display: flex; flex-direction: column; gap: 96px; }
.strength-item {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px;
}
.strength-item:nth-child(even) .strength-item__text { order: 2; }

.strength-item__text .material-symbols-outlined {
  font-size: 3.5rem; color: var(--color-primary); margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-primary), #FF80AB);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.strength-item h3 { font-size: 2rem; margin-bottom: 20px; font-weight: 700; line-height: 1.3; }
.strength-item p { font-size: 1.05rem; color: var(--color-text-light); line-height: 1.9; }
.strength-item__img img {
  border-radius: 20px;
  transition: transform 0.3s;
}
.strength-item:hover .strength-item__img img { transform: scale(1.02); }

/* =========================================================
   5. Service
========================================================= */
.service { padding: var(--section-padding) 0; background: var(--color-bg-alt); }
.service__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.service-item {
  background: #fff; padding: 48px 32px; border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: rgba(233,30,99,0.1);
}
.service-item .material-symbols-outlined {
  font-size: 4rem; color: var(--color-primary); margin-bottom: 24px;
  opacity: 0.9;
}
.service-item h3 { font-size: 1.5rem; margin-bottom: 16px; font-weight: 700; }
.service-item p { color: var(--color-text-light); }


/* =========================================================
   5.5. Works
========================================================= */
.works { padding: var(--section-padding) 0; }
.works__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; max-width: 1000px; margin: 0 auto;
}
.work-card {
  display: block; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; color: inherit;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.work-card__img {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
}
.work-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.work-card:hover .work-card__img img { transform: scale(1.05); }

.work-card__overlay {
  position: absolute; inset: 0;
  background: rgba(233, 30, 99, 0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: #fff; font-weight: 700;
  opacity: 0; transition: opacity 0.3s;
}
.work-card:hover .work-card__overlay { opacity: 1; }
.work-card__overlay .material-symbols-outlined { font-size: 36px; }

.work-card__body { padding: 24px 30px; }
.work-card__body h3 {
  font-size: 1.3rem; margin-bottom: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.work-card__body p {
  font-size: 0.95rem; color: var(--color-text-light); line-height: 1.7;
}

.flow { padding: var(--section-padding) 0; }
.flow__timeline {
  max-width: 800px; margin: 0 auto; position: relative; padding: 20px 0;
}
.flow__timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 4px; background: rgba(233,30,99,0.15); transform: translateX(-50%);
  border-radius: 4px;
}
.flow-item {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 60px; position: relative;
}
.flow-item:nth-child(odd) { flex-direction: row-reverse; }
.flow-item__text { width: 42%; }
.flow-item:nth-child(odd) .flow-item__text { text-align: right; }

.flow-item__icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: var(--color-primary); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 10px 20px rgba(233,30,99,0.2);
  z-index: 1;
}
.flow-item__icon .material-symbols-outlined { font-size: 32px; }

/* =========================================================
   7. Price
========================================================= */
.price { padding: var(--section-padding) 0; background: var(--color-bg-alt); }
.price__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; max-width: 1100px; margin: 0 auto;
}
.price-item {
  background: #fff; border-radius: 24px; overflow: visible;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.price-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}
.price-item__header {
  background: var(--color-primary); color: #fff; padding: 40px 30px 30px;
  text-align: center; border-radius: 24px 24px 0 0;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.price-item__header h3 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.price-item__header .material-symbols-outlined { font-size: 3rem; margin-bottom: 10px; opacity: 0.9; }

.price__tag {
  text-align: center; font-size: 3.2rem; font-weight: 800; padding: 30px 0;
  font-family: var(--font-heading); color: #222;
}
.price__unit { font-size: 1.1rem; color: #888; font-weight: 400; }
.price-item ul { padding: 0 30px 40px; }
.price-item li {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 1.05rem;
}
.price-item li .material-symbols-outlined {
  color: var(--color-primary); font-size: 24px;
}

.price-item__badge {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #FFC107, #FF9800);
  color: #fff; font-weight: 800;
  padding: 8px 20px; border-radius: 99px; font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
  white-space: nowrap;
  animation: badgeFloat 3s ease-in-out infinite;
  z-index: 10;
}
@keyframes badgeFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}
.price__note {
  text-align: center;       /* テキストを中央寄せ */
  margin-top: 40px;        /* 上のプランカードとの間隔を空ける */
  font-size: 0.9rem;       /* 注釈らしく文字を少し小さく */
  color: var(--color-text-light); /* 文字色を少し薄く */
}

/* =========================================================
   8. FAQ
========================================================= */
.faq { padding: var(--section-padding) 0; }
.faq__list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__question {
  width: 100%; padding: 28px 0; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 1.15rem;
  transition: color 0.2s;
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out;
}
.faq-item__answer p { padding-bottom: 28px; color: var(--color-text-light); line-height: 1.8; }
.faq-item.is-open .faq-item__answer { max-height: 500px; }
.faq-item.is-open .material-symbols-outlined { transform: rotate(180deg); }

/* =========================================================
   9. Contact
========================================================= */
.contact {
  padding: var(--section-padding) 0;
  background: linear-gradient(to top, #FCE4EC 0%, #fff 100%);
}
.contact__lead {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}
.contact-form {
  max-width: 720px; margin: 0 auto; background: #fff;
  padding: clamp(30px, 6vw, 60px); border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.contact-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px;
}
.contact-action {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; border-radius: 16px; border: 1px solid var(--color-border);
  background: #fafafa;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-action:hover {
  background: #fff; transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.contact-action .material-symbols-outlined, .contact-action img {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 28px;
}
.contact-action--tel .material-symbols-outlined {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 6px 16px rgba(233,30,99,0.25);
}

.form-group { margin-bottom: 28px; }
.form-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.form-group input, .form-group textarea {
  width: 100%; padding: 16px; border: 2px solid #eee; border-radius: 10px;
  font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
  background: #fcfcfc;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233,30,99,0.1);
}
/* =========================================================
   Company（運営者情報）
========================================================= */

.company {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.company__list {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* 各行 */
.company__list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
}

.company__list > div:first-child {
  border-top: none;
}

/* 左側ラベル（dt） */
.company__list dt {
  font-weight: 700;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* 右側の内容（dd） */
.company__list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .company__list {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  }

  .company__list > div {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .company__list dt {
    font-size: 0.85rem;
    color: var(--color-primary-dark);
  }

  .company__list dd {
    font-size: 0.95rem;
  }
}

/* =========================================================
   10. Footer
========================================================= */
.footer {
  background: #111; color: #ccc; padding: 80px 0 30px;
  position: relative;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
  background: linear-gradient(90deg, #E91E63, #FF8A80, #F48FB1);
}

.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px;
  border-bottom: 1px solid #333; padding-bottom: 50px; margin-bottom: 30px;
}
.footer__brand img { height: 36px; margin-bottom: 20px; filter: brightness(1.2); }
.footer__tagline { font-size: 0.95rem; line-height: 1.8; color: #999; }

.footer__nav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.footer__nav-cols a {
  color: #ddd; transition: color 0.2s; position: relative; width: fit-content;
}
.footer__nav-cols a:hover { color: #fff; }
.footer__nav-cols a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--color-primary); transition: width 0.2s;
}
.footer__nav-cols a:hover::after { width: 100%; }

.footer__cta {
  background: #1a1a1a; padding: 24px; border-radius: 16px;
  border: 1px solid #333;
}
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 44px; height: 44px; background: #2a2a2a; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  transition: transform 0.2s, background 0.2s;
}
.footer__social a:hover { background: var(--color-primary); transform: translateY(-3px); }

.footer__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; font-size: 0.9rem; color: #666;
}
.footer__toTop {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 99px;
  border: 1px solid #444; color: #ccc; font-weight: 700;
  margin-bottom: 10px; transition: all 0.2s;
}
.footer__toTop:hover { background: #333; color: #fff; border-color: #666; }

/* =========================================================
   11. Responsive (Mobile First adjustments)
   PC表示には影響を与えず、スマホ・タブレットのみ調整します
========================================================= */

/* タブレット・スマホ共通 (992px以下) */
@media (max-width: 992px) {
  /* --- 全体の文字サイズ調整 --- */
  /* 見出しが大きすぎて変な改行になるのを防ぐため少し縮小 */
  .section-title {
    font-size: 2rem; 
    margin-bottom: 40px;
    padding: 0 10px; /* 画面端ギリギリにならないように */
    line-height: 1.4;
  }
  
  /* --- Hero セクション --- */
  .hero {
    /* コンテンツ量に合わせて高さを自動調整 */
    min-height: auto; 
    padding-top: 40px;
    padding-bottom: 0;
  }

  .hero__container { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 40px; 
    margin-bottom: 40px;
  }

  /* 【修正】ヒーローセクションのみ、画像を下に配置（HTMLの記述順通り） */
  .hero__visual { 
    order: 2; /* 明示的に2番目に配置 */
    margin-top: -20px; /* テキストとの距離を調整 */
  }
  
  .hero__bubble { 
    margin: 0 auto; 
    max-width: 600px;
    width: 100%; 
    padding: 30px 20px; /* 余白を調整して文字を入れる */
  }
  
  /* タイトルが長すぎて改行されるのを防ぐ */
  .hero__heading-middle { font-size: 1.5rem; }
  .hero__heading-bottom { font-size: 1.8rem; }

  /* --- Strengths (強み) --- */
  .strength-item { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 30px; 
  }
  
  /* 強みセクションは「画像が上」のままで良い（ユーザー要望により変更なし） */
  .strength-item:nth-child(even) .strength-item__text { order: 0; }
  .strength-item__img { order: -1; } 
  
  .strength-item__img img { 
    max-width: 100%; 
    width: 500px; /* スマホで大きすぎないように */
    margin: 0 auto; 
  }
  
  /* 見出しの改行を防ぐためにサイズ調整 */
  .strength-item h3 {
    font-size: 1.6rem;
    padding: 0 10px;
  }
}

/* スマホ (768px以下) */
@media (max-width: 768px) {
  /* --- Header (ハンバーガーメニュー) --- */
  .header__hamburger {
    display: block; width: 30px; height: 20px; position: relative; z-index: 1001;
    cursor: pointer;
  }
  .header__hamburger span {
    display: block; width: 100%; height: 2px; background: #333;
    position: absolute; transition: 0.3s;
  }
  .header__hamburger span:nth-child(1) { top: 0; }
  .header__hamburger span:nth-child(2) { top: 9px; }
  .header__hamburger span:nth-child(3) { bottom: 0; }
  
  .header__hamburger.is-active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
  .header__hamburger.is-active span:nth-child(2) { opacity: 0; }
  .header__hamburger.is-active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

  .header__nav {
    position: fixed; inset: 0; background: rgba(255,255,255,0.98); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
  }
  .header__nav.is-active { transform: translateX(0); }
  .header__nav ul { flex-direction: column; text-align: center; gap: 32px; width: 100%; }
  .header__nav a { font-size: 1.3rem; display: block; padding: 10px; }

  /* --- Flow (制作フロー) の乱れを修正 --- */
  .flow__timeline::before { left: 24px; }
  
  .flow-item { 
    flex-direction: column; /* 縦並びに強制 */
    align-items: flex-start; /* 左揃え */
    margin-left: 0; 
    padding-left: 70px; /* アイコン分のスペース */
    margin-bottom: 40px;
  }
  
  /* 偶数番目も奇数番目もすべて左揃えにリセット */
  .flow-item:nth-child(odd) { 
    flex-direction: column; 
    text-align: left; /* PCの右揃えを打ち消し */
  }
  
  .flow-item__text { 
    width: 100%; 
    text-align: left !important; /* 強制的に左揃え */
  }
  
  .flow-item__icon { 
    left: 24px; 
    transform: translate(-50%, 0); 
    top: 0; /* テキストの頭とアイコンを揃える */
  }
  
  /* --- Footer --- */
  .footer__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer__nav-cols { text-align: left; display: inline-grid; } /* メニューは中央寄りの左揃えが見やすい */
  
  /* --- Contact --- */
  .contact-actions { grid-template-columns: 1fr; }
  
  /* --- Price / Service カード余白調整 --- */
  /* 画面幅が狭いときにカード内の余白が大きいと文字が改行されすぎるため調整 */
  .service-item, .price-item__header, .price-item ul {
    padding-left: 20px;
    padding-right: 20px;
  }
  .price__tag { font-size: 2.5rem; } /* 価格の文字サイズ調整 */
  
  /* --- 予期しない改行対策 (強制折り返し) --- */
  /* URLや長い英単語がはみ出さないように */
  p, h1, h2, h3, li {
    overflow-wrap: break-word;
  }
}

/* さらに小さい画面 (iPhone SE等 480px以下) */
@media (max-width: 480px) {
  /* ヒーローの吹き出し内の余白をさらに詰める */
  .hero__bubble { padding: 24px 16px; }
  
  .hero__title { font-size: 1.8rem; }
  .hero__subtitle { font-size: 0.9rem; }
  
  /* バナーを縦並びに */
  .hero-promo-full__content { flex-direction: column; gap: 12px; }
  
  /* カード左右のマージンを調整 */
  .price-item { margin: 0; }
  
  /* 制作フローのアイコン位置微調整 */
  .flow-item { padding-left: 60px; }
  .flow__timeline::before { left: 20px; }
  .flow-item__icon { left: 20px; width: 50px; height: 50px; border-width: 4px; }
  .flow-item__icon .material-symbols-outlined { font-size: 24px; }
}
