/* =========================
   Base
========================= */
html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: serif;
  font-size: 18px;
  line-height: 40px;
  background: #fff;
  color: #403638;
}

.wrapper {
  max-width: 1920px;
  margin: 0 auto;
}

section {
  scroll-margin-top: 90px;
}

h2 {
  position: relative;
  margin-bottom: 30px;
  padding: 20px 0;
  color: #B85C70;
  text-align: center;
}

h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 2px;
  background: #B85C70;
  transform: translateX(-50%);
}


/* =========================
   Header
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 90px;
  padding: 0 5%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
}

header nav {
  margin-left: auto;
}

.logo img {
  display: block;
  width: auto;
  height: 50px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.nav-list a:visited,
.nav-list a:hover {
  color: #000;
  text-decoration: none;
}

.hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 5%;
  z-index: 1100;
  width: 30px;
  height: 22px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.4);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { bottom: 0; }

.header-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: 60px;
  transition: .3s;
}

.header-tel img {
  display: block;
  width: 45px;
  height: auto;
}

.header-tel:hover {
  opacity: .7;
}

.nav-phone {
  display: none;
}


/* =========================
   Mobile menu overlay
========================= */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}


/* =========================
   Main visual
========================= */

.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

.fade-slider {
  position: relative;
}

.fade-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 2s ease;
}

.fade-slider img.active {
  position: relative;
  opacity: 1;
}


/* =========================
   Hero Copy
========================= */

.hero-copy {
  position: absolute;
  top: 50%;
  left: 7%;
  z-index: 10;
  padding: 32px 45px 35px 38px;
  color: #403638;
  background: rgba(255, 255, 255, .88);
  transform: translateY(-50%);
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #B85C70;
}

.hero-copy__sub {
  display: block;
  margin-bottom: 16px;
  color: #B85C70;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .28em;
}

.hero-copy__main {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 46px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .08em;
}

.hero-copy__main span {
  color: #B85C70;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-style: italic;
}


/* =========================
   Hero Tablet
========================= */

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

  .hero {
    height: 520px;
  }

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

  .hero-copy {
    left: 5%;
    padding: 28px 35px 30px 32px;
  }

  .hero-copy__main {
    font-size: 32px;
  }

}


/* =========================
   Hero Smartphone
========================= */

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

  .hero {
    height: 60vh;
    min-height: 480px;
    max-height: 650px;
  }

  .hero img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: 90% center;
  }

  .hero-copy {
    top: auto;
    right: 6%;
    bottom: 7%;
    left: 6%;
    padding: 22px 25px 24px 27px;
    transform: none;
  }

  .hero-copy__sub {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .hero-copy__main {
    font-size: 23px;
    line-height: 1.65;
  }

}


/* ==============================
   SERVICE
============================== */
.service {
  padding: 120px 0;
  background: #fff;
  color: #403638;
}

.service__inner {
  width: min(1180px, 88%);
  margin: 0 auto;
}

.section-title {
  margin-bottom: 55px;
  text-align: center;
}

.section-title__en {
  display: block;
  margin-bottom: 8px;
  color: #c98694;
  font-size: 13px;
  letter-spacing: 0.22em;
}

.section-title__jp {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.service__intro {
  width: 100%;
  max-width: none;
  margin: 0 auto 90px;
  text-align: center;
}

.service__intro h3 {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.service__intro p {
  margin: 0;
  color: #6f6466;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.service__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 30px;
}

.service-box {
  position: relative;
  padding: 15px 9%;
}

.service-box:first-child {
  border-right: 1px solid #ead9dd;
}

.service-box__en {
  display: block;
  margin-bottom: 10px;
  color: #c98694;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.service-box h3 {
  margin: 0 0 32px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.service-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-box li {
  position: relative;
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid #eee7e9;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.service-box li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d99ba7;
  transform: translateY(-50%);
}

.service__notes {
  margin-bottom: 130px;
  text-align: right;
}

.service__notes p {
  margin: 4px 0;
  color: #8a7c7f;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}


/* ==============================
   WORKS
============================== */
.works {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.works__heading {
  margin-bottom: 40px;
  text-align: center;
}

.works__en {
  display: block;
  margin-bottom: 8px;
  color: #c98694;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.works__heading h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.works-slider {
  width: 100%;
  overflow: hidden;
}

.works-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: works-scroll 35s linear infinite;
}

.works-slider:hover .works-track {
  animation-play-state: paused;
}

.works-card {
  flex: 0 0 330px;
}

.works-card__image {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  background: #fbeff1;
}

.works-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.works-card:hover img {
  transform: scale(1.035);
}

.works-card p {
  margin: 0;
  color: #514648;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

@keyframes works-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 14px)); }
}


/* ==============================
   FLOW
============================== */
.flow {
  padding: 120px 0;
  background: #fbeff1;
  color: #403638;
}

.flow__inner {
  width: min(1280px, 90%);
  margin: 0 auto;
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 35px;
  margin-top: 70px;
}

.flow-item {
  position: relative;
  text-align: center;
}

.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 123px;
  left: calc(50% + 75px);
  width: calc(100% - 115px);
  height: 1px;
  background: #d99ba7;
}

