/* =========================================
   1. 基本設定 & 共通変数
   ========================================= */
:root {
  --primary-orange: #FF8C69;    /* アクセント：温かみ */
  --accent-blue: #1a237e;       /* 信頼：深いネイビー（メイン文字色） */
  --aurora-blue: #a2d2ff;       /* ヒーロー水色 / ライン用 */
  --light-blue-bg: #F8FAFF;     /* 背景：清涼感のある白 */
  --text-main: #2C3E50;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-main);
  background-color: var(--light-blue-bg); 
  line-height: 1.8;
  overflow-x: hidden;
}

/* =========================================
   2. ヘッダー (Sparkling Glass Style)
   ========================================= */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  /* ガラス質感 */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary-orange), var(--accent-blue), var(--primary-orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 3s linear infinite;
}

@keyframes shine-text {
  to { background-position: 200% center; }
}

/* PC用メニューの並び */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 0.1em;
  position: relative;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ホバー時に色を変える */
.nav-menu a:hover { color: var(--primary-orange); }

/* お問い合わせボタン（共通） */
.nav-cta {
  background: var(--primary-orange);
  color: white !important;
  padding: 10px 25px !important;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(255, 140, 105, 0.2);
  transition: 0.3s;
}

/* --- ハンバーガーボタン --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100; /* メニューより上 */
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--accent-blue);
  border-radius: 10px;
  transition: all 0.4s ease;
}

/* =========================================
   3. ヒーローエリア (Aurora Style 復活版)
   ========================================= */
.hero-with-bg {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  
  /* 修正：紫とキツイ緑をカット！オレンジ・ピーチ・スカイブルーで構成 */
  background: linear-gradient(135deg, 
    #a2d2ff, /* 爽やかな水色 */
    #ffd1dc, /* 優しいピンク */
    #ffecd2, /* 完熟ピーチ（これがオレンジっぽさを出す） */
    #fff5e1  /* 温かいクリーム */
  );
  
  background-size: 300% 300%;
  animation: aurora-flow 10s ease infinite; /* 少し速めて動きを滑らかに */
}

/* オーロラアニメーション */
@keyframes aurora-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* コンテナ：ここが左右配置の肝 */
.hero-container {
  display: flex;
  align-items: center; /* 上下中央揃え */
  justify-content: space-between; /* 左右に振り分け */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  z-index: 10;
}

/* 左側テキスト */
.hero-text {
  flex: 1;
  text-align: left;
  /* fade-inアニメーションは既存のものをお使いください */
  animation: fade-in-left 1.2s ease-out forwards;
}

/* メインタイトルの調整版 */
.hero-text h1 {
  /* 最大サイズを 3.8rem → 3.2rem くらいに少し抑え、画面に合わせて縮小するようにします */
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); 
  color: #3f51b5;
  line-height: 1.4; /* 行間を少し広げてゆとりを持たせる */
  font-weight: 800;
  margin: 0;
  word-break: keep-all; /* 単語の途中で変に改行されるのを防ぐ */
  overflow-wrap: break-word;
}

/* 1行目（当たり前を、） */
.hero-text h1 .top-line {
  display: block;
  /* 1行目が長くて入りきらない場合は、ここを少し小さくするのもアリです */
  font-size: 0.9em; 
}

/* 2行目（もっと賢く〜） */
.hero-text h1 .bottom-line {
  display: inline-block;
  /* background: rgba(255, 255, 255, 0.6);  ←ここを削除！ */
  /* padding: 0 12px;                    ←背景を消すなら余白も不要かも */
  /* border-radius: 10px;               ←背景を消すなら角丸も不要 */
  color: #f76b1c; /* オレンジはそのまま */
  margin-top: 5px;
}

.hero-subtext {
  color: #3f51b5;
  font-size: 1.2rem;
  margin-top: 25px;
  font-weight: 600;
  line-height: 1.7;
}

/* 右側ビジュアル */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* 画像を右に寄せる */
  align-items: center;
}

.floating-img {
  width: 100%;
  max-width: 450px; /* ここでお好みの大きさに調整 */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%; /* 丸くする */
  border: 10px solid rgba(255, 255, 255, 0.5); /* 温かみのある太枠 */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  animation: float-hero-serious 6s ease-in-out infinite;
}

