/* ============================================
   Nicori - 訪問口腔ケアサービス
   style.css
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #ffffff;
  --color-bg-alt: #f8f8f8;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-accent: #e8641b;
  --color-accent-hover: #d05a18;
  --color-accent-light: #fff5ee;
  --color-accent-bg: #fef3ec;
  --color-border: #e0e0e0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --max-width: 1080px;
  --header-height: 70px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-accent-hover);
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-list a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list a:hover {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Main --- */
main {
  margin-top: var(--header-height);
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--accent-light {
  background: var(--color-accent-light);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  font-size: 15px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  border: none;
  letter-spacing: 0.04em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-accent-light) 0%, var(--color-white) 100%);
}

.hero-logo {
  width: 140px;
  margin: 0 auto 32px;
}

.hero-catch {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero-sub {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* --- Problems --- */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.problems-group h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.problem-item .icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.8;
}

.problem-item p {
  font-size: 15px;
}

/* --- Service --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Merit --- */
.merit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.merit-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.merit-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.merit-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.merit-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Flow --- */
.flow-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.flow-step {
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  position: relative;
}

.flow-step-number {
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.flow-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--color-accent);
  padding-top: 14px;
}

/* --- Price --- */
.price-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.price-amount small {
  font-size: 20px;
  font-weight: 400;
}

.price-note {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.price-description {
  font-size: 15px;
  color: var(--color-text-light);
  margin-top: 16px;
  margin-bottom: 32px;
}

/* --- Area --- */
.area-content {
  text-align: center;
}

.area-main {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.area-note {
  color: var(--color-text-light);
  font-size: 15px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::before {
  content: "Q.";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}

.faq-toggle::before {
  width: 14px;
  height: 2px;
}

.faq-toggle::after {
  width: 2px;
  height: 14px;
}

.faq-item.active .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 16px 0 4px 28px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, #f08030 100%);
  text-align: center;
  color: var(--color-white);
}

.cta-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-white);
}

.cta-section p {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-section .btn {
  background: var(--color-white);
  color: var(--color-accent);
  font-weight: 700;
}

.cta-section .btn:hover {
  background: #f5f5f5;
  color: var(--color-accent-hover);
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: #aaaaaa;
  padding: 40px 0 24px;
  font-size: 13px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #aaaaaa;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  color: #888888;
  font-size: 12px;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
  padding: 80px 0;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--color-accent);
  font-size: 12px;
  margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-family);
  transition: border-color 0.3s;
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 100, 27, 0.1);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.form-radio-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.form-radio-group input[type="radio"] {
  accent-color: var(--color-accent);
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-submit .btn {
  min-width: 240px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Form Messages */
.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 15px;
}

.form-message--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message--error {
  background: #ffeef0;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.form-errors {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.form-errors li {
  list-style: disc;
  margin-bottom: 4px;
}

/* Thank you page */
.thanks-content {
  text-align: center;
  padding: 60px 20px;
}

.thanks-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.thanks-content p {
  margin-bottom: 32px;
  color: var(--color-text-light);
}

/* ============================================
   Privacy Policy Page
   ============================================ */
.privacy-section {
  padding: 80px 0;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   Page Header (sub pages)
   ============================================ */
.page-header {
  background: var(--color-bg-alt);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    padding-top: calc(var(--header-height) + 20px);
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list a {
    display: block;
    padding: 16px 0;
    font-size: 15px;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
    display: block;
    border-radius: 8px;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    padding: 60px 0;
  }

  .hero-logo {
    width: 110px;
  }

  .hero-catch {
    font-size: 24px;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 22px;
  }

  /* Problems */
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Service */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  /* Merit */
  .merit-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Flow */
  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .flow-step {
    max-width: 300px;
  }

  /* Price */
  .price-box {
    padding: 32px 24px;
  }

  .price-amount {
    font-size: 36px;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 22px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-catch {
    font-size: 21px;
  }

  .btn {
    padding: 14px 32px;
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  .price-amount {
    font-size: 30px;
  }
}
