@font-face {
    font-family: "Noto Serif JP";
    src: url('NotoSerifJP-ExtraLight.ttf');
}

:root {
  --color-bg: #E9E9E9;
  --color-text: #000000;
  --color-accent: #273F4F;
  --color-highlight: #FE7743;
  --font-heading: "Noto Serif JP", serif;
  --font-body: "Noto Serif JP", serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: rgb(70, 70, 70);
  font-size: 1.4rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-highlight);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

button, .btn {
  background: var(--color-accent);
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background: var(--color-highlight);
  cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
  color: rgb(70, 70, 70);
}

section {
  padding: 4rem 0;
}

/* header */
header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(239, 238, 234, 0.5);
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    width: 7rem;
    height: auto;
}

.ul-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.ul-links a {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ul-links a:hover {
  color: var(--color-highlight);
}

#nav-icon {
    display: none;
    width: 60px;
    height: 45px;
    position: relative;
    right: 0;
    /* margin: 1rem; */
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon > span {
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    background-color: var(--color-text);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(2) {
  top: 18px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(3) {
  top: 36px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -3px;
  left: 8px;
}

#nav-icon.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 39px;
  left: 8px;
}

@media screen and (max-width:768px){
  .container {
    padding: 0 1rem;
  }

  .ul-links {
    align-items: end;
    position: fixed;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    flex-direction: column;
    gap: 1.5rem;
    top: 61px;
    right: 0;
    width: 100%;
    padding: 0;
    backdrop-filter: blur(5px);
    background-color: rgba(239,238,234,0.9);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .ul-links li {
    border-bottom: 1px solid var(--color-accent);
  }
   
  .ul-links.active, .nav-button.active {
    max-height: 500px;       /* enough height to reveal items */
    opacity: 1;
    padding: 1rem;
  }

  .ul-links li {
    text-align: center;
  }

  #nav-icon {
    display: block;
    cursor: pointer;
  }
}

/* hero section */
.hero {
  position: relative;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.7);
  z-index: 1;
}

.hero-slider {
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255,255,255,0.4);
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  display: block;
  width: 100%;
}

.arrows {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}
.arrows button {
  background: rgba(255,255,255,0.5);
  border: none;
  color: #fff;
  font-size: .9rem;
  padding: 8px 12px;
  /* border-radius: 50%; */
  cursor: pointer;
  transition: background 0.3s;
}
.arrows button:hover {
  background: var(--color-accent);
}

/* about */
.about-section {
  position: relative;
  padding: 4rem 0;
}

.about-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 1;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-accent); /* accent orange */
  padding-left: 10px;
}

.about-text p {
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-image {
  flex: 1 1 40%;
}

.about-image img {
  max-width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* why */

#why {
  position: relative;
  padding: 4rem 0;
}

.why-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 1;
  order: 1;
}

.why-text {
  flex: 1 1 50%;
}

.why-text h2 {
  text-align: right;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-right: 4px solid var(--color-accent); /* accent orange */
  padding-right: 10px;
}

.why-text p {
  text-align: right;
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.why-image {
  flex: 1 1 40%;
}

.why-image img {
  max-width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.why-image img:hover {
  transform: scale(1.05);
}

/* product */
#products {
  position: relative;
  padding: 4rem 0;
  text-align: center;
}

.product-content h2 {
  display: inline-block;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 4px solid var(--color-accent); /* accent orange */
  padding-bottom: 10px;
}

.product-content p {
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.suit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0 auto;
}

.suit-card {
    position: relative; 
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.05); */
    cursor: pointer;
    transform: translateY(20px);
    transition: transform 0.6s ease-out;
}

.suit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(255,255,255,0.1));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.suit-card:hover .card-overlay {
    opacity: 1;
}

.suit-card:hover img {
    transform: scale(1.05);
}

.card-overlay h3 {
  color: var(--color-bg);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.suit-card:hover .card-overlay p {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .suit-grid {
        grid-template-columns: repeat(2, 1fr);
    }/* --- Process Section General Styling --- */
  }

@media (max-width:768px) {
  #products, #why, .about-section {
    padding: 2rem .5rem;
  }
  .why-content {
    flex-direction: column;
  }

  .why-text {
    order: 1; /* show text first */
    text-align: center;
  }

  .why-image {
    order: 2; /* image comes after */
  }
}

/* process */
/* --- Process Section General Styling --- */
.process-section {
    width: 100%;
    /* padding: 80px 0;  */
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
  display: inline-block;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 4px solid var(--color-accent); 
  padding-bottom: 10px;
}

.section-header p {
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.process-slider-container {
    width: 100%;
    overflow: hidden; 
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.process-track {
    display: flex;
    width: 200%; 
    animation: slide 35s linear infinite;
}

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

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* Each step takes up 1/10th of the total track width, so 5 are visible at a time */
    width: 10%; 
    padding: 2rem;
    box-sizing: border-box; /* Ensures padding is included in the width calculation */
    border-right: 1px solid #e0e0e0;
}

.process-step:last-child {
    border-right: none;
}

.step-number {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step:hover .step-number {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}


@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  .process-track {
    width: 1000%;
    animation: slide 50s linear infinite; 
  }
  .process-step {
    width: auto;
    padding: 1rem .5rem;
  }
  .step-number {
    font-size: 1.5rem;
    margin-bottom: .1rem;
    width: 3rem;
    height: 3rem;
  }
  .process-step h3 {
    font-size: 1.rem;
    margin-bottom: 0.5rem;
  }
  .process-step p {
    font-size: 0.9rem;
    max-width: 60vw;
    margin: 0 auto;
  }
  .form-container, .submit {
    width: auto;
  }
}

#contact {
  padding: 4rem 0 0 0;
}

/* about */
.map-container {
  margin-top: 50px;
  width: 100%;
  height: 50%;
}

footer {
  background-color: var(--color-accent);
  margin-top: 7rem;
}

footer p {
  color: var(--color-bg);
  text-align: center;
  margin: 0;
}

/* reservation */
#reservation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.form-container {
  background: #fff;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.form-container h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
}

.form-container p {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff6600;
  outline: none;
}

textarea {
  resize: vertical;
}

.submit {
  text-align: center;
  width: 104%;
  cursor: pointer;
}

@media (max-width:768px) {
  .form-container {
    width: unset;
    padding: 40px 50px;
  }
  .submit {
    width: unset;
  }
}