/* ==========================================
   Reset & Base Styles
   ========================================== */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================
   Layout Containers
   ========================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-sub {
  text-align: center;
  color: #666666;
  margin-bottom: 48px;
}

/* ==========================================
   Header & Desktop Navigation
   ========================================== */
#header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  padding: 12px 20px;
}

/* SEOタイトルの基本スタイルと滑らかなアニメーション設定 */
.header-seo-title {
  font-size: 0.75rem;
  color: #888888;
  font-weight: 400;
  margin-bottom: 6px;
  opacity: 1;
  visibility: visible;
  max-height: 50px;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s ease, margin 0.3s ease;
}

/* スクロール時に隠すスタイル */
.header-seo-title.is-hidden {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-bottom: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  width: auto;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.desktop-nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap; /* テキストの意図しない改行を防止 */
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #0066cc;
}

.btn-header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #0066cc;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap; /* ボタン内テキストの改行を防止 */
  transition: opacity 0.2s ease;
}

.btn-header-contact:hover {
  opacity: 0.9;
}

.btn-icon {
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================
   Hamburger Button (SP)
   ========================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 2px;
}

.hamburger-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #333333;
}

/* ハンバーガーボタンが開状態の時 */
.hamburger-btn.is-active .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   Drawer Overlay & Mobile Menu (SP)
   ========================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.drawer-menu.is-active {
  transform: translateX(0);
}

.drawer-inner {
  padding: 60px 24px 32px;
}

/* 閉じるボタン（×印） */
.drawer-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn span {
  position: absolute;
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333333;
}

.drawer-close-btn span:nth-child(1) {
  transform: rotate(45deg);
}

.drawer-close-btn span:nth-child(2) {
  transform: rotate(-45deg);
}

/* ロゴを左右中央揃え */
.drawer-logo {
  margin-bottom: 32px;
  text-align: center;
}

.drawer-logo img {
  height: 32px;
  width: auto;
  margin: 0 auto;
}

.drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 各メニュー項目の下線設定 */
.drawer-nav li {
  border-bottom: 1px solid #eeeeee;
}

/* お問い合わせボタンなどのラッパーアイテムはボーダーを消す */
.drawer-nav li:has(.btn-header-contact) {
  border-bottom: none;
}

.drawer-nav a {
  text-decoration: none;
  color: #333333;
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  padding: 14px 0;
  transition: color 0.2s ease;
}

.drawer-nav a:hover {
  color: #0066cc;
}

/* お問い合わせボタン（ドロワー内） */
.drawer-nav .btn-header-contact {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  font-weight: 700;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  background-color: #f8fafc;
  padding: 100px 0 80px;
  text-align: center;
}

.badge {
  display: inline-block;
  background-color: #e6f0fa;
  color: #0066cc;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.highlight {
  color: #0066cc;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 36px;
  color: #555555;
  font-size: 1.05rem;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* ボタン内部要素（テキスト・アイコン）の垂直揃え補正 */
.btn-primary span,
.btn-secondary span,
.btn-outline span {
  display: inline-block;
  line-height: 1;
}

.btn-primary svg,
.btn-secondary svg,
.btn-outline svg {
  display: block;
  flex-shrink: 0;
}

.btn-primary {
  background-color: #0066cc;
  color: #ffffff;
  padding: 14px 28px;
  border: none;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #333333;
  padding: 14px 28px;
  border: none;
}

.btn-outline {
  border: 2px solid #0066cc;
  color: #0066cc;
  padding: 12px 24px;
  text-align: center;
}

.btn-primary:hover, .btn-secondary:hover, .btn-outline:hover {
  opacity: 0.9;
}

/* ==========================================
   Pricing Section
   ========================================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border: 2px solid #0066cc;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.1);
}

.recommend {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0066cc;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0066cc;
  text-align: center;
  margin-bottom: 8px;
}

.price span {
  font-size: 0.85rem;
  color: #666666;
  margin-left: 4px;
}

.plan-desc {
  text-align: center;
  color: #666666;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.price-card li {
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.95rem;
  list-style: none;
  text-align: left;
}

/* 価格カード内ボタンの完全中央配置調整 */
.price-card a.btn-outline,
.price-card a.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

/* 矢印SVGアイコンのサイズとズレ防止設定 */
.price-card .btn-icon-arrow {
  display: block !important;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.price-card .btn-outline span,
.price-card .btn-primary span {
  display: inline-block;
  line-height: 1;
}

.maintenance-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #666666;
}

/* ==========================================
   Flow Section
   ========================================== */
.flow-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.flow-step {
  border: 1px solid #e2e8f0;
  padding: 20px 24px;
  border-radius: 8px;
  background-color: #ffffff;
}

.flow-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0066cc;
  background-color: #e6f0fa;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
}

.flow-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.flow-content p {
  color: #666666;
  font-size: 0.9rem;
}

/* ==========================================
   Sample Section
   ========================================== */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sample-item {
  text-align: center;
}

.img-placeholder {
  aspect-ratio: 4 / 3;
  background-color: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #444444;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: #666666;
  text-align: right;
}

/* ==========================================
   Other Services Section
   ========================================== */
.other-services {
  background-color: #f9f9f9;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333333;
}

