* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0E0F0A;
  --white: #BAA789;
  --white-rgb: 186, 167, 137;
  --light-brown: #887662;
  --light-brown-rgb: 158, 125, 92;
  --dark-brown: #463B29;
  --dark-brown-rgb: 58, 31, 12;
}

.shippori-mincho-b1-regular {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 400;
  font-style: normal;
}

.shippori-mincho-b1-bold {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-display: swap;
  line-height: 1.8;
  color: var(--black);
}

header {
  background: var(--dark-brown);
  padding: .8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  height: 45px;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  height: calc(100vh - 57.794px);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--dark-brown) 0%, var(--light-brown) 100%);
  padding: 0;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero img {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 55vh;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.hero-text {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  color: white;
  text-align: left;
  opacity: 0;
  letter-spacing: 2px;
  animation: 1s ease-in-out 0s forwards fade-in;
}

@media (min-width: 1200px) {
  .hero-text {
    left: calc(50% - 600px + 2rem);
  }
}

.hero-text h1 {
  font-size: 1.7rem;
  margin: 0 0 .5rem;
  font-weight: normal;
}

.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: 
    bounce-fade-in 1s ease-in-out 2s forwards,
    bounce 2s ease-in-out 3s infinite;
  z-index: 2;
  color: var(--white);
}

.scroll-indicator span {
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--white);
  opacity: 0.5;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

@keyframes bounce-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%);
  }
  to {
    opacity: 0.8;
    transform: translateX(-50%);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-brown);
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--dark-brown);
}

.philosophy {
  background: rgba(var(--white-rgb), 0.7);
}

.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 1px;
}

.philosophy-content p {
  margin-bottom: 1.5rem;
}

.services {
  background-color: rgba(var(--white-rgb), 0.4);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
}

.service-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-content ul,
.product-content ul,
.access-card ul {
  list-style: none;
  width: fit-content;
  text-align: left;
}

.service-content ul,
.access-card ul {
  margin-bottom: 1rem;
}

.service-content ul li,
.product-content ul li,
.access-card ul li {
  margin-left: 0;
}

.service-content ul li:before,
.product-content ul li:before,
.access-card ul li:before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  background-color: var(--light-brown);
  position: relative;
  top: -1px;
  margin-right: 8px;
}

.service-content p {
  font-size: .9rem;
}

.products {
  background-color: rgba(var(--white-rgb), 0.1);
}

.product-title {
  background-color: rgba(var(--white-rgb), 0.7);
  padding: .5rem .8rem;
  width: fit-content;
}

.product-title h3 {
  color: var(--dark-brown);
  font-size: 1.1rem;
}

.products-subtext {
  font-size: .8rem;
  color: var(--black);
  margin-bottom: .5rem;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-accordion,
.product-no-accordion {
  background: white;
  overflow: hidden;
}

.product-accordion .product-header,
.product-no-accordion .product-header {
  display: flex;
  background: white;
  color: var(--dark-brown);
  height: 100px;
}

.product-accordion .product-header {
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-accordion.open .product-header {
  background: var(--light-brown);
  color: white;
}

.product-header-text {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
}

.product-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
  margin-right: 1rem;
  margin-top: .1rem;
}

.product-accordion.open .product-arrow {
  transform: rotate(180deg);
}

.product-header-title {
  font-size: 1.3rem;
}

.product-no-accordion .product-header-title{
  margin-left: 2.2rem;
}

.product-image {
  height: 100%;
  margin-left: auto;
}

.product-image img {
  height: 100%;
}

.product-content {
  max-height: 0;
  background: rgba(var(--white-rgb), 0.4);
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.product-accordion.open .product-content {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.product-detail-grid {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-detail {
  background: white;
  padding: 1rem 1.5rem;
}

.product-name {
  font-size: .9rem;
}

.about {
  background: rgba(var(--white-rgb), 0.4);
}

.about-content {
  margin-bottom: 3rem;
}

.about-content h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.about-table {
  width: 100%;
}

.about-table th,
.about-table td {
  font-size: .9rem;
  background-color: white;
  text-align: left;
  vertical-align: text-top;
  padding: .5rem;
}

.about-table th {
  color: var(--dark-brown);
  width: 120px;
}

.about-card {
  background: white;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-size: .9rem;
}

.about-card h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--dark-brown);
  padding-bottom: 0.5rem;
}

.access {
  background-color: rgba(var(--white-rgb), 0.1);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc((100% - 2rem) / 2), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.access-card {
  text-align: left;
  font-size: .9rem;
}

.access-card h3 {
  color: var(--dark-brown);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.access-card a,
.access-card ul li a {
  color: inherit;
  text-decoration: none;
}

.access-card .sp-tel {
  display: none;
}

.access-card iframe {
  width: 100%;
  height: 300px;
  border:0;
  margin-top: 1rem;
}

footer {
  background: var(--dark-brown);
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: .8rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px) scale(0.8);
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.progress-circle {
  width: 60px;
  height: 60px;
  position: relative;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle-bg {
  fill: none;
  stroke: rgba(var(--white-rgb), 0.2);
  stroke-width: 3;
}

.progress-circle-fill {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 158;
  stroke-dashoffset: 158;
  transition: stroke-dashoffset 0.1s;
}

.progress-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(var(--white-rgb), 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  transition: all 0.3s;
}


@media (hover: hover){
  nav a:hover {
    opacity: 0.7;
  }

  .product-accordion .product-header:hover {
    background: rgba(var(--white-rgb), 0.4);
  }

  .product-accordion.open .product-header:hover {
    background: var(--light-brown);
  }

  .access-card ul li a:hover {
    color: var(--dark-brown);
  }

  .back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
  } 

  .back-to-top:hover .progress-icon {
    background: var(--white);
    color: var(--dark-brown);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-brown);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  nav li {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .hero-text {
    top: 4rem;
    left: 1rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  section {
    padding: 3rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  .philosophy-content {
    font-size: .9rem;
    letter-spacing: .8px;
  }

  .services-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .product-accordion .product-header,
  .product-no-accordion .product-header {
    height: 60px;
  }
    
  .product-header-text {
    padding: 1.5rem 1rem;
  }

  .product-arrow {
    font-size: 1rem;
    margin-right: .5rem;
    margin-top: .2rem;
  }

  .product-header-title {
    font-size: 1.1rem;
  }

  .product-no-accordion .product-header-title{
    margin-left: 1.5rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .product-detail {
    padding: 1rem;
  }

  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
  }

  .about-table th {
    padding-bottom: 0;
  }

  .access-card .sp-tel {
    display: inline;
  }

  .access-card .pc-tel {
    display: none;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

}