/* ===================================================
   smartphone.css — シニア向けスマホサポートLP
=================================================== */

/* ===================== WP THEME OVERRIDES ===================== */
.page-template-smartphone,
.page-template-smartphone * {
  font-family: 'Zen Maru Gothic', sans-serif !important;
  box-sizing: border-box;
}
.page-template-smartphone { font-size: 15px; }

:where(.page-template-smartphone) h1,
:where(.page-template-smartphone) h2,
:where(.page-template-smartphone) h3,
:where(.page-template-smartphone) p,
:where(.page-template-smartphone) ul,
:where(.page-template-smartphone) ol,
:where(.page-template-smartphone) li {
  margin: 0;
  padding: 0;
}

.page-template-smartphone img { display: block; }

.page-template-smartphone .s2-service-photo img,
.page-template-smartphone .s2-staff-photo img { width: 100%; height: 100%; object-fit: cover; }

.page-template-smartphone .s2-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.page-template-smartphone .s2-course-card img { width: 100%; height: 180px; object-fit: cover; }

.page-template-smartphone a { color: inherit; text-decoration: none; }
.page-template-smartphone a:hover { text-decoration: none; }
.page-template-smartphone .s2-cta-mail,
.page-template-smartphone .s2-footer-cta-btn { color: #fff !important; letter-spacing: normal !important; }

.page-template-smartphone .s2-hero {
  position: relative !important;
  overflow: hidden !important;
  background: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* フッターへの変数汚染防止 */
.page-template-smartphone .footer-nav,
.page-template-smartphone .footer-navigation,
.page-template-smartphone .site-footer nav { background: transparent !important; }

/* FAQ overrides */
.page-template-smartphone .s2-faq-q.faq-question::before,
.page-template-smartphone .s2-faq-q.faq-question::after { display: none !important; content: none !important; }
.page-template-smartphone .s2-faq-q.faq-question {
  background: #f5f9f1 !important;
  border: 1px solid #d8e8cc !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
}

/* ===================== CSS VARIABLES ===================== */
:root {
  --s2-green: #668e47;
  --s2-green-dark: #4a6b32;
  --s2-green-pale: #eaf2e3;
  --s2-orange: #e87d29;
  --s2-text: #2c2c2c;
  --s2-text-light: #666;
  --s2-cream: #f7f5f0;
  --s2-border: #e0e0e0;
}

/* ===================== ANIMATIONS ===================== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===================== LAYOUT ===================== */
.s2-inner { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.s2-section { padding: 64px 0; }
.s2-section--white { background: #fff; }
.s2-section--cream { background: var(--s2-cream); }

.s2-wave { overflow: hidden; line-height: 0; }
.s2-wave svg { display: block; width: 100%; }

/* ===================== HERO ===================== */
.s2-hero { min-height: 460px; }

.s2-hero-bg {
  position: absolute;
  top: 0; right: -400px; bottom: 0;
  width: 90%;
  z-index: 0;
}

.s2-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 46%,
    rgba(255,255,255,0.6) 52%,
    rgba(255,255,255,0.1) 62%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

.s2-hero-stamp {
  position: absolute;
  bottom: 60px;
  right: 24px;
  z-index: 3;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: var(--s2-green-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.s2-hero-stamp::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid var(--s2-green);
  pointer-events: none;
}
.s2-hero-stamp-sub {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.s2-hero-stamp-main {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.s2-hero-body {
  position: relative;
  z-index: 2;
  padding: 52px 48px 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.s2-hero-content {
  max-width: 46%;
  padding-bottom: 32px;
}

.s2-hero-title {
  font-family: 'Noto Serif JP', serif !important;
  font-size: clamp(34px, 4.8vw, 56px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--s2-text) !important;
  margin-bottom: 14px !important;
}

.s2-hero-sub {
  font-size: clamp(17px, 2vw, 22px); font-weight: 700;
  line-height: 1.7;
  color: var(--s2-text); margin-bottom: 18px;
}

.s2-hero-label {
  font-size: 17px; font-weight: 700;
  color: var(--s2-green-dark);
  margin-bottom: 10px;
}

.s2-hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.s2-hero-tag {
  font-size: 12px; font-weight: 700;
  background: var(--s2-green); color: #fff;
  padding: 2px 20px; border-radius: 20px;
}

.s2-hero-note { font-size: 16px; color: var(--s2-text-light); margin-bottom: 20px; }

/* ===================== CTA ===================== */
.s2-hero-cta {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.s2-cta-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--s2-orange);
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
}
.s2-cta-mail:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.s2-cta-mail-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #fff;
}
.s2-cta-mail-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.s2-cta-mail-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}
.s2-cta-mail-note {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}

.s2-cta-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid var(--s2-green);
  border-radius: 8px;
}
.s2-cta-tel-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--s2-green);
}
.s2-cta-tel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.2;
}
.s2-cta-tel-label { font-size: 12px; color: var(--s2-text-light); }
.s2-cta-tel-num { font-size: 18px; font-weight: 900; color: var(--s2-text); letter-spacing: 0.04em; }
.s2-cta-tel-hours { font-size: 12px; color: var(--s2-text-light); }

.s2-hero-wave { position: relative; width: 100%; line-height: 0; z-index: 3; }
.s2-hero-wave svg { display: block; width: 100%; }

/* ===================== HEADING ===================== */
.s2-heading {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900; color: var(--s2-text);
  line-height: 1.4; margin-bottom: 28px;
  text-align: center;
}
.s2-heading--deco {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.s2-deco-icon { flex-shrink: 0; display: block; }
.s2-t-green { color: var(--s2-green); }

/* ===================== WORRIES ===================== */
.s2-worry-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.s2-worry-item {
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--s2-green-pale);
  border-radius: 12px;
  padding: 16px 8px 14px;
}
.s2-worry-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.s2-worry-icon img { width: 60px; height: 60px; object-fit: contain; }
.s2-worry-text { font-weight: 700; color: var(--s2-text); line-height: 1.7; }

.s2-worry-note {
  color: var(--s2-green-dark);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 0; margin-bottom: 20px;
}

.s2-guarantee-grid {
  background: #fff;
  border: 1.5px solid var(--s2-green-pale);
  border-radius: 16px;
  overflow: hidden;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.s2-guarantee-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 20px;
}
.s2-guarantee-item + .s2-guarantee-item {
  border-left: 1.5px solid var(--s2-green-pale);
}
.s2-guarantee-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.s2-guarantee-icon img { width: 60px; height: 60px; object-fit: contain; }
.s2-guarantee-title { font-size: 15px; font-weight: 900; color: var(--s2-green-dark); margin-bottom: 6px; }
.s2-guarantee-text { color: var(--s2-text-light); line-height: 1.8; }

/* ===================== SERVICES ===================== */
.s2-service-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.s2-service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--s2-cream);
  border-radius: 16px;
  border: 1.5px solid rgba(102,142,71,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.s2-service-bg {
  position: absolute;
  inset: 0;
  background-size: auto 100%;
  background-position: calc(100% + 120px) center;
  background-repeat: no-repeat;
  z-index: 0;
  border-radius: 16px;
}
.s2-service-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  background: linear-gradient(to right,
    rgba(247,245,240,1)  0%,
    rgba(247,245,240,1)  50%,
    rgba(247,245,240,.85) 56%,
    rgba(247,245,240,.55) 62%,
    rgba(247,245,240,.20) 68%,
    rgba(247,245,240,0)  74%
  );
  z-index: 1;
}

