/* TOPのHeroだけを独立して管理 */
.home-page .home-editorial {
  overflow: clip;
}

.home-page .home-hero {
  position: relative;
  display: block;
  height: min(850px, 100svh);
  min-height: 640px;
  overflow: hidden;
  background: #e8ede4;
  color: #2e4939;
  isolation: isolate;
}

.home-page .home-hero-paper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e8ede4;
  box-shadow: inset 0 -1px rgba(53, 76, 61, .14);
  transform: translate3d(var(--hero-paper-shift, 0), 0, 0);
  will-change: transform;
}

.home-page .home-hero-paper::after {
  position: absolute;
  bottom: 34px;
  left: max(3.2%, calc((100% - 1250px) / 2));
  color: rgba(46, 73, 57, .48);
  content: "FOOD & DAILY LIFE";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.home-page .home-hero-visual {
  position: absolute;
  z-index: 1;
  top: var(--hero-window-top, 96px);
  right: 0;
  bottom: 0;
  left: var(--hero-window-left, 52%);
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transform: none;
  transition: clip-path 1.25s cubic-bezier(.22, 1, .36, 1), left .08s linear;
  will-change: left, clip-path;
}

.home-page.is-home-ready .home-hero-visual {
  clip-path: inset(0);
  transform: none;
}

.home-page .home-hero-visual::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, .66);
}

.home-page .home-hero-visual picture {
  position: absolute;
  inset: 0;
  display: block;
}

.home-page .home-hero-visual .home-hero-media,
.home-page.is-home-ready .home-hero-visual .home-hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  transform: scale(var(--hero-photo-scale, 1.045));
  animation: none;
  transition: transform .12s linear;
  will-change: transform;
}

.home-page .home-hero-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  bottom: auto;
  left: max(5%, calc((100% - 1250px) / 2));
  width: min(46vw, 780px);
  margin: 0;
  color: #2e4939;
  opacity: var(--hero-copy-opacity, 1);
  transform: translate3d(0, calc(-50% + var(--hero-copy-shift, 0px)), 0);
  will-change: opacity, transform;
}

