/* トップページ
   SP は 767px まで。PC は 768px から。1440px で余白がデザイン幅になる。
------------------------------------------- */
.page--home {
  --home-text: #1f2428;
  --home-muted: #7d756c;
  --home-line: #e4d9cc;
  --home-bg: #f7f4ef;
  --home-bg-soft: #f3eee6;
  --home-footer: #f0ebe2;
  --home-max: 72rem;
  --home-pad: 1.5rem;

  background-color: #fff;
  color: var(--home-text);
  font-family: "Noto Serif JP", serif;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 2.05;
}

/* SPの左右余白。375pxで1.5rem、400pxで2.5rem、500pxで3.5rem。間は画面幅に合わせて変わる */
@media (max-width: 767px) {
  .page--home {
    --home-pad: clamp(1.5rem, calc(1.5rem + (100vw - 375px) * (1rem / 25px)), 2.5rem);
  }
}

@media (min-width: 400px) and (max-width: 767px) {
  .page--home {
    --home-pad: clamp(2.5rem, calc(2.5rem + (100vw - 400px) * (1rem / 100px)), 3.5rem);
  }
}

@media (min-width: 768px) {
  .page--home {
    font-size: 0.9375rem;
  }
}

.page--home :focus-visible {
  outline: 1px solid var(--home-text);
  outline-offset: 3px;
}

/* header
------------------------------------------- */
.site-header {
  position: relative;
  z-index: 5;
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 2rem;
  margin-right: 0;
  padding-block: 1.65rem 1.15rem;
}

.site-header__logo {
  margin: 0;
  line-height: 0;
}

.site-header__logo img {
  width: auto;
  height: 1.2rem;
}

.site-header__toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  height: 2.5rem;
  margin-right: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-text);
  cursor: pointer;
}

.site-header__mark {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 0.55rem;
}

.site-header__mark::before,
.site-header__mark::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s ease, top 0.5s ease;
}

.site-header__mark::before {
  top: 0;
}

.site-header__mark::after {
  top: calc(100% - 1.5px);
}

.site-header.is-open .site-header__mark::before,
.site-header.is-open .site-header__mark::after {
  top: 50%;
}

.site-header.is-open .site-header__mark::before {
  transform: translateY(-50%) rotate(45deg);
}

.site-header.is-open .site-header__mark::after {
  transform: translateY(-50%) rotate(-45deg);
}

.site-header__nav {
  position: absolute;
  top: calc(100% - 1px);
  left: clamp(4%, 9% * (767px - 100vw) / 392px + 4% * (100vw - 375px) / 392px, 9%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2.6rem);
  height: clamp(315px, 315px + (100vw - 375px) * 105 / 392, 420px);
  background: #fff;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s ease, visibility 0.5s;
}

.site-header.is-open .site-header__nav {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.site-header__list {
  display: grid;
  justify-items: center;
  row-gap: 30px;
  width: 100%;
}

.site-header__link {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(15px, 15px + (100vw - 375px) * 5 / 392, 20px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.35;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .site-header__inner {
    width: min(100% - 10rem, 75rem);
    margin-inline: auto;
    padding-block: 4.4rem 2.6rem;
  }

  .site-header__logo img {
    height: 1.7rem;
  }

  .site-header__toggle {
    display: none;
  }

  .site-header__nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__list {
    display: flex;
    justify-content: flex-end;
    column-gap: 2.15rem;
  }

  .site-header__link {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
  }
}

/* hero
------------------------------------------- */
.hero {
  background: #fff;
}

.hero__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 0.65rem;
  margin-left: 2rem;
  margin-right: 0;
}

.hero__photo {
  position: relative;
  aspect-ratio: 304 / 442;
  overflow: hidden;
}

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

@media (min-width: 430px) and (max-width: 767px) {
  .hero__photo {
    width: 100%;
    height: 31.25rem;
    aspect-ratio: auto;
  }

  .hero__photo img {
    object-position: center 72%;
  }
}

.hero__lead {
  margin: 2.9rem 0 0;
  color: var(--home-text);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.7;
  writing-mode: vertical-rl;
}

@media (min-width: 768px) {
  .hero {
    padding-bottom: 1.5rem;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: start;
    column-gap: 0;
    width: min(100% - 10rem, 75rem);
    margin-inline: auto;
  }

  .hero__lead {
    position: static;
    justify-self: center;
    margin-top: 4.75rem;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 652 / 382;
  }

  .hero__photo img {
    object-position: center center;
  }
}

/* concept
------------------------------------------- */
.concept {
  padding: 4.5rem 0 3.5rem;
}

.concept__inner,
.offer-block__inner,
.profile__inner,
.closing__inner {
  width: min(100% - (var(--home-pad) * 2), var(--home-max));
  margin-inline: auto;
}

@media (max-width: 767px) {
  .concept__inner,
  .offer-block__inner,
  .profile__inner,
  .closing__inner {
    max-width: 500px;
  }
}

.concept__label,
.profile__label {
  margin: 0 0 1.25rem;
  font-family: "Noto Serif JP", serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  line-height: 1;
}

.concept__label {
  margin-bottom: 10px;
  color: #bfa15a;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.profile__label {
  color: #bfa15a;
}

.concept__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.85;
}

