@charset "utf-8";

/* -----------------------------------------------------------
    ページタイトル
-------------------------------------------------------------- */
#commitment .subpage-header {
  height: auto;
  min-height: 600px;
  padding: 110px 0 90px;
}
/* 文章が写真の下に潜らないよう、写真の幅(44vw)を除いた範囲に収める */
#commitment .subpage-header__inner {
  max-width: calc(56vw - 40px);
}
#commitment .subpage-header__inner .catch-s {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  color: var(--main);
}
#commitment .subpage-header__inner .catch-s::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--main);
}
#commitment .subpage-header__inner .catch-m {
  font-size: 3.2rem;
  line-height: 1.6;
  padding: 10px 0 0;
  text-shadow: none;
}
#commitment .subpage-header__inner .basic-txt {
  width: auto;
  text-shadow: none;
}
#commitment .subpage-header-image {
  bottom: 60px;
  overflow: hidden;
  border-radius: 0 0 0 50px;
}
#commitment .subpage-header-image img {
  display: block;
  width: 44vw;
  height: 100%;
}
@media screen and (min-width: 769px) {
  /* h1が写真に重なるため白抜きにする */
  #commitment .under-h1 h1 {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  }
}

@media screen and (max-width: 768px) {
  #commitment .subpage-header {
    min-height: 0;
    padding: 0;
  }
  #commitment .subpage-header__inner {
    max-width: none;
    padding: 280px 20px 50px;
  }
  #commitment .subpage-header__inner .catch-s {
    font-size: 1.4rem;
    padding: 20px 0 0;
  }
  #commitment .subpage-header__inner .catch-m {
    font-size: 2.2rem;
  }
  #commitment .subpage-header__inner .basic-txt {
    padding: 20px 0 0;
  }
  #commitment .subpage-header-image {
    bottom: auto;
    left: 0;
  }
  #commitment .subpage-header-image img {
    width: 100%;
    height: 250px;
  }
}

/* -----------------------------------------------------------
    .commitment-area
-------------------------------------------------------------- */
.commitment-bg {
  background: linear-gradient(180deg, #fbefd7 0%, #fff 100%);
}
.commitment-area {
  padding: 140px 0 0;
}

.commitment-area > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 60px 80px;
}
.commitment-area:nth-child(even) > div {
  flex-direction: row-reverse;
}
.commitment-txt-block {
  flex: 0 0 46%;
}
/* 写真＋文章の下に、全幅で置く補足ブロック */
.commitment-sub {
  flex: 0 0 100%;
}
.commitment-sub .btn-more {
  text-align: center;
}
/* 「保有資格・登録」は横長の帯にして上に、「スタッフの対応〜」はその下に全幅で置く */
.quality-area .commitment-sub {
  display: block;
}
.quality-area .commitment-sub .btn-more {
  grid-column: 1 / -1;
}

/* 番号ラベル */
.commitment-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font: 500 1.5rem / 1 var(--en);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--main);
}
.commitment-num span {
  font-size: 5.6rem;
  font-weight: 600;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--main);
  font-family: "Lato", sans-serif;
}

/* 番号はセクションの並び順から自動で振る */
.commitment-bg {
  counter-reset: commitment;
}
.commitment-area {
  counter-increment: commitment;
}
.commitment-num span::before {
  content: counter(commitment, decimal-leading-zero);
}
.commitment-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--main);
  opacity: 0.4;
  transform-origin: left center;
}

.commitment-txt-block .ttl-l .jp {
  line-height: 1.3;
}
.commitment-txt-block .ttl-l span {
  font-size: 5rem;
  display: inline-grid;
  color: var(--main);
  position: relative;
  padding: 0 10px 0 0;
}
.commitment-txt-block .catch-l {
  font-size: 2.8rem;
  line-height: 1.6;
  padding: 30px 0 0;
}
.commitment-txt-block .basic-txt {
  padding: 25px 0 0;
}

/* 写真（画面端まで伸ばす） */
.commitment-image {
  flex: 1;
  min-width: 0;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-radius: 0 30px 30px 0;
}
.commitment-area:nth-child(even) .commitment-image {
  margin-left: 0;
  margin-right: calc(50% - 50vw);
  border-radius: 30px 0 0 30px;
}
.commitment-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  object-fit: cover;
}

