@charset "utf-8";

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;

  background: transparent; /* ← 最初は透明 */
  transition: all 0.4s ease;
}

/* スクロール後 */
.header.is-scrolled {
  background: #ffffffbb;
}

.header__inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  margin: 0;
  flex-shrink: 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
}

.header__logo a {
  display: inline-block;
  color: #111;
  text-decoration: none;
}

.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-list a {
  color: #111;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  transition: opacity 0.3s;
}

.header__nav-list a:hover {
  opacity: 0.6;
}

.header__contact {
  flex-shrink: 0;
}

.header__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 28px;
  padding: 0 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 0.6rem;
  line-height: 1;
  letter-spacing: 0.12em;
  transition: opacity 0.3s;
}

.header__contact-btn:hover {
  opacity: 0.8;
}

.header__logo {
  margin: 0;
  flex-shrink: 0;
}

.header__logo a {
  display: block;
}

.header__logo img {
  display: block;
  height: 2rem; /* ←ここでサイズ統一 */
  width: auto;
}












.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;

}

.hero__slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 132px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.6s ease, visibility 1.6s ease;
  z-index: 1;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
}

.hero__content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 132px;
  z-index: 5;

}

.hero__inner {
  width: min(100%, 1280px);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero__lead {
  max-width: 620px;
}

.hero__lead p {
  margin: 0;
  color: #5b5b5b;

  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.hero__title-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hero__title {
  margin: 0;
  color: #111;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}



.hero__progress {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.hero__progress-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero__progress-bg {
  fill: none;
  stroke: #d8d8d8;
  stroke-width: 1;
}

.hero__progress-bar {
  fill: none;
  stroke: #8f8f8f;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  transition: stroke-dashoffset 0.08s linear;
}

.hero__progress-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #b5b5b5;
  transform: translate(-50%, -50%);
}

.hero__progress:hover .hero__progress-bg {
  stroke: #bdbdbd;
}

.hero__progress:hover .hero__progress-bar {
  stroke: #6f6f6f;
}


.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero__slider {
  height: calc(100vh - 132px);
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 132px;

}

.hero__content {
  height: 90px;
}

.hero__slider {
  height: calc(100vh - 90px);
}
.hero__inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__lead p {
  margin: 0;
  color: #666;
  font-size: 12px;
}

.hero__title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__title {
  font-size: 24px;
  font-family: serif;
}

/* 円ボタン */
.hero__progress {
  width: 56px;
  height: 56px;
  border: none;
  background: none;
  position: relative;
  cursor: pointer;
}

.hero__progress svg {
  transform: rotate(-90deg);
}

.hero__progress-bg {
  fill: none;
  stroke: #ddd;
  stroke-width: 1;
}

.hero__progress-bar {
  fill: none;
  stroke: #999;
  stroke-width: 1.2;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}

.hero__progress-center {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #aaa;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}










.value-section {
  padding: 120px 20px 80px;
}

.value-section__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.value-section__head {
  text-align: center;
  margin-bottom: 72px;
}

.value-section__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: #111;
}

.value-section__lead {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: #333;
}

.value-section__gallery {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 28px;
  align-items: start;
}

.value-section__image {
  overflow: hidden;
}

.value-section__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 高さ調整 */
.value-section__image--left {
  margin-top: 160px;
  height: 360px;
}

.value-section__image--center {
  height: 520px;
}

.value-section__image--right {
  height: 300px;
}



.value-section__gallery {
  position: relative;
  overflow: hidden;
}

/* 白カーテン */
.value-section__gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(0%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 5;
}

/* 開く状態 */
.value-section__gallery.is-open::after {
  transform: translateX(100%);
}






.service {

  padding: 100px 30px ;
}

.service__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.service__head {
  margin-bottom: 34px;
}

.service__title {
  margin: 0;
  font-family: "Times New Roman", "Yu Mincho", serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #111;
}

.service__title span {
  display: inline-block;
  margin-left: 8px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #222;
  vertical-align: middle;
}

.service__grid {
  display: grid;
  grid-template-columns: 1.04fr 0.92fr;
  grid-template-rows: 260px 260px; /* ← ここで右2段の高さを固定 */
  gap: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.service-card--large {
  grid-row: 1 / 3;
  min-height: 520px;
}

.service-card--small {
  min-height: 260px;
}

.service-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.14) 24%,
    rgba(0, 0, 0, 0.02) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.service-card__content {
  position: absolute;
  z-index: 2;
  color: #fff;
}

.service-card__content--bottom {
  left: 28px;
  right: 140px;
  bottom: 26px;
}

.service-card__content--left {
  left: 28px;
  bottom: 26px;
  right: 28px;
}

.service-card__title {
  margin: 0 0 14px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;
  box-sizing: border-box;
}

/* 左大カードの矢印ボタン */
.service-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 3;
  width: 78px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-card__arrow span {
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.service-card__arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.service-card:hover .service-card__image {
  transform: scale(1.03);
}

.service-card__image {
  transition: transform 0.7s ease;
}




.news {
  padding: 100px 30px;
}

.news__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.news__head {
  margin-bottom: 28px;
}

.news__title {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.news__title span {
  display: inline;
  margin-left: 10px;
  font-size: 0.85rem;
  font-family: sans-serif;
  color: #555;
}

/* リスト */
.news__list {
  border-top: 1px solid #cfcfcf;
}

.news__item {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #cfcfcf;
  text-decoration: none;
  color: #111;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.news__tag {
  border: 1px solid #aaa;
  padding: 3px 10px;
  font-size: 0.7rem;
}

.news__text {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.news__arrow {
  width: 36px;
  height: 20px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.news__item:hover .news__arrow {
  transform: translateX(4px);
  transition: 0.2s;
}


.news__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 800px; /* ← 逆にする */
  gap: 40px;
}


.news__list {
  grid-column: 2;
}


/* タイトルは横いっぱい使う */
.news__head {
  grid-column: 1 / -1;
}



















.about {
  padding: 96px 30px 28px;
}

.about__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.about__head {
  margin-bottom: 72px;
}

.about__title {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #111;
}

.about__title span {
  display: inline-block;
  margin-left: 8px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #222;
  vertical-align: middle;
}

.about__body {
  max-width: 760px;
  margin-bottom: 48px;
}

.about__lead {
  margin: 0 0 26px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #111;
}

.about__text p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 2.25;
  letter-spacing: 0.06em;
  color: #111;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__image {
  width: 100%;
  overflow: hidden;
}

.about__image img {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
}


.about__image {
  position: relative;
  overflow: hidden;
}

/* 白カーテン */
.about__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(0%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 2;
}

/* 開く */
.about__image.is-open::after {
  transform: translateX(100%);
}

/* 画像の動き */
.about__image img {
  transform: translateX(40px);
  opacity: 0;
  transition: all 1s ease;
}

/* 表示 */
.about__image.is-open img {
  transform: translateX(0);
  opacity: 1;
}







.message {
  padding: 96px 30px;
}

.message__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  column-gap: 80px;
  align-items: center;
}

.message__image {
  width: 100%;
}

.message__image img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.message__content {
  max-width: 820px;
}

.message__title {
  margin: 0 0 44px;
  font-family: "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #111;
}

.message__title span {
  display: inline-block;
  margin-left: 8px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #222;
  vertical-align: middle;
}

.message__text p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 3.2;
  letter-spacing: 0.06em;
  color: #222;
}

.message__text p:last-child {
  margin-bottom: 0;
}


.message__image {
  position: relative;
  overflow: hidden;
}

/* 白カーテン */
.message__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(0%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 2;
}

/* 開く */
.message__image.is-open::after {
  transform: translateX(100%);
}

/* 画像 */
.message__image img {
  transform: translateX(-40px) scale(1.05);
  opacity: 0;
  transition: all 1s ease;
}

/* 表示 */
.message__image.is-open img {
  transform: translateX(0) scale(1);
  opacity: 1;
}












.company {
  padding: 96px 30px;
}

.company__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 56px;
  align-items: center;
}

.company__content {
  padding-left: 10px;
}

.company__title {
  margin: 0 0 42px;
  font-family: "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #111;
}

.company__title span {
  display: inline-block;
  margin-left: 8px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #222;
  vertical-align: middle;
}

.company__text {
  margin-bottom: 48px;
}

.company__text p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: #222;
}

.company__text p:last-child {
  margin-bottom: 0;
}

.company__button {
  width: 72px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.company__button span {
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(-1px);
}

.company__button:hover {
  transform: translateX(4px);
  opacity: 0.88;
}

.company__gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 1.1fr 0.7fr; /* ← ココが肝 */
  gap: 10px;
}

.company__image {
  flex: 1;
  overflow: hidden;
}

.company__image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}