.concept__body {
  margin-top: 2.75rem;
}

.concept__text,
.profile__text,
.closing__text {
  margin: 0;
}

.concept__text {
  font-size: 12px;
}

.profile__text {
  color: #1f2428;
  font-size: 12px;
}

.concept__text + .concept__text,
.profile__text + .profile__text,
.closing__text + .closing__text {
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .concept {
    padding: 7.5rem 0 6rem;
  }

  .concept__inner {
    display: grid;
    grid-template-columns: max-content minmax(0, 22rem);
    column-gap: clamp(30px, calc(30px + (100vw - 768px) * (170px / 672px)), 200px);
    justify-content: center;
    align-items: start;
  }

  .concept__title {
    font-size: clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px);
  }

  .concept__label {
    margin-bottom: clamp(0px, calc((100vw - 768px) * (1.25rem / 672px)), 1.25rem);
  }

  .concept__body {
    margin-top: 0.25rem;
  }

  .concept__text {
    font-size: inherit;
  }
}

/* service accordion
------------------------------------------- */
.offer-block {
  padding: 3.5rem 0 4.5rem;
  background-color: var(--home-bg-soft);
}

.offer-block__head {
  margin-bottom: 2.5rem;
}

.offer-block__label {
  margin: 0 0 10px;
  color: #bfa15a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

.offer-block__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.85;
}

.offer-block__date {
  margin: 0.4rem 0 1.75rem;
  color: var(--home-muted);
  font-family: "Noto Serif JP", serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.offer-block__list {
  display: grid;
  row-gap: 1.25rem;
}

.offer {
  padding: 1.35rem 1.25rem;
  border: 1px solid #bfa15a;
  background-color: #fff;
}

.offer__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.offer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.offer__copy {
  display: grid;
  justify-items: start;
  min-width: 0;
  row-gap: 0.2rem;
}

.offer__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.offer__en {
  color: #bfa15a;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.offer__mark {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  color: #bfa15a;
}

.offer__mark::before,
.offer__mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.offer__mark::before {
  transform: translateY(-50%);
}

.offer__mark::after {
  transform: translateY(-50%) rotate(90deg);
}

.offer.is-open .offer__mark::after {
  opacity: 0;
}

.offer__summary {
  margin: 0.25rem 0 0;
  font-size: 10px;
  line-height: 1.7;
}

.offer__panel {
  overflow: hidden;
  height: 0;
  margin-top: 0;
  font-size: 12px;
  line-height: 1.95;
  transition: height 0.8s ease, margin-top 0.8s ease;
}

.offer.is-open .offer__panel {
  margin-top: 1.75rem;
}

.offer__panel > * + * {
  margin-top: 0.9rem;
}

.offer__subhead {
  margin: 1.5rem 0 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.offer__subhead + .offer__list,
.offer__subhead + .offer__price {
  margin-top: 0.55rem;
}

.offer__list li {
  padding-left: 1em;
  text-indent: -1em;
  line-height: 1.85;
}

.offer__list li::before {
  content: "・";
}

.offer__list li + li {
  margin-top: 0.15rem;
}

.offer__card {
  display: grid;
  row-gap: 0.65rem;
  margin-top: 1.15rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid #bfa15a;
  border-radius: 8px;
}

.offer__card-title {
  margin: 0;
  color: #bfa15a;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.offer__card p,
.offer__price,
.offer__note {
  margin: 0;
}

.offer__consult {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 22rem);
  margin: 1.85rem auto 0;
  padding: 0.75rem 1.1rem;
  border: 1px solid #bfa15a;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.offer__note {
  margin-top: 0.85rem;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

@media (min-width: 768px) {
  .offer-block {
    padding: 6.5rem 0 7rem;
  }

  .offer-block__inner {
    display: grid;
    grid-template-columns: minmax(0, clamp(450px, calc(450px + (100vw - 768px) * ((34rem - 450px) / 672px)), 34rem)) max-content;
    grid-template-areas: "list head";
    column-gap: clamp(3rem, 8vw, 8rem);
    justify-content: center;
    align-items: start;
  }

  .offer-block__head {
    grid-area: head;
    margin-bottom: 0;
  }

  .offer-block__title {
    font-size: clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px);
  }

  .offer-block__label {
    margin-bottom: clamp(0px, calc((100vw - 768px) * (1.25rem / 672px)), 1.25rem);
  }

  .offer-block__list {
    grid-area: list;
  }

  .offer__name {
    font-size: clamp(20px, calc(20px + (100vw - 768px) * (5px / 672px)), 25px);
  }

  .offer__en {
    font-size: 12px;
  }

  .offer__summary {
    font-size: 14px;
  }

  .offer__mark {
    width: 20px;
    height: 20px;
  }

  .offer__panel {
    font-size: 14px;
  }

  .offer__subhead,
  .offer__card-title {
    font-size: 16px;
  }

  .offer__consult {
    padding: 0.85rem 1.25rem;
    font-size: 14px;
  }

  .offer__note {
    font-size: 12px;
  }
}

/* about
------------------------------------------- */
.profile {
  padding: 4.5rem 0;
}

.profile__inner {
  display: grid;
  grid-template-areas:
    "intro"
    "photo"
    "body";
  row-gap: 2rem;
}

.profile__intro {
  grid-area: intro;
}

.profile__photo {
  grid-area: photo;
  justify-self: center;
  width: 9.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #faf8f0;
  overflow: hidden;
}

.profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile__body {
  grid-area: body;
}

.profile__name {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.profile__role {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .profile {
    padding: 7rem 0;
  }

  .profile__inner {
    grid-template-columns: minmax(0, clamp(450px, calc(450px + (100vw - 768px) * ((34rem - 450px) / 672px)), 34rem)) minmax(8rem, var(--offer-head-width, calc(8.5 * clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px))));
    grid-template-areas:
      "intro ."
      "body photo";
    column-gap: clamp(3rem, 8vw, 8rem);
    row-gap: 2rem;
    align-items: start;
    justify-content: center;
  }

  .profile__photo {
    width: 8rem;
    align-self: start;
    justify-self: start;
  }

  .profile__text {
    font-size: 14px;
  }

  .profile__name {
    font-size: clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px);
  }
}

/* closing
------------------------------------------- */
.closing {
  padding: 4.5rem 0;
  background-color: #faf8f0;
}

.closing__inner {
  display: grid;
  row-gap: 2.75rem;
}

.closing__label {
  margin: 0 0 10px;
  color: #bfa15a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

.closing__title {
  margin: 0;
  color: #1f2428;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.85;
}

.closing__text {
  color: #1f2428;
  font-size: 12px;
}

.closing__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 22rem);
  margin-inline: auto;
  padding: 1.15rem 1.5rem;
  border: 1px solid #bfa15a;
  border-radius: 12px;
  color: #1f2428;
  line-height: 1.7;
}

