/* --------------------
   1. リセット・共通設定
-------------------- */

/* 余計なマージン・パディングをリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* フォントや背景色の共通設定 */
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Noto Sans CJK JP", "游ゴシック Medium", "游ゴシック体",
    "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo, "MS Pゴシック",
    "MS PGothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #6c372e;
  background-color: #e4c6c6;
}

/* リンク共通 */
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

/* コンテナ（中央寄せ＋横幅制限） */
.container {
  width: 100%;
  max-width: 1280px; /* ← 全体のコンテンツ幅を1280pxに固定 */
  margin: 0 auto;
  padding-left: 20px; /* 横の余白（小さい画面での余白確保） */
  padding-right: 20px;
}

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

/* 見出し共通 */
/* h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
} */

h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ボタン共通 */
.btn {
  display: inline-block;
  padding: 0.8em 2em;
  background-color: #d36d6d; /* お好みのカラーに変更 */
  color: #fff;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  text-align: center;
}

.btn:hover {
  opacity: 0.8;
}

/* ナビゲーション */
header {
  background: #ebe9e9;
  border-bottom: 1px solid #eee;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  width: 36px; /* PCロゴサイズ */
  height: auto;
}

header .logo-text {
  font-family: "EB Garamond", serif;
  font-size: 1.5rem;
  color: #3a3a3a;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav li a {
  padding: 5px 0;
  position: relative;
}

/* スクロール時のアンカー位置調整などは後で追加 */
/* --------------------
   Hero
-------------------- */
/* Heroセクション */
#hero {
  position: relative; /* 内部で絶対配置を使うために必要 */
  background-image: url("../img/FV.jpg"); /* 葉っぱ＋バナーの画像 */
  background-repeat: no-repeat;
  background-position: center center; /* 上端基準に配置 */
  background-size: cover;

  /* 画像の縦サイズに合わせて高さを確保 */
  min-height: 600px; /* ←画像の高さに合わせて調整 */

  /* 中身を中央に置く */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ←上寄せ */
  align-items: center;

  text-align: center;
  color: #333;

  /* 上からの余白で位置決め */
  padding-top: 45px; /* ←ここを変えると上下位置が変わる */
  padding-left: 20px;
  padding-right: 20px;
}

/* 位置決めだけする親 */
.hero-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 40px; /* 上からの距離をここで調整 */

  width: 100%;
  max-width: 1280px; /* ← 画面が広くてもこれ以上は広がらない */
  margin: 0 auto;
  text-align: center;
}

/* 背景付きのボックス */
.hero-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 90%; /* 画面幅いっぱい使う */
  max-width: 600px; /* でも最大600pxまでにする */
  margin: 0 auto; /* ← 中央寄せ */
  background-color: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 4px;
}

#hero h1 {
  font-family: "Kosugi Maru", sans-serif;
  color: #341915;
  font-size: 2.4rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

/* #hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
} */

#hero .btn {
  display: inline-block;
  background-color: #d36d6d;
  color: #fff;
  padding: 10px 80px;
  text-decoration: none;
  border-radius: 20px;
  font-size: 1rem;
  margin-top: 20px; /* ← ここで白ボックスとの間に余白を作る */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

/* --------------------
   Service
-------------------- */
/* セクション全体 */
#service {
  /* まず上に半透明グラデーションを載せて、その下に画像を敷く */
  background-image:
    linear-gradient(
      to bottom,
      rgba(235, 233, 233, 0.4) 0%,
      /* 上: #ebe9e9 90%不透明 */ rgba(239, 202, 202, 0.6) 100%
        /* 下: #efcaca 90%不透明 */
    ),
    url("../img/service_back.jpg"); /* 葉っぱ＋バナーの画像 */

  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  padding: 0px 0px 80px;
  text-align: center;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px; /* 全体共通の左右余白 */
}
.service-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 0;
  display: flex; /* ←横並びにする */
  align-items: flex-end; /* ←下端を揃える */
  position: relative;
}

