/*
Theme Name: Fast光
Theme URI: https://www.fast-hikari.com/
Author: 株式会社 First Fine
Author URI: https://www.f-fine.co.jp/firstfine
Description: 光コラボレーションサービス「Fast光」公式サイト用の独自WordPressテーマ。光インターネット・光電話・プロバイダー（Fastネット）・オプションサービスを案内します。SEO/MEO最適化、JSON-LD構造化データ、reCAPTCHA v3対応の問い合わせフォーム、海外IP制限などのセキュリティ機能を内蔵。
Version: 1.0.0
Tested up to: 6.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fast-hikari
*/

/* ===== Fast光 Website Styles ===== */

/* CSS Variables - Brand Colors from logo */
:root {
  --color-primary: #1f4ea1;
  --color-primary-dark: #143a7a;
  --color-primary-light: #3c6cc4;
  --color-accent-yellow: #ffc83a;
  --color-accent-yellow-dark: #f0b41f;
  --color-accent-red: #e63946;
  --color-accent-red-dark: #c52a36;
  --color-white: #ffffff;
  --color-bg-light: #f5f7fa;
  --color-bg-blue: #eaf0fb;
  --color-text-dark: #1a2238;
  --color-text-body: #4a5568;
  --color-text-light: #718096;
  --color-border: #e2e8f0;
  --color-success: #2dc26b;

  --shadow-sm: 0 2px 4px rgba(31, 78, 161, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 78, 161, 0.1);
  --shadow-lg: 0 10px 30px rgba(31, 78, 161, 0.15);
  --shadow-xl: 0 20px 50px rgba(31, 78, 161, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;

  --container-width: 1200px;
  --header-height: 88px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-red); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

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

/* ===== Header (2-row layout) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* Top row */
.header-top {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.header-top-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img { height: 56px; width: auto; }
.header-tagline {
  font-size: 12px;
  color: var(--color-text-body);
  line-height: 1.5;
  font-weight: 600;
  padding-left: 18px;
  border-left: 1px solid var(--color-border);
  white-space: nowrap;
}
.header-tagline strong {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-mypage,
.btn-contact-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all .2s;
  white-space: nowrap;
  position: relative;
}
.btn-mypage {
  background: linear-gradient(135deg, #ff9248 0%, #ff6b1a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.35);
}
.btn-mypage:hover {
  background: linear-gradient(135deg, #ff8030 0%, #e85a08 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 26, 0.45);
}
.btn-mypage::before {
  content: "👤";
  font-size: 14px;
}
.btn-contact-header {
  background: linear-gradient(135deg, #ffd24d 0%, #ffb300 100%);
  color: var(--color-text-dark);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.35);
}
.btn-contact-header:hover {
  background: linear-gradient(135deg, #ffc83a 0%, #f0a000 100%);
  color: var(--color-text-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 179, 0, 0.45);
}
.btn-contact-header::before {
  content: "✉";
  font-size: 14px;
}

/* Bottom row - blue navigation */
.header-nav {
  background: var(--color-primary);
  box-shadow: inset 0 -3px 0 var(--color-primary-dark);
}
.header-nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
}
.nav-item {
  position: relative;
  flex: 1;
}
.nav-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  text-align: center;
  transition: all .2s;
  line-height: 1.3;
  position: relative;
}
.nav-item a:hover {
  background: var(--color-primary-dark);
  color: var(--color-accent-yellow);
}
.nav-item.active a {
  background: var(--color-primary-dark);
  color: var(--color-accent-yellow);
}
.nav-item.active a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-accent-yellow);
}
.nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: rgba(255,255,255,0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent-red), var(--color-accent-red-dark));
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-accent:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-yellow {
  background: linear-gradient(135deg, var(--color-accent-yellow), var(--color-accent-yellow-dark));
  color: var(--color-text-dark);
  box-shadow: var(--shadow-md);
}
.btn-yellow:hover {
  color: var(--color-text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ===== Hero ===== */
/* === Hero (homepage main visual) — flush with header, no section padding === */
section.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  padding: 0;
}
.hero-image {
  width: 100%;
  display: block;
}
/* Reduce the gap between page-header / breadcrumb and the first content section */
.breadcrumb + section { padding-top: 30px; }

/* ===== Section base ===== */
section { padding: 80px 0; }
.section-bg-blue { background: var(--color-bg-light); }
.section-bg-gradient {
  background: linear-gradient(180deg, var(--color-bg-blue) 0%, var(--color-white) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  letter-spacing: .1em;
}
.section-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}
.section-title .accent { color: var(--color-primary); }
.section-title .yellow-line {
  background: linear-gradient(transparent 65%, var(--color-accent-yellow) 65%);
  padding: 0 4px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--color-text-body);
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Notice Bar (お知らせ) ===== */
.notice-section {
  padding: 56px 0;
  background: linear-gradient(135deg, #fafbfd 0%, #eef2f9 100%);
}
.notice-box {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border-left: 6px solid var(--color-accent-red);
}
.notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  color: white;
}
.notice-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.notice-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .05em;
}
.notice-list {
  padding: 16px 28px;
}
.notice-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--color-border);
}
.notice-list li:last-child { border-bottom: none; }
.notice-date {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 100px;
}
.notice-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  min-width: 80px;
  text-align: center;
}
.notice-tag.info { background: #e0ecff; color: var(--color-primary); }
.notice-tag.important { background: #ffe0e0; color: var(--color-accent-red); }
.notice-tag.campaign { background: #fff4cc; color: #b88600; }
.notice-text {
  font-size: 15px;
  color: var(--color-text-dark);
  flex: 1;
  min-width: 200px;
}
.notice-text a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notice-text a:hover {
  color: var(--color-primary-dark);
}

/* ===== Pricing Hero Section (料金プラン) ===== */
.pricing-hero-section {
  padding: 0;
  background: var(--color-bg-light);
  position: relative;
}
.pricing-hero-wrap {
  background:
    radial-gradient(ellipse at 50% 0%, #2664c8 0%, #163d7e 45%, #0b2a5d 100%);
  padding: 80px 24px 90px;
  color: white;
  position: relative;
  overflow: hidden;
}
.pricing-hero-wrap::before {
  /* Star/dot pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1.6px);
  background-size: 36px 36px;
  opacity: 0.55;
  pointer-events: none;
}
.pricing-hero-wrap::after {
  /* Soft light glow on left/right */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 80%, rgba(255,255,255,0.08) 0%, transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(255,255,255,0.08) 0%, transparent 30%);
  pointer-events: none;
}
.pricing-hero-inner {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
}
.pricing-hero-title {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.pricing-hero-title .emph {
  color: var(--color-accent-yellow);
  position: relative;
  display: inline-block;
  padding: 0 6px;
}
.pricing-hero-title .emph::before {
  content: "・ ・ ・";
  position: absolute;
  top: -18px;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--color-accent-yellow);
}
.pricing-hero-sub {
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 36px;
}
.pricing-hero-divider {
  width: 80%;
  max-width: 820px;
  margin: 0 auto 22px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.pricing-hero-heading {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.pricing-hero-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-hero-cards .p-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px 28px 30px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transition: transform .3s;
  position: relative;
}
.pricing-hero-cards .p-card:hover {
  transform: translateY(-4px);
}
.pricing-hero-cards .p-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.pricing-hero-cards .p-card-sub {
  display: block;
  font-size: 12px;
  color: var(--color-text-body);
  margin-bottom: 18px;
}
.pricing-hero-cards .p-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.pricing-hero-cards .p-card-price .label {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-dark);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.pricing-hero-cards .p-card-price .num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: var(--color-accent-red);
  line-height: 1;
  margin: 0 2px;
  letter-spacing: -0.02em;
}
.pricing-hero-cards .p-card-price .tax {
  font-size: 11px;
  color: var(--color-text-body);
  font-weight: 600;
  align-self: flex-start;
  margin-top: 8px;
}
.pricing-hero-cards .p-card-price .unit {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.pricing-hero-disclaimer {
  position: relative;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 760px;
  margin: 32px auto 36px;
}
.pricing-hero-cta {
  position: relative;
  text-align: center;
}
.pricing-hero-cta .btn-yellow-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ffd24d 0%, #ffb300 100%);
  color: var(--color-text-dark);
  padding: 16px 44px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.4);
  transition: all .2s;
}
.pricing-hero-cta .btn-yellow-arrow:hover {
  background: linear-gradient(135deg, #ffc83a 0%, #f0a000 100%);
  color: var(--color-text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 179, 0, 0.5);
}
.pricing-hero-cta .btn-yellow-arrow::after {
  content: "▸";
  font-size: 16px;
}

/* ===== HP Set Plan Banner (no mascot, big discount emphasis) ===== */
.hp-set-banner-section {
  padding: 60px 0 80px;
  background: var(--color-bg-light);
}
.hp-set-banner {
  background: linear-gradient(135deg, #163d7e 0%, var(--color-primary) 50%, #2563c9 100%);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hp-set-banner::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 200, 58, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hp-set-banner::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 65%);
  pointer-events: none;
}
.hp-set-banner-badge {
  position: absolute;
  top: 0;
  left: 36px;
  background: var(--color-accent-red);
  color: white;
  padding: 8px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.5);
}
.hp-set-banner-left {
  position: relative;
  color: white;
  padding-top: 16px;
}
.hp-set-banner-eyebrow {
  display: inline-block;
  background: rgba(255, 200, 58, 0.15);
  color: var(--color-accent-yellow);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.hp-set-banner-left h3 {
  font-size: 32px;
  font-weight: 900;
  color: white;
  margin-bottom: 14px;
  line-height: 1.3;
}
.hp-set-banner-left h3 .yellow { color: var(--color-accent-yellow); }
.hp-set-banner-left p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  margin-bottom: 22px;
}
.hp-set-banner-left .btn-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-yellow);
  color: var(--color-primary-dark);
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  transition: all .2s;
}
.hp-set-banner-left .btn-feature:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Discount visual - the showstopper */
.hp-set-banner-right {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px 28px 26px;
  text-align: center;
}
.hp-set-discount-burst {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--color-accent-red);
  color: white;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.55);
  letter-spacing: 0.05em;
}
.hp-set-discount-burst::before {
  content: "★ ";
}
.hp-set-discount-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hp-set-old-block {
  text-align: center;
}
.hp-set-old-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.hp-set-old-price {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
}
.hp-set-old-price::after {
  content: "";
  position: absolute;
  left: -8px; right: -8px;
  top: 50%;
  height: 3px;
  background: var(--color-accent-red);
  transform: rotate(-8deg);
}
.hp-set-old-price .unit { font-size: 13px; font-weight: 700; }
.hp-set-arrow-big {
  font-size: 30px;
  font-weight: 900;
  color: var(--color-accent-yellow);
  line-height: 1;
}
.hp-set-new-block {
  text-align: center;
}
.hp-set-new-label {
  display: inline-block;
  background: var(--color-accent-yellow);
  color: var(--color-primary-dark);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.hp-set-new-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: white;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.hp-set-new-price .unit { font-size: 18px; font-weight: 800; margin-left: 2px; }
.hp-set-tax {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
}
.hp-set-save-banner {
  display: inline-block;
  background: var(--color-accent-yellow);
  color: var(--color-accent-red);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  margin-top: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.hp-set-save-banner strong {
  font-size: 18px;
  color: var(--color-accent-red);
}

/* ===== HP Set Plan Section (Highlight) ===== */
.hp-set-section {
  position: relative;
  padding: 90px 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 200, 58, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(230, 57, 70, 0.08), transparent 40%),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: white;
  overflow: hidden;
}
.hp-set-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hp-set-inner { position: relative; z-index: 1; }
.hp-set-header {
  text-align: center;
  margin-bottom: 48px;
}
.hp-set-eyebrow {
  display: inline-block;
  padding: 8px 24px;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .15em;
  margin-bottom: 20px;
}
.hp-set-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hp-set-title .highlight {
  color: var(--color-accent-yellow);
}
.hp-set-sub {
  font-size: 18px;
  opacity: .95;
  font-weight: 500;
}

.hp-set-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.hp-card {
  background: white;
  color: var(--color-text-dark);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  transition: transform .3s;
}
.hp-card:hover { transform: translateY(-6px); }
.hp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
}
.hp-card.featured::before {
  background: linear-gradient(90deg, var(--color-accent-red), var(--color-accent-yellow));
}
.hp-card.single::before { background: var(--color-primary); }
.hp-card-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--color-accent-red);
  color: white;
  padding: 5px 36px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(28deg);
  letter-spacing: .1em;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hp-card-label {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.hp-card-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.hp-card.featured .hp-card-title { color: var(--color-accent-red); }
.hp-card-desc {
  font-size: 14px;
  color: var(--color-text-body);
  margin-bottom: 20px;
  line-height: 1.6;
}
.hp-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.hp-card-price-label { font-size: 14px; color: var(--color-text-body); margin-right: 8px; }
.hp-card-price-num {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--color-text-dark);
  font-family: var(--font-display);
}
.hp-card-price-unit { font-size: 16px; font-weight: 700; }
.hp-card-tax { font-size: 12px; color: var(--color-text-light); margin-bottom: 20px; }