.company__gallery {
  position: relative;
  overflow: hidden;
}

/* 白カーテン */
.company__gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 3;
}

.company__gallery.is-open::after {
  transform: translateX(100%);
}

/* 各画像の出現 */
.company__image {
  opacity: 0;
  transform: translateX(36px);
  transition: transform 0.9s ease, opacity 0.9s ease;
}

.company__gallery.is-open .company__image {
  opacity: 1;
  transform: translateX(0);
}

/* 少しずつ遅らせる */
.company__gallery.is-open .company__image:nth-child(1) {
  transition-delay: 0.12s;
}
.company__gallery.is-open .company__image:nth-child(2) {
  transition-delay: 0.24s;
}
.company__gallery.is-open .company__image:nth-child(3) {
  transition-delay: 0.36s;
}
.company__gallery.is-open .company__image:nth-child(4) {
  transition-delay: 0.48s;
}









.footer {
  background: #636363;
  padding: 56px 20px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  margin-bottom: 28px;
  font-family: "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  color: #fff;
}

.footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 52px;
}

.footer__nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
}

.footer__subnav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__subnav a {
  font-size: 0.64rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}

.footer__nav a:hover,
.footer__subnav a:hover {
  opacity: 0.7;
}


.footer__logo {
  margin-bottom: 28px;
}

.footer__logo img {
  width: 140px;   /* ← 基本サイズ */
  height: auto;
  display: block;
  margin: 0 auto;
}














.company-info {
  padding: 100px 30px;
}

.company-info__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 800px;
  gap: 40px;
}

/* タイトル */
.company-info__head {
  grid-column: 1 / -1;
}

.company-info__title {
  margin: 0 0 40px;
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.company-info__title span {
  margin-left: 8px;
  font-size: 0.9rem;
  font-family: sans-serif;
  color: #666;
}

/* テーブル全体 */
.company-info__table {
  grid-column: 2;
  position: relative;
}

上のライン
.company-info__table::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #bfbfbf;
}

/* 行 */
.company-info__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid #d5d5d5;
}

/* 左ラベル */
.company-info__label {
  font-size: 0.85rem;
  color: #9a9a9a;
}

/* 右テキスト */
.company-info__value {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

.company-info__line {

  height: 1px;
  background: #bfbfbf;

  margin: 40px 0 60px; /* ← 上下余白 */

  position: relative;
  left: 50%;
  transform: translateX(-50%);
}













.contact-page {
  padding: 100px 30px 120px;
}

.contact-page__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-page__head {
  margin-bottom: 32px;
}

.contact-page__title {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #111;
  white-space: nowrap;
}

.contact-page__title span {
  display: inline;
  margin-left: 8px;
  font-size: 0.85rem;
  font-family: sans-serif;
  color: #555;
  letter-spacing: 0.04em;
}

.contact-page__line {
  height: 1px;
  background: #bdbdbd;
  margin-bottom: 54px;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 80px;
  align-items: start;
}

.contact-page__subheading {
  margin: 0 0 28px;
  font-family: "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #111;
}

.contact-page__info p {
  margin: 0;
  font-size: 12px;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: #222;
}

.contact-form__group {
  margin-bottom: 24px;
}

.contact-form__group label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #111;
}

.contact-form__group input,
.contact-form__group textarea {
  width: 100%;
  border: 1px solid #b9b9b9;
  border-radius: 6px;
  background: #fff;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #111;
  box-sizing: border-box;
  outline: none;
  appearance: none;
}

.contact-form__group input {
  height: 46px;
}

.contact-form__group textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  border-color: #888;
}

.contact-form__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #111;
  cursor: pointer;
}