/* Service（左端固定） */
.service-header .section-title {
  font-family: "EB Garamond", serif;
  color: #cdb8b5;
  font-size: 112px;
  font-weight: normal;
  margin: 0;
  line-height: 0.8;
}

/* こんなデザインお作りします（中央固定） */
.service-header .section-subtitle {
  font-size: 36px;
  font-weight: 700;
  margin: 0 130px; /* 中央寄せ */
  line-height: 1;
}

.service-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}

.service-item {
  width: 300px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.service-item img {
  width: 100px;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 27px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-box {
  max-width: 226px;
  margin: 0 auto;
  text-align: justify;
}
.service-text-1,
.service-text-2 {
  color: #6c372e;
  text-align: justify;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
}
.service-text-1 {
  margin-bottom: 10px;
}

/* --------------------
   Worksセクション全体
-------------------- */

/* --------------------
   Worksセクション全体
-------------------- */

.works-section {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(to bottom, #e4c6c6, #f7eaea);
  padding: 80px 0;
  overflow: hidden;
}

.works-title {
  display: flex;
  align-items: flex-end;
  gap: 0;
  color: #9f7069;
  font-weight: 500;
  margin-left: 40px;
  margin-right: 20px;
}

.works-title .vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "EB Garamond", serif;
  font-size: 112px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-right: -4px;
}

.works-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #6c372e;
}

.works-text .section-subtitle {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 4px;
}

.works-text .section-description {
  font-size: 27px;
  font-weight: bold;
  color: #6c372e;
  line-height: 1.6;
  max-width: 500px;
}

.works-text span {
  font-size: 16px;
  color: #6c372e;
  font-weight: bold;
  white-space: nowrap;
}

/* スライダー共通設定 */
.works-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-left: 20px;
}

/* =============================
   共通スライダーアニメーション
============================= */
.works-slider {
  display: flex;
  gap: 5px;
  /* 可変化したスライド距離をCSS変数で管理 */
  --gap: 5px;
  --card: 750px; /* デフォルトカード幅（PC） */
  --count: 6; /* スライド枚数（HTML上の実際の数） */
  --distance: calc((var(--card) + var(--gap)) * var(--count));
  animation: slideLoop 60s linear infinite;
  will-change: transform;
}

@keyframes slideLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(var(--distance) * -1));
  }
}

/* カード設定 */
.work-card {
  flex: 0 0 var(--card);
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  padding-bottom: 60px;
}

.work-card:hover {
  transform: translateY(-6px);
}

/* モックアップ */
.mockup {
  text-align: center;
  background-color: #f5f5f5;
  width: 650px;
  height: 250px;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup img {
  width: 600px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(226, 70, 70, 0.08);
}

.work-text {
  text-align: center;
  padding: 50px 30px 0px 30px;
}

.work-text h3 {
  font-size: 32px;
  font-weight: 500;
  color: #6c372e;
  margin-bottom: 8px;
}

.work-subtitle {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
  color: #6c372e;
}

.work-desc {
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
  color: #6c372e;
  line-height: 1.7;
}

.viewmore {
  position: absolute;
  right: 50px;
  bottom: 25px;
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-family: "EB Garamond", serif;
  font-weight: bold;
  color: #6c372e;
  text-decoration: none;
  transition:
    color 0.3s,
    border-color 0.3s;
}

.viewmore::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 200px;
  height: 1px;
  background-color: #6c372e;
  transition: background-color 0.3s;
}

.viewmore::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 10px;
  border-top: 1px solid #6c372e;
  transform: rotate(45deg);
  margin-left: 10px;
  margin-bottom: -40px;
  transition: border-color 0.3s;
}

.viewmore:hover {
  color: #a07262;
}
.viewmore:hover::before {
  background-color: #a07262;
}
.viewmore:hover::after {
  border-color: #a07262;
}

