/*
 * Rui Miyamori（宮森 瑠偉） ポートフォリオ
 *
 * 前半はデザイン案（design/mock/index.html）の CSS をそのまま写したもの。
 * 見た目を直すときは、デザイン案と食い違わないよう注意する。
 */

:root {
  --c: #a9002e; /* クリムゾンレッド */
  --c-dark: #7a0021;
  --c-pale: #fbeff2;
  --gray: #f7f5f5;
  --ink: #2a2526;
  --sub: #645d5e;
  --line: #e5dfe0;
  --en: "Outfit", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.9;
  letter-spacing: 0.04em;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* 仮の印 */
.todo {
  background: #fff4c2;
  padding: 0 0.25em;
  border-radius: 2px;
}
.illust {
  display: flex;
  align-items: center;
  justify-content: center;
}
.illust img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.hero .illust {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(70, 0, 20, 0.18);
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--en);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.logo span {
  color: var(--c);
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.btn {
  display: inline-block;
  background: var(--c);
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 500;
  font-size: 14px;
}
.btn:hover {
  background: var(--c-dark);
}

/* ファーストビュー */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero__curve {
  position: absolute;
  right: -10%;
  top: 0;
  width: 70%;
  height: 100%;
}
.nw {
  white-space: nowrap;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.6;
  margin: 0 0 24px;
  letter-spacing: 0.08em;
}
.hero p {
  color: var(--sub);
  margin: 0 0 36px;
}
.hero .illust {
  height: 340px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--c);
  font-weight: 700;
}
.arrow-link i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
}

/* セクション共通 */
.sec {
  padding: 112px 0;
}
.sec--gray {
  background: var(--gray);
}
.ttl {
  margin: 0 0 56px;
}
.ttl b {
  display: block;
  font-family: var(--en);
  font-weight: 500;
  color: var(--c);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.ttl small {
  font-size: 13px;
  color: var(--sub);
}
.ttl--center {
  text-align: center;
}

/* 想い */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}
.about .illust {
  height: 300px;
}
.about__lead {
  font-size: 26px;
  line-height: 1.7;
  margin: 0 0 24px;
}

/* サービス */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.service:last-child {
  margin-bottom: 0;
}
.service:nth-child(even) .illust {
  order: 2;
}
.service .illust {
  height: 280px;
}
.service__no {
  font-family: var(--en);
  color: var(--sub);
  font-size: 14px;
}
.service h3 {
  font-size: 24px;
  margin: 4px 0 16px;
}