/* .commitment-list */
.commitment-list {
  margin: 35px 0 0;
  background: #fff;
  padding: 40px 40px 36px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(109, 60, 20, 0.08);
  position: relative;
}

.commitment-list-kaiten {
  align-items: center;
  display: flex;
  height: 100px;
  justify-content: center;
  position: absolute;
  width: 100px;
  left: -20px;
  top: -35px;
}
.commitment-list-kaiten::before {
  animation: 20s 0s rotate linear infinite;
  background: url(../img/kaiten-orange.svg) center center / 100px auto no-repeat;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}
.commitment-list-kaiten .sub {
  color: #fff;
  display: inline-block;
  position: relative;
  font-weight: bold;
  z-index: 1;
  font-size: 1.8rem;
  line-height: 1.3;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.commitment-list-ttl {
  color: var(--main);
  font-size: 3.6rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* 左にタイトルと「詳しく見る」、右に3つのポイントを横並びにする */
@media screen and (min-width: 769px) {
  .commitment-list {
    align-items: center;
    display: flex;
    gap: 0 50px;
  }
  .commitment-list-head {
    flex: 0 0 auto;
    padding: 30px 0 0 10px;
  }
  #commitment .commitment-list-head .btn-more {
    margin: 26px 0 0;
    text-align: left;
  }
  /* 説明文：1〜2文字だけ次の行に残らないよう、文節の区切りで折り返す */
  .commitment-list-txt {
    font-size: 1.6rem;
    text-wrap: balance;
    word-break: auto-phrase;
  }
}

.commitment-list ul {
  display: flex;
  flex: 1;
  gap: 24px;
  min-width: 0;
}
.commitment-list ul li {
  flex: 1;
  padding: 16px 0 0;
  position: relative;
}
/* POINT 01 などのラベル（写真の左上に掛ける） */
.commitment-list-num {
  background: var(--main);
  border-radius: 30px;
  color: #fff;
  font: 500 1.5rem / 1.6 var(--en);
  left: 14px;
  letter-spacing: 0.1em;
  padding: 2px 16px;
  position: absolute;
  top: 0;
  z-index: 1;
}
.commitment-list-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}
.commitment-list-txt {
  padding: 14px 0 0;
  text-align: center;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.5;
}

/* .qualification-list */
.qualification-list {
  margin: 0;
  background: #fff;
  padding: 22px 36px;
  border-left: 5px solid var(--main);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 10px 30px rgba(109, 60, 20, 0.08);
  /* 見出し（左）と資格（右）を横一列に並べる */
  align-items: center;
  display: flex;
  gap: 0 36px;
}
.qualification-list-ttl {
  flex: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--main);
  padding: 4px 36px 4px 0;
  border-right: 1px solid #e5d9cc;
}
.qualification-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 0;
}
.qualification-list ul li {
  line-height: 1.5;
  padding: 0 0 0 26px;
  position: relative;
}
/* チェックマーク */
.qualification-list ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.35em;
  width: 7px;
  height: 12px;
  border: solid var(--main);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* .commitment-voice */
.commitment-voice {
  margin: 45px 0 0;
}
.commitment-voice-ttl {
  font-size: 1.8rem;
  line-height: 1.8;
  font-weight: bold;
}
.commitment-voice-ttl span {
  color: var(--main);
  border-bottom: double 5px var(--main);
}
.commitment-voice ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 25px 0 0;
}
.commitment-voice ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(109, 60, 20, 0.08);
  position: relative;
}
.commitment-voice ul li::before {
  content: '"';
  font-family: var(--en);
  font-size: 5rem;
  line-height: 1;
  position: absolute;
  top: -8px;
  right: 14px;
  font-style: italic;
  color: var(--main);
}

.commitment-voice-image {
  flex: none;
}
.commitment-voice-image img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.commitment-voice ul li .basic-txt {
  flex: 1;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 600;
}