.home-page .home-hero h1 {
  margin: 0 0 42px;
  color: #2d4939;
  font-size: clamp(3rem, 4.1vw, 5rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0;
  text-shadow: none;
}

.home-page .home-hero h1 [data-typewriter] {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(34px);
}

.home-page.is-home-ready .home-hero h1 [data-typewriter] {
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
  transition: opacity .7s ease var(--line-delay, 260ms), transform 1s cubic-bezier(.22, 1, .36, 1) var(--line-delay, 260ms), clip-path 1s cubic-bezier(.22, 1, .36, 1) var(--line-delay, 260ms);
}

.home-page .home-hero .diagnosis-cta-link {
  min-width: min(100%, 304px);
  min-height: 56px;
  padding: 8px 14px 8px 20px;
  font-size: .9rem;
  background: #385b47;
  border-color: #385b47;
  color: #fff;
  box-shadow: 0 10px 26px rgba(46, 73, 57, .12);
}

.home-page .home-scroll {
  z-index: 4;
  color: #2f4d3c;
}

.home-page .home-scroll span {
  background: #4e705c;
}

@media (max-width: 719px) {
  .home-page .home-hero {
    height: min(900px, 100svh);
    min-height: 760px;
  }

  .home-page .home-hero-paper::after {
    top: 108px;
    right: 18px;
    bottom: auto;
    left: auto;
  }

  .home-page .home-hero-visual,
  .home-page.is-home-ready .home-hero-visual {
    top: var(--hero-window-top, 50%);
    right: 0;
    bottom: 0;
    left: 0;
    clip-path: inset(0 100% 0 0);
    transform: none;
    transition: clip-path 1.15s cubic-bezier(.22, 1, .36, 1), top .08s linear;
  }

  .home-page.is-home-ready .home-hero-visual {
    clip-path: inset(0);
  }

  .home-page .home-hero-visual .home-hero-media,
  .home-page.is-home-ready .home-hero-visual .home-hero-media {
    object-position: center 55%;
  }

  .home-page .home-hero-copy {
    top: 24%;
    bottom: auto;
    left: 6%;
    width: 88%;
    margin: 0;
    opacity: var(--hero-copy-opacity, 1);
    transform: translate3d(0, calc(-50% + var(--hero-copy-shift, 0px)), 0);
  }

  .home-page .home-hero h1 {
    margin-bottom: 28px;
    font-size: clamp(2.2rem, 10.7vw, 2.85rem);
    line-height: 1.32;
  }

  .home-page .home-hero .diagnosis-cta-link {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    min-height: 52px;
    padding: 8px 14px 8px 16px;
    box-shadow: 0 10px 24px rgba(46, 73, 57, .13);
  }

  .home-page .home-scroll {
    bottom: 14px;
    color: #2f4d3c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-visual,
  .home-page .home-hero h1 [data-typewriter] {
    opacity: 1;
    clip-path: none;
    transform: none;
    transition: none;
  }
}

/* Contact */
.contact-page {
  background: #f8f6f0;
  color: #332e2a;
}

.contact-page .site-header {
  background: rgba(250, 249, 245, .9);
}

.contact-main {
  min-height: 72svh;
  padding: 150px max(5%, calc((100% - 1250px) / 2)) 120px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(520px, 1.28fr);
  gap: 10%;
  max-width: 1250px;
  margin: 0 auto;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 138px;
}

.contact-label {
  margin: 0 0 18px;
  color: #4d6d58;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.contact-intro h1,
.contact-complete h2 {
  margin: 0;
  color: #35302c;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2.7rem, 4.4vw, 4.8rem);
  font-weight: 500;
  line-height: 1.35;
}

.contact-lead {
  max-width: 410px;
  margin: 40px 0 0;
  color: #625c55;
  font-size: .93rem;
  line-height: 2.05;
}

.contact-response {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 410px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(52, 47, 43, .2);
  color: #647268;
  font-size: .75rem;
  line-height: 1.8;
}

.contact-response i {
  margin-top: 4px;
  color: #4d6d58;
}

.contact-form-area {
  padding-top: 5px;
  border-top: 1px solid rgba(52, 47, 43, .45);
}

.contact-form {
  display: grid;
}

.contact-field {
  gap: 18px;
  padding: 31px 0 34px;
  border-bottom: 1px solid rgba(52, 47, 43, .2);
  font-weight: 400;
}

.contact-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-field-head b {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-field-head em {
  color: #4d6d58;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .78rem;
  font-style: italic;
}

.contact-field-head small {
  color: #a7503e;
  font-size: .65rem;
  font-weight: 600;
}

.contact-page .contact-field input,
.contact-page .contact-field textarea {
  padding: 17px 18px;
  border: 1px solid rgba(57, 82, 65, .24);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, .65);
  color: #332e2a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.contact-page .contact-field input:focus,
.contact-page .contact-field textarea:focus {
  border-color: #4d6d58;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(77, 109, 88, .09);
}

.contact-message-field textarea {
  min-height: 220px;
}

.contact-submit-row {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 38px;
}

.contact-submit-row > p {
  margin: 0;
  color: #817970;
  font-size: .7rem;
}

.contact-submit {
  position: relative;
  display: inline-flex;
  gap: 38px;
  align-items: center;
  justify-content: space-between;
  min-width: 220px;
  min-height: 58px;
  padding: 9px 10px 9px 25px;
  overflow: hidden;
  border: 1px solid #3f614c;
  border-radius: 0;
  background: #3f614c;
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  isolation: isolate;
  transition: color .35s ease, transform .35s ease;
}

.contact-submit::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: #f8f6f0;
  transform: translateX(-102%);
  transition: transform .48s cubic-bezier(.65, 0, .2, 1);
}

.contact-submit i {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  background: rgba(255, 255, 255, .13);
  border-radius: 50%;
  transition: transform .35s ease, background .35s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  color: #36513f;
  transform: translateY(-2px);
}

.contact-submit:hover::before,
.contact-submit:focus-visible::before {
  transform: translateX(0);
}

.contact-submit:hover i,
.contact-submit:focus-visible i {
  background: #dce6dc;
  transform: translateX(3px);
}

.contact-errors {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-top: 1px solid #b45c4b;
  border-bottom: 1px solid #b45c4b;
  color: #8f4437;
  font-size: .82rem;
}

.contact-errors p {
  margin: 3px 0;
}

.contact-complete {
  min-height: 470px;
  padding: 70px 8%;
  background: #e8ede4;
}

.contact-complete > i {
  margin-bottom: 42px;
  color: #4d6d58;
  font-size: 1.5rem;
}

.contact-complete h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.6rem);
}

.contact-complete > p:not(.contact-label) {
  margin: 30px 0 38px;
  color: #5d655e;
  font-size: .86rem;
  line-height: 2;
}

.contact-complete a {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: #3f614c;
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .contact-main {
    padding: 116px 5% 76px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .contact-intro {
    position: static;
  }

  .contact-intro h1 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
    line-height: 1.38;
  }

  .contact-lead {
    margin-top: 30px;
    font-size: .88rem;
  }

  .contact-response {
    margin-top: 27px;
  }

  .contact-field {
    gap: 15px;
    padding: 27px 0 30px;
  }

  .contact-field-head b {
    gap: 13px;
    font-size: 1rem;
  }

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
    padding-top: 34px;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-complete {
    min-height: 420px;
    padding: 54px 7%;
  }
}

/* ABOUTは人物と経歴を一枚の紙面として見せる */
.home-page .home-profile {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  overflow: hidden;
  background: #faf9f5;
  border-top: 1px solid rgba(57, 82, 65, .12);
  border-bottom: 1px solid rgba(57, 82, 65, .12);
}

.home-page .home-profile::after {
  content: none;
}

.home-page .home-profile .profile-layout {
  position: relative;
  z-index: 1;
  min-height: 0;
  gap: 7%;
  align-items: center;
  grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr);
}