.contact-form__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  appearance: none;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.contact-form__check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 9px;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(45deg);
}

.contact-form__note {
  margin: 0 0 34px;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #666;
}

.contact-form__submit {
  text-align: center;
}

.contact-form__submit button {
  min-width: 170px;
  height: 36px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.5em;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-form__submit button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}














.service-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: #000;
}

.service-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* うっすら暗くして文字を見やすく */
.service-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.18);
}

.service-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: flex;
  align-items: flex-end;
}

.service-hero__content {
  color: #fff;
}

.service-hero__title {
  margin: 0 0 34px;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.service-hero__tags {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;

}

.service-hero__tags span {
  min-width: 120px;
  height: 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: rgba(255, 255, 255, 0.03);
  margin-left: -1px;
}

/* タブレット */
@media screen and (max-width: 1024px) {
  .service-hero {
    min-height: 620px;
  }

  .service-hero__inner {
    padding: 0 32px 40px;
  }

  .service-hero__title {
    margin-bottom: 24px;
    font-size: 52px;
  }

  .service-hero__tags span {
    min-width: 180px;
    height: 54px;
    font-size: 22px;
    padding: 0 18px;
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .service-hero {
    height: 75vh;
    min-height: 520px;
  }

  .service-hero__inner {
    padding: 0 20px 28px;
  }

  .service-hero__title {
    margin-bottom: 18px;
    font-size: 34px;
    letter-spacing: 0.06em;
  }

  .service-hero__tags {
    gap: 10px;
  }

  .service-hero__tags span {
    min-width: auto;
    width: calc(50% - 5px);
    height: 46px;
    font-size: 16px;
    margin-left: 0;
  }

  .service-hero__tags span:last-child {
    width: 100%;
  }
}




.service-intro {

  padding: 140px 0 120px;
}

.service-intro__inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 32px;
}

.service-intro__heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.service-intro__title {
  margin: 0;
  color: #2b2b2b;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.service-intro__text {
  margin-top: 44px;
}

.service-intro__text p {
  margin: 0;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 400;
  line-height: 2.4;
  letter-spacing: 0.08em;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.service-intro__text p + p {
  margin-top: 22px;
}

.service-intro__images {
  margin-top: 92px;
  display: grid;
  grid-template-columns: 0.9fr 0.76fr 1.32fr;
  gap: 16px;
  align-items: start;
}

.service-intro__image {
  overflow: hidden;
}

.service-intro__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-intro__image--left {
  margin-top: 0;
  aspect-ratio: 0.92 / 0.86;
}

.service-intro__image--center {
  margin-top: 32px;
  aspect-ratio: 0.72 / 1.12;
}

.service-intro__image--right {
  margin-top: 0;
  aspect-ratio: 1.02 / 0.98;
}

/* タブレット */
@media screen and (max-width: 1024px) {
  .service-intro {
    padding: 100px 0 90px;
  }

  .service-intro__inner {
    padding: 0 24px;
  }

  .service-intro__title {
    font-size: 34px;
  }

  .service-intro__text {
    margin-top: 32px;
  }

  .service-intro__text p {
    font-size: 14px;
    line-height: 2.2;
  }

  .service-intro__images {
    margin-top: 70px;
    gap: 14px;
  }

  .service-intro__image--center {
    margin-top: 24px;
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .service-intro {
    padding: 72px 0 72px;
  }

  .service-intro__inner {
    padding: 0 20px;
  }

  .service-intro__title {
    font-size: 26px;
    line-height: 1.8;
  }

  .service-intro__text {
    margin-top: 24px;
  }

  .service-intro__text p {
    font-size: 13px;
    line-height: 2.1;
  }

  .service-intro__text p br {
    display: none;
  }

  .service-intro__images {
    margin-top: 48px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-intro__image--left,
  .service-intro__image--center,
  .service-intro__image--right {
    margin-top: 0;
    aspect-ratio: 1.2 / 1;
  }
}












.flow {
  padding: 100px 0;
  overflow: hidden;
}

.flow__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* 線 */
.flow__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #cfcfcf;
}

/* 横並び */
.flow__items {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 0;
}

.flow__item {
  position: relative;
  width: 25%;
  text-align: center;
  padding-top: 38px; /* 文字を下げるための余白 */
}

/* 丸は線のど真ん中固定 */
.flow__dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #cfcfcf;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  z-index: 2;
}

/* 文字だけアニメーションさせる */
.flow__body {
  opacity: 0;
  transform: translateY(20px);
}

.flow__title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: 0.05em;
  color: #111;
}

.flow__text {
  font-size: 12px;
  line-height: 1.9;
  color: #666;
  margin: 0;
}

/* ===== アニメーション ===== */

.flow.active .flow__line {
  animation: lineGrow 1.2s ease forwards;
}

@keyframes lineGrow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* 線をゆっくりに */
.flow.active .flow__line {
  animation: lineGrow 2s ease forwards;
}

/* 丸の出る間隔を広げる */
.flow.active .flow__item:nth-child(1) .flow__dot {
  animation: dotPop 0.5s ease forwards;
  animation-delay: 0.8s;
}
.flow.active .flow__item:nth-child(2) .flow__dot {
  animation: dotPop 0.5s ease forwards;
  animation-delay: 1.3s;
}
.flow.active .flow__item:nth-child(3) .flow__dot {
  animation: dotPop 0.5s ease forwards;
  animation-delay: 1.8s;
}
.flow.active .flow__item:nth-child(4) .flow__dot {
  animation: dotPop 0.5s ease forwards;
  animation-delay: 2.3s;
}

/* テキストはさらに少し遅らせる */
.flow.active .flow__item:nth-child(1) .flow__body {
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 1.0s;
}
.flow.active .flow__item:nth-child(2) .flow__body {
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 1.5s;
}
.flow.active .flow__item:nth-child(3) .flow__body {
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 2.0s;
}
.flow.active .flow__item:nth-child(4) .flow__body {
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 2.5s;
}

@keyframes dotPop {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}






.service-detail {
  padding: 140px 0;
}

.service-detail__inner {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.service-detail__item {
  display: grid;
   grid-template-columns: 260px 1px 1fr; /* ←ここが本質 */
  column-gap: 64px;
  align-items: center;
  min-height: 180px;
  padding: 36px 0;

  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.service-detail__item + .service-detail__item {
  margin-top: 32px;
}

.service-detail__item.is-show {
  opacity: 1;
  transform: translateY(0);
}

.service-detail__col {
  min-width: 0;
}

.service-detail__col--left {
  padding-right: 12px;
}

.service-detail__col--right {
  padding-left: 12px;
}

.service-detail__title {
  margin: 0 0 10px;
  color: #111;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.service-detail__en {
  margin: 0;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.service-detail__divider {
  width: 1px;
  height: 110px;
  background: #cfcfcf;
  justify-self: center;
  align-self: center;
}

.service-detail__text {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: 0.08em;
}









.works {
  padding: 120px 0;
}

.works__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
}

/* 左 */
.works__nav {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.works__nav-item {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.works__nav-item.is-active {
  color: #111;
  font-weight: 500;
}

/* 右グリッド */
.works__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
}

.works__card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.works__title {
  margin: 12px 0 6px;
  font-size: 15px;
}

.works__tag {
  font-size: 11px;
  border: 1px solid #aaa;
  padding: 3px 10px;
}




.works__nav {
  position: sticky;
  top: 120px;
  height: fit-content;
  position: relative;
}

/* 矢印 */
.works__nav-arrow {
  position: absolute;
  left: -16px;
  top: 0;
  width: 10px;
  height: 10px;
  background: #111;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: top 0.35s ease;
}

/* テキスト */
.works__nav-item {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  transition: all 0.3s;
  position: relative;
}

.works__nav-item.is-active {
  color: #111;
}

.works__nav-arrow {
  transform: translateY(6px); /* テキスト中央合わせ */
}

.works {
  position: relative; /* ← これ追加 */
}

.works__nav {
  position: sticky;
  top: 120px;
}

.works__nav {
  position: sticky;
  top: 120px;
  height: fit-content;
  position: relative;
}

.works__nav-arrow {
  position: absolute;
  left: -16px;
  top: 0;
  width: 10px;
  height: 10px;
  background: #111;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
  transition: top 0.35s ease;
}


.works {
  position: relative;
  padding: 120px 0;
}

.works__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 56px;
  align-items: start;
}

.works__nav {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.works__nav-list {
  position: relative;
}

.works__nav-arrow {
  position: absolute;
  left: -16px;
  top: 0;
  width: 10px;
  height: 10px;
  background: #111;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
  transition: top 0.35s ease;
}

.works__nav-item {
  font-size: 13px;
  color: #888;
  margin: 0 0 14px;
  transition: color 0.3s ease;
}

.works__nav-item.is-active {
  color: #111;
  font-weight: 500;
}








/* ラッパーに仕込む */
.service-intro__images {
  position: relative;
  overflow: hidden;
}

/* 白カーテン */
.service-intro__images::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(0%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 5;
}

/* 開く */
.service-intro__images.is-open::after {
  transform: translateX(100%);
}

/* 画像の初期状態 */
.service-intro__image {
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s ease;
}

/* 表示 */
.service-intro__images.is-open .service-intro__image {
  opacity: 1;
  transform: translateX(0);
}

/* ちょい遅延（自然に） */
.service-intro__images.is-open .service-intro__image:nth-child(1) {
  transition-delay: 0.1s;
}
.service-intro__images.is-open .service-intro__image:nth-child(2) {
  transition-delay: 0.25s;
}
.service-intro__images.is-open .service-intro__image:nth-child(3) {
  transition-delay: 0.4s;
}












/* MB */
/* =========================
   header hamburger
========================= */

.header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  z-index: 130;
  cursor: pointer;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #111;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.header__toggle span:nth-child(1) {
  top: 13px;
}

.header__toggle span:nth-child(2) {
  top: 20px;
}

.header__toggle span:nth-child(3) {
  top: 27px;
}

/* 開いた時 */
.header.is-open .header__toggle span:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

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

.header.is-open .header__toggle span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

@media screen and (max-width: 1024px) {
  .header {
    padding: 14px 0;
    background: #fff;
  }

  .header__inner {
    padding: 0 20px;
    gap: 12px;
  }

  .header__logo img {
    height: 1.2rem;
  }

  .header__contact {
    display: none;
  }

  .header__toggle {
    display: block;
    margin-left: auto;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    padding: 96px 28px 40px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 120;
    margin-left: 0;
  }

  .header.is-open .header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__nav-list li {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
  }

  .header__nav-list a {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .header__nav-contact a {
    margin-top: 18px;
    padding: 14px 18px;
    background: #111;
    color: #fff;
    text-align: center;
  }
}







/* =========================
   hero mobile
========================= */
@media screen and (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 100svh;
    background: #fff;
  }

  .hero__slider {
    position: relative;
    height: 72svh;
    min-height: 500px;
  }

  .hero__slide {
    position: absolute;
    inset: 0;
  }

  .hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__content {
    position: relative;
    height: auto;
    background: #fff;
    padding: 18px 0 22px;
  }

  .hero__inner {
    display: block;
    padding: 0 20px;
  }

  .hero__title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
  }

  .hero__title {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    white-space: normal;
    flex: 1;
  }

  .hero__lead {
    max-width: none;
  }

  .hero__lead p {
    margin: 0;
    color: #333;
    font-size: 0.7rem;
    line-height: 1.9;
    letter-spacing: 0.04em;
  }

  .hero__progress {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .hero__progress-bg,
  .hero__progress-bar {
    transform-box: fill-box;
    transform-origin: center;
  }

  .hero__progress-center {
    width: 5px;
    height: 5px;
  }


.value-section__title {
  font-size: 1.6rem;
}

}







/* =========================
   value section mobile
========================= */
@media screen and (max-width: 767px) {

  .value-section {
    padding: 80px 0 60px;

  }

  .value-section__inner {
    padding: 0 20px;
  }



  .value-section__title {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .value-section__lead {
    font-size: 13px;
    line-height: 2;
  }

  /* ===== ギャラリー ===== */

  .value-section__gallery {
    display: block;
  }

  .value-section__image {
    width: 82%;
    margin-bottom: 28px;
  }

  .value-section__image img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 位置ずらし（ここがキモ） */
  .value-section__image--left {
    margin-left: 0;
  }

  .value-section__image--center {
    margin-left: auto;
  }

  .value-section__image--right {
    margin-left: 0;
  }

  /* PC用の高さリセット */
  .value-section__image--left,
  .value-section__image--center,
  .value-section__image--right {
    height: auto;
    margin-top: 0;
  }

  /* 白カーテン維持 */
  .value-section__gallery::after {
    transition: transform 1s ease;
  }



  .service__title {
    font-size: 2.4rem;
    margin-left: 30px;
  }
}







/* =========================
   service mobile
========================= */
@media screen and (max-width: 767px) {

  .service {
    padding: 0px 0px;
  }

  .service__grid {
    display: block; /* ← gridやめる */
  }

  .service-card {
    width: 100%;
    height: 240px; /* ← 全部同じ高さ */

  }

  /* サイズ差を強制リセット */
  .service-card--large,
  .service-card--small {
    min-height: auto;
    height: 240px;
  }

  .service-card__image {
    height: 100%;
  }

  /* 文字調整 */
  .service-card__content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .service-card__title {
    font-size: 1.1rem;
  }

  .service-card__tags span {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  /* 矢印 */
  .service-card__arrow {
    width: 60px;
    height: 26px;
    right: 16px;
    bottom: 16px;
  }


  .news__title {
    font-size: 2.4rem;
  }
}









/* =========================
   news mobile
========================= */
@media screen and (max-width: 767px) {
  .news {
    padding: 80px 20px;
  }

  .news__inner {
    display: block;
    max-width: none;
  }

  .news__head {
    margin-bottom: 22px;
  }

  .news__title {
    font-size: 2.2rem;
    line-height: 1;
    white-space: normal;
  }

  .news__title span {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.72rem;
  }

  .news__list {
    border-top: 1px solid #bdbdbd;
  }

  .news__item {
    display: grid;
    grid-template-columns: 88px 1fr 40px;
    column-gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #bdbdbd;
  }

  .news__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.62rem;
  }

  .news__meta time {
    line-height: 1.2;
    color: #111;
    letter-spacing: 0.06em;
  }

  .news__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 2px 8px;
    border: 1px solid #9d9d9d;
    font-size: 0.52rem;
    line-height: 1.2;
    background: #fff;
  }

  .news__text {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
    color: #222;
  }

  .news__arrow {
    width: 30px;
    height: 16px;
    margin-left: auto;
    background: #000;
    color: #fff;
    font-size: 0.62rem;
    line-height: 1;
  }



  .about__title {
    font-size: 2.4rem;
  }

  .about__lead {
    text-wrap: auto;
  }


  .about__image img {
    height: 400px;
  }
}





/* =========================
   message mobile
========================= */
@media screen and (max-width: 767px) {

  .message {
    padding: 80px 20px;
  }

  .message__inner {
    display: block; /* ← grid解除 */
  }

  .message__image {
    margin-bottom: 24px;
  }

  .message__image img {
    width: 100%;
    height: auto; /* ← 高さ固定を解除 */
    object-fit: cover;
  }

  .message__content {
    max-width: none;
  }

  .message__title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .message__text p {
    font-size: 13px;
    line-height: 2;
  }
}

/* =========================
   message fix mobile
========================= */
@media screen and (max-width: 767px) {

  .message__inner {
    display: block; /* ← grid解除が最重要 */
  }

  .message__image {
    width: 100%;
    overflow: hidden;
  }

  .message__image img {
    width: 100%;
    height: auto; /* ← 固定解除 */
  }

  .message__content {
    max-width: 100%;
  }

}






/* =========================
   company mobile simple
========================= */
@media screen and (max-width: 767px) {

  .company {
    padding: 80px 10px;
  }

  .company__inner {
    display: block;
  }

  .company__content {
    margin-bottom: 32px;
  }

  /* ===== 1枚だけ表示 ===== */

  .company__gallery {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .company__image {
    display: none;
  }

  .company__image:first-child {
    display: block;
  }

  .company__image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

}



@media screen and (max-width: 767px) {

  .company__button {
    margin-left: auto;
    display: flex;
  }

  .company__text {
    margin-bottom: 24px;
  }

  .company__title {
    font-size: 1.4rem;
  }
}









/* スマホ */
@media screen and (max-width: 767px) {
  .service-hero {
    height: 100svh;
    min-height: 100svh;
  }

  .service-hero__inner {
    padding: 0 20px 24px;
  }

  .service-hero__content {
    width: 100%;
  }

  .service-hero__title {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }

  .service-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .service-hero__tags span {
    box-sizing: border-box;
    min-width: 0;
    width: calc(50% - 4px);
    height: 42px;
    padding: 0 10px;
    margin-left: 0;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .service-hero__tags span:last-child {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .service-hero {
    height: 100svh;
    min-height: 100svh;
  }

  .service-hero__inner {
    padding: 0 12px 16px;
  }

  .service-hero__content {
    width: 100%;
  }

  .service-hero__title {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .service-hero__tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  .service-hero__tags span {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    width: auto;
    height: 32px;
    padding: 0 8px;
    margin-left: 0;
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .service-hero__tags span:last-child {
    width: auto;
  }

  .service-intro__title {
    text-wrap: auto;
  }
}











/* =========================
   flow switch
========================= */
.flow {
  display: block;
}

.flow-sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .flow {
    display: none;
  }

  .flow-sp {
    display: block;
    min-height: 100svh;
  }

  .flow-sp__inner {
    width: 100%;
    min-height: 100svh;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .flow-sp__list {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-left: 30px;
  }

  /* 縦線 */
  .flow-sp__list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: #bdbdbd;
  }

  .flow-sp__item {
    position: relative;
    padding-left: 36px;
  }

  .flow-sp__dot {
    position: absolute;
    top: 6px;
    left: -30px;
    width: 12px;
    height: 12px;
    background: #cfcfcf;
    border-radius: 50%;
    transform: translate(-50%, 0);
    z-index: 1;
  }

  .flow-sp__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #111;
  }

  .flow-sp__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #666;
  }
}

/* ===== 初期状態 ===== */
.flow-sp__list::before {
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.3s ease;
}

.flow-sp__item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flow-sp__dot {
  opacity: 0;
  transform: translate(-50%, 0) scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== 表示 ===== */
.flow-sp.is-visible .flow-sp__list::before {
  transform: scaleY(1);
  opacity: 1;
}

.flow-sp__item.is-show {
  opacity: 1;
  transform: translateY(0);
}

.flow-sp__item.is-show .flow-sp__dot {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ===== 退場 ===== */
/* 👇ここ追加・修正 */
.flow-sp.is-leaving .flow-sp__list::before {
  transform: scaleY(0);
  opacity: 0;
}

.flow-sp.is-leaving .flow-sp__item {
  opacity: 0;
  transform: translateY(8px);
}

.flow-sp.is-leaving .flow-sp__dot {
  opacity: 0;
  transform: translate(-50%, 0) scale(0.85);
}







@media screen and (max-width: 767px) {
  .service-detail {
    padding: 72px 0 80px;
  }

  .service-detail__inner {
    width: 100%;
    padding: 0 24px;
  }

  .service-detail__item {
    display: block;
    min-height: auto;
    padding: 0 0 28px;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-detail__item + .service-detail__item {
    margin-top: 44px;
  }

  .service-detail__col--left,
  .service-detail__col--right {
    padding: 0;
  }

  .service-detail__divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 10px 0 18px;
    background: #9f9f9f;
  }

  .service-detail__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.06em;
  }

  .service-detail__en {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.7;
    letter-spacing: 0.06em;
    color: #a3a3a3;
  }

  .service-detail__text {
    margin: 0;
    font-size: 13px;
    line-height: 2.2;
    letter-spacing: 0.08em;
    color: #222;
  }

  .service-detail__text br {
    display: none;
  }
}



@media screen and (max-width: 767px) {

  .service-detail__item {
    opacity: 0;
    transform: translateY(20px);
  }

  .service-detail__item.is-show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

}


@media screen and (max-width: 767px) {

  .works__nav {
    display: none;
  }

}

@media screen and (max-width: 767px) {
  .works {
    padding: 72px 0 80px;
  }

  .works__inner {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0 20px;
  }

  .works__nav {
    display: none;
  }

  .works__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 14px;
  }

  .works__card {
    width: 100%;
    min-width: 0;
  }

  .works__card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
  }

  .works__title {
    margin: 10px 0 8px;
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
  }

  .works__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 0.62rem;
    line-height: 1.2;
  }
}


/* =========================
   works-sp switch
========================= */
.works-sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .works {
    display: none;
  }

  .works-sp {
    display: block;
    padding: 72px 0 80px;
  }

  .works-sp__inner {
    padding: 0 20px;
  }

  .works-sp__tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
  }

  .works-sp__tab {
    padding: 0 0 6px;
    border: none;
    background: transparent;
    color: #9a9a9a;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    position: relative;
  }

  .works-sp__tab.is-active {
    color: #111;
  }

  .works-sp__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #111;
  }

  .works-sp__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .works-sp__card {
    display: block;
  }

  .works-sp__card.is-hide {
    display: none;
  }

  .works-sp__card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .works-sp__title {
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
    color: #111;
  }
}