/* ===== Plan cards (4 services) ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.service-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-bg-blue), white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--color-primary);
  position: relative;
}
.service-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px dashed var(--color-accent-yellow);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}
.service-card p {
  font-size: 14px;
  color: var(--color-text-body);
  flex: 1;
  margin-bottom: 20px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
}
.service-link::after { content: "→"; transition: transform .2s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-item {
  text-align: center;
  padding: 44px 28px 36px;
  background: white;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 10px 30px rgba(31, 78, 161, 0.12);
  border: 2px solid var(--color-bg-blue);
  transition: all .25s;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 78, 161, 0.18);
  border-color: var(--color-primary-light);
}
.feature-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--color-accent-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 56px;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.feature-item h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.feature-item p {
  color: var(--color-text-body);
  font-size: 15px;
}

/* ===== Plan Tables ===== */
.plan-category {
  margin-bottom: 56px;
}
.plan-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.plan-category-header .icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
}
.plan-category-header h3 {
  font-size: 22px;
  font-weight: 800;
}
.plan-category-header .desc {
  margin-left: auto;
  font-size: 14px;
  opacity: .9;
  text-align: right;
}

.plan-table {
  background: white;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.plan-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
}
.plan-row:last-child { border-bottom: none; }
.plan-row:nth-child(even) { background: #fafbfd; }
.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
}
.plan-type {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-right: 8px;
}
.plan-type.mansion { background: #e0ecff; color: var(--color-primary); }
.plan-type.family { background: #ffeacb; color: #b35900; }
.plan-type.giga { background: #ffe0e0; color: var(--color-accent-red); }
.plan-desc {
  font-size: 13px;
  color: var(--color-text-body);
}
.plan-price {
  text-align: right;
}
.plan-price-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-primary);
  font-family: var(--font-display);
}
.plan-price-unit { font-size: 14px; font-weight: 700; }
.plan-price-tax { font-size: 11px; color: var(--color-text-light); display: block; }

/* ===== Flow Section ===== */
.flow-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.flow-tab {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  background: white;
  color: var(--color-text-body);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .25s;
}
.flow-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.flow-tab:hover:not(.active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.flow-content { display: none; }
.flow-content.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.flow-step {
  background: white;
  padding: 32px 24px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.flow-step-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent-red), var(--color-accent-red-dark));
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  box-shadow: var(--shadow-sm);
}
.flow-step-icon {
  font-size: 48px;
  margin: 12px 0 12px;
  color: var(--color-primary);
}
.flow-step h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}
.flow-step p {
  font-size: 13px;
  color: var(--color-text-body);
  line-height: 1.6;
}
.flow-step:not(:last-child)::after {
  content: "▶";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent-yellow);
  font-size: 16px;
  z-index: 1;
}