/* ▼ ホバー時 */
.viewmore:hover {
  color: #a07262;
}
.viewmore:hover::before {
  background-color: #a07262;
}
.viewmore:hover::after {
  border-color: #a07262;
}

/* --------------------
   About
-------------------- */
/* Aboutセクション */
#about {
  position: relative;
  background-image:
    linear-gradient(
      to bottom,
      rgba(235, 233, 233, 0) 0%,
      /* 上: #ebe9e9 90%不透明 */ rgba(239, 202, 202, 0.9) 100%
        /* 下: #efcaca 90%不透明 */
    ),
    url("../img/about_back.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  padding: 0px 0px 100px;
  text-align: center;
}

#about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 118px;
  background: url("../img/wave-about.png") no-repeat bottom center;
  background-size: 100% auto; /* ← 幅いっぱい、高さ自動調整（縦横比維持） */
  pointer-events: none;
}

/* 見出し */
.about-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 0;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.about-header .section-title {
  font-family: "EB Garamond", serif;
  color: #cdb8b5;
  font-size: 112px;
  font-weight: normal;
  margin: 0;
  line-height: 0.8;
}

.about-header .section-subtitle {
  font-size: 36px;
  font-weight: 700;
  margin: 0 250px;
  line-height: 1;
  color: #6c372e;
}

/* コンテンツ全体 */
.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 白いボックス */
.about-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: #fff;
  border-radius: 16px;
  padding: 60px 80px;
  max-width: 1280px; /* ← ここを変更 */
  width: 100%; /* ← 幅いっぱいに広げる */
  margin: 0 auto; /* ← 中央寄せを維持 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 左側ロゴ */
.about-left img {
  width: 340px;
  height: auto;
}

/* 右側テキスト */
.about-right {
  color: #6c372e;
}

.about-right h4 {
  font-size: 32px;
  font-weight: bold;
  color: #6c372e;
  margin-bottom: 20px;
  text-align: left;
}