@media screen and (max-width: 767px) {

  .works-sp__tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
    border: 1px solid #999;
    color: #333;
    letter-spacing: 0.04em;
  }

}










/* =========================
   service lead
========================= */
.service-lead {
  padding: 160px 20px 140px;
  background: #fff;
}

.service-lead__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* タイトル */
.service-lead__title {
  margin: 0 0 60px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.12em;
  color: #222;
}

/* 本文 */
.service-lead__text p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 2.4;
  letter-spacing: 0.08em;
  color: #444;
}

.service-lead__text p:last-child {
  margin-bottom: 0;
}







/* =========================
   consulting menu
========================= */
.consulting-menu {
  padding: 0 20px 140px;
  background: #fff;
}

.consulting-menu__inner {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.consulting-menu__card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.consulting-menu__card:last-child {
  border-right: none;
}

.consulting-menu__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.consulting-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.45s ease;
  z-index: 1;
}

.consulting-menu__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  color: #fff;
}

.consulting-menu__title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.12em;
  transform: translateY(38px);
  transition: transform 0.45s ease;
}

.consulting-menu__text {
  margin-top: 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

.consulting-menu__text p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 2.2;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.consulting-menu__text p:last-child {
  margin-bottom: 0;
}

/* hover */
.consulting-menu__card:hover img {
  transform: scale(1.04);
  filter: grayscale(100%);
}

.consulting-menu__card:hover .consulting-menu__overlay {
  background: rgba(0, 0, 0, 0.48);
}

.consulting-menu__card:hover .consulting-menu__title {
  transform: translateY(0);
}

.consulting-menu__card:hover .consulting-menu__text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}