.closing__link:hover,
.closing__link:focus-visible {
  opacity: 0.7;
}

.closing__arrow {
  flex: none;
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
}

@media (min-width: 768px) {
  .closing {
    padding: 6.5rem 0 7rem;
  }

  .closing__inner {
    --closing-title: calc(18.05 * clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px));
    --closing-span: calc(clamp(450px, calc(450px + (100vw - 768px) * ((34rem - 450px) / 672px)), 34rem) + clamp(3rem, 8vw, 8rem) + 8.5 * clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px));
    --closing-min: calc(22rem + 0.5rem + var(--closing-title));
    width: min(100% - (var(--home-pad) * 2), max(var(--closing-span), var(--closing-min)));
    grid-template-columns: max-content max-content;
    grid-template-areas:
      "body head"
      "link .";
    column-gap: 0.5rem;
    row-gap: 2.5rem;
    justify-content: space-between;
    align-items: center;
  }

  .closing__head {
    grid-area: head;
    transform: translateX(clamp(15px, calc(15px + (100vw - 768px) * (85px / 232px)), 100px));
  }

  .closing__body {
    grid-area: body;
  }

  .closing__label {
    margin-bottom: clamp(0px, calc((100vw - 768px) * (1.25rem / 672px)), 1.25rem);
  }

  .closing__title {
    font-size: clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px);
    white-space: nowrap;
  }

  .closing__text {
    font-size: inherit;
  }

  .closing__link {
    grid-area: link;
    width: 22rem;
    margin-inline: 0;
    padding: 1.5rem 1.75rem;
  }
}

/* footer
------------------------------------------- */
.site-footer {
  background-color: #f0ebe2;
  color: var(--home-text);
  text-align: center;
  padding: 4.25rem var(--home-pad) 2.75rem;
}

.site-footer__logo {
  margin: 0;
  line-height: 0;
}

.site-footer__logo img {
  width: auto;
  height: 1.5rem;
}

.site-footer__tagline {
  margin: 0.9rem 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin: 2.5rem 0 0;
}

.site-footer__link {
  display: block;
  line-height: 0;
}

.site-footer__icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  opacity: 0.7;
}

.site-footer__copy {
  margin: 2.75rem 0 0;
  font-family: "Noto Serif JP", serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 5.5rem var(--home-pad) 3.5rem;
  }

  .site-footer__logo img {
    height: 1.875rem;
  }

  .site-footer__tagline {
    margin-top: 1.15rem;
    font-size: 13px;
  }

  .site-footer__links {
    gap: 2.25rem;
    margin-top: 3.25rem;
  }

  .site-footer__icon {
    width: 2rem;
    height: 2rem;
  }

  .site-footer__copy {
    margin-top: 3.5rem;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__mark::before,
  .site-header__mark::after,
  .site-header__nav,
  .offer__mark::before,
  .offer__mark::after,
  .offer__panel {
    transition: none;
  }
}