/* ===== CTA Section ===== */
.cta-section {
  background:
    linear-gradient(135deg, rgba(20, 58, 122, 0.94), rgba(31, 78, 161, 0.94)),
    radial-gradient(circle at 20% 50%, rgba(255, 200, 58, 0.3), transparent 50%);
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 17px;
  opacity: .95;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-tel-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 24px 36px;
  background: white;
  color: var(--color-text-dark);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-xl);
}
.cta-tel-icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cta-tel-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}
.cta-tel-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  font-family: var(--font-display);
  line-height: 1.1;
}
.cta-tel-info { text-align: left; font-size: 13px; color: var(--color-text-body); }

/* ===== Page Header (sub pages) ===== */
.page-header {
  background:
    linear-gradient(135deg, rgba(31, 78, 161, 0.92), rgba(20, 58, 122, 0.92)),
    radial-gradient(circle at 80% 30%, rgba(255, 200, 58, 0.25), transparent 40%);
  padding: 70px 0 60px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.15) 1px, transparent 0);
  background-size: 30px 30px;
  opacity: .3;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 8px;
}
.page-header .en {
  font-size: 14px;
  letter-spacing: .25em;
  opacity: .8;
  font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
}
.breadcrumb-list a { color: var(--color-text-body); }
.breadcrumb-list li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb-list li:last-child { color: var(--color-primary); font-weight: 600; }

/* ===== Phone Option Table ===== */
.phone-opt-section { padding: 60px 0; background: white; }
.phone-opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.phone-opt-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all .2s;
}
.phone-opt-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(31, 78, 161, 0.1);
}
.phone-opt-card .opt-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
}
.phone-opt-card .opt-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-primary);
  white-space: nowrap;
}
.phone-opt-card .opt-price .yen {
  font-size: 13px;
  margin-left: 1px;
}
.phone-opt-card .opt-price .tax {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-light);
  font-family: var(--font-base);
  text-align: right;
}

/* ===== Phone Set Comparison Plan (ひかり電話A エース style) ===== */
.phone-compare-section {
  padding: 70px 0;
  background: var(--color-bg-light);
}
.phone-compare-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 36px;
  align-items: center;
}
.phone-compare-intro-left { text-align: center; }
.phone-compare-intro-left .logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--color-accent-red);
  background: white;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 14px;
}
.phone-compare-intro-left .logo-text .plus {
  background: var(--color-accent-red);
  color: white;
  font-size: 14px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  margin-left: 4px;
}
.phone-compare-intro-left .subtitle {
  font-size: 14px;
  color: var(--color-text-body);
  margin-top: 6px;
}
.phone-compare-intro-right {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
  color: var(--color-text-dark);
}
.phone-compare-intro-right .strong-red {
  color: var(--color-accent-red);
  font-size: 22px;
}
.phone-compare-intro-right .strong-blue { color: var(--color-primary); }