@media screen and (max-width: 767px) {
.service-lead__title {
  font-size: 26px;
}

  .consulting-menu {
    padding: 0 20px 80px;
  }

  .consulting-menu__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .consulting-menu__card {
    min-height: auto;
      height: 220px;
    border-right: none;
  }

  .consulting-menu__card img {
    height: 100%;
  }

  .consulting-menu__overlay {
    background: rgba(0, 0, 0, 0.42);
  }

  .consulting-menu__content {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 24px 20px;
  }

  .consulting-menu__title {
    font-size: 1.1rem;
    transform: translateY(0);
  }

  .consulting-menu__text {
    margin-top: 14px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .consulting-menu__text p {
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 6px;
    font-weight: 300;
  }
}

@media screen and (max-width: 767px) {
  .service-hero__tags {
    flex-wrap: nowrap; /* ←そのままでOK */
  }

  .service-hero__tags span {
    flex: none;        /* ←これが最重要 */
    width: auto;
    min-width: auto;

    padding: 0 14px;
    height: 30px;
    font-size: 11px;
  }
}

/* =========================
   service cta
========================= */
.service-cta {
  padding: 0px 20px 180px;
  background: #fff;
}

.service-cta__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* テキスト */
.service-cta__text p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 2.4;
  letter-spacing: 0.08em;
  color: #333;
}