.service-card .service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-card .btn-outline {
  width: 100%;
  max-width: 200px;
}

/* ==========================================
   FAQ & Contact
   ========================================== */
.faq-item {
  max-width: 700px;
  margin: 0 auto 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.faq-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #0066cc;
}

.faq-item p {
  color: #555555;
  font-size: 0.95rem;
}

footer {
  background-color: #1e293b;
  color: #ffffff;
  text-align: center;
  padding: 30px 0;
  font-size: 0.85rem;
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-form {
    max-width: 680px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-label .required {
    background-color: #e53e3e;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-label .optional {
    background-color: #718096;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form-control.is-error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
}

.form-submit {
    text-align: center;
    margin-top: 32px;
}

.form-step-title {
    text-align: center;
    margin-bottom: 24px;
}

.form-step-title h2 {
    font-size: 24px;
    font-weight: 700;
}

.confirm-lead {
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.confirm-table th,
.confirm-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.confirm-table th {
    width: 30%;
    background-color: #f7fafc;
    font-weight: 700;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-secondary {
    padding: 12px 24px;
    background-color: #edf2f7;
    color: #2d3748;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.complete-wrapper {
    text-align: center;
    padding: 40px 0;
}

.complete-lead {
    margin-top: 16px;
    line-height: 1.6;
}

/* 注意書きボックス */
.contact-notice-box {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 20px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3182ce;
    border-radius: 6px;
    box-sizing: border-box;
}

.contact-notice-box .notice-title {
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-notice-box .notice-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.contact-notice-box.complete-notice {
    text-align: left;
    margin-top: 32px;
}

.notice-list {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.notice-list li {
    margin-bottom: 8px;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Column Page Specific Styles (追加・調整部分)
   ========================================== */
.column-body {
    max-width: 780px;
    margin: 0 auto;
}

.column-body .lead-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #444;
}

.column-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 48px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.cost-feature-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.cost-feature-box h4 {
    font-size: 1.15rem;
    color: #0066cc;
    margin-bottom: 8px;
}

.cost-feature-box p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

.cost-feature-box p:last-child {
    margin-bottom: 0;
}

.cost-price {
    font-size: 0.95rem;
    color: #333;
}

.column-body ul {
    margin: 16px 0 24px 24px;
    color: #555;
}

.column-body ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* 比較表用のスタイル調整 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0 40px;
}

.comparison-table {
    font-size: 0.9rem;
    white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    width: 25%;
}

.comparison-table th {
    background-color: #f1f5f9;
    color: #1e293b;
}

/* FAQボックスタグ */
.faq-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
}

.faq-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.faq-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Gallery Page Styles
   ========================================== */

/* Category Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0 16px 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.gallery-tabs::-webkit-scrollbar {
    display: none;
}

.gallery-tabs .tab-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background-color: #f0f2f5;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.gallery-tabs .tab-item:hover {
    background-color: #e2e6ea;
    color: #111;
}

.gallery-tabs .tab-item.active {
    background-color: var(--primary-color, #0066cc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
    justify-content: start;
}

/* Gallery Card */
.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

/* フィルタリング表示切り替え用クラス */
.gallery-card.is-active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card.is-hidden {
    display: none !important;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Thumbnail & Badge */
.card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #eee;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-thumb img {
    transform: scale(1.05);
}

.badge-plan {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-light {
    background-color: #17a2b8;
}

.badge-standard {
    background-color: var(--primary-color, #0066cc);
}

.badge-premium {
    background-color: #6f42c1;
}

/* Card Content */
.card-body {
    padding: 20px;
}

.card-genre {
    display: inline-block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #0066cc);
    background-color: rgba(0, 102, 204, 0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-demo:hover {
    background-color: var(--primary-color, #0066cc);
    color: #fff;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .gallery-tabs {
        justify-content: flex-start;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================
   404 Error Page
   ========================================== */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404 .error-code {
    letter-spacing: -2px;
}

.error-404 .error-actions {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .error-404 .error-code {
        font-size: 60px;
    }
    
    .error-404 .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .error-404 .error-actions a {
        width: 100%;
    }
}

/* ==========================================
   Responsive Styles
   ========================================== */
/* SP (768px未満) */
@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .price-grid, .sample-grid, .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  /* スマホ時のフローセクション（step-numとh4を1行目に並べ、pを2行目に配置） */
  .flow-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 12px;
  }

  .flow-content .step-num {
    grid-column: 1;
    grid-row: 1;
  }

  .flow-content h4 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .flow-content p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
  }

  /* スマホ時の比較表の折り返し防止 */
  .comparison-table {
    white-space: normal;
  }
}

/* 中間サイズ (768px〜1024px)：メニューの余白・文字サイズ・ボタンをキュッと縮めて改行を防ぐ */
@media (min-width: 768px) and (max-width: 1024px) {
  .desktop-nav ul {
    gap: 12px;
  }

  .desktop-nav a {
    font-size: 0.85rem;
  }

  .btn-header-contact {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* PC/Tablet (768px以上) */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* PC閲覧時：h4の横幅を固定して、pの開始位置を縦に揃える */
  .flow-content h4 {
    width: 180px; /* 見出しエリアの幅を統一 */
  }
}