/* 画像の浮遊アニメーション */
@keyframes float-hero-serious {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* =========================================
   4. ミッション & ビジョン
   ========================================= */

.mission-section, .mv-section {
  /* linear-gradientの前に背景色(fallback)を置くとより確実です */
  background: #fff1eb; 
  background: linear-gradient(to bottom, #fff1eb 0%, #ffffff 100%) !important;
  padding: 60px 5% !important; 
  width: 100%;
}

/* セクションタイトル */
.mv-section .section-title {
  /* margin-bottom を 60px から 30px くらいに半分にする */
  margin-bottom: 30px !important; 
}

.mv-section {
  padding: 100px 5%;
}

.mv-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.mv-box {
  /* 1. 箱を横に並べるための基本設定 */
  flex: 1;
  /* 2. ★これが重要！中身を縦に正しく並べるおまじない */
  display: flex;
  flex-direction: column;
  align-items: center;    /* 中身を左右の真ん中に */
  justify-content: center; /* 中身を上下の真ん中に */

  /* 3. ★これが重要！一文字ずつにならないための最小幅 */
  min-width: 340px; 

  /* 4. 多田さんのこだわりの見た目設定 */
  padding: 60px 40px;
  border-radius: 50px;
  text-align: center;
  background: var(--white); 
  box-shadow: 0 20px 40px rgba(162, 210, 255, 0.3); 
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

/* ホバーした時に、さらにぷくっと浮くようにするともっと可愛いです */
.mv-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(255, 140, 105, 0.2); /* ホバー時はオレンジ系の影に */
}

/* MISSION & VISION の文字サイズ調整 */
.mv-box h2 {
  color: var(--accent-blue);
  /* サイズを 1.8rem → 1.4rem くらいにギュッと絞ります */
  font-size: 1.4rem; 
  margin-bottom: 20px;
  /* 行間を広げて、空気感（ふんわり感）を出します */
  line-height: 1.7;
  /* 念のため、文字が詰まりすぎないように少しだけ字間をあける */
  letter-spacing: 0.03em;
  word-break: keep-all; /* ★ 単語の途中での改行を防ぐ */
  overflow-wrap: break-word; /* ★ でも箱からはみ出さないように */
  /* ...他の設定はそのまま... */
}

/* ついでに、下の説明文（pタグ）もバランスを合わせます */
.mv-box p {
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.9;
  line-height: 1.8;
}

.mv-sub {
  display: inline-block;
  background: var(--primary-orange);
  color: var(--white);
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 25px;
}

/* MISSION/VISIONの箱を少し調整（2つ並びなので幅に余裕が出る） */
.mv-container {
  max-width: 900px;
  margin-bottom: 40px; /* 下のVALUEとの間隔 */
}

/* VALUE専用の大きな箱 */
.value-wide-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: 60px; /* ぷっくり感アップ */
  box-shadow: 0 20px 40px rgba(162, 210, 255, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.value-wide-box h2 {
  color: var(--accent-blue);
  margin-bottom: 40px;
  font-size: 1.6rem;
}

/* 4つの項目をグリッドで並べる */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列に並べる */
  gap: 30px;
}

.value-card {
  text-align: left;
  padding: 20px;
  background: var(--light-blue-bg);
  border-radius: 30px;
  transition: 0.3s;
}

.value-card h3 {
  color: var(--primary-orange);
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

/* 項目の前にポチをつける */
.value-card h3::before {
  content: "●";
  font-size: 0.8rem;
  margin-right: 10px;
  opacity: 0.6;
}

.value-card p {
  font-size: 1.1rem; /* 文字を大きく！ */
  font-weight: 700;
  color: var(--accent-blue);
}


/* 代表メッセージ：中央寄せスタイル */
.ceo-message-section {
  padding: 120px 5%;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 100%); /* ほんのり水色へ */
  text-align: center;
}

.message-inner-simple {
  max-width: 800px; /* 横幅を絞ることで読みやすく */
  margin: 0 auto;
  background: var(--white);
  padding: 80px 60px;
  border-radius: 60px;
  box-shadow: 0 30px 60px rgba(162, 210, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.message-title-center {
  font-size: 2.2rem;
  color: var(--accent-blue);
  margin-top: 15px;
  margin-bottom: 50px;
}

.message-body {
  text-align: left; /* 文章自体は左寄せの方が読みやすい */
  display: inline-block; /* 左寄せのまま全体を中央に */
}

.message-body p {
  font-size: 1.1rem;
  line-height: 2; /* 行間を広めにとって優雅に */
  color: var(--text-main);
  margin-bottom: 1.8rem;
  font-weight: 500;
}

/* 署名を少し右に寄せる */
.message-signature-center {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px dashed #ffd1dc;
  text-align: right;
}

.message-signature-center .post {
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.message-signature-center .name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* =========================================
   5. 事業内容 (Service)
   ========================================= */
.services {
  padding: 100px 5%;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 60px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  padding: 50px 35px;
  background: var(--light-blue-bg);
  border-radius: 40px;
  border-bottom: 8px solid var(--aurora-blue);
  transition: 0.4s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(162, 210, 255, 0.3);
}

.service-card .icon {
  font-size: 3.5rem;
  color: var(--primary-orange);
  margin-bottom: 25px;
}

/* WHAT WE DO の導入文 */
.services-intro {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 50px;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 1.1rem;
}

/* 営業代行カードだけ特別仕様にする */
.service-card.highlight-card {
  border-bottom: 8px solid var(--primary-orange); /* 下のラインをオレンジに */
  background: #fff9f6; /* ほんのりオレンジがかった背景 */
  transform: scale(1.05); /* ほんの少しだけ大きく見せる */
  box-shadow: 0 15px 30px rgba(255, 140, 105, 0.2);
}

.service-card.highlight-card h3 {
  color: var(--primary-orange); /* タイトルもオレンジに */
}

/* =========================================
   6. 料金プラン (Pricing)：オーロラ・バブル
   ========================================= */
.pricing-section {
  padding: 100px 5%;
  position: relative;
}

.pricing-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* 中央を走る「水色のドット糸」 */
.pricing-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  /* 実線よりドットの方が「優しい・軽い」印象になります */
  background-image: radial-gradient(var(--aurora-blue) 20%, transparent 20%);
  background-size: 1px 20px;
  background-position: center;
  transform: translateX(-50%);
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  width: 100%;
  position: relative;
}

/* 偶数番目の並びを逆にする（左・右・左を実現） */
.pricing-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* 内容の部分：すりガラスの「雲」デザイン */
.pricing-content {
  width: 48%; /* 左右に振るための幅 */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  border-radius: 60px; /* ぷっくり丸く */
  padding: 40px;
  box-shadow: 0 20px 40px rgba(162, 210, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.5s ease;
  position: relative;
}

.pricing-content:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px rgba(162, 210, 255, 0.4);
}

/* しずく型バッジ：ジュエリー・グラデーション */
.pricing-price-badge {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-orange), #ffb399);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50% 50% 50% 0; /* しずく型 */
  transform: rotate(-45deg); 
  margin: 0 auto 30px; 
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(255, 140, 105, 0.3);
}

.pricing-price-badge span {
  display: block;
  transform: rotate(45deg); /* 文字の傾きを戻す */
  font-weight: 800;
  font-size: 1rem;
  width: 100%;
  text-align: center;
}

.pricing-info {
  text-align: center;
  margin-top: 10px;
}

.pricing-info h3 {
  color: var(--accent-blue);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.pricing-info p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* 気になる方はこちらボタン */
.nav-contact {
  display: inline-block;
  background: var(--primary-orange); /* 多田さんの好きなオレンジ */
  color: white !important;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 18px 50px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(255, 140, 105, 0.3); /* ふんわりした影 */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* ホバーした時に少し大きくして「押せる感」を出す */
.nav-contact:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 140, 105, 0.4);
  opacity: 0.9;
}

/* キラッと光るエフェクト（おまけ） */
.nav-contact::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  transition: 0.5s;
}

.nav-contact:hover::before {
  left: 100%;
}

/* ご利用の流れ：全体的にサイズアップ */
.flow-section { 
  padding: 120px 5%; /* 上下の余白を広げてゆったりさせる */
  background: #fff; 
  text-align: center; 
}

.flow-steps { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 30px; /* ステップ間の間隔を少し広げる */
  margin-top: 60px; 
  max-width: 1200px; /* 全体の最大幅を広げる */
  margin-left: auto;
  margin-right: auto;
}

#flow {
  background: var(--light-blue-bg); /* 背景は薄い水色か白に */
  padding: 100px 5%;
}

.flow-container {
  /* オレンジグラデをやめて、白のガラス質感に */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  padding: 60px 40px;
  box-shadow: 0 20px 40px rgba(48, 79, 254, 0.05);
}

/* 数字（STEP 01）の部分だけにオレンジを使ってアクセントに */
.step-number {
  color: var(--primary-orange);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}

.step { 
  background: var(--light-blue-bg); 
  padding: 50px 30px; /* 縦のパディングを増やして「ふっくら」させる */
  border-radius: 40px; /* 角丸も大きくして「ふんわり感」アップ */
  flex: 1; 
  max-width: 350px; /* 250px → 350px に拡大！ */
  position: relative; 
  box-shadow: 0 15px 30px rgba(162, 210, 255, 0.15); /* ほんのり影をつけて存在感を出す */
}

.step-number { 
  font-size: 3.5rem; /* 2rem → 3.5rem に！デカくしてアクセントに */
  font-weight: 900; 
  color: var(--primary-orange); 
  opacity: 0.15; /* 少し薄くして、文字と重なっても読みやすく */
  position: absolute; 
  top: 10px; 
  left: 20px; 
}

.step h3 { 
  font-size: 1.4rem; /* 1.1rem → 1.4rem にアップ */
  color: var(--accent-blue); 
  margin-bottom: 20px; 
  font-weight: 800;
  position: relative; /* 数字の上にくるように */
  z-index: 1;
}

.step p { 
  font-size: 1.05rem; /* 0.9rem → 1.05rem にアップ */
  line-height: 1.8; 
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.step-arrow { 
  color: var(--aurora-blue); 
  font-weight: bold; 
  font-size: 2.5rem; /* 1.5rem → 2.5rem にアップ */
  opacity: 0.5;
}

/* =========================================
   6. 会社概要 (Company)
   ========================================= */
.company {
  padding: 100px 5%;
  /* ヒーローのオレンジっぽさに合わせた、ごく薄いピーチベージュ */
  background: linear-gradient(to bottom, #ffffff 0%, #fff4e1 100%);
}

.company-inner {
  max-width: 850px;
  margin: 0 auto;
  /* ボックス自体は真っ白にすると、文字が読みやすくて清潔感が出ます */
  background: var(--white);
  padding: 60px 50px;
  border-radius: 50px;
  /* 影を少し「水色」っぽくすると、オーロラ背景と馴染みます */
  box-shadow: 0 20px 60px rgba(162, 210, 255, 0.15);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--accent-blue);
  margin-bottom: 50px;
}

.company-item {
  display: flex;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px dashed #ffd1dc; /* ここをピンク系にすると可愛い！ */
}

.company-section {
  padding: 100px 5%;
  background: #fff; /* もしくは非常に薄いグレー */
}

.company-container {
  max-width: 900px;
  margin: 0 auto;
  /* オレンジグラデを消して、シンプルで知的な枠線スタイルに */
  border: 2px solid var(--aurora-blue); /* 以前使ったオーロラブルーの線を細く */
  background: white;
  border-radius: 30px;
  padding: 50px;
  position: relative;
}

/* 会社情報の項目名（dt）にだけオレンジをチョイ足し */
.company-item dt {
  color: var(--primary-orange); 
  font-weight: 800;
  width: 30%;
}

.services h2::after,
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--aurora-blue); /* ヒーローと同じ水色 */
  margin: 15px auto 0;
  border-radius: 10px;
}

