/* index.php 固有のスタイル */

/* Hero */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.hero-content {
  max-width: 800px;
}

.hero-label {
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  display: block;
  color: var(--color-mustard);
}

.hero h1 {
  font-size: clamp(1.9rem, 8.1vw, 4.5rem);
  margin-bottom: 30px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero h1 span {
  display: inline-block;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0.9;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 40px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-blue);
  color: white;
  border: none;
}

.btn-outline {
  border: 1px solid white;
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--ink-secondary);
  font-size: 1.1rem;
}

/* Solution Grid */
.solution-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
}

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

@media (min-width: 992px) {
  .solution-item {
    grid-template-columns: 1fr 1fr;
  }
  .solution-item.reverse .solution-content {
    order: 1;
  }
  .solution-item.reverse .solution-image {
    order: 2;
  }
}

.solution-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

.solution-content span {
  color: var(--color-teal);
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.solution-content h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.solution-content p {
  color: var(--ink-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Demo Section */
.demo-bg {
  background: white;
  border-top: 1px solid var(--border);
}

.demo-grid {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .demo-grid {
    flex-direction: row;
  }
}

.demo-banner {
  flex: 1;
  display: block;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}

.demo-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.demo-banner:hover {
  filter: brightness(1.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  z-index: 2;
}

.demo-banner:hover img {
  transform: none;
}

/* Border Radius Control */
@media (min-width: 768px) {
  .banner-ryokan { border-radius: 12px 0 0 12px; }
  .banner-minpaku { border-radius: 0 12px 12px 0; }
}

@media (max-width: 767px) {
  .banner-ryokan { border-radius: 12px 12px 0 0; }
  .banner-minpaku { border-radius: 0 0 12px 12px; }
}

.demo-info {
  margin-top: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.demo-info p {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
}

/* Benefits Grid (Icon-based) */
.benefits-bg {
  background: var(--paper-warm);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.benefit-card {
  background: white;
  padding: 50px 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.benefit-card p {
  color: var(--ink-secondary);
}

/* Contact */
.contact-bg {
  background: #111;
  color: white;
}

.contact-flex {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (min-width: 992px) {
  .contact-flex {
    flex-direction: row;
  }
  .contact-info {
    flex: 1;
  }
  .contact-form {
    flex: 1.5;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 18px;
  background: #222;
  border: 1px solid #333;
  color: white;
  border-radius: 4px;
  font-family: inherit;
}

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: #2a2a2a;
}

/* Radio Group Styles */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.radio-label:hover {
  opacity: 1;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-blue);
}

.required-tag {
  color: #ff4d4d;
  font-size: 0.75rem;
  margin-left: 5px;
  vertical-align: middle;
  background: rgba(255, 77, 77, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Chrome/Safari autofill background fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0px 1000px #222 inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Pain Points */
.pain-bg {
  background: var(--paper-off);
  border-top: 1px solid var(--border);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.pain-card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.pain-card .icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}
.pain-card h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--ink-primary);
}
.pain-card p {
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

/* Features Detail */
.features-bg {
  background: white;
  border-top: 1px solid var(--border);
}
.features-layout {
  width: 100%;
}
.step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  position: relative;
}
@media (min-width: 992px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}
.step-item {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}
.step-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-blue);
  background: rgba(0, 131, 191, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}
/* Flow arrow */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 2;
  display: block;
}
@media (max-width: 991px) {
  .step-item:not(:last-child)::after {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-blue);
    border-bottom: 2px solid var(--color-blue);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.4;
  }
}
@media (min-width: 992px) {
  .step-item:not(:last-child)::after {
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-blue);
    border-top: 2px solid var(--color-blue);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.4;
  }
}
.step-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: var(--font-serif);
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.feature-tag {
  background: var(--paper-warm);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-blue);
}

/* Pricing */
.pricing-bg {
  background: var(--paper-warm);
}
.pricing-card {
  background: white;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}
.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.pricing-card p {
  margin-bottom: 40px;
  color: var(--ink-secondary);
}

/* FAQ */
#faq {
  background: var(--paper-off);
  border-top: 1px solid var(--border);
}
.faq-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 60px 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-primary);
}
.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--color-blue);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-answer p {
  padding: 0 0 30px 0;
  color: var(--ink-secondary);
  line-height: 1.8;
}

/* Footer Enhancements */
.footer-details {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #222;
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-info { text-align: left; }
.footer-info h4 { color: var(--color-blue); margin-bottom: 10px; }
