/* =========================================================
   IROSENS Design ― サイト全体のデザイン（site.css）
   ========================================================= */

/* ===== 色の設定（ここを変えると全体の色が変わります） ===== */
:root {
  --peach: #fce0d0;     /* うすいピーチ（メニュー・WORKS・ABOUT） */
  --yellow: #fce34a;    /* 黄色 */
  --aqua: #bfe4e6;      /* 水色 */
  --lime: #e8ec8e;      /* 黄緑 */
  --ink: #444;          /* 文字のグレー */
  --red: #f0403a;       /* メニュー・名前の赤 */
  --coral: #e8563f;     /* コーラル */
  --orange: #e07a3c;    /* オレンジ（SERVICE） */
  --wave: #a9cbd3;      /* くねくね線のブルーグレー */
  --line: #bfe9f0;      /* SERVICE の区切り線 */
  /* ロゴ・見出しのグラデーション */
  --grad: linear-gradient(90deg, #e57a3e 0%, #e5523f 45%, #e3893d 75%, #e0463f 100%);
  /* ボタンのグラデーション */
  --btn: linear-gradient(90deg, #e0743f 0%, #e5523f 35%, #e3863d 70%, #d9443f 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--peach);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* 中身の幅をそろえる箱（1280pxまで） */
.inner { position: relative; max-width: 1280px; margin: 0 auto; }

/* 英語の太い見出し用フォント */
.wide {
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  font-weight: 900;
}
/* 文字にグラデーションをかける */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  min-width: 340px;
  padding: 14px 40px;
  border-radius: 8px;
  background: var(--btn);
  background-size: 200% 100%;
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;   /* 角ゴシック体 */
  font-size: 32px; font-weight: 500; line-height: 1.3;   /* 46px → 32px（大きすぎたので） */
  -webkit-text-stroke: 1px #fff;          /* 文字の線を1px太くする */
  letter-spacing: .03em;                  /* 文字と文字の間を少しだけあける（パソコンで約1.4px） */
  text-align: center;
  transition: background-position .6s, transform .3s, box-shadow .3s;
}
/* Flow ボタンだけ、文字と文字の間を2pxずつあける（最後の文字のうしろにもすき間がつくので、text-indent で真ん中にそろえる） */
#featuresBtn { letter-spacing: 2px; text-indent: 2px; }.btn:hover {
  background-position: 100% 0;           /* 色がスーッと流れる */
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(224, 86, 63, .3);
}

/* ===== 波線（デザインから切り出した画像をそのまま置く） ===== */
/* 位置は 1280px のデザインと同じ数字。真ん中基準（50% - 640px）でそろえます */
.wave {
  position: absolute; max-width: none;
  pointer-events: none;
}

/* ===== 1. メニュー（header） ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--peach);
  height: 76px;
}
.header .inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 112px 0 102px;
}
.logo { font-size: 24px; letter-spacing: .01em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 72px; list-style: none; }
.nav a {
  position: relative;
  color: var(--red); font-size: 15px;
}
/* マウスをのせると下線がのびる */
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; }

/* ===== 2. ファーストビュー（hero） ===== */
.hero {
  position: relative; z-index: 2;
  height: 830px;
}
/* 背景：水色→黄緑のグラデーション＋黄色の大きな丸 */
.hero__bg {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(105deg, #bde3e8 0%, #d8e9b4 45%, #ecec86 100%);
}
.hero__bg::after {
  content: ""; position: absolute;
  left: -20%; width: 140%; top: 439px; height: 1300px;
  border-radius: 50%;
  background: var(--yellow);
}
.hero .inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr 500px;
  padding: 64px 106px 0 97px;
}
.hero__text { position: relative; z-index: 2; }
/* 白い帯のキャッチコピー */
.catch { font-weight: 500; font-size: 44px; line-height: 1; }
.catch span {
  display: inline-block;
  background: rgba(255, 255, 255, .92);
  padding: 11.5px 12px 16.5px 12px;      /* 白い帯の大きさはそのまま、文字だけ2.5px上に */
  margin-bottom: 10px;
}
.catch .iro { font-size: 58px; letter-spacing: -.02em; font-weight: 700; }   /* デザインどおり iro だけ太字 */
.title {
  margin-top: 54px;
  font-size: 78px; line-height: 1.12;
}
.lead {
  margin-top: 46px; padding-left: 10px;
  font-size: 22px; line-height: 1.95;
}

/* アーチ型のイラスト */
.arch {
  position: relative; z-index: 1;
  width: 500px; height: 700px;          /* デザインどおり 500×700（上の丸い白い部分も入れる） */
  margin-top: 0;
}
/* うしろの水色のわく（位置はデザイン画像 私のHP本命.jpg から測った数値） */
.arch::before {
  content: ""; position: absolute;
  left: -19px; top: -12px; right: 20px; bottom: -20px;
  border: 4px solid #c4ecf0;               /* 2px → 4px（細すぎたので太く） */
  border-radius: 250px 250px 0 0;
}
.arch picture { display: block; height: 100%; }   /* スマホ用イラストの切り替え用の入れ物 */
.arch img {
  position: relative;
  width: 100%; height: 100%; object-fit: cover;
  padding-top: 5.6%;                /* イラストの上に白い余白（デザインと同じ28px） */
  background: #fff;
  border-radius: 250px 250px 0 0;   /* 上だけ丸くする */
  box-shadow: 14px 18px 30px rgba(0, 0, 0, .18);
}