/* 料金 */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.plan--main {
  border: 2px solid var(--c);
}
.plan h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.plan__for {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 20px;
}
.plan__price {
  font-family: var(--en);
  font-size: 32px;
  font-weight: 500;
  color: var(--c-dark);
  margin: 0 0 20px;
}
.plan__price small {
  font-family: "Noto Sans JP";
  font-size: 14px;
  color: var(--sub);
}
.plan__price .plan__from {
  font-size: 22px;
  position: relative;
  top: -0.15em;
  margin-left: 2px;
}
.plan ul {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
}
.plan li {
  padding-left: 1.4em;
  position: relative;
  text-wrap: pretty;
}
/* 下に横長で置くプラン（時間単位の業務委託） */
.plan--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
}
.plan--wide .plan__price {
  margin: 0;
}
.plan--wide ul {
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 0 0 0 40px;
  margin-left: 40px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.note {
  font-size: 13px;
  color: var(--sub);
  margin-top: 24px;
  text-align: center;
}

/* 実績 */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
/* 実績が1件のときは、中央に大きめに出す */
.works--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
.work__shot {
  aspect-ratio: 4 / 3;
  background: var(--c-pale);
  border-radius: 12px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pc {
  width: 72%;
  aspect-ratio: 16 / 10;
  background: #fff;
  border: 6px solid var(--ink);
  border-radius: 8px;
}
.sp {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 18%;
  aspect-ratio: 9 / 18;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 10px;
}
.work h3 {
  font-size: 16px;
  margin: 16px 0 4px;
}
.work p {
  font-size: 13px;
  color: var(--sub);
  margin: 0;
  line-height: 1.7;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  font-size: 12px;
  background: var(--c-pale);
  color: var(--c-dark);
  padding: 2px 12px;
  border-radius: 999px;
}
.more {
  text-align: center;
  margin-top: 56px;
}

/* プロフィール */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.photo {
  aspect-ratio: 4 / 5;
  background: #ebe5e6;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--sub);
  font-size: 13px;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl {
  margin: 0;
}
.dl dt {
  font-family: var(--en);
  font-size: 12px;
  color: var(--sub);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  margin-top: 18px;
}
.dl dt:first-child {
  margin-top: 0;
}
.dl dd {
  margin: 8px 0 0;
  font-weight: 500;
}
.sns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--en);
}
.sns a {
  color: var(--c-dark);
  text-decoration: none;
}
.sns a:hover {
  opacity: 0.7;
}
/* 別タブで開く印（四角から矢印が出る形）。色は文字と同じ */
.sns a::after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 4px;
  vertical-align: baseline; /* 下端を文字のベースラインに、上端を英字の大文字の高さにそろえる */
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1.8 1.8 20.4 20.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3l-9 9M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1.8 1.8 20.4 20.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3l-9 9M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sns--footer {
  margin-top: 20px;
  font-size: 14px;
}
.sns--footer a {
  color: #fff;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill {
  background: var(--c);
  color: #fff;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  font-family: var(--en);
}

/* 年表 */
.timeline {
  margin-top: 72px;
  border-left: 2px solid var(--line);
  margin-left: 120px;
}
.tl {
  position: relative;
  padding: 0 0 36px 36px;
}
.tl::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
}
.tl time {
  position: absolute;
  left: -120px;
  top: 0;
  font-family: var(--en);
  font-weight: 500;
  font-size: 18px;
}
.tl h3 {
  margin: 0;
  font-size: 16px;
}
.tl h3 {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.8em;
}
.tl__role {
  font-weight: 500;
  color: var(--c-dark);
}
/* エンジニアに転身した年を目立たせる */
.tl__badge {
  display: inline-block;
  margin-bottom: 6px;
  background: var(--c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
}
.tl--turn::before {
  left: -13px;
  top: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 6px solid var(--c);
  box-sizing: border-box;
}
.tl__made-ttl {
  margin: 14px 0 6px !important;
  font-size: 12px !important;
  font-weight: 700;
  color: var(--c-dark) !important;
  letter-spacing: 0.08em;
}
.tl__made {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.8;
}
.tl__made li {
  position: relative;
  padding-left: 1.2em;
  margin-top: 4px;
}
.tl__made li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}
.tl p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--sub);
}

/* 流れ */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: 12px;
  padding: 28px 18px;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--en);
  color: var(--c);
  font-size: 28px;
  font-weight: 500;
}
.step h3 {
  font-size: 15px;
  margin: 8px 0;
}
.step p {
  font-size: 13px;
  color: var(--sub);
  margin: 0;
  line-height: 1.7;
  text-align: left;
}

/* お問い合わせ */
.cta {
  background: var(--c-pale);
  border-radius: 24px;
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-size: 26px;
  margin: 0 0 12px;
}
.cta p {
  color: var(--sub);
  margin: 0 0 32px;
}
.cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.plan__link {
  margin: 16px 0 0;
  font-size: 14px;
}
.plan__link a {
  color: var(--c-dark);
  text-decoration: underline;
}

/* 足元 */
.footer {
  background: var(--c);
  color: #fff;
  padding: 72px 0 40px;
  margin-top: 112px;
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer .logo span {
  color: #f6c4d1;
}
.footer nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 40px;
  font-size: 14px;
}
.copy {
  font-family: var(--en);
  font-size: 12px;
  opacity: 0.8;
  margin-top: 40px;
  grid-column: 1 / -1;
}

/* ==========================================================================
 * ここから下は、デザイン案にない WordPress 用の追加
 * （下層ページ・実績の一覧と詳細・お問い合わせフォーム・読み上げ対応など）
 * ======================================================================== */
:root {
  --error: #c2410c; /* サイトの色（赤）と見分けがつくよう、橙寄りにする */
  --error-bg: #fff4ec;
}
[id] {
  scroll-margin-top: 92px;
}
.admin-bar .header {
  top: 32px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-dark);
  outline-offset: 2px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  background: var(--c-dark);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
}
.muted {
  color: var(--sub);
}
.empty-note {
  text-align: center;
  color: var(--sub);
  margin: 0;
}
button.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.btn--outline {
  background: #fff;
  color: var(--c-dark);
  box-shadow: inset 0 0 0 1px var(--c);
}
.btn--outline:hover {
  background: var(--c-pale);
}