.phone-compare-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.phone-compare-left {
  background: linear-gradient(180deg, #fff5e8 0%, #ffe2c2 100%);
  border: 3px solid #ff8642;
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  position: relative;
}
.phone-compare-left .total {
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.phone-compare-left .total-label {
  font-size: 12px;
  color: var(--color-text-body);
  line-height: 1.5;
}
.phone-compare-left .total-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-text-dark);
}
.phone-compare-left .total-price .yen { font-size: 14px; }
.phone-compare-left .opt-section-header {
  background: #ff8642;
  color: white;
  text-align: center;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 14px;
}
.phone-compare-left .call-fee {
  background: white;
  border: 2px solid #ff8642;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  color: var(--color-text-dark);
}
.phone-compare-left .call-fee .num {
  color: var(--color-accent-red);
  font-family: var(--font-display);
  font-size: 18px;
}
.phone-compare-left .opt-list {
  background: white;
  border-radius: var(--radius-sm);
  padding: 6px 0;
}
.phone-compare-left .opt-list .opt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #ffd0a0;
  font-size: 12px;
}
.phone-compare-left .opt-list .opt-row:last-child { border-bottom: none; }
.phone-compare-left .opt-list .opt-row .name {
  color: var(--color-text-dark);
}
.phone-compare-left .opt-list .opt-row .name strong {
  display: block;
  color: var(--color-accent-red);
  font-weight: 700;
  font-size: 13px;
}
.phone-compare-left .opt-list .opt-row .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-text-dark);
  white-space: nowrap;
}
.phone-compare-left .base-fee {
  background: #ff8642;
  color: white;
  text-align: center;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 15px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}
.phone-compare-left .base-fee .num {
  font-family: var(--font-display);
  font-size: 18px;
}

/* Center arrow with savings */
.phone-compare-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: relative;
}
.phone-compare-center .label {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-accent-red);
  text-align: center;
  margin-bottom: 6px;
}
.phone-compare-center .save-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--color-accent-red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.phone-compare-center .save-price .yen { font-size: 16px; }
.phone-compare-center .save-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-accent-red);
  margin-top: 4px;
}

/* Right side - Fast光電話プラス */
.phone-compare-right {
  background: linear-gradient(180deg, #fff 0%, #fff7ea 100%);
  border: 3px solid var(--color-accent-red);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-compare-right .head {
  text-align: center;
  margin-bottom: 14px;
}
.phone-compare-right .head .logo-row {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--color-accent-red);
}
.phone-compare-right .head .logo-row .plus {
  background: var(--color-accent-red);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}
.phone-compare-right .head p { font-size: 13px; font-weight: 700; margin: 4px 0; }
.phone-compare-right .head .grand-total {
  font-size: 14px;
  font-weight: 800;
}
.phone-compare-right .head .grand-total .price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-accent-red);
  margin-left: 4px;
}
.phone-compare-right .head .grand-total .yen { font-size: 14px; }

.phone-compare-right .call-fee-box {
  background: linear-gradient(180deg, #ff8642 0%, #e85a0e 100%);
  color: white;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
.phone-compare-right .call-fee-box .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.phone-compare-right .call-fee-box .price .yen { font-size: 14px; }
.phone-compare-right .call-fee-box .label-row {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.phone-compare-right .next-month {
  background: var(--color-accent-red);
  color: white;
  text-align: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.phone-compare-right .features-circle {
  text-align: center;
  position: relative;
}
.phone-compare-right .features-badge {
  display: inline-block;
  background: var(--color-accent-red);
  color: white;
  font-weight: 800;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-right: 8px;
  vertical-align: middle;
}
.phone-compare-right .features-text {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  color: var(--color-text-dark);
  vertical-align: middle;
  text-align: left;
}
.phone-compare-right .features-text .red { color: var(--color-accent-red); font-size: 16px; }

/* ===== Call Rate Section (East/West tabs) ===== */
.call-rate-section { padding: 70px 0; background: white; }
.call-rate-group { margin-bottom: 48px; }
.call-rate-group:last-child { margin-bottom: 0; }
.call-rate-group h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  padding-left: 14px;
  border-left: 5px solid var(--color-primary);
}
.call-rate-group .note {
  font-size: 12px;
  color: var(--color-text-body);
  margin: 6px 0 18px;
  padding-left: 14px;
}
.call-rate-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.call-rate-table th,
.call-rate-table td {
  padding: 14px 18px;
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.call-rate-table thead th {
  background: var(--color-bg-light);
  font-weight: 800;
}
.call-rate-table td:first-child {
  text-align: left;
  background: white;
}
.call-rate-table td.price {
  font-weight: 800;
  white-space: nowrap;
  width: 180px;
  background: white;
}

.call-rate-tabs {
  display: flex;
  margin-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}
.call-rate-tab {
  flex: 1;
  background: #e2e8f0;
  color: var(--color-text-body);
  padding: 14px 18px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 15px;
  border: 0;
  position: relative;
}
.call-rate-tab.active {
  background: var(--color-primary);
  color: white;
}
.call-rate-tab.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--color-primary);
}
.call-rate-content { display: none; }
.call-rate-content.active { display: block; }
.call-rate-pane { padding: 18px 0 0; }
.call-rate-pane .call-rate-table thead th {
  background: var(--color-primary);
  color: white;
  font-weight: 800;
}
.call-rate-pane .call-rate-table thead th:first-child { width: auto; }

/* ===== Construction Fee Detailed (image 3 style) ===== */
.const-fee-section { padding: 70px 0; background: var(--color-bg-light); }
.const-fee-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  margin-bottom: 32px;
  color: var(--color-text-dark);
  font-size: 14px;
}
.const-fee-notice::before {
  content: "△";
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.const-fee-notice a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 700;
}

.const-fee-group {
  margin-bottom: 40px;
}
.const-fee-group h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 5px solid var(--color-primary);
}
.const-fee-group .sub-line {
  font-size: 12px;
  color: var(--color-text-body);
  margin-bottom: 14px;
  padding-left: 14px;
}
.const-fee-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--color-border);
}
.const-fee-card-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.5;
}
.const-fee-card-label small {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  font-weight: 500;
  margin-top: 2px;
}
.const-fee-card-detail .price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--color-text-dark);
  line-height: 1.1;
}
.const-fee-card-detail .price .yen { font-size: 14px; font-weight: 800; }
.const-fee-card-detail .sub {
  font-size: 12px;
  color: var(--color-text-body);
  margin-top: 4px;
}
.const-fee-card-detail .warn-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.const-fee-card-detail .warn-list li {
  font-size: 12px;
  color: var(--color-text-dark);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.const-fee-card-detail .warn-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-accent-red);
  font-size: 9px;
  top: 4px;
}
.const-fee-card-detail .warn-list li strong {
  color: var(--color-accent-red);
}