/* ついでに、事業内容のタイトルの下の余白を調整 */
.services h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 60px; /* ラインからカードまでの距離 */
}

.company-item {
  display: flex;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px dashed #D0D9FF;
}

.company-item dt {
  width: 30%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5C6BC0;
}

.company-item dd {
  width: 70%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

/* =========================================
   フッター (Aurora Soft Footer)
   ========================================= */
.footer-simple {
  padding: 60px 5% 40px; /* 上にゆとりを持たせる */
  background: linear-gradient(to bottom, transparent, rgba(162, 210, 255, 0.2));
  text-align: center; /* 文字を真ん中に */
  position: relative;
  overflow: hidden;
}

/* フッターの上に細い光のライン */
.footer-simple::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--aurora-blue), transparent);
}

/* コピーライトの文字 */
.copyright {
  font-size: 0.85rem;
  color: #8899a6; /* 優しいグレー */
  letter-spacing: 0.05em;
  margin-top: 20px;
}

/* ついでにフッターの上にロゴとか置くとさらに可愛い */
.footer-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-blue);
  opacity: 0.6;
  margin-bottom: 10px;
  display: block;
}

/* --- ハンバーガーメニューのスタイル --- */

/* 最初はハンバーガーを隠しておく（PC用） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--accent-blue);
  transition: all 0.3s ease;
}

/* =========================================
   7. アニメーション & レスポンシブ
   ========================================= */