.home-page .profile-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0;
}

.home-page .profile-heading {
  margin-bottom: 34px;
}

.home-page .profile-heading .profile-label {
  margin-bottom: 4px;
  color: #4d6d58;
  font-size: .7rem;
  letter-spacing: .14em;
}

.home-page .profile-heading h2 {
  position: relative;
  z-index: 3;
  margin: 0;
  color: #304d3b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.6rem, 6vw, 6.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: .9;
}

.home-page .profile-story {
  max-width: 560px;
}

.home-page .profile-story h3 {
  margin: 0 0 18px;
  color: #3a352f;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.6;
}

.home-page .profile-story > p {
  max-width: 530px;
  margin: 0 0 30px;
  color: #5e5952;
  font-size: .94rem;
  line-height: 2.1;
}

.home-page .profile-story small {
  display: inline-block;
  padding: 16px 0 0;
  border-top: 1px solid rgba(53, 77, 61, .28);
  color: #58665c;
  font-size: .74rem;
  line-height: 1.9;
}

.home-page .profile-photo.profile-illustration {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 100%;
  height: auto;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(57, 82, 65, .12);
  isolation: isolate;
}

.home-page .profile-photo.profile-illustration::before {
  content: none;
}

.home-page .profile-photo.profile-illustration img {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transform: none;
  filter: none;
}