.s2-service-top {
  position: relative; z-index: 2;
}
.s2-service-top-inner {
  padding: 24px 26px;
  max-width: 58%;
  display: flex; flex-direction: column; gap: 10px;
}

.s2-service-bottom {
  position: relative; z-index: 2;
  padding: 16px 26px 24px;
  max-width: 58%;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}

.s2-service-badge {
  position: absolute;
  top: -13px; left: 26px;
  z-index: 3;
  display: inline-block;
  background: var(--s2-green); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 24px; border-radius: 2px;
  min-width: 120px; text-align: center;
}
.s2-service-title { font-size: 20px; font-weight: 900; color: var(--s2-text); line-height: 1.3; white-space: nowrap; }
.s2-service-desc { color: var(--s2-text-light); line-height: 1.8; }
.s2-service-checks { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.s2-service-checks li {
  color: var(--s2-text);
  padding-left: 20px; position: relative;
}
.s2-service-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--s2-green); font-weight: 700; }
.s2-service-btn {
  display: inline-flex; align-items: center;
  margin-top: auto; width: fit-content;
  background: var(--s2-green); color: #fff !important;
  font-size: 13px; font-weight: 700;
  padding: 6px 24px; border-radius: 24px;
  transition: opacity 0.2s;
}
.s2-service-btn::after { content: ' ›'; }
.s2-service-btn:hover { opacity: 0.85; }