@keyframes fade-in-left { to { opacity: 1; transform: translateX(0); } }
@keyframes fade-in-right { to { opacity: 1; transform: translateX(0); } }

@media (max-width: 768px) {
  .hero-container { flex-direction: column; text-align: center; }
  .hero-text { text-align: center; margin-bottom: 40px; }
  .hero-text h1 { font-size: 2.5rem; }
  .mv-container { flex-direction: column; }
  .company-item { flex-direction: column; align-items: flex-start; }
  .company-item dt, .company-item dd { width: 100%; }
}

.pricing-container::before { left: 20px; }
  .pricing-item, .pricing-item:nth-child(even) { 
    flex-direction: row; 
    justify-content: flex-start; 
  }
  .pricing-content { 
    width: 85%; 
    margin-left: 40px; 
  }

  /* スマホ対応：縦並びにする */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse; /* 画像が上、テキストが下 */
    justify-content: center;
    text-align: center;
  }
  .hero-text {
    text-align: center;
    margin-top: 40px;
  }
  .hero-visual {
    justify-content: center;
  }
  .floating-img {
    max-width: 280px;
  }
}

/* スマホ画面（960px以下）の時の動き */
@media (max-width: 960px) {
  .hamburger {
    display: flex; /* ハンバーガーを表示 */
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%; /* 画面の外に隠しておく */
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 80px;
    transition: all 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }

  /* メニューが開いた時 */
  .header-nav.active {
    right: 0;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  /* 三本線が「×」になるアニメーション */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* スマホでは1列にする */
@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 960px) {
  .message-content {
    flex-direction: column; /* スマホでは縦並び */
    gap: 40px;
  }
  
  .message-text {
    text-align: left;
  }

  .ceo-img {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* スマホでは大きさを戻す */
@media (max-width: 768px) {
  .service-card.highlight-card {
    transform: scale(1);
    margin: 20px 0;
  }
}

/* スマホではさらに少し小さくして、画面に収まりやすくします */
@media (max-width: 768px) {
  .mv-box h2 {
    font-size: 1.25rem;
  }
}

/* スマホ対応 */
@media (max-width: 1024px) {
  .flow-steps { gap: 15px; } /* タブレットサイズで少し詰める */
}

@media (max-width: 768px) {
  .flow-steps { 
    flex-direction: column; 
    gap: 30px;
  }
  .step { 
    max-width: 100%; /* スマホでは横幅いっぱい */
    width: 90%; 
  }
  .step-arrow { 
    transform: rotate(90deg); 
    margin: 10px 0;
  }
}

/* 960px以下の時、ハンバーガーを表示 */
@media (max-width: 960px) {
  .hamburger {
    display: flex;
  }
}

/* --- レスポンシブ (960px以下) --- */
@media (max-width: 960px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* 最初は画面の外 */
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding-top: 100px;
    transition: 0.4s ease-in-out;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }

  /* JSでactiveがついたら表示 */
  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 40px;
  }

  .nav-menu a { font-size: 1.2rem; }

  /* ×印のアニメーション */
  .hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}