@media (max-width: 719px) {
  .home-page .home-profile .profile-layout {
    display: grid;
    min-height: 0;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .home-page .profile-copy {
    display: contents;
    max-width: none;
    padding: 0;
  }

  .home-page .profile-heading {
    z-index: 2;
    order: 1;
    margin: 0;
    padding: 0;
  }

  .home-page .profile-heading h2 {
    font-size: clamp(4.5rem, 23vw, 5.8rem);
  }

  .home-page .profile-photo.profile-illustration {
    order: 2;
    width: 100%;
    height: auto;
    margin: 32px 0 0;
    aspect-ratio: 4 / 3;
  }

  .home-page .profile-photo.profile-illustration::before {
    content: none;
  }

  .home-page .profile-photo.profile-illustration img {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transform: none;
  }

  .home-page .profile-story {
    z-index: 2;
    order: 3;
    max-width: none;
    padding: 38px 0 0;
    border-top: 0;
  }

  .home-page .profile-story h3 {
    margin-bottom: 16px;
    font-size: 1.42rem;
  }

  .home-page .profile-story > p {
    margin-bottom: 26px;
    font-size: .9rem;
    line-height: 2;
  }
}

@media (max-width: 719px) {
  .home-page .home-profile {
    padding-top: 64px;
    padding-bottom: 72px;
  }
}

/* 写真と紙面がつながる第二段階の演出 */
.home-page .home-hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-page .home-hero-paper {
  background-color: #e8ede4;
  background-image: none;
}

.home-page .hero-linework {
  position: absolute;
  top: 76px;
  bottom: 0;
  left: -3%;
  z-index: 1;
  display: block;
  width: 45%;
  height: calc(100% - 76px);
  overflow: visible;
  color: #66806d;
  opacity: var(--hero-line-opacity, .15);
  pointer-events: none;
  transform: translate3d(0, var(--hero-line-shift, 0), 0);
  transition: opacity .25s linear, transform .25s linear;
}

.home-page .hero-linework path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.js-enabled.home-page .hero-linework path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.is-home-ready .hero-linework-main {
  animation: heroLineDraw 2.2s .22s cubic-bezier(.22, 1, .36, 1) forwards;
}

.is-home-ready .hero-linework-sweep {
  animation: heroLineDraw 1.65s .72s cubic-bezier(.22, 1, .36, 1) forwards;
}

.is-home-ready .hero-linework-leaves path {
  animation: heroLineDraw 1.1s 1.18s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes heroLineDraw {
  to { stroke-dashoffset: 0; }
}

.home-page .home-hero-paper::after {
  content: none;
}

.home-page .home-hero-visual {
  top: 0;
  left: var(--hero-window-left, 48%);
}

.home-page .home-hero-visual::before {
  display: none;
}

.home-page .home-hero-visual::after {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: clamp(100px, 14vw, 220px);
  content: "";
  background: linear-gradient(to right, #e8ede4 0%, rgba(232, 237, 228, .84) 24%, rgba(232, 237, 228, 0) 100%);
  pointer-events: none;
}

.home-page .home-hero-copy {
  top: 52%;
}

.js-enabled.home-page .home-hero .home-primary-link,
.js-enabled.home-page .home-hero .home-scroll {
  opacity: 0;
  transform: translateY(18px);
}

.home-page.is-home-ready .home-hero .home-primary-link {
  opacity: 1;
  transform: translateY(0);
  transition: color .35s ease, transform .8s cubic-bezier(.22, 1, .36, 1) .9s, opacity .65s ease .9s;
}

.home-page.is-home-ready .home-hero .home-primary-link:hover {
  transform: translateY(-3px);
}

.home-page .home-hero .home-scroll,
.home-page.is-home-ready .home-hero .home-scroll {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: flex;
  width: 42px;
  height: auto;
  left: calc(24vw - max(5vw, (100vw - 1250px) / 2) - 21px);
  margin: 40px 0 0;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(47, 77, 60, .7);
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .16em;
  text-decoration: none;
  writing-mode: horizontal-tb;
}

.home-page.is-home-ready .home-hero .home-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .65s ease 1.15s, transform .8s cubic-bezier(.22, 1, .36, 1) 1.15s;
}

.home-page .home-hero .home-scroll span {
  position: relative;
  display: block;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: rgba(47, 77, 60, .42);
}

.home-page .home-hero .home-scroll span::before {
  position: absolute;
  right: -2px;
  bottom: 1px;
  z-index: 2;
  width: 5px;
  height: 5px;
  content: "";
  border-right: 1px solid #385b47;
  border-bottom: 1px solid #385b47;
  transform: rotate(45deg);
}

.home-page .home-hero .home-scroll span::after {
  position: absolute;
  top: -55%;
  left: 0;
  width: 1px;
  height: 55%;
  content: "";
  background: #385b47;
  animation: heroScrollLine 1.9s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes heroScrollLine {
  0% { transform: translateY(0); }
  65%, 100% { transform: translateY(155px); }
}

@media (max-width: 719px) {
  .home-page .home-hero {
    height: 145svh;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .home-page .home-hero-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .home-page .home-hero-paper {
    background-image: none;
  }

  .home-page .hero-linework {
    top: 70px;
    right: auto;
    bottom: auto;
    left: -22%;
    width: 120%;
    height: 56%;
    opacity: var(--hero-line-opacity, .15);
    transform: translate3d(0, var(--hero-line-shift, 0), 0) scale(1.02);
  }

  .home-page .home-hero-visual,
  .home-page.is-home-ready .home-hero-visual {
    top: var(--hero-window-top, 58%);
    border-radius: var(--hero-photo-radius, 20px) var(--hero-photo-radius, 20px) 0 0;
    clip-path: inset(0 0 0 0 round var(--hero-photo-radius, 20px) var(--hero-photo-radius, 20px) 0 0);
    transition: clip-path 1.15s cubic-bezier(.22, 1, .36, 1), top .08s linear, border-radius .08s linear;
  }

  .home-page .home-hero-visual::after {
    inset: 0 0 auto;
    width: 100%;
    height: 86px;
    background: linear-gradient(to bottom, #e8ede4 0%, rgba(232, 237, 228, .76) 32%, rgba(232, 237, 228, 0) 100%);
    opacity: var(--hero-fade-opacity, 1);
  }

  .home-page .home-hero-copy {
    top: clamp(116px, 15svh, 138px);
    left: 6%;
    width: 88%;
    opacity: var(--hero-copy-opacity, 1);
    transform: translate3d(0, var(--hero-copy-shift, 0px), 0);
  }

  .home-page .home-hero h1 {
    margin-bottom: 26px;
    font-size: clamp(2.12rem, 10.5vw, 2.72rem);
    line-height: 1.3;
  }

  .home-page .home-hero h1 [data-typewriter] {
    white-space: normal;
  }

  .home-page .home-hero .home-scroll,
  .home-page.is-home-ready .home-hero .home-scroll {
    left: calc(44vw - 21px);
    margin-top: 34px;
  }

  .home-page .home-hero .home-scroll span {
    height: 42px;
  }

  .home-page .concern-sp-break br {
    display: none;
  }

  .home-page .cta-sp-break {
    display: block;
  }
}

@media (min-width: 720px) {
  .home-page .site-header {
    padding: 8px 16px;
    background: rgba(255, 255, 255, .66);
  }

  .home-page .site-header .brand {
    font-size: 1.42rem;
  }

  .home-page .site-header .site-nav a {
    padding: 9px 11px;
    font-size: .92rem;
  }
}

@media (max-width: 350px) {
  .home-page .concern-sp-break br {
    display: block;
  }
}

@media (min-width: 720px) {
  .home-page .cta-sp-break {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero {
    height: 100svh;
  }

  .home-page .home-hero .home-primary-link,
  .home-page .home-hero .home-scroll {
    opacity: 1;
    transform: none;
  }

  .home-page .home-hero .home-scroll span::after {
    animation: none;
  }

  .home-page .hero-linework path {
    stroke-dashoffset: 0;
    animation: none;
  }
}
