/* 
  Generic LP Template - Base Styles
*/

:root {
  --color-primary: #8eb210;
  --color-secondary: #f59217;
  --color-text: #333333;
  --color-bg: #ffffff;
  --color-brown:#785e43;
  --container-width: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.header .container {
  max-width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero {
  padding: 100px 0;
  background-color: var(--color-secondary);
  text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item { text-align: center; padding: 30px; background: #fff; border: 1px solid #eee; border-radius: 10px; }
.feature-item .icon { font-size: 3rem; margin-bottom: 20px; }

/* Guide Cards */
.guide-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 5px solid #333;
}
.guide-card h3 { margin-bottom: 15px; font-size: 1.25rem; color: #333; }
.guide-card code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* Code Snippets */
.code-card {
  background: #282c34;
  color: #abb2bf;
  padding: 20px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.code-card p { color: #e06c75; }
.code-card pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.code-card code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  color: #98c379;
}

.contact-section { padding: 80px 0; background-color: var(--color-secondary); }
.contact-form { max-width: 600px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 10px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group label span { color: red; font-size: 0.8rem; margin-left: 5px; }

input, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; }

.btn { display: inline-block; border-radius: 5px; text-decoration: none; font-weight: bold; cursor: pointer; transition: opacity 0.3s; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-xl { padding: 20px 40px; font-size: 1.2rem; background: var(--color-primary); color: #fff; }

/* 画像がボタンの中身になっている場合はスタイルをリセット */
.btn:has(picture), .btn:has(.picture), .btn:has(img),
.footer-item:has(picture), .footer-item:has(.picture), .footer-item:has(img) { 
  padding: 0 !important; 
  background: transparent !important; 
  transition: all 0.3s ease;
}

/* 画像ボタンのホバーエフェクト */
.btn:has(picture):hover, .btn:has(.picture):hover, .btn:has(img):hover,
.footer-item:has(picture):hover, .footer-item:has(.picture):hover, .footer-item:has(img):hover {
  opacity: 0.85;
  transform: translateY(-3px);
}
.btn-submit { width: 100%; padding: 15px; background: var(--color-primary); color: #fff; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; cursor: pointer; }

/* --- Components --- */

/* FAQ */
.c-faq-list { max-width: 800px; margin: 0 auto; }
.c-faq-item { margin-bottom: 20px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; }
.c-faq-q { padding: 15px 20px; background: #f9f9f9; font-weight: bold; position: relative; padding-left: 50px; }
.c-faq-q::before { content: "Q"; position: absolute; left: 20px; color: var(--color-primary); font-size: 1.2rem; }
.c-faq-a { padding: 20px; background: #fff; line-height: 1.8; position: relative; padding-left: 50px; border-top: 1px solid #ddd; }
.c-faq-a::before { content: "A"; position: absolute; left: 20px; color: #e06c75; font-size: 1.2rem; font-weight: bold; }

/* CTA */
.u-bg-primary { background-color: var(--color-primary) !important; }
.u-text-white { color: #ffffff !important; }
.btn-white { background: #fff !important; color: var(--color-primary) !important; }
.btn-accent { background: var(--color-secondary) !important; color: #333 !important; }

/* Flow */
.c-flow-item { text-align: center; background: #fff; padding: 40px 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; }
.c-flow-item .num { 
  width: 40px; height: 40px; background: var(--color-primary); color: #fff; 
  border-radius: 50%; display: flex; align-items: center; justify-content: center; 
  margin: 0 auto 20px; font-weight: bold;
}
.c-flow-item h3 { margin-bottom: 15px; font-size: 1.1rem; }

.footer { padding: 40px 0; text-align: center; background: #333; color: #fff; }

/* Mobile Sticky Footer */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-footer .u-flex { display: flex; }
.mobile-footer .footer-item {
  flex: 1;
  text-align: center;
  padding: 15px 5px;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.item-tel { background-color: #0078d4; }
.item-email { background-color: #2fb9e5; }

@media (max-width: 768px) {
  body { padding-bottom: 70px; } /* Space for sticky footer */
  .hero h1 { font-size: 2rem; }
}

/* --- Navigation Drawer --- */
.nav-toggle {
  display: none;
  cursor: pointer;
  z-index: 3000;
  background: none;
  border: none;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
  margin-bottom: 6px;
  transition: 0.3s;
}
.nav-toggle span:last-child { margin-bottom: 0; }

.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 2500;
  transition: 0.3s;
  padding: 80px 40px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.nav-drawer.is-active { right: 0; }

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2400;
  display: none;
}
.nav-overlay.is-active { display: block; }

.nav-drawer ul li { margin-bottom: 20px; }
.nav-drawer ul li a { font-size: 1.2rem; font-weight: bold; color: #333; }