.service-cta__text p:last-child {
  margin-bottom: 0;
}

/* ボタン */
.service-cta__button {
  margin-top: 80px;
}

.service-cta__button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 220px;
  height: 70px;

  background: #000;
  color: #fff;
  text-decoration: none;

  font-size: 14px;
  letter-spacing: 0.12em;

  transition: all 0.3s ease;
}

.service-cta__button a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}




/* =========================
   curtain (service lead)
========================= */
.service-lead {
  position: relative;
  overflow: hidden;
}

.service-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(0);
  transition: transform 2.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 5;
  pointer-events: none;
}

.service-lead.is-open::after {
  transform: translateX(100%);
}

















/* =========================
   policy page
========================= */
.policy-page {
  padding: 180px 20px 120px;
  background: #fff;
}

.policy-page__inner {
  max-width: 960px;
  margin: 0 auto;
}

.policy-page__head {
  margin-bottom: 64px;
  text-align: center;
}

.policy-page__title {
  margin: 0;
  color: #111;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.policy-page__lead {
  margin: 14px 0 0;
  color: #777;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.policy-page__body {
  color: #222;
}

.policy-page__body > p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: 0.06em;
}

.policy-page__section {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #d8d8d8;
}

.policy-page__section h2 {
  margin: 0 0 16px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #111;
}