.const-fee-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}
.const-fee-plus span {
  width: 36px;
  height: 36px;
  background: white;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}


/* ===== Marching Dashed Border (animated dotted frame) ===== */
.dashed-march {
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.dashed-march::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  --march-color: #f0b41f;
  --march-thick: 2px;
  --march-len: 14px;
  background-image:
    linear-gradient(90deg, var(--march-color) 50%, transparent 50%),
    linear-gradient(90deg, var(--march-color) 50%, transparent 50%),
    linear-gradient(0deg, var(--march-color) 50%, transparent 50%),
    linear-gradient(0deg, var(--march-color) 50%, transparent 50%);
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-size:
    var(--march-len) var(--march-thick),
    var(--march-len) var(--march-thick),
    var(--march-thick) var(--march-len),
    var(--march-thick) var(--march-len);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  animation: marching-ants 1.4s linear infinite;
}
.dashed-march:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.dashed-march:hover::before {
  animation-duration: 0.7s;
}
@keyframes marching-ants {
  0%   { background-position: 0 0, 0 100%, 0 0, 100% 0; }
  100% { background-position: 28px 0, -28px 100%, 0 -28px, 100% 28px; }
}
/* Variant for the HP set banner right (brighter yellow on dark bg) */
.dashed-march.dark::before {
  --march-color: var(--color-accent-yellow);
}

/* ===== Document Download Page (Terms/Yakkan) ===== */
.doc-section {
  padding: 60px 0 70px;
  background: white;
}
.doc-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  background: var(--color-bg-light);
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
  line-height: 1.9;
}
.doc-card {
  max-width: 1000px;
  margin: 0 auto 50px;
  background: linear-gradient(135deg, #163d7e 0%, var(--color-primary) 50%, #2563c9 100%);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.doc-card::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,200,58,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.doc-card-cover {
  width: 180px;
  height: 240px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  position: relative;
  flex-shrink: 0;
  border-top: 8px solid var(--color-accent-yellow);
}
.doc-card-cover .ribbon {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--color-accent-red);
  color: white;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 0 0 4px 4px;
}
.doc-card-cover .cover-issue {
  font-size: 10px;
  color: var(--color-text-light);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.doc-card-cover .cover-issue strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-text-dark);
  margin-top: 4px;
}
.doc-card-cover .cover-title {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
}
.doc-card-cover .cover-title em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.doc-card-cover .cover-title em::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-accent-yellow);
  margin: 6px auto 0;
}
.doc-card-cover .cover-foot {
  font-size: 10px;
  color: var(--color-text-light);
  text-align: center;
  font-weight: 700;
}

.doc-card-info { color: white; position: relative; }
.doc-card-info .eyebrow {
  display: inline-block;
  background: rgba(255,200,58,0.18);
  color: var(--color-accent-yellow);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.doc-card-info h2 {
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1.4;
  margin-bottom: 8px;
}
.doc-card-info h2 .yellow { color: var(--color-accent-yellow); }
.doc-card-info p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  margin-bottom: 18px;
}
.doc-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}
.doc-meta .meta-item {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.doc-meta .meta-item strong {
  display: block;
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}
.doc-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffd24d 0%, #ffb300 100%);
  color: var(--color-primary-dark);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(255, 179, 0, 0.45);
  transition: all .2s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 179, 0, 0.55);
  color: var(--color-primary-dark);
}
.btn-download svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all .2s;
}
.btn-view:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  color: white;
}