/* ボタン */
#commitment .btn-more {
  margin: 40px 0 0;
}
/* トップページの .top-btn と同じデザイン */
#commitment .btn-more a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cmnblack);
  color: var(--cmnblack);
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 500;
  height: 60px;
  justify-content: center;
  letter-spacing: 0.1em;
  padding: 0 40px;
  position: relative;
  transition: 0.3s;
  min-width: 260px;
}
#commitment .btn-more a::after {
  background: var(--main);
  border-radius: 50%;
  content: "";
  height: 6px;
  position: absolute;
  right: 24px;
  top: calc(50% - 3px);
  transition: 0.3s;
  width: 6px;
}
@media screen and (min-width: 769px) {
  #commitment .btn-more a:hover {
    background: var(--main);
    border-color: var(--main);
    color: #fff;
  }
  /* ホバーで丸が山形の矢印（＞）に変形する */
  #commitment .btn-more a:hover::after {
    background: transparent;
    border-radius: 0;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    box-sizing: border-box;
    height: 9px;
    right: 24px;
    top: calc(50% - 4.5px);
    transform: rotate(45deg);
    width: 9px;
  }
}

@media screen and (max-width: 768px) {
  .commitment-area {
    padding: 60px 0 0;
  }

  .commitment-area > div,
  .commitment-area:nth-child(even) > div {
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
  }
  .commitment-txt-block {
    flex: none;
  }
  .commitment-sub {
    flex: none;
  }
  .quality-area .commitment-sub {
    display: block;
  }
  .commitment-num {
    margin: 0 0 12px;
    font-size: 1.3rem;
  }
  .commitment-num span {
    font-size: 4rem;
  }
  .commitment-txt-block .ttl-l span {
    font-size: 3rem;
  }
  .commitment-txt-block .catch-l {
    font-size: 2.1rem;
    padding: 20px 0 0;
  }
  .commitment-txt-block .basic-txt {
    padding: 20px 0 0;
  }

  /* 写真は片側だけ画面端に付ける */
  .commitment-image {
    flex: none;
    margin-left: -20px;
    margin-right: 20px;
    border-radius: 0 16px 16px 0;
  }
  .commitment-area:nth-child(even) .commitment-image {
    margin-left: 20px;
    margin-right: -20px;
    border-radius: 16px 0 0 16px;
  }
  .commitment-image img {
    aspect-ratio: auto;
    height: 220px;
  }

  /* .commitment-list */
  .commitment-list {
    margin: 30px 0 0;
    padding: 28px 20px 20px;
  }
  .commitment-list-txt {
    font-size: 1.5rem;
  }
  .commitment-list-kaiten {
    width: 80px;
    height: 80px;
    left: -10px;
    top: -35px;
  }
  .commitment-list-kaiten::before {
    background-size: 80px;
  }
  .commitment-list-kaiten .sub {
    font-size: 1.5rem;
  }
  /* SP：タイトル → 3つのポイント → 「詳しく見る」の順に縦に並べる */
  .commitment-list {
    display: flex;
    flex-direction: column;
  }
  .commitment-list-head {
    display: contents;
  }
  #commitment .commitment-list-head .btn-more {
    margin: 20px 0 0;
    order: 3;
  }
  .commitment-list-ttl {
    font-size: 2.3rem;
    letter-spacing: 0.03em;
    padding: 0 0 0 62px;
  }
  .commitment-list ul {
    flex-direction: column;
    gap: 14px;
    margin: 20px 0 0;
  }
  .commitment-list ul li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0 0;
  }
  .commitment-list-num {
    font-size: 1.1rem;
    left: -6px;
    padding: 1px 10px;
  }
  .commitment-list-image {
    flex: none;
    width: 100px;
  }
  .commitment-list-txt {
    flex: 1;
    padding: 0;
    text-align: left;
  }

  /* .qualification-list */
  .qualification-list {
    display: block;
    padding: 20px;
  }
  .qualification-list-ttl {
    border-right: none;
    padding: 0;
  }
  .qualification-list ul {
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 0;
  }

  /* .commitment-voice */
  .commitment-voice {
    margin: 30px 0 0;
  }
  .commitment-voice-ttl {
    font-size: 1.6rem;
  }
  .commitment-voice ul {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 0;
  }
  .commitment-voice ul li {
    padding: 15px;
  }

  #commitment .btn-more {
    margin: 30px 0 0;
    text-align: center;
  }
  #commitment .btn-more a {
    font-size: 1.8rem;
    min-width: 260px;
  }
  #commitment .btn-more a::after {
    height: 8px;
    right: 20px;
    top: calc(50% - 4px);
    width: 8px;
  }
}

