/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #f7f3ef;
  min-height: 100vh;
}

@media (min-width: 768px) {
  body {
    background-color: #e0e0e0;
  }
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  max-width: 500px;
  margin: 0 auto;
  /* background: linear-gradient(135deg, #f7f3ef 0%, #ebe7e1 50%, #f0ede8 100%); */
  min-height: 100vh;
  background-image: url("../images/bg.webp");
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .container {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  }
}

.main-content {
  padding: 30px 20px 40px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1.25rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  text-align: center;
  margin-bottom: 0rem;
}

.site-header__logo {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   AR Title Section
   ========================================================================== */

.ar-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ar-title__image {
  width: 100%;
  max-width: 280px;
  margin-bottom: 1rem;
}

.ar-title__heading {
  font-family: "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  letter-spacing: 0.05em;
}

.ar-title__subheading {
  font-size: 0.95rem;
  color: #605850;
  margin: 0;
}

/* ==========================================================================
   Instructions Section
   ========================================================================== */

.ar-instructions {
  margin-bottom: 2.5rem;
}

.instructions-list {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.instruction-item:last-child {
  margin-bottom: 0;
}

.instruction-item__number {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4af37 0%, #c19660 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
}

.instruction-item__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1a1a1a;
}

/* ==========================================================================
   Start Button Section
   ========================================================================== */

.ar-start {
  text-align: center;
  margin: 2.5rem 0;
}

.back-to-top__link,
.ar-start__button {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #c19660 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  min-width: 200px;
  min-height: 44px;
  /* box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); */
  box-shadow: 0 8px 12px rgb(117 91 8 / 90%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.back-to-top__link::before,
.ar-start__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.back-to-top__link:hover,
.ar-start__button:hover {
  background: linear-gradient(135deg, #c19660 0%, #b08854 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.back-to-top__link:hover::before,
.ar-start__button:hover::before {
  left: 100%;
}

.back-to-top__link:active,
.ar-start__button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   Device Specs Section
   ========================================================================== */

.device-specs {
  margin-bottom: 2.5rem;
}

.specs-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* display: flex; */
  gap: 1.5rem;
}

.specs-group {
  flex: 1;
  margin-bottom: 1rem;
}

.specs-group:last-child {
  margin-bottom: 0;
}
.specs-group__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.specs-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #605850;
  line-height: 1.8;
}

/* ==========================================================================
   Notes Section
   ========================================================================== */

.notes {
  margin-bottom: 2.5rem;
}

.notes__list {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  list-style: none;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.8;
}

.notes__list li {
  position: relative;
  padding-left: 1rem;
  color: #605850;
}

.notes__list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.65rem;
}

.footer-link {
  text-align: center;
  margin-bottom: 1rem;
}
.footer-link .faq-link {
  line-height: 1;
}
.footer-link a {
  display: inline-block;
  color: #000;
  text-decoration: underline;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  transition: opacity 0.3s ease;
}
.footer-link a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   FAQ Page
   ========================================================================== */

.faq-content {
  margin-bottom: 2rem;
}

.faq-items {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-height: 44px;
  transition: background-color 0.3s ease;
}

.faq-item__question:hover {
  background: rgba(212, 175, 55, 0.08);
}

.faq-item__question-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.faq-item__label {
  flex-shrink: 0;
  background: linear-gradient(135deg, #d4af37 0%, #c19660 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

.faq-item__question-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.5;
}

.faq-item__toggle {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: #d4af37;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__toggle {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  transition: max-height 0.4s ease-out;
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.faq-item__answer-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, #605850 0%, #4a4440 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

.faq-item__answer-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #605850;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
  text-align: center;
  margin-top: 2rem;
}

.back-button {
  display: inline-block;
  background: linear-gradient(135deg, #605850 0%, #4a4440 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  min-height: 44px;
  box-shadow: 0 4px 15px rgba(96, 88, 80, 0.3);
  transition: all 0.3s ease;
}

.back-button:hover {
  background: linear-gradient(135deg, #4a4440 0%, #3a3430 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 88, 80, 0.4);
}

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

@media (max-width: 480px) {
  .main-content {
    padding: 15px 15px 35px;
  }

  .ar-title__heading {
    font-size: 1.5rem;
  }

  .ar-title__subheading {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.125rem;
  }

  .instructions-list {
    padding: 1.25rem;
  }

  .back-to-top__link,
  .ar-start__button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 280px;
  }

  .specs-container {
    flex-direction: column;
    gap: 1rem;
  }

  .faq-item__question {
    padding: 1rem;
  }

  .faq-item__question-text {
    font-size: 0.9rem;
  }

  .faq-item__answer-content {
    padding: 0.875rem 1rem 1rem;
  }
}