/* ===================== COURSES ===================== */
.s2-course-subtitle {
  text-align: center;
  color: var(--s2-text-light);
  line-height: 1.8; margin-bottom: 28px;
}

.s2-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.s2-course-card {
  background: #fff;
  border: 1.5px solid var(--s2-green-pale);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}
.s2-course-card:hover { transform: translateY(-3px); }
.s2-course-card img { width: 100%; height: 130px; }
.s2-course-title {
  font-size: 15px; font-weight: 900;
  color: var(--s2-text);
  padding: 14px 14px 6px;
}
.s2-course-text {
  color: var(--s2-text-light);
  line-height: 1.75;
  padding: 0 14px 16px;
}

/* ===================== PRICING ===================== */
.s2-price-groups { display: flex; flex-direction: column; gap: 32px; }

.s2-price-group-wrap {
  position: relative;
  border: 1.5px solid var(--s2-green-pale);
  border-radius: 16px;
  padding-top: 20px;
}
.s2-price-group-wrap--personal { background: #fff5ee; border-color: #f0d4b8; }
.s2-price-group-wrap--group    { background: #f0f7ea; border-color: var(--s2-green-pale); }
.s2-price-group-label {
  position: absolute;
  top: -13px; left: 26px;
  display: inline-block;
  background: var(--s2-green); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 24px;
  border-radius: 2px;
  min-width: 120px; text-align: center;
}
.s2-price-group-wrap--personal .s2-price-group-label { background: var(--s2-orange); }

.s2-price-grid { display: grid; grid-template-columns: 1fr 1fr; }
.s2-price-grid--5 { grid-template-columns: repeat(5, 1fr); }
.s2-price-card { padding: 18px 12px; text-align: center; }
.s2-price-card + .s2-price-card { border-left: 1.5px solid var(--s2-green-pale); }
.s2-price-group-wrap--personal .s2-price-card + .s2-price-card { border-color: #f0d4b8; }

.s2-price-card--popular { background: rgba(255,255,255,0.55); }
.s2-price-popular-badge {
  display: inline-block;
  background: var(--s2-orange); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 10px; border-radius: 10px;
  margin-bottom: 4px;
}
.s2-price-type { font-size: 16px; font-weight: 900; color: var(--s2-text); line-height: 1.4; margin-bottom: 0; }
.s2-price-meta { font-size: 13px; color: var(--s2-text-light); line-height: 1.4; margin-bottom: 10px; }
.s2-price-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 6px; }
.s2-price-num { font-size: 28px; font-weight: 900; color: var(--s2-orange); line-height: 1; }
.s2-price-unit { font-size: 12px; font-weight: 700; color: var(--s2-orange); }
.s2-price-desc { color: var(--s2-text); line-height: 1.75; margin-bottom: 6px; }
.s2-price-note { font-size: 11px; color: var(--s2-text-light); line-height: 1.7; }
.s2-price-consult { font-size: 20px; font-weight: 900; color: var(--s2-green-dark); padding: 8px 0; }

.s2-price-notes {
  list-style: none;
  margin-top: 20px;
  padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.s2-price-notes li { font-size: 11px; color: var(--s2-text-light); line-height: 1.7; }

/* ===================== STAFF ===================== */
.s2-staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.s2-staff-item { text-align: center; }
.s2-staff-photo {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 14px;
  background: var(--s2-green-pale);
  border: 3px solid var(--s2-green-pale);
}
.s2-staff-comment { color: var(--s2-text-light); line-height: 1.8; }

/* ===================== FAQ ===================== */
.s2-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.s2-faq-col { display: flex; flex-direction: column; gap: 10px; }

.s2-faq-q {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; cursor: pointer; user-select: none;
  border-radius: 8px;
}
.s2-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fff;
  border: 1px solid #d8e8cc;
  border-top: none; border-radius: 0 0 8px 8px;
}
.s2-faq-a-inner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }

.s2-faq-q-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--s2-green); color: #fff;
  font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.s2-faq-a-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--s2-orange); color: #fff;
  font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.s2-faq-q-text {
  font-weight: 700; color: var(--s2-green-dark);
  line-height: 1.6; padding-top: 3px; flex: 1;
}
.s2-faq-a-text { color: var(--s2-text-light); line-height: 1.85; padding-top: 3px; }