/* Table of contents */
.doc-toc {
  max-width: 1000px;
  margin: 0 auto;
}
.doc-toc-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 28px;
  color: var(--color-text-dark);
}
.doc-toc-heading::before,
.doc-toc-heading::after {
  content: "—";
  color: var(--color-accent-yellow);
  margin: 0 16px;
  font-weight: 400;
}
.doc-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.doc-toc-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all .2s;
}
.doc-toc-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 6px 14px rgba(31, 78, 161, 0.1);
  transform: translateY(-2px);
}
.doc-toc-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.doc-toc-item.appendix .num {
  background: var(--color-accent-yellow);
  color: var(--color-primary-dark);
}
.doc-toc-item .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4;
}
.doc-toc-item .tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.doc-toc-item .tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.doc-toc-item .tag.new { background: #dbeafe; color: #1e40af; }
.doc-toc-item .tag.trans { background: #d1fae5; color: #065f46; }
.doc-toc-item .tag.option { background: #fef3c7; color: #92400e; }
.doc-toc-item .page {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
  padding-left: 8px;
  border-left: 2px solid var(--color-border);
}

/* Inline preview */
.doc-preview {
  max-width: 1000px;
  margin: 50px auto 0;
}
.doc-preview h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 18px;
}
.doc-preview iframe {
  width: 100%;
  height: 700px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-light);
}

@media (max-width: 880px) {
  .doc-section { padding: 50px 0; }
  .doc-card {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 24px;
    text-align: center;
  }
  .doc-card-cover { margin: 0 auto; width: 150px; height: 200px; padding: 22px 12px; }
  .doc-card-cover .cover-title em { font-size: 28px; }
  .doc-card-info h2 { font-size: 22px; }
  .doc-meta { justify-content: center; gap: 16px; padding: 12px; }
  .doc-card-actions { justify-content: center; }
  .doc-toc-grid { grid-template-columns: 1fr; }
  .doc-toc-heading { font-size: 20px; }
  .doc-toc-heading::before, .doc-toc-heading::after { margin: 0 8px; }
  .doc-toc-item { padding: 12px 16px; gap: 10px; }
  .doc-toc-item .num { width: 32px; height: 32px; font-size: 12px; }
  .doc-preview iframe { height: 480px; }
}

/* ===== Doc Switcher (multiple documents on one page) ===== */
.doc-switcher {
  max-width: 1100px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-switcher.has-two { grid-template-columns: 1fr 1fr; max-width: 1000px; gap: 18px; }
.doc-switcher.has-five { grid-template-columns: repeat(3, 1fr); max-width: 1100px; gap: 16px; }
.doc-switcher-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-dark);
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
}
.doc-switcher-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text-dark);
}
.doc-switcher-card .num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-switcher-card.is-important .num { background: var(--color-accent-red); }
.doc-switcher-card.is-net .num { background: var(--color-success); }
.doc-switcher-card.is-phone .num { background: #7c3aed; }
.doc-switcher-card.is-remote .num { background: #ea580c; }
.doc-switcher-card .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.doc-switcher-card .title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.doc-switcher-card .arrow {
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 800;
  transition: transform .2s ease;
}
.doc-switcher-card:hover .arrow { transform: translateY(2px); }

/* ===== Doc Block (per-document section) ===== */
.doc-block {
  scroll-margin-top: calc(var(--header-height) + 20px);
  margin-bottom: 80px;
}
.doc-block:last-child { margin-bottom: 0; }
.doc-block-header {
  max-width: 1000px;
  margin: 0 auto 28px;
  padding: 0 4px 18px;
  border-bottom: 3px solid var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.doc-block-header .en {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}
.doc-block-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0;
}
.doc-block-header .sub {
  font-size: 13px;
  color: var(--color-text-body);
  margin-left: auto;
}
.doc-block.is-important .doc-block-header { border-bottom-color: var(--color-accent-red); }
.doc-block.is-important .doc-block-header .en { color: var(--color-accent-red); }
.doc-block.is-important .doc-card {
  background: linear-gradient(135deg, #8a1a25 0%, var(--color-accent-red) 50%, #ef5664 100%);
}
.doc-block.is-net .doc-block-header { border-bottom-color: var(--color-success); }
.doc-block.is-net .doc-block-header .en { color: var(--color-success); }
.doc-block.is-net .doc-card {
  background: linear-gradient(135deg, #155f37 0%, var(--color-success) 50%, #4ad97f 100%);
}
.doc-block.is-net .doc-card-cover { border-top-color: var(--color-success); }
.doc-block.is-net .doc-card-cover .cover-title em,
.doc-block.is-net .doc-card-cover .cover-title { color: var(--color-success); }
.doc-block.is-net .doc-card-cover .cover-title em::after { background: var(--color-success); }
.doc-block.is-phone .doc-block-header { border-bottom-color: #7c3aed; }
.doc-block.is-phone .doc-block-header .en { color: #7c3aed; }
.doc-block.is-phone .doc-card {
  background: linear-gradient(135deg, #3b1574 0%, #7c3aed 50%, #a78bfa 100%);
}
.doc-block.is-phone .doc-card-cover { border-top-color: #7c3aed; }
.doc-block.is-phone .doc-card-cover .cover-title em,
.doc-block.is-phone .doc-card-cover .cover-title { color: #7c3aed; }
.doc-block.is-phone .doc-card-cover .cover-title em::after { background: #7c3aed; }
.doc-block.is-remote .doc-block-header { border-bottom-color: #ea580c; }
.doc-block.is-remote .doc-block-header .en { color: #ea580c; }
.doc-block.is-remote .doc-card {
  background: linear-gradient(135deg, #7a2706 0%, #ea580c 50%, #fb923c 100%);
}
.doc-block.is-remote .doc-card-cover { border-top-color: #ea580c; }
.doc-block.is-remote .doc-card-cover .cover-title em,
.doc-block.is-remote .doc-card-cover .cover-title { color: #ea580c; }
.doc-block.is-remote .doc-card-cover .cover-title em::after { background: #ea580c; }

@media (max-width: 1024px) {
  .doc-switcher { grid-template-columns: 1fr 1fr; }
  .doc-switcher.has-five { grid-template-columns: 1fr 1fr; max-width: 800px; gap: 16px; }
}
@media (max-width: 880px) {
  .doc-switcher { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .doc-switcher.has-five { grid-template-columns: 1fr; gap: 12px; }
  .doc-switcher-card { padding: 18px 18px; gap: 14px; }
  .doc-switcher-card .num { width: 40px; height: 40px; font-size: 18px; }
  .doc-switcher-card .title { font-size: 15px; }
  .doc-block { margin-bottom: 56px; }
  .doc-block-header { gap: 8px; padding-bottom: 14px; }
  .doc-block-header h2 { font-size: 19px; }
  .doc-block-header .sub { font-size: 12px; width: 100%; margin-left: 0; }
}


.legal-section {
  padding: 60px 0 80px;
  background: white;
}
.legal-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  background: var(--color-bg-light);
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.legal-intro p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-dark);
}
.legal-intro p + p { margin-top: 10px; }
.legal-articles {
  max-width: 900px;
  margin: 0 auto;
}
.legal-article {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.legal-article:last-child { border-bottom: none; }
.legal-article-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.legal-article-title .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.legal-article-body {
  font-size: 14px;
  line-height: 1.95;
  color: var(--color-text-dark);
  padding-left: 44px;
}
.legal-article-body p + p { margin-top: 10px; }
.legal-article-body strong {
  color: var(--color-primary);
  font-weight: 800;
}
.legal-list {
  margin: 10px 0 4px;
  padding-left: 0;
  list-style: none;
}
.legal-list > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  line-height: 1.85;
}
.legal-list > li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: #f0b41f;
  font-size: 10px;
}
.legal-list.numeric { counter-reset: legal-li; }
.legal-list.numeric > li {
  padding-left: 30px;
  counter-increment: legal-li;
}
.legal-list.numeric > li::before {
  content: "(" counter(legal-li) ")";
  color: var(--color-primary);
  font-weight: 800;
  font-size: 13px;
}
.legal-contact-box {
  margin-top: 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  border: 1px solid var(--color-border);
}
.legal-contact-box dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 16px;
  font-size: 14px;
  line-height: 1.8;
}
.legal-contact-box dt {
  font-weight: 800;
  color: var(--color-primary);
}
.legal-contact-box dd { color: var(--color-text-dark); }
.legal-meta {
  max-width: 900px;
  margin: 36px auto 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-border);
  text-align: right;
  font-size: 13px;
  color: var(--color-text-body);
  line-height: 1.8;
}
.legal-meta div + div { margin-top: 2px; }
.legal-meta strong { color: var(--color-text-dark); font-weight: 700; }

@media (max-width: 880px) {
  .legal-intro { padding: 20px 18px; }
  .legal-article { padding: 22px 0; }
  .legal-article-title { font-size: 16px; gap: 10px; }
  .legal-article-title .num { width: 28px; height: 28px; font-size: 12px; }
  .legal-article-body { padding-left: 0; font-size: 13px; }
  .legal-contact-box { padding: 18px 16px; }
  .legal-contact-box dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-contact-box dt { margin-top: 6px; }
}

.cancel-section { padding: 80px 0; background: var(--color-bg-light); }
.cancel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.cancel-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-primary);
}
.cancel-card.business { border-top-color: var(--color-accent-red); }
.cancel-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-primary);
}
.cancel-card.business h3 { color: var(--color-accent-red); }
.cancel-table {
  width: 100%;
  border-collapse: collapse;
}
.cancel-table tr { border-bottom: 1px solid var(--color-border); }
.cancel-table tr:last-child { border-bottom: none; }
.cancel-table td {
  padding: 14px 0;
  font-size: 14px;
}
.cancel-table td:last-child {
  text-align: right;
  font-weight: 800;
  color: var(--color-text-dark);
  white-space: nowrap;
}

/* ===== Notes ===== */
.notes-section { padding: 60px 0; background: white; }
.notes-box {
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-accent-yellow);
  padding: 28px 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.notes-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.notes-box h3::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  font-weight: 900;
  border-radius: 4px;
}
.notes-list { color: var(--color-text-body); font-size: 13px; line-height: 1.8; }
.notes-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.notes-list li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: var(--color-accent-red);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all .25s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-dark);
  position: relative;
}
.faq-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}
.faq-question::after {
  content: "+";
  margin-left: auto;
  font-size: 28px;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 28px 24px;
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.8;
}
.faq-a-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent-red);
  color: white;
  border-radius: 50%;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== Contact Form ===== */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}
.contact-info {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
}
.contact-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}
.contact-info-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-size: 13px;
  opacity: .85;
  margin-bottom: 6px;
  font-weight: 600;
}
.contact-info-value {
  font-size: 20px;
  font-weight: 800;
}
.contact-info-tel { font-size: 28px; font-family: var(--font-display); }

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-dark);
}
.form-label .required {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-accent-red);
  color: white;
  font-size: 11px;
  border-radius: 4px;
  margin-left: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-actions { text-align: center; margin-top: 32px; }

