/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-blue: #0066CC;
    --darkblue: #1450A6;
    --light-blue: #E8F2FF;
    --light-blue2: #BBDEFB;
    --dark-gray: #4A5568;
    --light-gray: #F7FAFC;
    --white: #FFFFFF;
    --accent: #00A6FB;
    --text-dark: #2D3748;
    --text-light: #718096;
    --border-color: #E2E8F0;
    --success: #48BB78;
    --warning: #F6AD55;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
  /* 固定ヘッダーの高さ分だけスクロール位置を下げる */
  scroll-padding-top: 80px; /* ヘッダー高さに合わせて調整 */
  scroll-behavior: smooth;  /* スムーズスクロールもついでに */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    /* 背景・文字色は不要 */
    font-size: 0;           /* 余白をなくす */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.logo a {
    display: inline-block;
}

.logo img {
    display: block;
    width: 150px;   /* お好みのサイズに調整 */
    height: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-blue);
}

.cta-button {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ヒーローセクション */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    /* 動画が読み込めなかった時用の背景色 */
    background-color: #f0f8ff; 
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を保ったまま全体をカバー */
}

/* 動画の上に半透明の黒を重ねて文字を読みやすくする（任意）*/
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1; /* 背景より手前に表示 */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 70px;
    font-weight: 700;
    color:var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle1 {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-subtitle2 {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 2rem;
    /* 改行を有効化 */
    white-space: normal !important;
    /* 必要であれば単語／日本語の途中でも折り返す */
    word-break: break-word !important;
}


/* <br> をしっかりブロック要素扱いに */
.hero-subtitle br {
  display: block !important;
  /* 上下に少しマージンが欲しければ調整 */
  margin: 0.5em 0;
}

/* ヒーロー用の大きめボタン */
.hero-button {
  display: inline-block;
  margin-top: 1.5rem;           /* 上に余白 */
  padding: 1.5rem 3.5rem;         /* ボタン内の余白 */
  background: var(--accent);     /* アクセントカラー */
  color: var(--white);           /* 文字色は白 */
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時 */
.hero-button:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* セクション共通 */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ソリューション */
.solution {
    position: relative;
    background: var(--white);
    color: var(--white);
    padding: 4rem 0 6rem; /* 下部に余白を多めに */
    overflow: visible;
}

.solution .container{
    position: relative;
    background: var(--darkblue);
    color: var(--white);
    padding: 4rem 0 6rem; /* 下部に余白を多めに */
    overflow: visible;
}

/* 見出しは白字に */
.solution .section-title {
  color: var(--white);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.challenges {
    display: flex;
    /* 余白ではなく両端揃えに */
    justify-content: space-between;
    /* flex-wrap は不要なら消してもOK */
    flex-wrap: nowrap;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.challenge {
    text-align: center;
    /* max-width: 240px; を削除 */
    flex: 1;           /* ← これで“3等分” */
    margin: 0;         /* auto は不要に */
}

.challenge-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-icon img {
    width: 70%;  /* アイコン自体は背景内で収まるサイズ */
    height: auto;
    display: block;
}

.challenge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 見出しの文字色を白に */
.challenge h3 {
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.4;
}

.challenge p {
    color: var(--text-light);
    font-size: 15px;
}

.solution-message {
    /* ブロック要素の幅を100％にしてから、
     max-width で上限を決める */
    width: 100%;
    max-width: 700px;      /* お好みの幅 */
    margin: 4rem auto 0;   /* 上：4rem、左右：auto、下：0 で中央寄せ */
    padding: 3rem;         /* 既存のパディング */
    border-radius: 12px;   /* 既存 */
    background: linear-gradient(
    180deg,               /* 方向：上方向へ */
    #0D1B44 0%,      /* 左端：濃紺 */
    #047481 100%
  );
    color: var(--white);
    position: relative;
    z-index: 1;
}

.solution-message h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align:center;
}
.solution-message p {
    text-align:center;
}


/* パターン比較 */
/* ── パターンスライダー 横並びコンテナ ── */
.pattern-sliders {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.pattern-sliders .slider {
  flex: 1;
  min-width: 300px;     /* 必要なら調整 */
}

/* ── スライド共通調整 ── */
.slider {
  /* 矢印をおさめるスペースを確保 */
  padding-bottom: 80px;
  /* 矢印をはみ出しても隠さない */
  overflow: visible;
}
.swiper-container {
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex !important;    /* スライドを横並びに */
  transition: transform 0.3s ease;
}
.swiper-slide {
  flex: 0 0 100%;              /* １スライド＝容器幅 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.swiper-container .comparison-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.before-slider .swiper-slide,
.after-slider  .swiper-slide {
  width: 100% !important;
  box-sizing: border-box;
}

/* ── 画像のサイズを統一 ── */
.before-example img,
.after-example img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* ── テキスト/特徴リスト調整 ── */
.problem-text {
  color: #E53E3E;
  font-size: 0.95rem;
  text-align: center;
}
.after-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;   /* 画像下に常にくる */
}
.after-feature {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.after-feature .check-icon {
  margin-right: 0.25rem;
  color: var(--success);
}

/* ── ナビボタン位置調整 ── */
.before-slider .swiper-button-prev,
.before-slider .swiper-button-next,
.after-slider .swiper-button-prev,
.after-slider .swiper-button-next {
  /* 位置 */
  bottom: 20px;
  top: auto;
  /* 丸い白背景 */
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  /* アイコンを中央に */
  display: flex;
  align-items: center;
  justify-content: center;
  /* 矢印色 */
  color: var(--primary-blue);
  /* テキストを隠して自前矢印を使う */
  text-indent: -9999px;
}
/* ←アイコン */
.swiper-button-prev::before {
  content: '‹';
  font-size: 24px;
  line-height: 1;
}
/* →アイコン */
.swiper-button-next::before {
  content: '›';
  font-size: 24px;
  line-height: 1;
}

/* 左ボタン：中央から左へ40pxずらす */
.before-slider .swiper-button-prev,
.after-slider  .swiper-button-prev {
  left: calc(50% - 60px);
  transform: none; /* transformはクリア */
}

/* 右ボタン：中央から右へ40pxずらす */
.before-slider .swiper-button-next,
.after-slider  .swiper-button-next {
  left: calc(50% + 60px);
  transform: none;
}

/* 自前の〈 → / → 〉を指定している場合 */
.swiper-button-prev::before { 
    content: '‹'; 
    font-size: 34px !important;  /* ← お好みの矢印サイズに */
    line-height: 1 !important;
}
.swiper-button-next::before { 
    content: '›'; 
    font-size: 34px !important;  /* ← お好みの矢印サイズに */
    line-height: 1 !important;
}

/* 擬似要素の縦位置調整（必要なら） */
.swiper-button-prev::before {
  transform: translateY(-2px);
}
.swiper-button-next::before {
  transform: translateY(-2px);
}

/* Swiper標準の疑似要素(::after)のフォントサイズを上書き */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px !important;  /* ← お好みの矢印サイズに */
  line-height: 1 !important;
}

/* もし text-indent で隠れていたら解除 */
.swiper-button-prev,
.swiper-button-next {
  text-indent: 0 !important;
}
/*
.before-slider .swiper-button-prev { left: 40%; }
.before-slider .swiper-button-next { right: 40%; }
.after-slider  .swiper-button-prev { left: 40%; }
.after-slider  .swiper-button-next { right: 40%; }
*/

/* 左ボタン */
.before-slider .swiper-button-prev,
.after-slider  .swiper-button-prev {
  left: 50%;
  transform: translateX(-120%); /* 中央から−1.2倍ずらす */
}

/* 右ボタン */
.before-slider .swiper-button-next,
.after-slider  .swiper-button-next {
  left: 50%;
  transform: translateX(20%);   /* 中央から＋0.2倍ずらす */
}


/* 料金 */
.pricing {
    background: var(--light-gray);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card .sub-title {
    background: var(--darkblue);
    color:var(--white)
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-card h3 {
    font-size: 30px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.plan-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.plan-details p {
    margin-bottom: 0.5rem;
}

.plan-details strong {
    color: var(--text-dark);
}

/* オプション */
.options {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.options h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color:var(--white);
    background-color: var(--darkblue);
}

.option-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.option-item {
    padding: 1.5rem;
    background: var(--light-blue);
    border-radius: 8px;
}

.option-item h4 {
    font-size: 25px;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

/* ── 早期申込バナー ── */
.early-bird-banner {
  text-align: center;
  margin: 2rem 0;
}

.early-bird-banner .arrow-up {
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-top: 24px solid var(--primary-blue);
  margin: 0 auto;
}

.early-bird-banner .banner-text {
  display: inline-block;
  background: yellow;
  color: var(--darkblue);
  font-weight: 700;
  font-size: 30px;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  width:100%;
}
.banner-text span{
  font-size: 60px;
  color: fuchsia;
}

/* 導入実績 */
.results {
    background: var(--white);
}

.result-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.testimonial {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Q&A */
.qa {
    background: var(--light-gray);
}

.qa-items {
    max-width: 800px;
    margin: 0 auto;
}

.qa-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.qa-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    position: relative;
    padding-left: 3rem;
}

.qa-item summary::before {
    content: 'Q.';
    position: absolute;
    left: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.qa-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.qa-item[open] summary::after {
    transform: rotate(45deg);
}

.qa-item p {
    padding: 0 1.5rem 1.5rem 3rem;
    color: var(--text-light);
}

.qa-item p::before {
    content: 'A.';
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* 会社概要 */
.company {
    background: var(--white);
    text-align: center;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* お問い合わせ */
.contact {
    background: var(--light-gray);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.required {
    color: #E53E3E;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 外枠を左右２列に */
.pricing-cards.custom-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* 各カード共通 */
.pricing-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* タイトル */
.card-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

/* サブタイトル */
.sub-title {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* プラン一覧 */
.plan-list {
  list-style: none;
  margin-bottom: 1.5rem;
}
.plan-list li {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.plan-list li:last-child {
  border-bottom: none;
}

/* 詳細テキスト */
.detail {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: center;
}
/* 料金セクションを左右2列に */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* タイトル類 */
.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}
.sub-title {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* プランリスト */
.plan-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.plan-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.plan-list li:last-child {
  border-bottom: none;
}

/* detailテキスト */
.detail {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1rem;
}

/* 価格 */
.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 0.75rem;
}

/* カード内の仕切り線 */
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

/* カード間の仕切り線 */
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

/* フッター */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .before-examples {
        grid-template-columns: 1fr;
    }
    
    .after-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
        /* 上段／下段を縦並びに */
    #flow .flow-grid--top,
    #flow .flow-grid--bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin: 0; /* gridの余白リセット */
    }
    /* 上段グリッドだけ下マージンを確保 */
    #flow .flow-grid--top {
        margin-bottom: 1.5rem;
    }

    /* 矢印を非表示に */
    #flow .flow-arrow {
        display: none;
    }

    /* ステップを幅いっぱいに */
    #flow .flow-step {
        max-width: none;
        width: 100%;
        padding: 1.5rem;
    }

    /* 番号／タイトル／説明の余白調整 */
    #flow .step-number,
    #flow .step-title,
    #flow .step-desc {
        margin-bottom: 0.75rem;
    }

    /* アイコンのサイズも少し小さく */
    #flow .step-icon {
        width: 60px;
        height: 60px;
        margin: 1rem auto;
    }

    /* 全体パディング調整 */
    #flow {
        padding: 2rem 0;
    }

    .challenges {
        flex-direction: column;
        align-items: center;
        gap: 2rem;          /* お好みで上下の余白を調整 */
    }
    .challenge {
        width: 100%;        /* 全幅にしてくずれを防止 */
        max-width: 320px;   /* 好きな上限を */
        margin: 0 auto;     /* 真ん中寄せ */
    }
    .challenge-icon {
        width: 150px;       /* 少し小さめに */
        height: 150px;
    }
}
/* ----- 作業フロー ----- */
#flow {
  padding: 4rem 0;
  background: var(--white);
}

/* サブタイトルはそのまま */
.flow-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* ——— 上段 ——— */
.flow-grid--top {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  grid-auto-rows: 1fr;
  column-gap: 1rem;
  row-gap: 1rem;
  align-items: center;
  justify-items: center;
  margin-bottom: 2.5rem;
}
.flow-grid--top .flow-step { grid-column-end: span 1; }
.flow-grid--top .flow-arrow { grid-column-end: span 1; }

/* ——— 下段 ——— */
.flow-grid--bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  grid-auto-rows: 1fr;
  column-gap: 1rem;
  row-gap: 1rem;
  align-items: center;
  justify-items: center;
  margin-top: 0;
}

/* 矢印共通設定 */
.flow-arrow {
  justify-self: center;
  align-self: center;
  font-size: 2rem;
  color: var(--primary-blue);
}

/* カード共通設定 */
.flow-step {
  width: 100%;
  height: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--light-blue2);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
/* 説明文の改行（<br>）を反映する */
.flow-step .step-desc {
  white-space: pre-line;   /* 改行文字と<br>を改行として扱う */
}

/* カード内アイコンサイズ例 */
.step-icon {
  width: 80px;     /* お好みの横幅 */
  height: 80px;    /* お好みの縦幅 */
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* ← ここを追加 */
  display: block;         /* ← display: contain を削除して block に */
}

/* バッジ・テキスト調整 */
.step-number {
  width: 60px;
  height: 40px;
  line-height: 40px;
  font-size: 2.0rem;
  margin: 1.5rem auto;
  margin-bottom: 1rem;
}
.step-title { font-size: 1.2rem; margin-bottom: 0.75rem; }
.step-desc  { font-size: 1rem; line-height: 1.6; }

/* 下段だけ背景と文字色を変更 */
.flow-grid--bottom .flow-step {
  background: var(--darkblue);
}
.flow-grid--bottom .step-number,
.flow-grid--bottom .step-title,
.flow-grid--bottom .step-desc {
  color: #fff;
}

/* --- 既存 .footer はリセットせずに上書き --- */
.footer {
  background: var(--dark-gray);
  padding: 2rem 0;
}

/* 新規：カラムを並べる親要素 */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* 左カラム */
.footer-left {
  flex: 1 1 300px;
  line-height: 1.5;
  color: var(--white);
}

.footer-company {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-address {
  white-space: pre-line;
}

/* 右カラム */
.footer-right {
  flex: 0 0 auto;
  text-align: right;
  color: var(--white);
}

.footer-mail a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  color: var(--white);
}

.footer-mail a:hover {
  text-decoration: underline;
  opacity: 0.8; /* ホバー時に少し淡く */
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* レスポンシブ：狭い画面では縦並び中央寄せ */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    margin-top: 1.5rem;
  }
}

/* 追加するだけでOK */
.flow-step .step-title {
  /* 幅を自動ではなく親幅いっぱいにしてテキスト中央寄せ */
  width: 100%;
  text-align: center;
  margin: 0 auto; /* 念のため左右マージンをリセット */
}

.flow-step .step-number {
  width: 70px;      /* お好きなサイズ */
  text-align: center;
  margin: 0 auto 1rem;
}

.flow-step .step-number,
.flow-step .step-title {
  width: 100%;         /* ブロック幅いっぱい */
  margin: 0 auto 1rem; /* 上マージン 0、下に隙間 */
  text-align: center;  /* テキストを中央に */
}

/* サンクスページ専用 */
.thankyou-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(0,163,255,0.1), rgba(0,102,204,0.1));
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.thankyou-content {
  max-width: 500px;
  margin: 0 auto;
}

.thankyou-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pop 0.8s ease;
}

@keyframes pop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.thankyou-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.thankyou-text {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.thankyou-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thankyou-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* エラーメッセージを赤文字に */
.error {
  color: #E53E3E;       /* 赤系のカラーコード */
  font-size: 0.9rem;    /* テキストサイズはお好みで */
  margin-top: 0.5rem;   /* 本文との間隔 */
}

/* Swiper標準の小さい矢印(::after)を完全に消す */
.before-slider .swiper-button-prev::after,
.before-slider .swiper-button-next::after,
.after-slider  .swiper-button-prev::after,
.after-slider  .swiper-button-next::after,
.swiper-button-prev:after,
.swiper-button-next:after {
  content: none !important;
  display: none !important;
}

/* ===== Patternセクションを縦積みに／サイズ拡大 ===== */
.pattern-sliders{
  display: flex;
  flex-direction: column;     /* ← 縦並びに */
  align-items: center;        /* 中央寄せ */
  gap: 3rem;                  /* セクション間の余白を広めに */
  margin-top: 2.5rem;
}

.pattern-sliders .slider{
  flex: none;                 /* 横幅の自動分配を止める */
  width: 100%;
  max-width: 960px;           /* PCで見やすい幅に拡大（好みで～1200pxまで可） */
  margin: 0 auto;
}

/* 画像も大きめに（縦を広げる） */
.before-example img,
.after-example img{
  max-height: 480px;          /* 240px → 480px に拡大（必要なら600px程度まで可） */
  object-fit: contain;
}

/* タイトルも少し大きく */
.swiper-container .comparison-title{
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ナビゲーションボタンの位置：コンテンツ底辺に中央寄せ */
.before-slider .swiper-button-prev,
.before-slider .swiper-button-next,
.after-slider  .swiper-button-prev,
.after-slider  .swiper-button-next{
  bottom: 16px;               /* スライダー下からの距離 */
  top: auto;
  left: 50%;
  transform: translateX(-50%);/* 中央基準に */
}

/* 左右の並びを解除して“前後”の丸ボタンを横に並べる */
.before-slider .swiper-button-prev{ margin-left: -34px; } /* 中央から左へ少し */
.before-slider .swiper-button-next{ margin-left:  34px; } /* 中央から右へ少し */
.after-slider  .swiper-button-prev{ margin-left: -34px; }
.after-slider  .swiper-button-next{ margin-left:  34px; }

/* 余白バランス（任意） */
.slider{ padding-bottom: 96px; } /* ボタンぶんの下余白を気持ち広めに */