/* コーラルの曲線（デザインの線そのものを1本の画像で置く）
   位置と大きさはデザイン画像（私のHP本命.jpg）に合わせてある */
.curve {
  position: absolute; left: 12px; top: 496px;
  width: 1250px; max-width: none; height: auto;
  pointer-events: none; z-index: 3;
  /* 左から右へ、文字を書くように線がのびていく（先っぽは少しぼかしてふわっと） */
  -webkit-mask-image: linear-gradient(90deg, #000 0 46%, transparent 54%);
          mask-image: linear-gradient(90deg, #000 0 46%, transparent 54%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  /* 下の3行の文と同じタイミングで、ふわっと出ながら左から描かれていく */
  animation: curveDraw 2.6s cubic-bezier(.3, .2, .3, 1) 1.7s both;
}
@keyframes curveDraw {
  0%   { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 0; }
  25%  { opacity: 1; }
  100% { -webkit-mask-position: 0 0;    mask-position: 0 0;    opacity: 1; }
}

/* ===== 3. CONCEPT ===== */
.concept {
  position: relative;
  background: var(--yellow);
  padding: 100px 24px 72px;
  text-align: center;
  isolation: isolate;
  z-index: 1;   /* 右の波線を WORKS の上に重ねるため */
}
.h2 { font-size: 48px; letter-spacing: .01em; }
.h2--dark { color: var(--ink); }
/* 白い箱＋ずらした白いわく */
.concept__box {
  position: relative; display: inline-block;
  margin-top: 40px; padding: 22px 30px;
  background: #f8f8f4;
  font-size: 24px; line-height: 1.75;
}
.concept__box::after {
  content: ""; position: absolute;
  left: 14px; top: 14px; right: -14px; bottom: -14px;
  border: 2px solid #fff; z-index: -1;
}
.concept__text {
  margin-top: 48px;
  font-size: 22px; line-height: 1.85;
}
.concept__text p + p { margin-top: 1.85em; }
.concept .btn { margin-top: 70px; }
.wave--cl { left: calc(50% - 640px + 112px); top: 364px; width: 31px; }   /* 左の2本線 */
.wave--cr { left: calc(50% - 640px + 1123px); top: 286px; width: 52px; z-index: 2; } /* 右の1本線（WORKSまで続く） */

/* ===== 4. WORKS ===== */
.works {
  position: relative;
  background: var(--peach);
  padding: 80px 0 90px;
  text-align: center;
}
.works .h2 { position: relative; left: 230px; font-size: 52px; display: inline-block; }
.gallery {
  position: relative;
  margin: 20px auto 0;
  max-width: 1280px;
  aspect-ratio: 1280 / 1620;
}
/* 作品カード  --x 横 / --y 縦 / --w 幅 / --h 高さ（すべて％） */
.work {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  box-shadow: 10px 12px 18px rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: transform .4s, box-shadow .4s;
}
.work img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work:hover {
  z-index: 5;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 14px 22px 34px rgba(0, 0, 0, .25);
}
.works .btn { margin-top: 70px; }

/* ===== 5. SERVICE ===== */
.service {
  position: relative; overflow: hidden;
  background: var(--peach);
  padding: 100px 0 110px;
}
.service::before {                        /* 白い大きな丸（ヘッダーの黄色い丸と同じ丸み） */
  content: ""; position: absolute;
  left: -20%; width: 140%; top: 0; height: 1300px;
  border-radius: 50%;
  background: #fffdfc;
}
.service .h2 { position: relative; text-align: center; }
.service__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 100px;
  list-style: none;
}
.service__grid li {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 0 36px;
}
/* 区切り線 */
.service__grid li:nth-child(3n+1),
.service__grid li:nth-child(3n+2) { border-right: 2px solid var(--line); }
.service__grid li:nth-child(-n+3) { border-bottom: 2px solid var(--line); }
.service__grid li:nth-child(n+4) { padding-top: 44px; }
/* グラデーションのわくの丸 */
.circle {
  display: grid; place-items: center;
  width: 232px; height: 232px; border-radius: 50%;
  border: 4px solid transparent;
  background:
    linear-gradient(#fcfbf5, #fcfbf5) padding-box,
    linear-gradient(180deg, #f6b4c2, #d2f7bf) border-box;
  color: var(--orange);
  font-size: 30px; line-height: 1;   /* 6つとも同じ大きさ（Business card も丸のふちにつかない大きさ） */
  text-align: center;
  transition: transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.circle--sm { font-size: 30px; }
/* 丸と名前をまとめて押せるリンク（料金表へ） */
.service__link {
  display: flex; flex-direction: column; align-items: center;
  color: inherit; text-decoration: none; cursor: pointer;
}
.service__grid li:hover .circle { transform: scale(1.06) rotate(-4deg); }
.service__name {
  margin-top: 34px;
  color: var(--orange); font-size: 23px; font-weight: 700;
}

/* ===== 6. ABOUT ===== */
.about {
  background: var(--peach);
  padding: 110px 0 120px;
  text-align: center;
}
.about .h2 { font-size: 50px; display: inline-block; }
.profile-wrap { position: relative; margin: 150px 80px 0 78px; }
.script {                                 /* 手書き風の profile */
  position: absolute; z-index: 3;
  /* 筆記体は線が文字のわくの外まではみ出すので、まわりにすき間（.35em）をとって
     グラデーション色がはみ出した部分にものるようにする。そのぶん位置を戻して、場所は前と同じ */
  padding: .35em;
  left: calc(-50px - .35em); top: calc(-105px - .35em);   /* 写真に少し重ねて、f のしっぽが写真の上にのるように */
  font-family: "Yellowtail", cursive;
  font-size: 130px; line-height: 1;
  letter-spacing: -.04em;                 /* 文字の間を少しつめて、o→f・i→l・l→e の線がつながるように */
  transform: rotate(-12deg);
  pointer-events: none;
  /* f のしっぽも切らずに、写真の上にそのまま出す（スマホと同じ見え方） */
}
.about__box {
  position: relative;
  display: grid; grid-template-columns: 470px 1fr; gap: 60px;
  border: 4px solid #fff;
  padding: 0 24px 56px 55px;
  text-align: left;
}
.about__photo { margin-top: -42px; }
.about__photo img { width: 470px; height: 545px; object-fit: cover; }
.about__name {
  margin-top: 40px;
  text-align: left;
  color: var(--red); font-size: 26px; letter-spacing: .06em;
  line-height: 1.85;
}
.about__text {
  align-self: start; padding-top: 52px;
  color: #ea463e; font-size: 19px; line-height: 1.85;
}
.about__text p + p { margin-top: 1.85em; }
.about__text .about__catch + p { margin-top: 0; }
.about__catch {                           /* 「元アクセサリーデザイナー…」 */
  margin-bottom: 56px;
  text-align: center;
  font-size: 27px; font-weight: 700; line-height: 1.5;
}
.about__curve {
  position: absolute; right: -20px; top: -105px;
  z-index: 2;                               /* 白いわくの線より上に重ねる */
  width: 530px; height: 160px; overflow: visible;
}

/* ===== 7. CONTACT ＋ フッター ===== */
.contact {
  position: relative; overflow: hidden;
  background: linear-gradient(200deg, #f0ee7c 0%, #dfeaa6 40%, #c3e5e6 100%);
  padding: 110px 24px 0;
  text-align: center;
}
.contact__text {
  margin-top: 40px;
  font-size: 22px; line-height: 1.6;
}
.contact__text p + p { margin-top: 1.6em; }
.contact .btn { margin-top: 70px; font-size: 32px; }

.footer {
  position: relative;
  margin: 90px -24px 0;
  height: 620px;
}
.footer::before {                         /* 黄色の大きな丸 */
  content: ""; position: absolute;
  left: -30%; width: 160%; top: 0; height: 1800px;
  border-radius: 50%;
  background: var(--yellow);
}
.footer .inner { height: 100%; text-align: left; }
/* フッターの波線（デザインからそのまま切り出し・背景の黄色ごと） */
.wave--fl { left: 108px; top: 250px; width: 40px; }
.wave--fr { left: 275px; top: 114px; width: 59px; }
.footer { overflow: hidden; }   /* 波線をページの一番下できれいに切る */
.footer__logo {
  position: absolute; left: 187px; top: 314px;
  font-size: 68px; line-height: .95;
  /* g の下の部分までグラデーション色がのるように、下と右に少しすき間をつくる */
  padding: 0 .06em .22em 0;
}
.footer__nav {
  position: absolute; left: 736px; top: 150px;
  display: grid; grid-template-columns: 258px auto; row-gap: 26px;
  list-style: none;
}
.footer__nav li:first-child { grid-column: 1 / -1; }
.footer__nav a { color: var(--red); font-size: 24px; transition: opacity .3s; }
.footer__nav a:hover { opacity: .6; }
/* インスタグラム：アイコン＋文字を横にならべる */
.footer__nav .insta { white-space: nowrap; }
.insta__icon { width: 1em; height: 1em; margin-right: .4em; vertical-align: -.12em; }
.copy {
  position: absolute; left: 0; right: 0; bottom: 24px;
  text-align: center; font-size: 12px; color: #9a8a3a;
}

/* ===== Features のポップアップ（モーダル） ===== */
.modal {
  margin: auto; padding: 0; border: 0;
  width: min(1100px, 92vw);
  max-height: 92vh;
  background: transparent; overflow: visible;
}
.modal[open] { animation: modal-in .45s cubic-bezier(.2, .8, .2, 1); }
.modal::backdrop { background: rgba(40, 30, 20, .55); }
/* 中身（上に FLOW、下に Features の画像）。長いので、中でスクロールする */
.modal__body {
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: #fce1d0;                     /* Features の画像の背景と同じ色（つなぎ目が見えないように） */
  color: var(--ink);                       /* 文字は真っ黒ではなく、少しグレーがかった黒（サイトと同じ） */
  border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
/* 灰色のスクロールバーはかくす（中はそのままスクロールできる） */
.modal__body { scrollbar-width: none; }
.modal__body::-webkit-scrollbar { display: none; }

/* 右はしの細い線：どこまで読んだかを、オレンジのグラデーションで見せる */
.modal__bar {
  position: absolute; right: 10px; top: 24px; bottom: 24px; width: 4px;
  border-radius: 4px; background: rgba(224, 122, 60, .15);
  pointer-events: none;
}
.modal__bar i {
  display: block; width: 100%; height: 0; border-radius: 4px;
  background: linear-gradient(180deg, #e3893d, #e5523f);
  transition: height .15s linear;
}

/* 右上の「SCROLL」（たて書きの小さな英語）＋ 下にのびる細い矢印 … 右の線のとなり。一番下まで来たら消える */
.modal__scroll {
  position: absolute; right: 24px; top: 44px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
  transition: opacity .4s, transform .4s;
}
.modal__scroll span {
  writing-mode: vertical-rl;               /* たて書き */
  font-size: 10px; letter-spacing: .3em; line-height: 1;
  color: var(--coral);
}
.modal__scroll i {                          /* 細い線（中を光が下へ流れる） */
  position: relative; display: block;
  width: 1.5px; height: 72px;
  background: rgba(232, 86, 63, .25);
  overflow: visible;
}
.modal__scroll i::before {                  /* 下へ流れる線 */
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--coral);
  transform-origin: top;
  animation: scrollLine 2s cubic-bezier(.6, 0, .3, 1) infinite;
}
.modal__scroll i::after {                   /* 先の細い矢じり */
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 7px; height: 7px; margin-left: -4px;
  border-right: 1.5px solid var(--coral); border-bottom: 1.5px solid var(--coral);
  transform: rotate(45deg);
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
.modal__scroll.is-hide { opacity: 0; transform: translateY(12px); }

/* ===== FEATURES の3つのカード（前は画像だったものを文字で作り直したもの） ===== */
.feat-list {
  list-style: none;
  max-width: 1080px; margin: 56px auto 0; padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; row-gap: 56px;
}
.feat__box {                                 /* 黄色い四角（アイコンは上の部分） */
  aspect-ratio: 354 / 365; overflow: hidden;
  background: #fce349;
  border-radius: 12px;                          /* 角を少しだけ丸く（3つとも） */
}
.feat__box img { display: block; width: calc(100% + 4px); max-width: none; height: auto; margin: -2px; }
.feat__label {                               /* 赤い帯の名前＋うしろのずらした赤いわく */
  position: relative; display: inline-block;
  margin: -6% 0 0 -5.4%;                     /* 黄色い四角の左下に少し重ねる */
  padding: .45em 1.2em .5em;
  background: #ff3d3e; color: #fff;
  font-size: 21px; font-weight: 700; letter-spacing: .04em; line-height: 1.3;
  border-radius: 8px;                          /* 角を少し丸く（黄色い四角に合わせる） */
}
.feat__label::before {
  content: ""; position: absolute; z-index: -1;
  left: -12px; top: 10px; right: 12px; bottom: -10px;
  border: 2px solid #ff3d3e;
  border-radius: 8px;                          /* うしろの赤いわくも同じ丸み */
}
.feat__label { z-index: 0; }
.feat__text {
  margin-top: 26px;
  font-size: 17px; line-height: 1.85; text-align: left;   /* FLOW の説明文と同じ */
}

.modal__img {
  display: block; width: 100%; height: auto;
  clip-path: inset(0 0 .4% 0);             /* 画像のいちばん下の白い2pxの線をかくす */
}
.modal__foot { text-align: center; padding: 72px 20px 80px; }   /* 画像の下に余白をとってからボタン */

/* ===== FLOW（制作の流れ）… Features のポップアップの上の部分 ===== */
.flow {
  padding: 70px 40px 40px;
  text-align: center;
}
.flow__lead { margin-top: 20px; font-size: 18px; line-height: 1.8; }
.flow__list {
  max-width: 1000px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  column-gap: 48px; row-gap: 64px;
  list-style: none;
}
/* 上に3つ、下に2つを真ん中に */
.flow__list .step { grid-column: span 2; }
.flow__list .step:nth-child(4) { grid-column: 2 / 4; }
.flow__list .step:nth-child(5) { grid-column: 4 / 6; }
/* アーチ形のカード */
.step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 22px 30px;
  background: #fffdfc;
  border-radius: 170px 170px 18px 18px;
  box-shadow: 10px 14px 30px rgba(224, 122, 60, .12);
}
.step::before {                         /* うしろの少しずらした水色のアーチ */
  content: ""; position: absolute; z-index: -1;
  left: -12px; top: -12px; right: 14px; bottom: 14px;
  border: 3px solid var(--line);
  border-radius: 170px 170px 18px 18px;
}
/* となりのカードへつなぐ水色のくねくね線（1→2、2→3、4→5） */
.step:nth-child(1)::after, .step:nth-child(2)::after, .step:nth-child(4)::after {
  content: ""; position: absolute; left: 100%; top: 88px;
  width: 48px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 22'%3E%3Cpath d='M0 11 Q6 2 12 11 T24 11 T36 11 T48 11' fill='none' stroke='%23a9cbd3' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.flow .h2 .grad-text, .feat-head .grad-text { padding: 0 .04em .08em; }
/* FEATURES の見出し（FLOW と同じ大きさ・色。下の画像の上の余白に少し重ねる） */
.feat-head { text-align: center; padding-top: 78px; position: relative; z-index: 1; }   /* 文字だけ2px上に */
/* FEATURES の下の「大切にしていること」（赤・15px）。下の画像の上の余白に少し重ねる */
.feat-sub {
  position: relative; z-index: 1;
  margin: 12px 0 0; text-align: center;
  color: var(--ink); font-size: 15px; letter-spacing: .08em;   /* FLOW の下の文と同じ色 */
}   /* グラデーションが文字のはしまでのるように */
.step__num {
  display: flex; flex-direction: column; align-items: center; justify-content: center;   /* STEP と番号を丸の真ん中に */
  width: 138px; height: 138px; margin-top: 24px;
  border-radius: 50%;
  border: 4px solid transparent;
  background:
    linear-gradient(#fcfbf5, #fcfbf5) padding-box,
    linear-gradient(180deg, #f6b4c2, #d2f7bf) border-box;   /* SERVICE の丸と同じわく */
  line-height: 1;
  transition: transform .4s;
}
.step:hover .step__num { transform: rotate(-6deg) scale(1.04); }
.step__num small { display: block; font-size: 12px; letter-spacing: .12em; color: var(--orange); }
.step__num b { display: block; margin-top: 4px; font-size: 50px; padding: 0 .04em .06em 0; }
.step__icon { width: 50px; height: 50px; margin-top: 20px; color: var(--red); }
.step__icon * { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step__title { margin-top: 14px; color: var(--red); font-size: 22px; font-weight: 700; line-height: 1.4; }
.step__text { margin-top: 12px; font-size: 17px; line-height: 1.85; text-align: left; }   /* 15px → 17px */
/* ポップアップを開いたら、カードが順番にふわっと出る */
.modal[open] .step { animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--d, 0s)); }

@media (max-width: 1000px) {
  /* 幅がせまい時は1列に並べ、カードの間を水色の点線でつなぐ */
  .flow { padding: 56px 18px 28px; }
  .flow__lead { font-size: 15px; }
  .flow__lead br { display: none; }
  .flow__list { position: relative; grid-template-columns: minmax(0, 400px); justify-content: center; row-gap: 40px; margin-top: 44px; }
  .flow__list .step, .flow__list .step:nth-child(4), .flow__list .step:nth-child(5) { grid-column: auto; }
  .step:nth-child(n)::after {
    content: ""; position: absolute; left: 50%; top: 100%; width: 4px;   /* 全部のカードで、カードの下のすき間に置く */ height: 40px; margin-left: -2px;
    background: repeating-linear-gradient(180deg, var(--wave) 0 8px, transparent 8px 14px);
  }
  .step:last-child::after { display: none; }
  .step { padding: 0 18px 24px; border-radius: 130px 130px 16px 16px; }
  .step::before { left: -8px; top: -8px; right: 10px; bottom: 10px; border-radius: 130px 130px 16px 16px; }
  .step__num { width: 112px; height: 112px; margin-top: 20px; }
  .step__num b { font-size: 40px; }
  .step__icon { width: 42px; height: 42px; margin-top: 16px; }
  .step__title { font-size: 19px; }
  .step__text { font-size: 16px; }
  .modal__foot { padding: 48px 20px 56px; }
  .feat-head { padding-top: 54px; }
  .feat-sub { margin: 8px 0 0; font-size: 14px; }
  .feat-list { grid-template-columns: minmax(0, 400px); justify-content: center; padding: 0 22px; margin-top: 36px; row-gap: 44px; }
  .feat__label { font-size: 18px; }
  .feat__text { margin-top: 20px; font-size: 16px; }
}
@media (max-width: 600px) {
  .modal__scroll { display: none; }        /* スマホではカードに重なるので出さない（右の細い線は残す） */
  /* FEATURES：黄色い四角を小さめにして、赤い名前の帯とわくが左で欠けないように */
  .feat-list { padding: 0 18px; row-gap: 40px; }
  .feat__box { width: 78%; margin: 0 auto; }
  .feat__label { margin: -5% 0 0 calc(11% - 6px); font-size: 16px; }
  .feat__label::before { left: -8px; top: 7px; right: 8px; bottom: -7px; }
  .feat__text { margin-top: 18px; font-size: 15px; line-height: 1.8; }
}
.modal__close {                           /* 右上の × */
  position: absolute; right: -14px; top: -14px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--red); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform .3s;
}
.modal__close:hover { transform: rotate(90deg); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .modal__close { right: -6px; top: -18px; width: 38px; height: 38px; font-size: 22px; }
}

/* ===== ふわっと出てくる動き ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s, transform 1s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* 開いた時：キャッチやタイトルが順番に出る */
.fade-up { animation: fadeUp 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
.arch { animation: archIn 1.5s cubic-bezier(.2, .8, .2, 1) .4s both; }
.hero .fade-up { animation-duration: 1.4s; }   /* トップの文字は、ゆっくりふわっと出す */
@keyframes archIn { from { opacity: 0; transform: translateY(40px); } }
@keyframes archFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }   /* スマホのイラストのふわふわ */
.hero__scroll { display: none; }   /* パソコンでは出さない（スマホだけ） */
.sp-br { display: none; }   /* スマホだけで区切る改行（パソコンでは区切らない） */
.sp-curve, .about__wave-sp { display: none; }   /* パソコンでは出さない（スマホだけ） */
@keyframes spCurveIn { from { opacity: 0; transform: translateY(40px); } }   /* 下からふわっと */

/* =========================================================
   画面がせまい時（タブレット・スマホ） ＝ レスポンシブ
   ========================================================= */
@media (max-width: 1180px) {
  .header .inner { padding: 0 40px; }
  .nav ul { gap: 36px; }
  .hero .inner { grid-template-columns: 1fr 420px; padding: 56px 40px 0; }
  .arch { width: 420px; height: 588px; }   /* 500×700 と同じ比率 */
  .arch::before, .arch img { border-radius: 210px 210px 0 0; }
  .title { font-size: 64px; }
  .catch { font-size: min(44px, 4.2vw); }          /* 「あなたらしいiroが」が2行に割れないよう、画面はばに合わせて少し小さく */
  .catch .iro { font-size: min(58px, 5.5vw); }
  .catch > span { white-space: nowrap; }
  .curve { left: .94vw; width: 97.66vw; }   /* 860〜1180px でも線を出す（PCと同じ形を画面はばに合わせて縮める） */
  .works .h2 { left: 120px; }
  .profile-wrap { margin: 150px 32px 0; }
  .script { left: calc(-10px - .35em); }   /* わくが画面の左はしに寄るので、profile の p が画面からはみ出して欠けないよう右へ */
  .about__box { grid-template-columns: 400px 1fr; }
  .about__photo img { width: 400px; height: 464px; }
  .footer__logo { left: 120px; }
  .footer__nav { left: auto; right: 40px; }
}

@media (max-width: 860px) {
  /* メニューは右上のボタンで開く */
  .header { height: 60px; }
  .header .inner { padding: 0 16px; }
  .menu-btn {
    display: block; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .menu-btn span { display: block; width: 26px; height: 2px; margin: 6px auto; background: var(--red); transition: transform .3s, opacity .3s; }
  .nav {
    position: absolute; left: 0; right: 0; top: 60px;
    background: var(--peach);
    max-height: 0; overflow: hidden; transition: max-height .4s;
  }
  .nav ul { flex-direction: column; gap: 0; padding: 0 16px; }
  .nav li { padding: 14px 0; border-top: 1px solid rgba(240, 64, 58, .2); }
  .header.is-open .nav { max-height: 360px; }
  .header.is-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header.is-open .menu-btn span:nth-child(2) { opacity: 0; }
  .header.is-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  html { scroll-padding-top: 60px; }

  .hero { height: auto; }
  .hero__bg::after { top: 300px; left: -60%; width: 220%; }
  /* パソコンと同じく「左に文字・右にイラスト」の2列。大きさは画面の幅に合わせて変わる（vw） */
  .hero .inner { display: grid; grid-template-columns: minmax(0, 1fr) 38vw; column-gap: 3vw; align-items: start; padding: 6vw 16px 40px; }
  .catch { font-size: 4.6vw; }
  .catch span { padding: 1.2vw 1.6vw 1.8vw; margin-bottom: 1.6vw; }
  .catch .iro { font-size: 6vw; }
  .title { margin-top: 5vw; font-size: 7.2vw; }
  .lead { margin-top: 4vw; padding-left: 1vw; font-size: 3.4vw; line-height: 1.9; white-space: nowrap; }
  .arch { width: 100%; height: auto; aspect-ratio: 500 / 700; margin: 2vw 0 0; left: -6px; }   /* 左へ 3px＋3px ＝ 6px */
  .arch::before, .arch img { border-radius: 999px 999px 0 0; }
  .arch::before { left: -2.2vw; top: -1.6vw; right: 2.4vw; bottom: -2.4vw; border-width: 2px; }   /* パソコンと同じ形を小さくしたもの */
  .curve { display: none; }

  /* 「未来に彩りを。」のあたりから、オレンジの波線がパソコンと同じように左から描かれていく */
  .sp-curve {
    display: block; position: relative; z-index: 3;
    width: 100vw; max-width: none; height: auto;
    margin: -34px 0 -40px -16px;          /* 左右は画面いっぱい（右のイラストの下まで）、「未来に彩りを。」のすぐ下から */
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0 46%, transparent 54%);
            mask-image: linear-gradient(90deg, #000 0 46%, transparent 54%);
    -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: curveDraw 2.2s cubic-bezier(.3, .2, .3, 1) 1.7s both;   /* 下の3行の文と同じタイミング */
  }

  .concept { padding: 64px 40px 56px; }   /* 左右を少しあけて、水色の波線を置く場所をつくる */
  .h2 { font-size: 34px; }
  .concept .h2 { font-size: 30px; }
  .concept__box { margin-top: 28px; font-size: 15px; padding: 14px 16px; word-break: auto-phrase; }
  .concept__box::after { left: 9px; top: 9px; right: -9px; bottom: -9px; }
  .concept__text { margin-top: 40px; font-size: 15px; }
  .concept__box br { display: none; }
  /* CONCEPT の文はパソコンと同じところで区切る。長い行がスマホで入りきらない時は、ことばの切れ目で折り返す */
  .concept__text { word-break: auto-phrase; }
  /* 水色の波線：パソコンと同じく、左に2本・右に1本（スマホ用に細く小さく） */
  .wave--cl { left: 10px; top: 250px; width: 17px; }
  .wave--cr { left: auto; right: 8px; top: 228px; width: 27px; }
  .btn { min-width: 0; width: min(280px, 100%); font-size: 22px; }
  .contact .btn { font-size: 22px; }

  .works { padding: 64px 16px; }
  .works .h2 { left: 0; font-size: 38px; }
  .gallery { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  /* スマホでも、パソコンのデザインと同じ見え方（同じ縦横の比率）で画像を見せる */
  .work { position: relative; left: auto; top: auto; width: auto; height: auto; align-self: start; }
  .work:nth-child(1) { aspect-ratio: 304 / 455; }               /* 整体LP */
  .work:nth-child(2) { aspect-ratio: 525 / 717; }               /* Good Sleep */
  .work:nth-child(3) { aspect-ratio: 338 / 451; }               /* 美白クリーム */
  .work:nth-child(4) { aspect-ratio: 554 / 668; grid-column: auto; }   /* Zeroichi（スマホでは右に並べる） */
  .work:nth-child(5) { aspect-ratio: 555 / 451; grid-column: 1 / -1; } /* キッズ（横いっぱい） */

  .service { padding: 64px 16px 72px; }
  .service::before { left: -100%; width: 300%; }   /* 丸を横に大きくして、上のカーブをパソコンのようになだらかに */
  .service__grid { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .service__grid li { border: 0 !important; padding: 20px 0 !important; }
  .circle { width: 132px; height: 132px; font-size: 17px; }
  .circle--sm { font-size: 17px; }
  .service__name { margin-top: 14px; font-size: 14px; }

  .about { padding: 64px 16px 72px; }
  .about .h2 { font-size: 36px; }
  .profile-wrap { margin: 130px 0 0; }   /* ABOUT と手書きの profile がくっつかないように、40px 下げる */
  .script { font-size: 80px; left: calc(-6px - .35em); top: calc(-90px - .35em); clip-path: none; }   /* スマホは前のまま */
  .about__box { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 24px; }
  /* 写真はデザインと同じくらいの大きさ（画面の6割ほど・最大300px）で左に置く */
  .about__photo { width: min(300px, 62%); }
  /* 写真の右の空いたところに、オレンジの波線を置く（左下→右上にのびる） */
  .about__left { position: relative; }
  .about__wave-sp {
    display: block; position: absolute; z-index: 2;
    left: calc(min(300px, 62%) - 24px);   /* 写真のはしに少しだけ重ねる */
    top: 30%;
    width: calc(100% - min(300px, 62%) + 32px);   /* 右のわくの少し外まで */
    max-width: none; height: auto;
    /* 小さくすると線が細くなりすぎるので、ほんの少しだけ線を太らせる */
    filter: drop-shadow(0 0 .6px rgba(229, 82, 63, .9)) drop-shadow(0 0 .4px rgba(229, 82, 63, .8));
    pointer-events: none;
    opacity: 0; transform: translateY(30px);
    transition: opacity 1.4s ease .6s, transform 1.6s cubic-bezier(.2, .8, .2, 1) .6s;
  }
  .about__left.is-in .about__wave-sp { opacity: 1; transform: none; }   /* 画面に入ったら、下からふわっと */
  .about__photo img { width: 100%; height: auto; aspect-ratio: 470 / 545; }
  .about__name { margin-top: 20px; font-size: 18px; line-height: calc(1.85em - 4px); }   /* KUMI と MATSUBARA の間を4px詰める */
  .about__text { font-size: 15px; padding-top: 0; }
  .about__catch { font-size: 19px; margin-bottom: 28px; }
  .about__curve { display: none; }

  .contact { padding: 64px 16px 0; }
  .contact__text { font-size: 15px; }
  .contact__text br { display: inline; }
  .footer { height: 520px; margin: 64px -16px 0; }
  .footer::before { left: -140%; width: 380%; }   /* 丸を横に大きくして、上のカーブをなだらかに */
  .wave--fl { left: 12px; top: 160px; }
  .wave--fr { left: 52px; top: 70px; }
  /* スマホでは文字を波線の右側に置いて、重ならないようにする */
  .footer__logo { left: 124px; top: 110px; font-size: 34px; }
  .footer__nav { left: 124px; right: auto; top: 220px; grid-template-columns: 112px auto; row-gap: 20px; column-gap: 22px; }
  .footer__nav a { font-size: 15px; }
}

/* ===== スマホ（はば600px以下）：タブレットで見たときと同じバランスに近づける =====
   見出し・ボタン・手書きの profile・写真・丸などを、画面のはばに合わせて少し小さく（vw）。
   本文の文字（15px前後）は読みやすさのため、そのままにする */
@media (max-width: 600px) {
  /* ファーストビュー（スマホ）：たて1列に並べて、ひとつひとつを大きく。下へスクロールして見ていく
     順番：あなたらしいiroが／伝わるデザインへ → IROSENS Design → 3行の文 → イラスト → オレンジの波線 */
  .hero .inner {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 9vw 20px 30vw;
  }
  .hero__text { display: contents; }   /* 中の文字とオレンジの波線を、イラストと同じ列にならべる */
  .catch { order: 1; font-size: 6.6vw; }
  .catch .iro { font-size: 8.6vw; }
  .catch span { margin-bottom: 2.6vw; }
  .title { order: 2; margin-top: 9vw; font-size: 13vw; }
  .lead { order: 3; margin-top: 7vw; padding-left: 1vw; line-height: 2.1; font-size: 4.5vw; }
  .arch {
    order: 4; align-self: center;
    width: 74vw; margin: 14vw 0 0; left: 0;
  }
  .sp-curve { order: 5; margin: -10vw 0 0 -20px; width: 100vw; }
  .hero__bg::after { top: 48%; }   /* 黄色い大きな丸の上はしを、イラストのうしろあたりに */
  /* イラストが出てきたあと、ゆっくり上下にふわふわ動く */
  .arch { animation: archIn 1.5s cubic-bezier(.2, .8, .2, 1) .4s both, archFloat 3.6s ease-in-out 2s infinite alternate; }
  /* 画面の下に「SCROLL」と、下へ流れる線（CONCEPT が下にあることを知らせる） */
  .hero__scroll {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3;
    width: max-content; margin: 0 auto;
    pointer-events: none;
    animation: fadeUp 1.2s ease 2.6s both;
  }
  .hero__scroll span { font-size: 10px; letter-spacing: .3em; text-indent: .3em; line-height: 1; color: var(--coral); }
  .hero__scroll i { position: relative; display: block; width: 1.5px; height: 52px; background: rgba(232, 86, 63, .25); }
  .hero__scroll i::before {
    content: ""; position: absolute; inset: 0;
    background: var(--coral);
    transform-origin: top;
    animation: scrollLine 2s cubic-bezier(.6, 0, .3, 1) infinite;
  }

  .h2, .concept .h2 { font-size: clamp(24px, 7.2vw, 34px); }
  .works .h2 { font-size: clamp(26px, 7.6vw, 38px); }
  .about .h2 { font-size: clamp(25px, 7.2vw, 36px); }

  .btn, .contact .btn { width: min(280px, 62vw); font-size: clamp(17px, 4.9vw, 22px); padding: 12px 24px; }
  .concept .btn { margin-top: 52px; }

  .concept, .works, .about { padding-top: 56px; }

  /* 丸の中の文字は6つとも同じ大きさ。Business card にも余白が残るよう、丸を少し大きく */
  .circle, .circle--sm { width: clamp(108px, 32vw, 132px); height: clamp(108px, 32vw, 132px); font-size: clamp(14px, 4vw, 20px); }

  /* ABOUT：手書きの profile と写真を、画面のはばに合わせて小さめに */
  .profile-wrap { margin-top: 106px; }
  /* profile は少し上に、写真は少し下に（profile が写真にかかりすぎないように） */
  .script { font-size: clamp(54px, 15vw, 80px); top: calc(-72px - .35em); }
  .about__photo { width: min(300px, 48%); margin-top: -26px; }
  .about__wave-sp {
    left: calc(min(300px, 48%) - 20px);
    width: calc(100% - min(300px, 48%) + 28px);
  }
  .about__name { font-size: 16px; }
  .about__catch { font-size: 17px; }

  /* CONCEPT の文：パソコンと同じところで区切る（いちばん長い行＝29文字が1行に入る大きさに、画面のはばに合わせて小さくする）。
     左右の水色の波線は、文字にかからないよう少し外側へ */
  .concept { padding-left: 24px; padding-right: 24px; }
  .concept__text { font-size: min(15px, calc((100vw - 48px) / 25.2)); word-break: normal; }   /* 375pxのはばで約13px */
  .concept__text .sp-br { display: inline; }   /* とくに長い2行だけ、スマホでは読点のところで区切る */
  .concept__text p { white-space: nowrap; }
  .wave--cl { left: 4px; width: 14px; }
  .wave--cr { right: 4px; width: 22px; }

  /* CONTACT の文：「夫です。」「す。」だけが次の行に落ちないよう、ことばの切れ目で折り返す */
  .contact__text { word-break: auto-phrase; }

  .footer__logo { font-size: 30px; }
  /* スマホは横に入りきらないので、INSTAGRAM は PORTFOLIO の下の段に */
  .footer__nav li:has(.insta) { grid-column: 1 / -1; }
}

/* 動きを減らす設定の人には、アニメーションなしで表示 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== WORKS の画像を押すと出てくる説明画面（ポップアップ）=====
   ご本人のデザイン解説の画像（1920×1080）を、そのまま出す */
.modal--work { width: fit-content; max-width: 96vw; max-height: 94vh; }
.work[data-work] { cursor: zoom-in; }   /* 説明画面がある作品は、マウスをのせると虫めがねマーク */
.wd-art { width: min(94vw, calc(88vh * var(--ar, 1.7778))); }   /* --ar ＝ 画像の横÷縦（ふつうは 16:9、ゼロイチは 3:2） */
.wd-art__img {
  display: block; width: 100%; height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.wd-hint { display: none; }
/* たて長の解説画像（tall）：画面の高さに合わせて縮めず、はばいっぱいに大きく出して、上下にスクロールして読む */
.modal--work.is-tall .wd-scroll { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 6px; }
.modal--work.is-tall .wd-art { width: min(94vw, 1280px); }

/* スマホ（たて向き）：説明画像を画面の高さいっぱいまで大きくして、指で横にずらして読めるようにする */
@media (max-width: 760px) and (orientation: portrait) {
  .modal--work { width: 100vw; max-width: 100vw; max-height: 100vh; }
  .wd-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .wd-scroll::-webkit-scrollbar { display: none; }
  .wd-art { width: calc(74vh * var(--ar, 1.7778)); margin: 0 16px; }
  .wd-hint {
    display: block;
    margin-top: 14px; text-align: center;
    font-size: 11px; letter-spacing: .3em; text-indent: .3em; color: #fff;   /* トップの「SCROLL」と同じ書体・字間 */
  }
  .modal--work .modal__close { position: fixed; right: 12px; top: 12px; }
  /* たて長の画像は、横も上下もずらして読めるように大きめに */
  .modal--work.is-tall .wd-scroll { max-height: 80vh; overflow: auto; }
  .modal--work.is-tall .wd-art { width: 200vw; }
  /* スマホ用の1列の画像（Good Sleep・ゼロイチ）：画面のはばにぴったり合わせて、上下にスクロールするだけで読む */
  .modal--work.is-onecol .wd-scroll {
    max-height: 100vh; max-height: 100dvh;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    padding: 56px 0 24px;   /* 上は × ボタンの分あける */
  }
  .modal--work.is-onecol .wd-art { width: calc(100vw - 24px); margin: 0 auto; }
  .modal--work.is-onecol .wd-hint { display: none; }   /* 横にずらさないので「SWIPE」は出さない */
}