/* -----------------------------------------------------------
    .subsidy-area
-------------------------------------------------------------- */
.subsidy-area {
  padding: 120px 0;
  margin: 140px 0 0;
  background:
    radial-gradient(rgba(233, 118, 41, 0.16) 1.5px, transparent 1.5px) 0 0 /
      22px 22px,
    linear-gradient(135deg, #fffaf0 0%, #ffefcf 100%);
  position: relative;
  overflow: hidden;
}
.subsidy-box {
  display: flex;
  align-items: center;
  gap: 90px;
  position: relative;
  z-index: 1;
}

.subsidy-image {
  flex: 0 0 44%;
  position: relative;
}
.subsidy-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* 写真の角で回るバッジ */
.subsidy-badge {
  align-items: center;
  display: flex;
  height: 124px;
  justify-content: center;
  position: absolute;
  right: -40px;
  top: -40px;
  width: 124px;
}
.subsidy-badge::before {
  animation: 20s rotate linear infinite;
  background: url(../img/kaiten-orange.svg) center / contain no-repeat;
  content: "";
  inset: 0;
  position: absolute;
}
.subsidy-badge .sub {
  color: #fff;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.35;
  position: relative;
  text-align: center;
}

.subsidy-area .txt-block {
  flex: 1;
  min-width: 0;
}
.subsidy-area .catch-l {
  font-size: 2.6rem;
  line-height: 1.6;
}
/* 最大100万円 */
.subsidy-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 0 6px;
  color: var(--main);
  line-height: 1;
  background: linear-gradient(transparent 72%, #ffe27a 72%);
}
.subsidy-price .max {
  align-self: center;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--main);
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}
.subsidy-price .num {
  font: 600 10rem / 0.9 var(--en);
  letter-spacing: -0.02em;
}
.subsidy-price .unit {
  font-size: 3.6rem;
}
.subsidy-area .basic-txt {
  padding: 24px 0 0;
}
#commitment .subsidy-area .btn-more {
  margin: 34px 0 0;
}

@media screen and (max-width: 768px) {
  .subsidy-area {
    margin: 60px 0 0;
    padding: 60px 0 70px;
  }
  .subsidy-box {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .subsidy-image {
    flex: none;
  }
  .subsidy-image img {
    aspect-ratio: auto;
    height: 220px;
  }
  .subsidy-badge {
    height: 88px;
    right: -14px;
    top: -30px;
    width: 88px;
  }
  .subsidy-badge .sub {
    font-size: 1.3rem;
  }
  .subsidy-area .catch-l {
    font-size: 2rem;
  }
  .subsidy-price {
    gap: 6px;
    margin: 0 0 12px;
  }
  .subsidy-price .max {
    padding: 6px 11px;
    font-size: 1.4rem;
  }
  .subsidy-price .num {
    font-size: 7rem;
  }
  .subsidy-price .unit {
    font-size: 2.6rem;
  }
  .subsidy-area .basic-txt {
    padding: 18px 0 0;
  }
  #commitment .subsidy-area .btn-more {
    margin: 25px 0 0;
  }
}

/* -----------------------------------------------------------
    アニメーション
-------------------------------------------------------------- */
/* ページタイトル：読み込み時に文字を下から順番に、写真を右からワイプ表示 */
#commitment .subpage-header__inner > * {
  animation: commitment-fadeup 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}
