/* ===================================================
   ECSeller Advisory SAILOR - Global Styles
   =================================================== */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #1e88e5;
  --accent-light: #42a5f5;
  --gold: #c8a84b;
  --gold-light: #e0c97a;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --bg-light: #f4f7fb;
  --bg-white: #ffffff;
  --border: #dce3ed;
  --shadow: 0 4px 24px rgba(26, 58, 92, 0.10);
  --shadow-md: 0 8px 32px rgba(26, 58, 92, 0.15);
  --radius: 10px;
  --radius-lg: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-logo .brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.site-logo .sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}

.header-cta a {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}

.header-cta a:hover { background: var(--gold-light); transform: translateY(-1px); opacity: 1; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 50%, #1e5799 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container { position: relative; }

.hero-badge {
  display: inline-block;
  background: rgba(200, 168, 75, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
  display: block;
  font-size: 1.1em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.9;
}

.hero-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  max-width: 560px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark) !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 42px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(200,168,75,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,168,75,0.5);
  opacity: 1;
}

/* ===== SECTION COMMONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }

.section-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
}

.section-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  margin: 12px 0 16px;
}

/* ===== PROBLEM ===== */
.problem-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.problem-list li {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid #e53935;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
}

.problem-list li .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.problem-list li .text strong {
  display: block;
  color: #c62828;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== SERVICE FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== WHAT IS NOT ===== */
.not-section {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-lg);
  padding: 32px;
}

.not-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.not-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.not-list li {
  padding: 10px 16px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.not-list li .no { color: #ef5350; font-weight: 700; flex-shrink: 0; }
.not-list li .yes { color: #43a047; font-weight: 700; flex-shrink: 0; }

/* ===== FLOW ===== */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 31px;
  top: 72px;
  width: 2px;
  height: calc(100% - 44px);
  background: linear-gradient(to bottom, var(--accent), var(--gold));
}

.flow-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
  line-height: 1;
}

.flow-num .step-label {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.flow-num .step-num {
  font-size: 1.4rem;
}

.flow-content {
  flex: 1;
  padding-top: 8px;
}

.flow-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.flow-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== PLANS ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.plan-card:hover { transform: translateY(-4px); }

.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(200,168,75,0.25);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.plan-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.plan-price {
  margin-bottom: 6px;
}

.plan-price .amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.plan-price .currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.plan-price .tax {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.plan-period {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(30,136,229,0.08);
  border-radius: 50px;
  display: inline-block;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-features li {
  font-size: 0.88rem;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: #43a047;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none !important;
}

.plan-cta:hover { background: var(--accent); transform: translateY(-2px); opacity: 1; }

.plan-card.featured .plan-cta {
  background: var(--gold);
  color: var(--primary-dark) !important;
}

.plan-card.featured .plan-cta:hover { background: var(--gold-light); }

.plan-option-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 14px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ===== TARGET ===== */
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.target-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.target-icon { font-size: 2rem; margin-bottom: 12px; }

.target-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.target-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== COOLING OFF ===== */
.cooling-off-box {
  background: #e8f5e9;
  border: 2px solid #43a047;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.cooling-off-box h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2e7d32;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cooling-off-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.cooling-off-box th, .cooling-off-box td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #a5d6a7;
}

.cooling-off-box th {
  background: #c8e6c9;
  font-weight: 700;
  color: #1b5e20;
  white-space: nowrap;
}

.cooling-off-box td { background: #fff; color: var(--text); }

.cooling-off-box .note-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.cooling-off-box .note-list li {
  font-size: 0.88rem;
  padding: 10px 14px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  border-left: 3px solid #43a047;
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 60%, var(--accent) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.contact-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.contact-item .label {
  font-size: 0.72rem;
  opacity: 0.7;
  display: block;
  letter-spacing: 0.06em;
}

.contact-item .value {
  font-weight: 700;
  font-size: 1rem;
}

.contact-item a {
  color: #fff !important;
  text-decoration: none !important;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand .brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.footer-brand .company {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
}

.footer-nav h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
}

.footer-nav ul li a:hover {
  color: var(--gold-light) !important;
  opacity: 1;
  text-decoration: underline !important;
}

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

/* ===== INNER PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 56px 0 52px;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.7) !important;
}

.page-content {
  padding: 64px 0;
  max-width: 860px;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 10px;
}

.page-content p, .page-content li {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text);
}

.page-content ul, .page-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-content ul li, .page-content ol li {
  margin-bottom: 6px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.page-content th, .page-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.page-content th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  width: 30%;
}

.page-content td { background: #fff; }

.cooling-off-block {
  background: #e8f5e9;
  border: 2px solid #43a047;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 24px 0;
}

.cooling-off-block h3 {
  color: #2e7d32;
  margin-top: 0;
  font-size: 1rem;
  font-weight: 800;
}

.cooling-off-block p, .cooling-off-block li {
  font-size: 0.88rem;
  color: #1b5e20;
}

.important-box {
  background: #fff3e0;
  border: 1px solid #ffb74d;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 0.88rem;
}

.important-box strong {
  color: #e65100;
  display: block;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .plans-grid { grid-template-columns: 1fr; }
  .cooling-off-box { padding: 24px 16px; }
  .cooling-off-box table { font-size: 0.82rem; }
  .cooling-off-box th, .cooling-off-box td { padding: 8px 10px; }
  .page-content th { width: auto; white-space: normal; }
  .contact-info { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { width: 95%; padding: 0 12px; }
  .site-header .container { height: 60px; }
  .site-logo .brand { font-size: 0.95rem; }
  .header-cta a { padding: 8px 16px; font-size: 0.78rem; }
  .btn-primary { padding: 14px 32px; font-size: 0.92rem; }
  .feature-card { padding: 24px 18px; }
  .plan-card { padding: 24px 20px; }
  .not-section { padding: 20px 16px; }
}
