:root {
  --bg: #f7f2ee;
  --bg-soft: #f3ece6;
  --surface: rgba(255, 255, 255, 0.76);
  --text: #3a312d;
  --subtext: #665b55;
  --line: rgba(86, 69, 58, 0.14);
  --accent: #8f6f5c;
  --accent-deep: #725648;
  --shadow: 0 18px 48px rgba(74, 54, 42, 0.08);
  --radius: 18px;
  --container-max: 1160px;
  --side-gap: clamp(20px, 4vw, 48px);
  --section-pad: clamp(64px, 7vw, 88px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  line-height: 1.9;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 35%),
    linear-gradient(180deg, #f8f3ef 0%, #f4ede7 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.container {
  width: min(var(--container-max), calc(100% - (var(--side-gap) * 2)));
  margin-inline: auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section-shell {
  width: 100%;
}

.narrow-shell {
  max-width: 920px;
  margin-inline: auto;
}

.narrow-text,
.narrow-text-center {
  max-width: 820px;
  margin-inline: auto;
}

.center {
  text-align: center;
}

.sp-only {
  display: none;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: "Zen Old Mincho", serif;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-title {
  margin-bottom: 22px;
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.section-title.small {
  font-size: clamp(1.55rem, 2vw, 2.4rem);
}

.section-title-lined {
  position: relative;
  padding-left: 20px;
  text-align: left;
}

.section-title-lined::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 2px;
  height: calc(100% - 0.5em);
  background: rgba(143, 111, 92, 0.55);
}

.section-description,
.problem-text p,
.plan-target,
.plan-note,
.footer-copy,
.site-footer small,
.hero-copy {
  color: var(--subtext);
}

.section-description {
  max-width: 820px;
  text-align: left;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(248, 243, 239, 0.76);
  border-bottom: 1px solid rgba(86, 69, 58, 0.08);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: "Zen Old Mincho", serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  font-size: 0.92rem;
  color: var(--subtext);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.side-copy,
.side-follow {
  position: fixed;
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Zen Old Mincho", serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: rgba(58, 49, 45, 0.78);
}

.side-copy {
  left: 10px;
  pointer-events: none;
}

.side-follow {
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-follow-label {
  opacity: 0.8;
}

.side-follow a {
  writing-mode: vertical-rl;
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  margin-top: 12px;
  background: none;
  border: none;
  line-height: 1;
}

.side-mobile {
  display: none;
}

.side-mobile a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 112svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 82px;
  isolation: isolate;
}

.hero-video-bg,
.hero-overlay,
.hero-overlay-bottom {
  position: absolute;
  inset: 0;
}

.hero-video-bg {
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 242, 238, 0.54) 0%, rgba(247, 242, 238, 0.24) 22%, rgba(247, 242, 238, 0.14) 50%, rgba(247, 242, 238, 0.24) 78%, rgba(247, 242, 238, 0.54) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.hero-overlay-bottom {
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 46%, rgba(247, 242, 238, 0.38) 72%, rgba(247, 242, 238, 0.98) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: calc(112svh - 82px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 72px;
  padding-bottom: 64px;
}

.hero-copy-group {
  width: 100%;
  text-align: center;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  padding-top: 0;
  transform: translateY(-140px);
}

.hero-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 3rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-align: center;
}

.hero-copy {
  margin-bottom: 14px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-align: center;
}

.button-primary {
  color: #fff;
  background: #7b5d4f;
  border-color: #7b5d4f;
  border-radius: 999px;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
  border-radius: 14px;
}

.accent-section {
  background: linear-gradient(180deg, rgba(232, 221, 213, 0.4), rgba(247, 242, 238, 0.24));
}

.problem-glass-box,
.three-points article,
.work-card,
.service-card,
.consult-box,
.coupon-box,
.flow-list li,
.profile-placeholder,
.works-detail-card,
.work-modal-panel {
  background: var(--surface);
  border: 1px solid rgba(143, 111, 92, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-intro {
  font-family: "Zen Old Mincho", serif;
  font-size: 1.1rem;
  line-height: 1.8;
}

.problem-glass-box {
  padding: 18px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(143, 111, 92, 0.16);
}

.problem-list {
  display: grid;
  gap: 14px;
}

.problem-list li {
  position: relative;
  padding: 22px 20px 22px 3em;
  border: 1px solid rgba(143, 111, 92, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(74, 54, 42, 0.05);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-family: "Zen Old Mincho", serif;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: #433935;
}

.problem-list li::before {
  content: "□";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.problem-image-grid,
.three-points,
.service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-image-grid {
  margin-top: 34px;
}

.problem-image-card,
.work-thumb,
.works-detail-thumb,
.modal-work-image {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.problem-image-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-highlight,
.story-conclusion {
  font-family: "Zen Old Mincho", serif;
  color: var(--text);
  line-height: 1.8;
}

.story-highlight {
  margin-top: 42px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  text-align: center;
}

.problem-text {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.story-conclusion {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.unified-grid {
  margin-top: 48px;
}

.three-points article,
.work-card,
.service-card {
  padding: 30px;
}

.three-points article h3,
.work-card h3,
.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.consult-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px;
}

.works-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.works-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  flex: 1;
}

.works-slider::-webkit-scrollbar {
  display: none;
}

.work-slide {
  scroll-snap-align: start;
  min-width: 0;
}

.works-nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(143, 111, 92, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 24px;
  border: 1px solid rgba(143, 111, 92, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mini-cta {
  margin-top: 28px;
  text-align: left;
}

.works-detail-minimal-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-deep);
  font-family: "Zen Old Mincho", serif;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(114, 86, 72, 0.32);
  padding-bottom: 3px;
}

.service-card.featured {
  border-color: rgba(114, 86, 72, 0.3);
  transform: translateY(-8px);
}

.plan-label {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin: 24px 0 18px;
  font-family: "Zen Old Mincho", serif;
  font-size: 2rem;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.service-card li {
  position: relative;
  padding-left: 1.4em;
}

.service-card li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.coupon-box-wide {
  margin-top: 36px;
  width: min(100%, 820px);
  padding: 28px 40px;
  text-align: center;
  margin-inline: auto;
}

.coupon-box strong {
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
}

.flow-list {
  display: grid;
  gap: 16px;
  margin: 46px 0 24px;
}

.flow-list li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.flow-list li:nth-child(1) { background: linear-gradient(135deg, #f7f2ee 0%, #eee3dc 100%); }
.flow-list li:nth-child(2) { background: linear-gradient(135deg, #f1e8e1 0%, #e4d6cd 100%); }
.flow-list li:nth-child(3) { background: linear-gradient(135deg, #eadfd8 0%, #d9c7bc 100%); }
.flow-list li:nth-child(4) { background: linear-gradient(135deg, #e2d4cb 0%, #cdb8ab 100%); }
.flow-list li:nth-child(5) { background: linear-gradient(135deg, #d9c7bc 0%, #bfa79a 100%); }

.flow-number {
  font-family: "Zen Old Mincho", serif;
  font-size: 1.2rem;
  color: #7b5d4f;
  opacity: 0.75;
}

.flow-list img {
  width: 44px;
  height: 44px;
}

.flow-text {
  font-family: "Zen Old Mincho", serif;
  letter-spacing: 0.04em;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 48px;
  align-items: start;
}

.profile-placeholder {
  min-height: 280px;
  max-width: 280px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 246, 0.7)), linear-gradient(135deg, rgba(216, 192, 178, 0.5), rgba(255, 255, 255, 0.3));
}

.profile-mini-title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.profile-sub {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--subtext);
  text-align: center;
}

.floating-contact-button {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 120;
  width: 340px;
  max-width: calc(100% - 48px);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a57b67 0%, #7b5d4f 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(74, 54, 42, 0.16);
  animation: floatCta 6s ease-in-out infinite;
}

.site-footer {
  padding: 40px 0 110px;
  border-top: 1px solid rgba(86, 69, 58, 0.08);
}

.footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--subtext);
  font-size: 0.92rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-top-button {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 130;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(143, 111, 92, 0.18);
  box-shadow: 0 8px 20px rgba(74, 54, 42, 0.12);
  color: var(--accent-deep);
  font-family: "Zen Old Mincho", serif;
  font-size: 1.1rem;
  line-height: 1;
  /* 2026-05 追加: 初期状態は非表示 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.25s ease, background-color 0.25s ease;
}

/* スクロール後に追加されるクラス */
.page-top-button.is-show {
  opacity: 1;
  pointer-events: auto;
}

.page-top-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.96);
}

@media (min-width: 961px) {
  .hero-title {
    font-size: clamp(2.8rem, 3.4vw, 4rem);
  }
}

@media (max-width: 960px) {
  .menu-button { display: flex; }
  .global-nav {
    position: fixed;
    inset: 82px 0 auto;
    padding: 18px 20px 24px;
    background: rgba(248, 243, 239, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
  }
  .global-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .global-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .problem-image-grid, .service-grid, .three-points, .profile-grid { grid-template-columns: 1fr; }
  .works-slider { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .sp-only { display: inline; }

  /* スマホ版では左右の縦文字を非表示 */

  .side-copy,

  .side-follow,

  .side-mobile {

    display: none;

  }

  .hero { min-height: 900px; align-items: flex-start; }
  .hero-inner {
    min-height: calc(900px - 80px);
    /* 2026-05 修正: 中央配置かつボタン回避のためのpadding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 80px;
  }
  .hero-copy-group {
    /* 修正: absolute解除 */
    position: relative;
    width: 100%;
    transform: translateY(80px);
    padding: 0 20px;
  }
  .hero-title { font-size: clamp(1.75rem, 7.2vw, 2.2rem); }
  .hero-title-line { display: block; }
  .problem-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .works-slider { grid-auto-columns: 82%; }
  .floating-contact-button { bottom: 12px; }

  /* 角丸微調整 */
  .problem-glass-box, .three-points article, .work-card, .service-card, .consult-box, .coupon-box, .profile-placeholder, .flow-list li {
    border-radius: 16px;
  }
}

@keyframes floatCta {
  0%, 88%, 100% { transform: translateX(-50%) translateY(0); }
  92% { transform: translateX(-50%) translateY(-1px); }
}


/* =========================
  2026-05 修正：スマホ表示・Worksページ調整（①〜⑤のみ）
========================= */

/* ② 1文字だけの不自然な改行を防ぐ */
.no-break {
  white-space: nowrap;
}

/* ⑤ Worksページ上部が固定ヘッダーに隠れないようにする */
.works-detail-page {
  padding-top: 132px;
  padding-bottom: 96px;
}

/* ③ Worksページ：紹介文と制作画像の間に余白を入れる */
.works-intro-card {
  margin-bottom: 56px;
}

/* ④ Worksページ：実績カード内の余白を整える */
.works-detail-card {
  padding: clamp(22px, 4vw, 42px);
}

.works-detail-body {
  margin-top: 28px;
}

.works-detail-body p,
.works-detail-body li {
  line-height: 2;
}

@media (max-width: 640px) {
  /* ① スマホ版のみトップ実績スライダーの左右矢印を非表示 */
  .works-nav {
    display: none;
  }

  .works-slider-wrap {
    display: block;
  }

  .works-slider {
    grid-auto-columns: 88%;
  }

  /* ② スマホ版で日本語が1文字だけ残る改行を防ぐ */
  .story-highlight,
  .coupon-box strong,
  .profile-copy .section-title {
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
  }

  /* ⑤ スマホ版のWorksページ上部余白 */
  .works-detail-page {
    padding-top: 140px;
    padding-bottom: 88px;
  }

  /* ③ スマホ版：紹介文と制作画像の間の余白 */
  .works-intro-card {
    margin-bottom: 44px;
  }

  /* ④ スマホ版：実績カード内の左右余白 */
  .works-detail-card {
    padding: 22px 18px;
  }

  .works-detail-body {
    margin-top: 24px;
  }
}

/* =========================
  2026-05 追加修正：スマホ版調整（①〜③のみ）
========================= */

/* ② プロフィール下リンクを制作実績欄と同じ見た目にする */
.profile-detail-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-deep);
  font-family: "Zen Old Mincho", serif;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(114, 86, 72, 0.32);
  padding-bottom: 3px;
}

/* ③ worksページ下部「サイトへ戻る」をボタンとして分かりやすくする */
.works-detail-actions {
  margin-top: 42px;
  text-align: center;
}

.legal-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a57b67 0%, #7b5d4f 100%);
  color: #fff;
  font-family: "Zen Old Mincho", serif;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(74, 54, 42, 0.14);
}

@media (max-width: 640px) {
  /* ① プロフィール見出し・本文の右詰まりを調整 */
  .profile-copy {
    padding-right: 20px;
  }

  .profile-copy .section-title,
  .profile-intro,
  .profile-text,
  .profile-detail-link-wrap {
    padding-right: 4px;
  }

  /* ② スマホ版プロフィールリンクの余白 */
  .profile-detail-link-wrap {
    margin-top: 28px;
  }

  .profile-detail-link {
    margin-top: 0;
  }

  /* ③ スマホ版の戻るボタン */
  .works-detail-actions {
    margin-top: 36px;
    margin-bottom: 24px;
    text-align: center;
  }

  .legal-back-button {
    min-width: 190px;
    min-height: 54px;
    font-size: 1rem;
  }
}

/* =========================
  2026-05 追加修正：スマホ版プロフィール箇所のみ
  実機Chromeで右側が詰まって見える状態を防ぐ
========================= */
@media (max-width: 640px) {
  /* プロフィールセクションだけ、本文エリアの幅と内側余白を再調整 */
  #profile .container {
    width: calc(100% - 48px);
    max-width: none;
  }

  #profile .profile-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #profile .profile-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 22px 0 0;
    overflow: hidden;
  }

  /* 見出しが横に広がって右に詰まる原因になるため、プロフィール内だけno-breakを解除 */
  #profile .profile-copy .no-break {
    white-space: normal;
  }

  #profile .profile-copy .section-title {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    font-size: clamp(2rem, 9.2vw, 2.6rem);
    line-height: 1.45;
    letter-spacing: 0.04em;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  #profile .profile-intro,
  #profile .profile-text,
  #profile .profile-detail-link-wrap {
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
    overflow-wrap: break-word;
  }

  #profile .profile-text p {
    max-width: 100%;
  }
}

/* =========================
  2026-05 追加修正：スマホ版のみ（今回依頼分）
  ①制作実績スライダー矢印を画像上に表示
  ②プロフィール幅を他セクションと統一
  ③Worksページのパンくずに余白を追加
========================= */

/* ③ WORKSページ：パンくずの詰まりを解消 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  color: var(--subtext);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--accent-deep);
}

.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(114, 86, 72, 0.55);
}

@media (max-width: 640px) {
  /* ① スマホ版：制作実績スライダーの矢印を実績画像の上に重ねる */
  .works-slider-wrap {
    position: relative;
    display: block;
  }

  .works-nav {
    position: absolute;
    top: min(42vw, 230px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(143, 111, 92, 0.18);
    box-shadow: 0 8px 20px rgba(74, 54, 42, 0.12);
    color: var(--accent-deep);
    font-size: 1.7rem;
    line-height: 1;
  }

  .works-prev {
    left: 8px;
  }

  .works-next {
    right: 8px;
  }

  .works-slider {
    grid-auto-columns: 88%;
  }

  /* ② スマホ版：プロフィールの横幅をFlowなど他セクションと同じ基準に統一 */
  #profile .container {
    width: min(var(--container-max), calc(100% - (var(--side-gap) * 2)));
    max-width: none;
  }

  #profile .profile-grid,
  #profile .profile-copy {
    width: 100%;
    max-width: 100%;
  }

  #profile .profile-copy {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  #profile .profile-copy .section-title {
    padding-left: 20px;
    padding-right: 0;
  }

  #profile .profile-intro,
  #profile .profile-text,
  #profile .profile-detail-link-wrap {
    padding-right: 0;
  }

  /* ③ スマホ版：パンくず上下左右の余白を整える */
  .breadcrumb {
    gap: 9px;
    margin-bottom: 30px;
    padding: 0 2px;
    font-size: 0.9rem;
  }
}