/* ===== Footer ===== */
.footer {
  background: var(--color-text-dark);
  color: #cbd5e0;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo img {
  height: 44px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
}
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a { color: #cbd5e0; }
.footer-col ul li a:hover { color: var(--color-accent-yellow); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #2d3748;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mascot floating element with LINE call-to-action */
.mascot-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform .25s;
}
.mascot-float:hover { transform: scale(1.05); color: inherit; }
.mascot-line-bubble {
  background: linear-gradient(135deg, #06C755 0%, #04a045 100%);
  color: white;
  padding: 10px 16px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.45);
  white-space: nowrap;
  position: relative;
  margin-bottom: -6px;
  animation: bounce 3s ease-in-out infinite;
}
.mascot-line-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 28px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #04a045;
}
.mascot-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #06C755;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-weight: 900;
  font-size: 11px;
  margin-right: 6px;
  vertical-align: -3px;
  font-family: var(--font-display);
}
.mascot-line-bubble .arrow {
  display: inline-block;
  margin-left: 4px;
  font-weight: 900;
}
.mascot-img-wrap {
  width: 100px;
  height: 100px;
  position: relative;
  animation: bounce 3s ease-in-out infinite;
  animation-delay: 0.15s;
}
.mascot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-tagline { display: none; }
  .nav-item a { padding: 14px 6px; font-size: 13px; }
  .hp-set-banner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 880px) {
  .header-tagline { display: none; }
  .header-top-inner { padding: 12px 16px; }
  .header-logo img { height: 42px; }
  .header-actions { gap: 8px; }
  .btn-mypage, .btn-contact-header { padding: 10px 14px; font-size: 12px; }
  .btn-mypage::before, .btn-contact-header::before { display: none; }

  .header-nav { display: none; }
  .header-nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .header-nav.mobile-open .header-nav-inner { padding: 8px 16px; }
  .header-nav.mobile-open .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .header-nav.mobile-open .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .header-nav.mobile-open .nav-item + .nav-item::before { display: none; }
  .header-nav.mobile-open .nav-item a {
    background: white;
    color: var(--color-text-dark);
    text-align: left;
    padding: 16px 12px;
    font-size: 15px;
    justify-content: flex-start;
  }
  .header-nav.mobile-open .nav-item a:hover,
  .header-nav.mobile-open .nav-item.active a {
    background: var(--color-bg-blue);
    color: var(--color-primary);
  }
  .header-nav.mobile-open .nav-item.active a::after { display: none; }
  .menu-toggle { display: flex; }

  .section-title { font-size: 28px; }
  .hp-set-title { font-size: 30px; }
  .hp-set-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-step::after { display: none !important; }
  .cancel-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: 1fr; gap: 8px; }
  .plan-price { text-align: left; }
  .plan-category-header { flex-wrap: wrap; }
  .plan-category-header .desc { margin-left: 0; text-align: left; width: 100%; }
  .page-header h1 { font-size: 28px; }
  .cta-title { font-size: 26px; }
  section { padding: 56px 0; }
  .mascot-float { bottom: 12px; right: 12px; }
  .mascot-img-wrap { width: 72px; height: 72px; }
  .mascot-line-bubble { font-size: 10px; padding: 7px 12px 9px; }
  .mascot-line-bubble::after { right: 20px; }
  .mascot-line-icon { width: 15px; height: 15px; font-size: 9px; margin-right: 4px; }
  .container { padding: 0 16px; }

  /* Pricing hero responsive */
  .pricing-hero-wrap { padding: 48px 16px 56px; }
  .pricing-hero-title { font-size: 22px; line-height: 1.5; }
  .pricing-hero-title .emph::before { top: -14px; font-size: 11px; }
  .pricing-hero-sub { font-size: 13px; }
  .pricing-hero-heading { font-size: 16px; }
  .pricing-hero-cards { grid-template-columns: 1fr; gap: 16px; }
  .pricing-hero-cards .p-card-price .num { font-size: 52px; }
  .pricing-hero-disclaimer { text-align: left; font-size: 11px; padding: 0 8px; }
  .pricing-hero-cta .btn-yellow-arrow { padding: 14px 28px; font-size: 13px; }

  /* HP Set banner */
  .hp-set-banner-section { padding: 40px 0 56px; }
  .hp-set-banner { grid-template-columns: 1fr; gap: 28px; padding: 38px 22px 28px; }
  .hp-set-banner-badge { left: 16px; padding: 6px 16px; font-size: 12px; }
  .hp-set-banner-left h3 { font-size: 24px; }
  .hp-set-banner-right { padding: 24px 16px 22px; }
  .hp-set-discount-row { gap: 8px; }
  .hp-set-old-price { font-size: 18px; }
  .hp-set-arrow-big { font-size: 24px; }
  .hp-set-new-price { font-size: 38px; }
  .hp-set-save-banner { font-size: 12px; }
  .hp-set-save-banner strong { font-size: 16px; }

  /* Phone option grid */
  .phone-opt-grid { grid-template-columns: 1fr; gap: 10px; }
  .phone-opt-card { padding: 14px 18px; }

  /* Phone compare */
  .phone-compare-intro { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .phone-compare-intro-right { font-size: 15px; }
  .phone-compare-intro-right .strong-red { font-size: 18px; }
  .phone-compare-board {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .phone-compare-center { padding: 8px 0; }
  .phone-compare-center .save-price { font-size: 28px; }

  /* Call rate */
  .call-rate-section { padding: 56px 0; }
  .call-rate-table th, .call-rate-table td { padding: 10px 8px; font-size: 12px; }
  .call-rate-table td:first-child { font-size: 11px; }
  .call-rate-table td.price { width: 100px; }
  .call-rate-group h3 { font-size: 16px; }

  /* Construction fee */
  .const-fee-section { padding: 56px 0; }
  .const-fee-card { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
  .const-fee-group h3 { font-size: 16px; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
  .hp-card { padding: 24px 20px; }
  .hp-card-price-num { font-size: 40px; }
  .cta-tel-num { font-size: 24px; }
  .header-actions { gap: 6px; }
  .btn-mypage, .btn-contact-header { padding: 9px 12px; font-size: 11px; }
}

/* ============================================================
   Fast光テレビ機能カード（デスクトップ基本スタイル）
   ============================================================ */
.tv-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.tv-features-grid > div {
  background: white;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(31, 78, 161, 0.1);
  border-top: 4px solid #1f4ea1;
}
.tv-features-grid > div:nth-child(2) { border-top-color: #e63946; }
.tv-features-grid > div:nth-child(3) { border-top-color: #ffc83a; }
.tv-features-grid .tv-feature-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}
.tv-features-grid h4 {
  font-weight: 800;
  margin-bottom: 8px;
  color: #1a2238;
}
.tv-features-grid p {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
}

/* ============================================================
   モバイル最適化（追加・改修）
   ============================================================ */
@media (max-width: 880px) {

  /* === 1. ヒーロー画像：モバイル用SP画像が picture 要素で切り替わるため自然サイズで表示 === */
  section.hero {
    padding: 0;
    background: var(--color-white);
  }
  .hero-image {
    width: 100%;
    height: auto;
    display: block;
  }

  /* === 2. お知らせセクション：縮小 === */
  .notice-section { padding: 28px 0; }
  .notice-box { border-left-width: 4px; }
  .notice-header { padding: 12px 16px; gap: 8px; }
  .notice-header h2 { font-size: 16px; letter-spacing: 0; }
  .notice-icon { width: 26px; height: 26px; font-size: 13px; }
  .notice-list { padding: 4px 16px; }
  .notice-list li {
    padding: 10px 0;
    gap: 6px 10px;
    align-items: flex-start;
  }
  .notice-date { font-size: 11px; min-width: 78px; }
  .notice-tag { font-size: 10px; padding: 2px 8px; min-width: 56px; }
  .notice-text { font-size: 12.5px; line-height: 1.5; flex-basis: 100%; }

  /* === 3. サービスカード：説明文を非表示・コンパクト化 === */
  .service-card { padding: 20px 16px; }
  .service-card h3 { font-size: 16px; margin-bottom: 10px; }
  .service-card .service-icon { font-size: 36px; margin-bottom: 8px; }
  .service-card p { display: none; }
  .service-link { font-size: 13px; }

  /* === 4. CTA ボタン：サイズ統一（縦並び・横幅統一） === */
  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .cta-actions .btn,
  .cta-actions .btn-lg {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    font-size: 15px;
    text-align: center;
    box-sizing: border-box;
  }

  /* === 5. Fast光テレビ機能カード：横並びレイアウト === */
  .tv-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .tv-features-grid > div {
    text-align: left;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
  }
  .tv-features-grid .tv-feature-icon {
    font-size: 38px;
    margin-bottom: 0;
    grid-row: 1 / span 2;
    text-align: center;
  }
  .tv-features-grid h4 {
    font-size: 15px;
    margin-bottom: 2px;
    grid-column: 2;
    align-self: end;
  }
  .tv-features-grid p {
    font-size: 12px;
    line-height: 1.5;
    grid-column: 2;
    align-self: start;
  }

  /* === 6. 約款・利用規約：目次（TOC）をモバイルで非表示 === */
  .doc-toc { display: none; }
  /* DLカードのみ表示。ヘッダーとの余白を少し詰める */
  .doc-block { margin-bottom: 32px; padding-bottom: 24px; }
}

/* ============================================================
   HPセットプラン：価格の意味を明確化（追加分）
   ============================================================ */
/* 左カラム：見出し+価格強調 */
.hp-set-banner-left p .hp-set-headline {
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  color: white;
  line-height: 1.7;
  margin-bottom: 8px;
}
.hp-set-banner-left p .hp-set-headline-price {
  color: var(--color-accent-yellow);
  font-size: 1.18em;
  font-weight: 900;
  padding: 0 4px;
}

/* 右カラム：価格行の上にコンテキスト見出しを追加 */
.hp-set-context {
  display: block;
  text-align: center;
  margin: 18px 0 4px;
  line-height: 1.4;
}
.hp-set-context-line {
  display: inline-block;
  color: var(--color-accent-yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  padding: 3px 12px;
  border: 1.5px solid var(--color-accent-yellow);
  border-radius: var(--radius-pill);
}
.hp-set-product-line {
  display: block;
  color: white;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* モバイル調整 */
@media (max-width: 880px) {
  .hp-set-banner-left p .hp-set-headline { font-size: 15px; }
  .hp-set-context-line { font-size: 11px; padding: 2px 10px; }
  .hp-set-product-line { font-size: 14px; }
  .hp-set-context { margin-top: 14px; }
}
