/* ===========================
   TEMC HP — main.css
   （main.html専用スタイル）
   =========================== */

/* ---------- Service セクション背景 ---------- */
#service {
  position: relative;
  background-image: linear-gradient(rgba(10,10,10,0.72), rgba(10,10,10,0.72)),
                    url('../images/service-summer.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

#service .section-tag {
  background: var(--color-red);
  color: var(--color-white);
}

#service .section-title {
  color: var(--color-white);
}

#service .section-desc {
  color: rgba(255,255,255,0.8);
}

/* ---------- About ドライバー画像 ---------- */
.about-img-wrap {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 420px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ---------- Section 共通 ---------- */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--color-bg);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--color-sub);
  line-height: 1.8;
}

/* ---------- #service — バッジ・ユースケース ---------- */
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.45);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.badge-red {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.usecase-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.service-note {
  margin-top: 32px;
  font-size: 0.85rem;
  color: #333;
  text-align: center;
  line-height: 1.8;
  background: rgba(255,255,255,0.9);
  padding: 16px 24px;
  border-radius: 8px;
}

/* ---------- #service — カードグリッド ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

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

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.card-body {
  font-size: 0.875rem;
  color: var(--color-sub);
  line-height: 1.7;
}

/* ---------- #price — 基本料金ヒーロー ---------- */
.price-hero {
  background: var(--color-white);
  border: 2px solid var(--color-red);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 48px;
}

.price-hero-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-hero-area {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.price-hero-from {
  font-size: 0.9rem;
  color: var(--color-sub);
}

.price-hero-val {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-red);
  line-height: 1;
}

.price-hero-val small {
  font-size: 1.2rem;
  font-weight: 700;
}

.price-hero-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-sub);
}

/* ---------- アコーディオン ---------- */
.accordion {
  border-bottom: 1px solid var(--color-border);
}

.accordion:first-child {
  border-top: 1px solid var(--color-border);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}

.accordion-btn:hover {
  color: var(--color-red);
}

.accordion-price {
  margin-left: auto;
  font-weight: 900;
  color: var(--color-red);
  white-space: nowrap;
}

.accordion-arrow {
  font-size: 0.7rem;
  color: var(--color-sub);
  flex-shrink: 0;
}

.accordion-body {
  padding: 4px 4px 20px;
  font-size: 0.875rem;
  color: var(--color-sub);
  line-height: 1.7;
}

/* ---------- #price — 料金表 ---------- */
.price-block {
  margin-bottom: 40px;
}

.price-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--color-red);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-bg);
  font-weight: 700;
  color: var(--color-sub);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-val {
  font-weight: 700;
  color: var(--color-red);
  white-space: nowrap;
}

/* 支払い方法 */
.price-payment {
  margin-bottom: 40px;
}

.payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.payment-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.payment-main {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.price-note {
  font-size: 0.8rem;
  color: var(--color-sub);
}

/* キャンセルポリシー */
.cancel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cancel-list li {
  font-size: 0.9rem;
  padding: 12px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.cancel-list li strong {
  color: var(--color-red);
}

/* ---------- #estimate / #contact — フォーム ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--sub {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 3px solid var(--color-border);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-red);
  padding: 2px 6px;
  border-radius: 2px;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(208, 2, 27, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-sub);
  margin-top: 4px;
}

.form-link {
  color: var(--color-red);
  text-decoration: underline;
}

.form-dynamic {
  margin-top: 8px;
}

/* ラジオ・チェックボックス */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-label,
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.radio-label input,
.checkbox-label input {
  accent-color: var(--color-red);
  width: 16px;
  height: 16px;
}

/* LINE 導線ボタン */
.line-entry {
  background: #06C755;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.line-entry-body {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.line-entry-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.line-qr-placeholder {
  width: 96px;
  height: 96px;
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #06C755;
  font-weight: 700;
  text-align: center;
}

.line-qr-caption {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
}

.line-entry-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contact-method-fixed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #06C755;
  color: white;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

.line-entry-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  font-weight: 500;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: #06C755;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.btn-line:hover {
  opacity: 0.9;
}

.line-icon {
  font-size: 0.75rem;
  font-weight: 900;
  background: #06C755;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
}

.line-entry-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  margin-top: 10px;
}

/* フォーム区切り線 */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--color-sub);
  font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* 緊急CTA */
.urgent-cta {
  margin-top: 40px;
  padding: 24px;
  border: 2px solid var(--color-red);
  border-radius: 8px;
  text-align: center;
}

.urgent-label {
  font-size: 0.85rem;
  color: var(--color-sub);
  margin-bottom: 12px;
  font-weight: 600;
}

.btn-urgent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 900;
  padding: 14px 32px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.btn-urgent:hover {
  background: var(--color-red-dark);
}

.urgent-note {
  font-size: 0.78rem;
  color: var(--color-sub);
  margin-top: 10px;
  line-height: 1.6;
}

/* LINE QR */
.line-qr-box {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.line-qr-placeholder {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-sub);
  text-align: center;
  background: var(--color-bg);
}

.line-qr-note {
  font-size: 0.8rem;
  color: var(--color-sub);
}

/* 全幅ボタン */
.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 18px;
  font-size: 1rem;
}

/* ---------- #about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.info-table th {
  font-weight: 700;
  color: var(--color-sub);
  width: 36%;
  white-space: nowrap;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* ---------- サブナビゲーション ---------- */
.sub-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
  display: none;
}

.sub-nav a {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-sub);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

/* ---------- サービスページ CTA ---------- */
.service-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}


/* ---------- 配達フロー ---------- */
.flow-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.flow-step--last {
  border-color: var(--color-red);
  box-shadow: 0 0 0 1px var(--color-red);
}

.flow-step-num {
  flex-shrink: 0;
  min-width: 72px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 6px 10px;
  border-radius: 4px;
}

.flow-step--last .flow-step-num {
  background: var(--color-red-dark);
}

.flow-step-body {
  flex: 1;
}

.flow-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.flow-step-desc {
  font-size: 0.875rem;
  color: var(--color-sub);
  line-height: 1.7;
}

.flow-arrow {
  color: var(--color-red);
  font-size: 1rem;
  line-height: 1;
  padding: 6px 0;
  opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section {
    padding: 60px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .price-table th,
  .price-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .flow-step {
    gap: 14px;
    padding: 16px 18px;
  }

  .flow-step-num {
    min-width: 60px;
    font-size: 0.65rem;
  }

  .flow-step-title {
    font-size: 0.95rem;
  }
}