/* 実績の画面の絵に画像を入れる */
.pc,
.sp {
  overflow: hidden;
}
.pc img,
.sp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.work h2 {
  font-size: 16px;
  margin: 16px 0 4px;
}
.work:hover h2,
.work:hover h3 {
  color: var(--c-dark);
  text-decoration: underline;
}

/* 下層ページ */
.wrap--narrow {
  width: min(800px, 100% - 48px);
}
.wrap--form {
  width: min(860px, 100% - 48px);
}
.sub {
  padding-top: 72px;
}
.page-head {
  margin-bottom: 48px;
}
.page-head .ttl {
  margin-bottom: 16px;
}
.page-head__lead {
  color: var(--sub);
  margin: 0;
}
.page-head__title {
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 40px;
}
.prose h2 {
  font-size: 19px;
  line-height: 1.6;
  margin: 48px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--c);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 17px;
  margin: 32px 0 8px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}
.prose a {
  color: var(--c-dark);
  text-decoration: underline;
}
.prose img {
  height: auto;
  border-radius: 8px;
}
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 実績の一覧 */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}
.filter a {
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}
.filter a:hover {
  border-color: var(--c);
}
.filter a[aria-current] {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
}
.pager ul {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pager a,
.pager span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--en);
}
.pager .current {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
}

/* 実績の詳細 */
.work-detail__head {
  margin-bottom: 40px;
}
.work-detail__en {
  font-family: var(--en);
  font-weight: 500;
  color: var(--c);
  margin: 0;
}
.work-detail__title {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  margin: 4px 0 8px;
}
.work-detail__summary {
  color: var(--sub);
  margin: 0;
}
.work__shot--large {
  max-width: 880px;
  margin-inline: auto;
}
/* スマホ画面の画像だけの実績は、スマホの枠1つを中央に出す */
.work__shot--sp .sp {
  position: static;
  width: auto;
  height: 84%;
  border-width: 6px;
  border-radius: 16px;
}
/* スマホだけの実績の「そのほかの画像」は、縦長なので横に並べる */
.work-detail__gallery--sp {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-items: start;
}
@media (max-width: 600px) {
  .work-detail__gallery--sp {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.wrap.work-detail {
  width: min(800px, 100% - 48px);
}
.work-detail__outline {
  margin-bottom: 56px;
}
.work-detail__gallery {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}
.work-detail__gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.work-detail__back {
  margin-top: 56px;
  text-align: center;
}

/* お問い合わせフォーム */
.cf-box {
  background: #fff;
  border-radius: 12px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.cf-box > p {
  margin: 0;
}
.cf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.cf-steps__item {
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
}
.cf-steps__item + .cf-steps__item {
  border-left: 1px solid var(--line);
}
.cf-steps__item.is-current {
  background: var(--c);
  color: #fff;
}
.cf-steps__num {
  margin-right: 8px;
  font-family: var(--en);
}
.cf-alert {
  border: 2px solid var(--error);
  border-radius: 8px;
  background: var(--error-bg);
  padding: 20px 24px;
}
.cf-alert p {
  margin: 0;
}
.cf-alert__title {
  font-weight: 700;
  color: var(--error);
}
.cf-alert ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.cf-alert a {
  color: var(--error);
  text-decoration: underline;
}
.cf-error {
  display: flex;
  gap: 6px;
  margin: 0;
  color: var(--error);
  font-weight: 700;
  font-size: 14px;
}
.cf-error::before {
  content: "！";
  flex: none;
}
.cf-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cf-group__title {
  width: 100%;
  margin-bottom: 4px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--c);
  font-size: 18px;
  font-weight: 700;
}
.cf-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-field--narrow {
  max-width: 360px;
}
.cf-label {
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
}
.cf-badge {
  display: inline-block;
  white-space: nowrap;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gray);
  color: var(--sub);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
}
.cf-badge--req {
  background: var(--c);
  color: #fff;
}
.cf-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}
.cf-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8bfc1;
  border-radius: 8px;
}
.cf-input:hover {
  border-color: var(--ink);
}
.cf-input[aria-invalid="true"] {
  border: 2px solid var(--error);
}
.cf-textarea {
  resize: vertical;
}
.cf-select {
  appearance: none;
  padding-right: 44px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f2a2b' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
}
.cf-choices__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cf-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #c8bfc1;
  border-radius: 8px;
  cursor: pointer;
}
.cf-choice:has(input:checked) {
  border-color: var(--c);
  box-shadow: inset 0 0 0 1px var(--c);
  background: var(--c-pale);
}
.cf-choices[aria-invalid="true"] .cf-choice {
  border-color: var(--error);
}
.cf-choice input,
.cf-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c);
}
.cf-agree > legend {
  float: left; /* fieldset の枠の上に載らず、背景の内側に並ぶようにする */
  width: 100%;
}
.cf-agree {
  margin: 0;
  min-width: 0;
  border: 0;
  padding: 20px 24px;
  background: var(--gray);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.cf-check input {
  margin-top: 7px;
}
.cf-check input[aria-invalid="true"] {
  outline: 2px solid var(--error);
}
.cf-check a {
  color: var(--c-dark);
  text-decoration: underline;
}
.cf-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 56px;
  font-size: 16px;
}
.cf-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.cf-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cf-review__title {
  margin: 0;
  font-size: 18px;
}
.cf-review__list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2.6fr);
  border-top: 2px solid var(--c);
}
.cf-review__row {
  display: contents;
}
.cf-review__row dt,
.cf-review__row dd {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.cf-review__row dt {
  font-weight: 700;
  background: var(--gray);
  font-size: 14px;
}
.cf-review__row dd {
  word-break: break-word;
}
.cf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.cf-actions .btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 40px;
}
.cf-done {
  text-align: center;
}
.cf-done p {
  margin: 0 0 16px;
}
.cf-done__title {
  font-size: 24px;
  margin: 0 0 16px;
}
.cf-done__note {
  padding: 16px 24px;
  background: var(--gray);
  border-radius: 8px;
  color: var(--sub);
  font-size: 14px;
  text-align: left;
}