/* ===================== FOOTER CTA BAR ===================== */
.s2-footer-cta { background: var(--s2-green-dark); padding: 22px 40px; }
.s2-footer-cta-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.s2-footer-cta-left { display: flex; flex-direction: column; gap: 3px; }
.s2-footer-cta-label { font-size: 12px; color: rgba(255,255,255,0.75); }
.s2-footer-tel {
  font-size: 30px; font-weight: 900; color: #fff !important;
  letter-spacing: 0.06em; line-height: 1;
}
.s2-footer-cta-btn {
  display: inline-flex; align-items: center;
  background: var(--s2-orange); color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 13px 26px; border-radius: 4px;
  white-space: nowrap; transition: opacity 0.2s;
}
.s2-footer-cta-btn:hover { opacity: 0.88; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .s2-hero-bg { width: 54%; }
  .s2-hero-content { max-width: 50%; }
  .s2-service-photo { width: 220px; }
}

@media (max-width: 820px) {
  .s2-inner { padding: 0 20px; }
  .s2-section { padding: 48px 0; }
  .s2-hero-body { padding: 32px 20px 0; }
  .s2-hero-bg { display: none; }
  .s2-hero-content { max-width: 100%; padding-bottom: 24px; }
  .s2-hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .s2-hero-stamp {
    width: 120px;
    height: 120px;
    bottom: 16px;
    right: 16px;
    gap: 2px;
    padding: 18px;
  }
  .s2-hero-stamp-sub { font-size: 11px; }
  .s2-hero-stamp-main { font-size: 18px; }
  .s2-worry-grid { grid-template-columns: repeat(3, 1fr); }
  .s2-guarantee-grid { grid-template-columns: 1fr; }
  .s2-guarantee-item + .s2-guarantee-item { border-left: none; border-top: 1.5px solid var(--s2-green-pale); }
  .s2-service-stack { grid-template-columns: 1fr; }
  .s2-price-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .s2-faq-grid { grid-template-columns: 1fr; }
  .s2-staff-grid { gap: 20px; }
  .s2-footer-cta { padding: 20px; }
  .s2-footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .s2-footer-cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .s2-hero-body { padding: 24px 16px 0; }
  .s2-hero-stamp {
    width: 100px;
    height: 100px;
    bottom: 12px;
    right: 12px;
    gap: 1px;
    padding: 14px;
  }
  .s2-hero-stamp-sub { font-size: 10px; }
  .s2-hero-stamp-main { font-size: 15px; }
  .s2-worry-grid { grid-template-columns: repeat(2, 1fr); }
  .s2-guarantee-grid { grid-template-columns: 1fr; }
  .s2-guarantee-item + .s2-guarantee-item { border-left: none; border-top: 1.5px solid var(--s2-green-pale); }
  .s2-course-grid { grid-template-columns: repeat(2, 1fr); }
  .page-template-smartphone .s2-course-card img { height: 140px; }
  .s2-price-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .s2-staff-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .s2-staff-photo { width: 80px; height: 80px; }
}
