/* =============================================
   common.css
   トリマックス 全デバイス共通スタイル
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-navy: #1a2a3a;
  --color-navy-mid: #2c4058;
  --color-navy-light: #e8edf2;
  --color-wood: #c8873a;
  --color-wood-light: #f5e6d3;
  --color-wood-dark: #8b5e2a;
  --color-text: #1a2a3a;
  --color-text-muted: #5a6a7a;
  --color-bg: #fafaf8;
  --color-bg-warm: #f7f3ee;
  --color-line: #e8e0d8;
  --font-display: 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 15px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--color-navy);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-logo img {
  height: 28px;
  mix-blend-mode: screen;
}
.logo-sub {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 10px;
  margin-left: 2px;
}
.header-link {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.header-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: #fff;
}
.header-note {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.btn-login {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-login:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 64px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-wood);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-line);
}
.divider {
  height: 1px;
  background: var(--color-line);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  background: #e8f0f7;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(0,0,0,0.02) 80px,
    rgba(0,0,0,0.02) 81px
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--color-wood-dark); }
.hero-sub {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.hero-env {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}
.hero-img {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  margin-bottom: 36px;
}
/* ===== BUTTONS 共通基底 ===== */
.btn-primary,
.btn-outline,
.btn-light {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 44px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover,
.btn-outline:hover,
.btn-light:hover {
  transform: translateY(-1px);
}

/* Navy背景ボタン（主要CTA・フォーム送信） */
.btn-primary {
  background: var(--color-navy);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(26,42,58,0.25);
}
.btn-primary:hover {
  background: var(--color-navy-mid);
  box-shadow: 0 6px 20px rgba(26,42,58,0.3);
}

/* 白背景ボタン（料金カード内） */
.btn-light {
  background: #fff;
  color: var(--color-navy);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-light:hover {
  background: var(--color-wood-light);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* アウトラインボタン（サブCTA） */
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,42,58,0.2);
}

.hero-trial-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ===== TRUST BADGES ===== */
.trust-section {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: #fff;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 28px;
  padding-bottom: 28px;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 24px;
  text-align: center;
}
.trust-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.2;
}
.trust-label {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--color-line);
  flex-shrink: 0;
}

/* ===== WORRY ===== */
.worry-section {
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.worry-img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feature-card .f-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}
.feature-card .f-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.feature-card .f-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.features-note {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  border-left: 3px solid var(--color-wood);
  padding-left: 16px;
  margin-bottom: 28px;
}
.features-cta {
  text-align: center;
}
/* ===== SCREENS ===== */
.screens-section {
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.screens-full {
  padding: 0 0 40px;
}
.screens-full .section-label-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.screen-figure {
  margin: 0 0 24px;
}
.screen-img-full {
  display: block;
  width: 60%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.screen-figure figcaption {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 10px 0 24px;
  letter-spacing: 0.05em;
}
/* 旧 .screens（DIYページ等で引き続き使用） */
.screens {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.screen-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* ===== PRICING ===== */
.pricing-card {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(26,42,58,0.2);
}
.pricing-card .p-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pricing-card .p-init {
  font-size: 13px;
  color: var(--color-wood);
  margin-bottom: 8px;
}
.pricing-card .p-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.pricing-card .p-price span {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
}
.pricing-card .p-tax {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.pricing-card .p-features {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-bottom: 28px;
}
.pricing-card .p-features li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding: 4px 0;
  line-height: 1.6;
}
.p-trial-badge {
  display: inline-block;
  background: var(--color-wood);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.pricing-card .p-note {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.pricing-calc {
  background: var(--color-wood-light);
  border: 1px solid rgba(200,135,58,0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.calc-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-wood-dark);
  margin-bottom: 8px;
}
.calc-body {
  font-size: 14px;
  color: var(--color-wood-dark);
  line-height: 1.8;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-item:last-child { border-bottom: none; }

/* summaryのデフォルト三角を非表示 */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  user-select: none;
}
.faq-q:hover { opacity: 0.8; }
.faq-q .q-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-q .q-text {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-navy);
  line-height: 1.6;
}
.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}
.faq-arrow::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  margin-top: -4px;
}
details[open] .faq-arrow {
  transform: rotate(180deg);
}
details[open] .faq-arrow::after {
  margin-top: 4px;
}
.faq-a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 20px 0;
}
.faq-a .a-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-wood-light);
  color: var(--color-wood-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.faq-a .a-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== COMPANY ===== */
.company-section {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg-warm);
}
.company-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.company-table tr { border-bottom: 1px solid var(--color-line); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  width: 140px;
  padding: 14px 0;
  font-weight: 700;
  color: var(--color-navy);
  text-align: left;
  vertical-align: top;
}
.company-table td {
  padding: 14px 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-section { border-top: 1px solid var(--color-line); }
.contact-intro {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 32px;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-tel:hover { color: var(--color-wood-dark); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.required {
  display: inline-block;
  background: #e8534a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.optional {
  display: inline-block;
  background: var(--color-navy-light);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26,42,58,0.08);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-privacy {
  padding: 14px 16px;
  background: var(--color-bg-warm);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.privacy-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.privacy-check input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.privacy-hint {
  font-size: 11px;
  color: var(--color-wood-dark);
  margin-top: 6px;
  padding-left: 26px;
}
.privacy-check a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-submit { display: flex; justify-content: center; margin-top: 8px; }
/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-navy);
  padding: 32px 24px;
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }
.footer-pr {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.footer-pr a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-pr a:hover { color: rgba(255,255,255,0.8); }
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp 0.6s ease both; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.45s; }
.hero-inner > *:nth-child(6) { animation-delay: 0.50s; }
.hero-inner > *:nth-child(7) { animation-delay: 0.54s; }