.policy-page__section p {
  margin: 0;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: 0.06em;
  color: #333;
}

.policy-page__date {
  margin-top: 56px;
  font-size: 13px;
  color: #666;
  text-align: right;
}

@media screen and (max-width: 767px) {
  .policy-page {
    padding: 120px 20px 80px;
  }

  .policy-page__head {
    margin-bottom: 40px;
    text-align: left;
  }

  .policy-page__title {
    font-size: 1.6rem;
    line-height: 1.8;
  }

  .policy-page__lead {
    margin-top: 10px;
    font-size: 0.72rem;
  }

  .policy-page__body > p,
  .policy-page__section p {
    font-size: 13px;
    line-height: 2.1;
  }

  .policy-page__section {
    margin-top: 32px;
    padding-top: 18px;
  }

  .policy-page__section h2 {
    font-size: 1rem;
    line-height: 1.7;
  }

  .policy-page__date {
    margin-top: 40px;
    font-size: 12px;
    text-align: left;
  }
}



.footer__copyright {
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-align: center;
}





/* =========================
   news detail
========================= */
.news-detail {
  padding: 180px 20px 120px;
  background: #fff;
}

.news-detail__inner {
  max-width: 760px;
  margin: 0 auto;
}

.news-detail__head {
  margin-bottom: 60px;
}

.news-detail__date {
  font-size: 13px;
  color: #777;
  margin-right: 12px;
}

.news-detail__tag {
  font-size: 12px;
  color: #999;
}

.news-detail__title {
  margin: 20px 0 0;
  font-size: 1.8rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.news-detail__body p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 2.2;
  color: #333;
}

.news-detail__back {
  margin-top: 60px;
}

.news-detail__back a {
  font-size: 13px;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #000;
}


.news-detail__image {
  margin-bottom: 40px;
}

.news-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}





.message {
  position: relative;
  overflow: hidden;
  padding: 120px 30px;
   min-height: 500px; /* ← まずこれ */

}

/* 背景の代表写真 */
.message__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  z-index: 1;
  pointer-events: none;

}

.message__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: grayscale(100%);
  opacity: 0.5;
  
}

@media screen and (min-width: 1400px) {
  .message__bg {
    right: 270px; /* ← ここで余白つくる */
  }
}

/* 境目を消す白グラデーション */
.message__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to right,
      #ffffff 0%,
      rgba(247, 247, 247, 0.836) 24%,
      rgba(247, 247, 247, 0.521) 48%,
      rgba(247, 247, 247, 0.2) 74%,
      rgba(247, 247, 247, 0) 100%
    );
}

/* 全体に薄い白ベール */
.message::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.35);
  z-index: 2;
  pointer-events: none;
}

.message__inner {
  position: relative;
  z-index: 3;
  max-width: 1360px;
  margin: 0 auto;
  display: block;
}

.message__content {
  max-width: 760px;
}



.message__title span {
  display: inline-block;
  margin-left: 8px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #222;
  vertical-align: middle;
}



.message__text p:last-child {
  margin-bottom: 0;
}







@media screen and (max-width: 767px) {
  .message {
    padding: 80px 20px 90px;
    min-height: 460px;
  }

  .message__bg {
    width: 140%;
    height: 100%;
    right: -12%;
    top: 0;
  }

  .message__bg img {
    opacity: 0.38;
    object-fit: cover;
    object-position: 32% center; /* ← 顔の位置調整 */
  }

  .message__bg::before {
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.7) 45%,
      rgba(255,255,255,0.25) 100%
    );
  }

  .message::after {
    background: rgba(255,255,255,0.15);
  }

  .message__inner {
    display: block;
    position: relative;
    z-index: 3;
  }

  .message__content {
    max-width: 100%;
  }
}



/* ===== PCだけカーテン ===== */
@media screen and (min-width: 768px) {

  .message {
    position: relative;
    overflow: hidden;
  }

  .message::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(0);
    transition: transform 1.4s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 5;
    pointer-events: none;
  }

  .message.is-open::before {
    transform: translateX(100%);
  }
}




/* =========================
   iPad / tablet overflow fix
========================= */

/* padding込みで幅計算 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* iPad幅で右余白が出る原因を潰す */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .header__inner,
  .hero__inner,
  .value-section__inner,
  .service__inner,
  .news__inner,
  .about__inner,
  .message__inner,
  .company__inner,
  .footer__inner {
    width: 100%;
    max-width: 100%;
  }

  .header__inner,
  .hero__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .value-section,
  .service,
  .news,
  .about,
  .message,
  .company {
    width: 100%;
    overflow-x: hidden;
  }

  .value-section__gallery,
  .service__grid,
  .news__inner,
  .message__inner,
  .company__inner,
  .company__gallery {
    max-width: 100%;
  }

  img {
    max-width: 100%;
  }
}