/* スマホ（デザイン案のとおり） */
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav a:not(.btn) {
    display: none;
  }
  .header .wrap {
    height: 64px;
  }
  .btn {
    padding: 10px 20px;
  }
  .hero {
    min-height: 0;
    padding: 40px 0 64px;
  }
  /* スマホでは曲線を絵の後ろ（下半分）だけに置き、文章に重ねない */
  .hero__curve {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 300px;
  }
  .hero p br {
    display: none;
  }
  .hero .wrap,
  .about,
  .service,
  .profile {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero .illust {
    height: 220px;
  }
  .service:nth-child(even) .illust {
    order: 0;
  }
  .sec {
    padding: 72px 0;
  }
  .ttl {
    margin-bottom: 36px;
  }
  .ttl b {
    font-size: 32px;
  }
  .plans,
  .works,
  .flow {
    grid-template-columns: 1fr;
  }
  .plan--wide {
    display: flex;
    align-items: stretch;
  }
  .plan--wide .plan__price {
    margin: 0 0 20px;
  }
  .plan--wide ul {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
    margin-left: 0;
  }
  .profile {
    gap: 32px;
  }
  .photo {
    max-width: 200px;
  }
  .timeline {
    margin-left: 8px;
  }
  .tl time {
    position: static;
    display: block;
    font-size: 15px;
  }
  .cta {
    padding: 48px 20px;
  }
  .footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* スマホ（デザイン案にない部分） */
@media (max-width: 800px) {
  [id] {
    scroll-margin-top: 76px;
  }
  .wrap--narrow,
  .wrap--form,
  .wrap.work-detail {
    width: calc(100% - 32px);
  }
  .sub {
    padding-top: 48px;
  }
  .page-head {
    margin-bottom: 36px;
  }
  .page-head__title {
    font-size: 22px;
  }
  .cf-box {
    padding: 28px 18px;
    gap: 28px;
  }
  .cf-steps__item {
    padding: 8px 4px;
    font-size: 12px;
  }
  .cf-steps__num {
    margin-right: 4px;
  }
  .cf-alert {
    padding: 16px;
  }
  .cf-choices__list {
    grid-template-columns: 1fr;
  }
  .cf-field--narrow {
    max-width: none;
  }
  .cf-review__list {
    grid-template-columns: 1fr;
  }
  .cf-review__row dt {
    padding: 10px 14px;
    border-bottom: 0;
  }
  .cf-review__row dd {
    padding: 10px 14px 16px;
  }
  .cf-submit,
  .cf-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0 20px;
  }
}
@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .header {
    top: 0;
  }
}

