/* ほうかんWEB 共通スタイル */

/* Google Fonts: Noto Sans JP */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* Base */
html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  color: #333;
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* Section spacing */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

/* Container */
.container-narrow {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* CTA pill button */
.btn-primary {
  display: inline-block;
  background-color: #F5A623;
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #e6951a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.btn-secondary {
  display: inline-block;
  background-color: #2D8B5E;
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}

.btn-secondary:hover {
  background-color: #24704d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 139, 94, 0.3);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #2D8B5E;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 9999px;
  border: 2px solid #2D8B5E;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-outline:hover {
  background-color: #2D8B5E;
  color: #fff;
}

/* Card shadow */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Section bg alternating */
.bg-warm {
  background-color: #FDF8F0;
}

.bg-light-green {
  background-color: #F0F8F4;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #2D8B5E 0%, #3AA876 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}

.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .cta-band h2 {
    font-size: 1.75rem;
  }
}

/* Page hero (sub pages) */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 768px) {
  .page-hero {
    height: 400px;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

/* Zigzag layout */
.zigzag-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .zigzag-item {
    flex-direction: row;
    gap: 48px;
  }
  .zigzag-item.reverse {
    flex-direction: row-reverse;
  }
  .zigzag-item .zigzag-img {
    width: 50%;
    flex-shrink: 0;
  }
  .zigzag-item .zigzag-text {
    width: 50%;
  }
}

.zigzag-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Heading styles */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.section-heading p {
  color: #666;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .section-heading h2 {
    font-size: 2.25rem;
  }
}

.section-heading .heading-accent {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: #2D8B5E;
  margin-bottom: 16px;
  border-radius: 2px;
}

/* Accordion (FAQ) */
.accordion-item {
  border-bottom: 1px solid #e5e5e5;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-btn::after {
  content: '+';
  font-size: 1.5rem;
  color: #2D8B5E;
  transition: transform 0.2s;
}

.accordion-btn.active::after {
  content: '-';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding: 0 0 20px 0;
  color: #666;
  line-height: 1.8;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2D8B5E;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo img {
  height: 60px;
  width: auto;
}

.header-logo span {
  color: #F5A623;
}

.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    gap: 28px;
    align-items: center;
  }
  .header-nav a {
    color: #555;
    font-size: 0.85rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
  }
  .header-nav a:hover {
    color: #2D8B5E;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: none;
}

@media (min-width: 768px) {
  .header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
  }
  .header-phone .phone-label {
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
  }
}

.header-cta {
  display: inline-block;
  background-color: #F5A623;
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.2s;
}