#commitment .subpage-header__inner > .catch-s {
  animation-delay: 0.15s;
}
#commitment .subpage-header__inner > .catch-m {
  animation-delay: 0.3s;
}
#commitment .subpage-header__inner > .basic-txt {
  animation-delay: 0.45s;
}
#commitment .subpage-header-image {
  animation: commitment-wipe 1.2s cubic-bezier(0.65, 0, 0.35, 1) backwards;
}
#commitment .subpage-header-image img {
  animation: commitment-zoom 2.4s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}
@keyframes commitment-fadeup {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes commitment-wipe {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes commitment-zoom {
  from {
    transform: scale(1.15);
  }
  to {
    transform: scale(1);
  }
}

/* スクロールで下からスッと出てそのまま止まる（トップ・各リフォームページと同じ動き） */
#commitment .cmn-fadeup {
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#commitment .cmn-fadeup.cmn-effect-fadeup {
  transform: translateY(0);
}
#commitment .ttl-l.cmn-fadeup {
  transition-delay: 0.1s;
}
#commitment .catch-l.cmn-fadeup {
  transition-delay: 0.2s;
}
#commitment .commitment-txt-block > .basic-txt.cmn-fadeup {
  transition-delay: 0.3s;
}
/* 番号ラベルの線が左から伸びる */
.commitment-num.cmn-fadeup::after {
  transform: scaleX(0);
  transition: transform 1s 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.commitment-num.cmn-effect-fadeup::after {
  transform: scaleX(1);
}

/* 写真：画面端側からワイプ表示しながら縮小 */
/* clip-pathは中のimgに掛ける（スクロール監視の対象である.commitment-image自身を幅0に切り抜くと、
   画面の拡大率によって左端が画面外に0.1pxほどはみ出した時に「画面内に入った」と判定されず表示されないため） */
.commitment-image.cmn-fade {
  opacity: 1;
}
.commitment-image.cmn-fade img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.15);
  transition:
    clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1),
    transform 1.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.commitment-area:nth-child(even) .commitment-image.cmn-fade img {
  clip-path: inset(0 0 0 100%);
}
/* 偶数番目の指定(:nth-child(even))に負けないよう詳細度を揃える */
.commitment-area:nth-child(n) .commitment-image.effect-cmn-fade img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* 一覧の項目：枠が表示されたあと、1つずつ少し拡大しながら出てそのまま止まる */
#commitment .cmn-fadeup li {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.5s ease 0.3s,
    transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}
#commitment .cmn-effect-fadeup li {
  opacity: 1;
  transform: scale(1);
}
#commitment .cmn-fadeup li:nth-child(2) {
  transition-delay: 0.42s;
}
#commitment .cmn-fadeup li:nth-child(3) {
  transition-delay: 0.54s;
}
#commitment .cmn-fadeup li:nth-child(4) {
  transition-delay: 0.66s;
}
#commitment .cmn-fadeup li:nth-child(5) {
  transition-delay: 0.78s;
}

/* 「無料で診断！」の回転バッジ：枠が出たあとに遅れて出す */
#commitment .cmn-fadeup .commitment-list-kaiten {
  opacity: 0;
  scale: 0.85;
  transition:
    opacity 0.5s ease 0.4s,
    scale 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s;
}
#commitment .cmn-effect-fadeup .commitment-list-kaiten {
  opacity: 1;
  scale: 1;
}

/* 見出しの波線が流れる（wave.svgの波1つ分＝約12.7pxずつ送る） */
#commitment .wave::after {
  animation: commitment-wave 1.6s linear infinite;
}
@keyframes commitment-wave {
  from {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
  to {
    -webkit-mask-position: -12.7px 0;
    mask-position: -12.7px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #commitment .subpage-header__inner > *,
  #commitment .subpage-header-image,
  #commitment .subpage-header-image img,
  #commitment .wave::after,
  .commitment-list-kaiten::before,
  .subsidy-badge::before {
    animation: none;
  }
  #commitment .cmn-fadeup,
  #commitment .cmn-fadeup li,
  #commitment .cmn-fadeup .commitment-list-kaiten,
  .commitment-area:nth-child(n) .commitment-image.cmn-fade img,
  .commitment-num.cmn-fadeup::after {
    opacity: 1;
    transform: none;
    scale: none;
    clip-path: none;
    transition: none;
  }
}