/* よくある質問 */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq__q {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 56px 18px 52px;
  font-weight: 500;
  line-height: 1.7;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::before {
  content: "Q";
  position: absolute;
  left: 20px;
  top: 16px;
  font-family: var(--en);
  font-size: 18px;
  font-weight: 600;
  color: var(--c);
}
.faq__q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 14px;
  font-family: var(--en);
  font-size: 22px;
  color: var(--sub);
}
.faq__item[open] .faq__q::after {
  content: "−";
}
.faq__q:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
  border-radius: 12px;
}
.faq__a {
  padding: 0 24px 20px 52px;
  color: var(--sub);
}
.faq__a p {
  margin: 0;
}

/* サービスの詳しいページ */
.crumb {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 16px;
}
.crumb a {
  text-decoration: underline;
}
.service__name {
  font-size: 24px;
  margin: 4px 0 16px;
}
.service .arrow-link {
  margin-top: 8px;
}
.svc-price {
  font-family: var(--en);
  font-size: 22px;
  font-weight: 600;
  color: var(--c);
  margin: 0 0 8px;
}
.svc-others {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.svc-others__ttl {
  font-weight: 500;
  margin: 0 0 16px;
}
.prose + .faq {
  margin-top: 0;
}

/* 無料診断（/check/）：レポートの見本 */
.report {
  position: relative;
  margin: 24px 0 56px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 37, 38, 0.06);
}
.report__sample {
  position: absolute;
  top: -13px;
  left: 24px;
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
  line-height: 26px;
  color: #fff;
  background: var(--sub);
  border-radius: 13px;
}
.report__head {
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.report__ttl {
  margin: 0 0 12px;
  font-size: 22px;
}
.report__meta {
  margin: 0;
  font-size: 14px;
}
.report__meta div {
  display: flex;
  gap: 16px;
}
.report__meta dt {
  flex: 0 0 4em;
  color: var(--sub);
}
.report__meta dd {
  margin: 0;
}
.report__h {
  margin: 32px 0 12px;
  font-size: 17px;
}
.report__table-wrap {
  overflow-x: auto;
}
.report__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
.report__table th,
.report__table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.report__table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
  background: var(--gray);
}
.report__table tbody th {
  width: 9em;
  font-weight: 500;
}
.report__table td:last-child {
  width: 5.5em;
  white-space: nowrap;
}
.report__note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--sub);
}
.report__badge {
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  border-radius: 4px;
  white-space: nowrap;
}
.report__badge--ok {
  color: #2f6b3a;
  background: #eaf4ec;
}
.report__badge--warn {
  color: #8a5a00;
  background: #fdf3dc;
}
.report__badge--ng {
  color: #fff;
  background: var(--c);
}
.report__list {
  margin: 0;
  padding-left: 1.4em;
  font-size: 15px;
}
.report__list li + li {
  margin-top: 6px;
}
.report__plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.report__plan {
  padding: 20px;
  background: var(--gray);
  border-radius: 6px;
  font-size: 14px;
}
.report__plan p {
  margin: 0;
}
.report__plan-ttl {
  font-weight: 500;
}
.report__plan-price {
  margin: 4px 0 8px !important;
  font-family: var(--en);
  font-size: 20px;
  font-weight: 600;
  color: var(--c);
}
.report__foot {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--sub);
}
.check-cta {
  margin: 40px 0 0;
  text-align: center;
}
@media (max-width: 600px) {
  .report {
    padding: 28px 16px 20px;
  }
  .report__plans {
    grid-template-columns: 1fr;
  }
  .report__table tbody th {
    width: 6.5em;
  }
}

/* 制作モニター（/monitor/）：制作費・保守費・最低期間を同じ大きさで並べる（「0 円」だけを目立たせない） */
.mon-price {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 56px;
}
.mon-price__item {
  padding: 20px 12px;
  text-align: center;
  background: var(--c-pale);
  border-radius: 8px;
}
.mon-price__item p {
  margin: 0;
}
.mon-price__label {
  font-size: 14px;
  color: var(--sub);
}
.mon-price__num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c);
}
.mon-price__foot {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--sub);
}
.mon-terms tbody th {
  width: 11em;
}
.mon-terms td:last-child {
  width: auto;
  white-space: normal;
}
.report__table-wrap + .prose {
  margin-top: 56px;
}
.mon-sub-cta {
  margin: 16px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--sub);
}
.mon-sub-cta a {
  color: var(--c);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .mon-price {
    gap: 8px;
  }
  .mon-price__item {
    padding: 16px 4px;
  }
  .mon-price__num {
    font-size: 20px;
  }
  .mon-terms tbody th {
    width: 7em;
  }
}