.header-cta:hover {
  background-color: #e6951a;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.2s;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 99;
  padding: 24px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.mobile-menu .mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px;
  background: #F0F8F4;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Footer */
.site-footer {
  background: #1a3a2a;
  color: #ccc;
  padding: 60px 20px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  height: 52px;
  width: auto;
}

.footer-logo span {
  color: #F5A623;
}

.footer-desc {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #F5A623;
}

.footer-contact-info {
  font-size: 0.875rem;
}

.footer-contact-info .phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-company {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  padding: 16px 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #777;
}

/* Utility */
.text-green { color: #2D8B5E; }
.text-orange { color: #F5A623; }
.bg-green { background-color: #2D8B5E; }
.bg-orange { background-color: #F5A623; }

/* ============================================
   MOBILE ENHANCEMENTS (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {

  /* --- Touch targets: minimum 44px --- */
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* CTA band buttons: full width on mobile */
  .cta-band .btn-primary,
  .cta-band .btn-secondary,
  .cta-band .btn-outline {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Header: menu toggle & CTA touch target --- */
  .menu-toggle {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }

  .header-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .header-inner {
    height: 64px;
  }

  /* --- Mobile menu: full screen, scrollable --- */
  .mobile-menu {
    top: 64px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
  }

  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
  }

  .mobile-menu .mobile-phone {
    min-height: 48px;
    justify-content: center;
    font-size: 1.25rem;
  }

  /* --- body margin-top adjustment for smaller header --- */
  body {
    margin-top: 64px !important;
  }

  /* --- Font sizes: prevent horizontal scroll --- */
  .page-hero h1 {
    font-size: 1.5rem;
    padding: 0 16px;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  /* --- Section padding: tighter on mobile --- */
  .section-padding {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* --- Container: ensure minimum side padding --- */
  .container-narrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* --- CTA band --- */
  .cta-band {
    padding: 40px 16px;
  }

  .cta-band h2 {
    font-size: 1.25rem;
  }

  /* CTA band button wrapper: stack vertically */
  .cta-btn-wrap {
    flex-direction: column !important;
    align-items: center !important;
  }

  .cta-btn-wrap .btn-primary,
  .cta-btn-wrap .btn-secondary {
    width: 100%;
    max-width: 400px;
  }

  /* --- Page hero height on mobile --- */
  .page-hero {
    height: 220px;
  }

  /* --- Accordion touch target --- */
  .accordion-btn {
    min-height: 44px;
    padding: 16px 0;
    font-size: 0.95rem;
  }

  /* --- Footer: tap target for nav links --- */
  .footer-nav {
    gap: 8px 24px;
  }

  .footer-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .site-footer {
    padding: 40px 16px 20px;
  }

  /* --- Forms: iOS Safari auto-zoom prevention --- */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* --- Images: ensure max-width --- */
  img {
    max-width: 100%;
    height: auto;
  }

  /* --- Zigzag text on mobile --- */
  .zigzag-text h2,
  .zigzag-text h3 {
    font-size: 1.25rem !important;
  }

  /* --- Footer tighter on mobile --- */
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
  .footer-contact-info .phone {
    font-size: 1.4rem;
  }
  .footer-company p {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  /* --- CTA band new: mobile phone number size --- */
  .cta-phone-number {
    font-size: 2rem;
  }
}

/* ============================================
   SMALL SCREEN (max-width: 375px)
   ============================================ */
@media (max-width: 375px) {
  .section-heading h2 {
    font-size: 1.2rem;
  }
  .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-hero {
    height: 180px;
  }
  .page-hero h1 {
    font-size: 1.25rem;
  }
  .cta-upper-heading {
    font-size: 1.2rem;
  }
  .cta-phone-number {
    font-size: 1.75rem;
  }
  .cta-form-btn {
    padding: 14px 32px;
    font-size: 0.95rem;
  }
  .footer-nav {
    gap: 4px 16px;
  }
  .footer-nav a {
    font-size: 0.8rem;
  }
  .zigzag-text h2,
  .zigzag-text h3 {
    font-size: 1.1rem !important;
  }
  .zigzag-text p {
    font-size: 0.85rem;
  }
  .accordion-btn {
    font-size: 0.875rem;
  }
  .accordion-content p {
    font-size: 0.85rem;
  }
}

/* ===== CTA Band New (shared) ===== */
.cta-band-new { overflow: hidden; }
.cta-upper {
  background: linear-gradient(135deg, #2D8B5E 0%, #3AA876 50%, #2D8B5E 100%);
  padding: 40px 20px 36px;
  text-align: center;
}
.cta-upper-inner { max-width: 800px; margin: 0 auto; }
.cta-upper-heading {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-upper-strong {
  font-size: 1.2em;
  font-weight: 900;
  border-bottom: 3px solid #F5A623;
  padding-bottom: 2px;
}
.cta-upper-sub {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .cta-upper { padding: 52px 20px 44px; }
  .cta-upper-heading { font-size: 2rem; }
  .cta-upper-sub { font-size: 1rem; }
}
.cta-lower {
  background: #fff;
  padding: 40px 20px 48px;
}
.cta-lower-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .cta-lower { padding: 48px 20px 56px; }
  .cta-lower-inner {
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: center;
  }
}
.cta-phone-block { text-align: center; }
.cta-phone-label {
  display: inline-block;
  background: #2D8B5E;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.cta-phone-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.cta-phone-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.cta-phone-tags span {
  font-size: 0.75rem;
  color: #666;
  border: 1px solid #ddd;
  padding: 3px 12px;
  border-radius: 4px;
}
@media (min-width: 768px) {
  .cta-phone-label { font-size: 0.85rem; }
  .cta-phone-number { font-size: 3rem; }
}
.cta-form-block { text-align: center; }
.cta-form-label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 12px;
  font-weight: 600;
}
.cta-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #F5A623, #e8941a);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 20px 48px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245,166,35,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.cta-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.45);
}
.cta-form-arrow {
  font-size: 1.5em;
  line-height: 1;
}
@media (min-width: 768px) {
  .cta-form-btn { font-size: 1.35rem; padding: 24px 56px; }
}