.about-description {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

/* ３つの丸要素 */
.about-values {
  display: flex;
  gap: 56px;
}

.value-item {
  background: #edd9d7;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #6c372e;
}

.value-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.value-text {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
}

/* --------------------
   Flow
-------------------- */
/* ===== Flow セクション（背景はカンプ②のピンクグラデ）===== */
.flow-section {
  position: relative;
  background: linear-gradient(to bottom, #e4c6c6, #f7eaea);
  padding: 96px 0; /* 上下の余白 */
  overflow: hidden;
}

/* 左端固定の縦書き Flow（白ボックスのセンタリングに影響させない） */
.flow-vertical {
  position: absolute;
  left: 40px; /* 画面左からの距離（Worksと揃える） */
  top: 50%;
  transform: translateY(-85%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "EB Garamond", serif;
  font-size: 112px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9f7069;
  margin: 0;
  pointer-events: none;
}

/* 中央寄せする中身（見出し＋白ボックス） */
.flow-container {
  max-width: 1280px; /* コンテンツ幅（カンプ基準） */
  margin: 0 auto; /* ページ中央 */
  text-align: center;
}

/* 見出し */
.flow-heading {
  font-size: 36px;
  font-weight: 600;
  color: #6c372e;
  margin: 0 0 40px;
}

/* ===== 白いボックス（カンプ指定）===== */
.flow-steps {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 3vw 3vw; /* ← 画面幅に応じて可変の余白に変更 */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2vw; /* ← gap も可変に */
}

/* 各カード */
.flow-card {
  flex: 1;
  min-width: 0;
  text-align: left;
  color: #6c372e;
  position: relative;
}

/* 番号＋アイコン（1枚画像） */
.flow-card img {
  width: 200px; /* カンプに合わせる。必要なら 290px 等に */
  height: auto;
  margin: 0 0 12px;
  display: block;
}

/* タイトルと本文 */
.flow-card h4 {
  font-size: 24px;
  margin: 0 0 6px;
  font-weight: 700;
}
.flow-card p {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.8;
  margin: 0;
}

/* カード間の矢印（擬似要素で描画） */
.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -22px; /* 矢印の位置 */
  top: 50%;
  transform: translateY(-50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #c25d5d;
}

/* --------------------
   Contact
-------------------- */
/* ===== Contactセクション背景 ===== */
.contact-section {
  position: relative;
  background-image:
    linear-gradient(
      to bottom,
      rgba(247, 234, 234, 0) 0%,
      /* 上: 薄いピンクを透明に */ rgba(228, 198, 198, 0.9) 100%
        /* 下: ピンクを90%不透明に */
    ),
    url("../img/contact_back.jpg"); /* 葉っぱ背景（グレー） */
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  padding: 100px 0;
  text-align: center;
}

/* ===== コンテンツ全体（中央揃え・幅固定） ===== */
.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* ボタンやテキストを左右中央に */
  gap: 20px;
}
/* ===== 英字タイトル（左寄せ・薄いブラウン） ===== */
.contact-title-en {
  font-family: "EB Garamond", serif;
  font-size: 100px;
  color: rgba(159, 112, 105, 0.25);
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  text-align: left;
}

/* ===== 右側のコンテンツ ===== */
.contact-content {
  text-align: center;
  flex: 1;
  color: #4e2721;
}

/* 日本語タイトル */
.contact-title-ja {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* サブテキスト */
.contact-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 40px;
}

/* ===== 内側コンテナ（英字タイトル＋右側コンテンツ） ===== */
.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* ===== 英字タイトル（左端に配置） ===== */
.contact-title-en {
  font-family: "EB Garamond", serif;
  font-size: 100px;
  color: rgba(159, 112, 105, 0.25);
  font-weight: 500;
  letter-spacing: 0.05em;
  position: absolute;
  left: 0;
  top: 20%;
  transform: translateY(-50%);
}

/* ===== 中央コンテンツ（左右中央揃え） ===== */
.contact-content {
  text-align: center;
  color: #4e2721;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* 日本語タイトル */
.contact-title-ja {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* サブテキスト */
.contact-text {
  font-size: 27px;
  font-weight: 600;
  margin-bottom: 40px;
}

/* ===== ボタン ===== */
.contact-btn {
  display: inline-block;
  background-color: #d36d6d;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  padding: 10px 100px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #a85f57;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

/* フッター */
footer {
  background: #f7f7f7;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  color: #666;
}

/* =========================================================
   SP（カンプ：横1080 / コンテンツ400）上書き
   - 実機の「px」は端末幅に依存するので、ここでは
     1080px以下をSP扱い + 中央に400px箱を作る方針
========================================================= */
@media (max-width: 1080px) {
  /* ---------- 共通：コンテンツ幅 400px ---------- */
  :root {
    --sp-content: 400px;
  }

  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }

  section {
    padding: 56px 0;
  }

  .container {
    max-width: 400px; /* コンテンツは最大400 */
    width: 100%; /* 画面幅に追従 */
    margin: 0 auto; /* 中央寄せ */
    padding-left: 15px; /* 最低左右15px余白 */
    padding-right: 15px;
  }
  .work-text h3 {
    display: none;
  }

  /* ---------- Header（SPカンプにヘッダーが無い/目立たせない想定） ---------- */
  header .container {
    max-width: var(--sp-content);
    padding: 14px 0;
  }

  header nav {
    display: none; /* ナビを出すならハンバーガー実装が必要 */
  }

  header .logo {
    justify-content: center; /* 中央寄せ */
  }

  header .logo img {
    width: 28px; /* SPは少し小さく */
  }

  header .logo-text {
    font-size: 1.1rem;
  }

  /* ---------- Hero ---------- */
  #hero {
    min-height: 520px;
    padding-top: 24px;
    background-position: center top;
    background-image: url("../img/SP_FV.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }

  .hero-content {
    top: 26px;
    max-width: var(--sp-content);
    padding: 0;
  }

  .hero-box {
    width: 100%;
    max-width: var(--sp-content);
    padding: 16px 14px;
  }

  #hero h1 {
    font-size: 1.75rem;
    letter-spacing: 0.06em;
    line-height: 1.55;
  }

  #hero .btn {
    padding: 12px 0;
    width: 100%;
    max-width: 200px;
    font-size: 0.95rem;
    margin-top: 14px;
  }

  /* ---------- Service ---------- */
  #service {
    padding: 0 0 64px;
  }

  .service-header {
    max-width: var(--sp-content);
    padding: 44px 0 26px;
    display: block;
    text-align: center;
  }

  .service-header .section-title {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 10px;
  }

  .service-header .section-subtitle {
    font-size: 20px;
    margin: 0;
    line-height: 1.4;
  }

  .service-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .service-item {
    width: 300px;
    padding: 15px 0; /* ←外形の縦余白だけ増やす（左右は0） */
    border-radius: 20px;
  }

  .service-item img {
    width: 84px;
    margin-bottom: 12px;
  }

  .service-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .service-box {
    padding: 0px 5px;
  }

  .service-text-sp {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.75;
    text-align: left;
  }

  .service-text-1,
  .service-text-2 {
    font-size: 14px;
    line-height: 1.75;
  }

  /* ---------- Works（SPも同じ流れ＝横スライドのまま） ---------- */
  .mockup picture {
    display: block;
    width: 100%;
  }

  .mockup img {
    width: 100%;
    height: auto;
    max-height: 340px; /* 360〜480で微調整 */
    object-fit: contain;
    display: block;
  }

  .works-section {
    flex-direction: column;
    align-items: center;
    padding: 64px 0;
  }

  .works-title {
    width: var(--sp-content);
    margin: 0 auto 18px;
    align-items: flex-start;
    gap: 10px;
  }

  .works-title .vertical {
    font-size: 56px;
    margin-right: 0;
    margin-top: -30px;
  }

  .works-text .section-subtitle {
    font-size: 20px;
  }

  .works-text .section-description {
    font-size: 14px;
    max-width: 320px;
  }

  .works-text span {
    font-size: 12px;
    white-space: normal;
    line-height: 1.5;
  }

  .works-slider-wrapper {
    width: 100%;
    margin-left: 0;
    padding-left: calc(
      (100% - var(--sp-content)) / 2
    ); /* 400箱の左端に合わせる */
    padding-right: 0;
  }

  .works-slider {
    /* SPカード幅に切り替え */
    --card: 480px;
    --gap: 10px;
    --count: 6; /* HTML上の枚数と合わせる（あなたは6枚） */
    animation: slideLoop 45s linear infinite;
    gap: var(--gap);
  }

  .work-card {
    border-radius: 14px;
    padding-bottom: 24px;
    display: flex; /* ← これを追加 */
    flex-direction: column;
    overflow: hidden;
  }

  .work-title-sp {
    display: block;
    order: 1;
  }
  .mockup {
    margin: 4px 0 60px;
    order: 2;
    width: 100%;
    padding: 0;
  }
  .work-text {
    order: 3;
  }
  .viewmore {
    order: 4;
  }

  .work-text {
    padding: 0px 18px 0px;
  }

  .work-text h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .work-text p {
    font-size: 13px;
    line-height: 1.7;
  }

  .work-desc-sp {
    text-align: center;
  }

  .work-desc-sp .desc-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
  }

  .work-desc-sp .desc-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .work-desc-sp .desc-detail {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
  }

  .mockup img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    display: block;
  }

  .work-title-sp {
    padding: 20px 18px 0px;
    font-size: 20px;
    text-align: center;
  }

  .viewmore {
    right: 16px;
    bottom: 18px;
    font-size: 14px;
  }

  .viewmore::before {
    width: 110px;
    bottom: -2px;
  }

  .viewmore::after {
    margin-bottom: -26px;
  }

  /* ---------- About ---------- */
  #about {
    padding: 0 0 84px;
  }

  .about-header {
    max-width: var(--sp-content);
    padding: 44px 0 22px;
    display: block;
    text-align: center;
  }

  .about-header .section-title {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 10px;
  }

  .about-header .section-subtitle {
    font-size: 20px;
    margin: 0;
  }

  #about .about-card {
    display: flex; /* PC指定を上書き */
    flex-direction: column; /* 横→縦 */
    gap: 18px; /* PCの gap:60px を上書き */
    padding: 26px 18px; /* PCの padding:60px 80px を上書き */
    align-items: center;
  }

  .about-left img {
    width: 170px;
  }

  .about-right {
    width: 100%;
    text-align: left;
  }

  .about-right h4 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 12px;
  }

  .about-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
  }

  .about-logo {
    width: 84px;
    height: 84px;
  }

  .about-name {
    font-size: 22px;
    font-weight: 600; /* FigmaのMedium相当 */
    margin: 0;
  }

  .about-lead {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
    letter-spacing: 0.1em;
  }

  .about-body {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 16px;
    text-align: left;
    letter-spacing: 0.1em;
  }

  .about-values {
    gap: 12px;
    justify-content: space-between;
  }

  #about::after {
    height: 200px; /* ← 118pxより増やす（波の見える量UP） */
    background-size: 200% auto; /* ← 横を少し拡大して波を大きく見せる */
    background-position: bottom center;
  }

  .value-item {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0; /* ← 念のため */
    box-sizing: border-box;
  }

  .value-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
  }

  .value-text {
    font-size: 11px;
    line-height: 1.2;
  }

  /* ---------- Flow（SPは縦積み＋矢印を下向き） ---------- */
  .flow-section {
    padding: 64px 0;
  }

  .flow-vertical {
    left: 12px;
    font-size: 56px;
    transform: translateY(-350%);
  }

  .flow-container {
    max-width: var(--sp-content);
  }

  .flow-heading {
    font-size: 20px;
    margin: 0 0 20px;
  }

  .flow-section .flow-steps {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 28px; /* ← 余白欲しいならこっち */
  }

  .flow-card {
    text-align: center;
    padding-bottom: 30px; /* ← 矢印の前後余白 */
  }

  .flow-card img {
    width: 150px;
    margin: 20px auto 10px;
  }

  .flow-card h4 {
    font-size: 16px;
    margin: 0 0 6px;
  }

  .flow-card p {
    font-size: 13px;
    text-align: center; /* ← カンプ寄せ */
    margin: 0 auto;
    max-width: 100%; /* ← 折り返し調整 */
    line-height: 1.7;
  }

  .flow-card:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: -20px; /* ← 矢印を少し下げる */
    transform: translateX(50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #c25d5d;
    border-bottom: 0;
  }
  /* ---------- Contact ---------- */
  .contact-section {
    padding: 110px 0 100px;
  }

  .contact-inner {
    max-width: var(--sp-content);
    position: relative;
    padding-top: 64px;
    margin: 0 auto;
  }

  .contact-title-en {
    position: absolute;
    left: 50%;
    top: -8px; /* ← ここで上に上げる（-16〜0で調整） */
    transform: translateX(-50%);
    font-size: 72px;
    text-align: center;
    line-height: 1;
    pointer-events: none;
  }

  .contact-content {
    text-align: center;
    padding-top: 18px; /* ← ここで英字と距離を取る */
  }

  .contact-title-ja {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .contact-text {
    font-size: 14px;
    margin-bottom: 26px;
  }

  .contact-btn {
    width: 280px; /* ← 240→増やす（280〜320で調整） */
    padding: 14px 0; /* ← 少し厚み */
    font-size: 16px;
    border-radius: 9999px;
  }
}