/* =========================
   NEWS tablet fix
========================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .news__inner {
    display: block;
    max-width: 100%;

  }

  .news__list {
    width: 100%;
  }

  .news__item {
    display: grid;
    grid-template-columns: 120px 120px 1fr 40px;
    column-gap: 16px;
    align-items: center;
  }

  .news__meta {
    display: contents;
  }

  .news__text {
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
  }

  .news__tag {
    justify-self: start;
  }
}



/* =========================
   COMPANY tablet fix
========================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .company-info {
    padding: 100px 24px;
    overflow-x: hidden;
  }

  .company-info__inner {
    display: block;
    max-width: 100%;
    width: 100%;
  }

  .company-info__table {
    width: 100%;
  }

  .company-info__row {
    grid-template-columns: 180px 1fr;
    column-gap: 24px;
  }

  .company-info__line {
    width: 100%;
    left: auto;
    transform: none;
  }
}


/* =========================
   COMPANY info mobile
========================= */
@media screen and (max-width: 767px) {

  .company-info {
    padding: 120px 20px 80px;
  }

  .company-info__inner {
    display: block;
    max-width: 100%;
  }

  .company-info__head {
    margin-bottom: 32px;
  }



  .company-info__line {
    margin: 20px 0 30px;
    width: 100%;
    left: auto;
    transform: none;
  }

  /* テーブル全体 */
  .company-info__table {
    width: 100%;
  }

  /* 1行ずつ縦にする */
  .company-info__row {
    display: block;
    padding: 16px 0;
  }

  /* ラベル */
  .company-info__label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 6px;
  }

  /* 値 */
  .company-info__value {
    font-size: 13px;
    line-height: 1.8;
    word-break: break-word; /* ← これ超重要 */
  }

}




/* =========================
   consulting menu tablet
   iPadもスマホと同じ縦並び
========================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .consulting-menu {
    padding: 0 24px 100px;
  }

  .consulting-menu__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .consulting-menu__card {
    min-height: auto;
    height: 260px;
    border-right: none;
  }

  .consulting-menu__card img {
    height: 100%;
  }

  .consulting-menu__overlay {
    background: rgba(0, 0, 0, 0.42);
  }

  .consulting-menu__content {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 32px 28px;
  }

  .consulting-menu__title {
    font-size: 1.2rem;
    transform: translateY(0);
  }

  .consulting-menu__text {
    margin-top: 14px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .consulting-menu__text p {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 6px;
    font-weight: 300;
  }
}


.header__nav-contact a {
  margin-top: 18px;
  padding: 14px 18px;
  background: #111;
  color: #fff;
  text-align: center;
}



/* =========================
   CONTACT tablet
========================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .contact-page {
    padding: 120px 24px 100px;
    overflow-x: hidden;
  }

  .contact-page__inner {
    max-width: 100%;
    width: 100%;
  }

  .contact-page__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-page__form-area {
    max-width: 640px;
  }
}


/* =========================
   CONTACT mobile
========================= */
@media screen and (max-width: 767px) {
  .contact-page {
    padding: 110px 20px 80px;
    overflow-x: hidden;
  }

  .contact-page__inner {
    max-width: 100%;
    width: 100%;
  }

  .contact-page__title {
    font-size: 2rem;
    white-space: normal;
  }

  .contact-page__title span {
    display: block;
    margin: 10px 0 0;
    font-size: 0.78rem;
  }

  .contact-page__line {
    margin-bottom: 40px;
  }

  .contact-page__grid {
    display: block;
  }

  .contact-page__info {
    margin-bottom: 56px;
  }

  .contact-page__subheading {
    font-size: 1.7rem;
    margin-bottom: 22px;
  }

  .contact-page__info p {
    font-size: 13px;
    line-height: 2;
  }

  .contact-form__group {
    margin-bottom: 22px;
  }

  .contact-form__group input,
  .contact-form__group textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .contact-form__check {
    align-items: flex-start;
    font-size: 12px;
  }

  .contact-form__submit {
    text-align: left;
  }

  .contact-form__submit button {
    width: 100%;
    height: 48px;
  }
}



/* PCではハンバーガーメニュー内のCONTACTを非表示 */
.header__nav-contact {
  display: none;
}

/* スマホ・iPadでは表示 */
@media screen and (max-width: 1024px) {
  .header__nav-contact {
    display: block;
  }
}







/* =========================
   WORKS PC sticky reset
========================= */
@media screen and (min-width: 1025px) {
  .works,
  .works__inner,
  .works__grid {
    overflow: visible !important;
  }

  .works {
    position: relative !important;
    padding: 120px 0 !important;
  }

  .works__inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
    column-gap: 56px !important;
    align-items: start !important;
  }

  .works__nav {
    position: sticky !important;
    top: 90px !important;
    align-self: start !important;
    height: auto !important;
    z-index: 10 !important;
  }

  .works__nav-list {
    position: relative !important;
  }

  .works__nav-arrow {
    position: absolute !important;
    left: -18px !important;
    top: 10px;
  }
}


@media screen and (min-width: 1025px) {
  html,
  body {
    overflow-x: clip;
  }
}

@media screen and (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }
}




@media screen and (max-width: 1024px) {
  .works {
    display: none;
  }
}


@media screen and (max-width: 1024px) {
  .works-sp {
    display: block;
  }
}



/* =========================
   works-sp tablet / mobile
   iPadもスマホと同じ表示
========================= */
@media screen and (max-width: 1024px) {
  .works {
    display: none;
  }

  .works-sp {
    display: block;
    padding: 72px 0 80px;
  }

  .works-sp__inner {
    padding: 0 20px;
  }

  .works-sp__tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
  }

  .works-sp__tab {
    padding: 0 0 6px;
    border: none;
    background: transparent;
    color: #9a9a9a;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    position: relative;
  }

  .works-sp__tab.is-active {
    color: #111;
  }

  .works-sp__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #111;
  }

  .works-sp__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .works-sp__card {
    display: block;
  }

  .works-sp__card.is-hide {
    display: none;
  }

  .works-sp__card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .works-sp__title {
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
    color: #111;
  }

  .works-sp__tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
    border: 1px solid #999;
    color: #333;
    letter-spacing: 0.04em;
  }
}


/* iPadだけ2列にする */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .works-sp__list {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .works-sp__card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}