.flow-item__number {
  margin-bottom: 18px;
  color: #c98694;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.flow-item__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 145px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: #fff;
}

.flow-item__icon img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.flow-item:nth-child(1) .flow-item__icon img { width: 65%; }
.flow-item:nth-child(2) .flow-item__icon img { width: 60%; }
.flow-item:nth-child(3) .flow-item__icon img { width: 53%; }
.flow-item:nth-child(4) .flow-item__icon img { width: 80%; }
.flow-item:nth-child(5) .flow-item__icon img { width: 72%; }

.flow-item h3 {
  min-height: 2.8em;
  margin: 0 0 17px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.flow-item p {
  margin: 0;
  color: #716568;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
  letter-spacing: 0.03em;
}

.flow-item__notice {
  position: relative;
  margin-top: 15px !important;
  padding: 12px 14px 12px 28px;
  border-radius: 6px;
  background: #fff;
  color: #9f6672 !important;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.7 !important;
}

.flow-item__notice::before {
  content: "※";
  position: absolute;
  top: 12px;
  left: 11px;
  color: #c98694;
  font-weight: 600;
}


/* =========================
   Header responsive
========================= */
@media (max-width: 968px) {
  .hamburger {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-120%);
    transition: none;
  }

  .nav-list.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform .3s, opacity .3s;
  }

  .header-tel {
    display: none;
  }

  .nav-phone {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, .15);
  }

  .nav-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
  }

  .nav-phone img {
    display: block;
    width: 24px;
    height: auto;
  }
}


/* =========================
   Tablet
========================= */
@media screen and (max-width: 1100px) {
  .flow__list {
    gap: 20px;
  }

  .flow-item__icon {
    width: 120px;
    height: 120px;
  }

  .flow-item:not(:last-child)::after {
    top: 110px;
    left: calc(50% + 60px);
    width: calc(100% - 80px);
  }

  .flow-item h3 {
    font-size: 16px;
  }

  .flow-item p {
    font-size: 13px;
  }
}


/* =========================
   Smartphone
========================= */
@media screen and (max-width: 768px) {
  header {
    height: 60px;
  }

  .logo img {
    height: 30px;
  }

  section {
    scroll-margin-top: 60px;
  }
.service {
    padding: 80px 0;
  }

  .service__inner {
    width: 88%;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title__jp {
    font-size: 28px;
  }

  .service__intro {
    margin-bottom: 65px;
    text-align: left;
  }

  .service__intro h3 {
    font-size: 22px;
    line-height: 1.7;
  }

  .service__intro p {
    font-size: 15px;
    line-height: 2;
    white-space: normal;
  }

  .service__intro p br {
    display: none;
  }

  .service__categories {
    display: block;
    margin-bottom: 25px;
  }

  .service-box {
    padding: 0;
  }

  .service-box:first-child {
    padding-bottom: 55px;
    margin-bottom: 55px;
    border-right: 0;
    border-bottom: 1px solid #ead9dd;
  }

  .service-box h3 {
    margin-bottom: 25px;
    font-size: 23px;
  }

  .service-box li {
    padding: 13px 0 13px 25px;
    font-size: 15px;
  }

  .service__notes {
    margin-bottom: 90px;
    text-align: left;
  }

  .service__notes p {
    padding-left: 1em;
    text-indent: -1em;
    font-size: 12px;
    line-height: 1.7;
  }

  .works__heading {
    margin-bottom: 30px;
  }

  .works__heading h3 {
    font-size: 24px;
  }

  .works-track {
    gap: 18px;
    animation-duration: 28s;
  }

  .works-card {
    flex-basis: 260px;
  }

  .flow {
    padding: 80px 0;
  }

  .flow__inner {
    width: 88%;
  }

  .flow__list {
    display: block;
    margin-top: 55px;
  }

  .flow-item {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 25px;
    padding-bottom: 55px;
    text-align: left;
  }

  .flow-item:last-child {
    padding-bottom: 0;
  }

  .flow-item:not(:last-child)::after {
    top: 90px;
    bottom: 0;
    left: 44px;
    width: 1px;
    height: auto;
    background: #d99ba7;
  }

  .flow-item__number {
    grid-column: 1;
    margin: 0 0 8px;
    text-align: center;
    font-size: 25px;
  }

  .flow-item__icon {
    grid-column: 1;
    grid-row: 2 / span 2;
    width: 90px;
    height: 90px;
    margin: 0;
  }

  .flow-item h3 {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    min-height: 0;
    margin: 15px 0 10px;
    font-size: 18px;
  }

  .flow-item p {
    grid-column: 2;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.8;
  }
}

/* ==============================
   COMPANY
============================== */

.company {
  padding: 120px 0;
  background: #fff;
  color: #403638;
}

.company__inner {
  width: min(1000px, 88%);
  margin: 0 auto;
}


/* ==============================
   Company Table
============================== */

.company-table {
  margin: 70px 0 0;
  border-top: 1px solid #ead9dd;
}

.company-table__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid #ead9dd;
}

.company-table dt,
.company-table dd {
  margin: 0;
  padding: 25px 30px;
  box-sizing: border-box;
  line-height: 1.9;
}

.company-table dt {
  display: flex;
  align-items: center;
  color: #9f6672;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.company-table dd {
  color: #514648;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.company-table dd a {
  color: inherit;
  text-decoration: none;
}

.company-table dd a:hover {
  color: #c98694;
}


/* ==============================
   Google Map
============================== */

.company-map {
  width: 100%;
  height: 450px;
  margin-top: 70px;
  overflow: hidden;
}

.company-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==============================
   Responsive
============================== */

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

  .company {
    padding: 80px 0;
  }

  .company__inner {
    width: 88%;
  }

  .company-table {
    margin-top: 50px;
  }

  .company-table__row {
    grid-template-columns: 105px 1fr;
  }

  .company-table dt,
  .company-table dd {
    padding: 18px 12px;
  }

  .company-table dt {
    font-size: 13px;
  }

  .company-table dd {
    font-size: 14px;
    line-height: 1.8;
  }

  .company-map {
    height: 320px;
    margin-top: 50px;
  }

}

/* ==============================
   FOOTER
============================== */

.footer {
  margin: 60px 0 0;
  padding: 120px 0 50px;
  color: #fff;
  background: #B85C70;
}

.footer-inner {
  display: block;
  width: min(1200px, 90%);
  margin: 0 auto;
  text-align: center;
}


/* Logo */

.footer-logo {
  width: 100%;
  margin: 0 0 45px;
  text-align: center;
}

.footer-logo a {
  display: inline-block;
}

.footer-logo img {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 auto;
}


/* TEL / Instagram */

.footer-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin: 0 0 50px;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease;
}

.footer-sns a:hover {
  opacity: .65;
}

.footer-sns img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}


/* Navigation */

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin: 0 0 60px;
  padding: 0;
}

.footer-nav a {
  position: relative;
  display: block;
  padding: 0 40px;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  transition: opacity .3s ease;
}

.footer-nav a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, .55);
  transform: translate(-50%, -50%);
}

.footer-nav a:hover {
  opacity: .65;
}


/* Long Line */

.footer-line {
  width: min(900px, 90%);
  height: 1px;
  margin: 0 auto 35px;
  background: rgba(255, 255, 255, .4);
}


/* Copyright */

.copyright {
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .05em;
  text-align: center;
}


/* ==============================
   FOOTER SP
============================== */

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

  .footer {
    margin-top: 40px;
    padding: 85px 0 35px;
  }

  .footer-inner {
    display: block;
    width: 90%;
  }

  .footer-logo {
    margin-bottom: 40px;
  }

  .footer-logo img {
    width: 190px;
  }

  .footer-sns {
    gap: 18px;
    margin-bottom: 40px;
  }

  .footer-sns img {
    width: 38px;
    height: 38px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 0;
    margin-bottom: 45px;
    padding: 0;
  }

  .footer-nav a {
    padding: 12px 28px;
    font-size: 13px;
    writing-mode: horizontal-tb;
  }

  .footer-nav a + a::before {
    display: none;
  }

  .footer-nav a:nth-child(even)::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, .45);
    transform: translate(-50%, -50%);
  }

  .footer-line {
    width: 95%;
    margin-bottom: 25px;
  }

  .copyright {
    font-size: 12px;
  }

}
