/*
Theme Name: テープダビング.com
Theme URI: https://www.tapedubbing.com
Author: 株式会社夢現
Author URI: https://www.tapedubbing.com
Description: テープダビング.com 公式テーマ
Version: 1.0.0
License: Private
Text Domain: tapedubbing
*/

/* Google Fonts はfunctions.phpでenqueue */

:root {
  --primary: #2d4a6b;
  --primary-light: #2e7ab5;
  --accent: #e8612e;
  --accent-light: #f4784a;
  --al: #f07040;
  --bg: #faf8f4;
  --white: #ffffff;
  --text: #1e1e1e;
  --text-muted: #666;
  --border: #e0ddd7;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --pop: 'Zen Maru Gothic', var(--sans);
  --radius: 10px;
}

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

body {
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); }

/* ===== SITE HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 100; }

/* NEWS BAR */
.news-bar { background: #1a2f45; }
.news-bar-in { max-width: 1100px; margin: 0 auto; padding: 8px 5%; display: flex; align-items: center; gap: 12px; }
.news-bar-label { background: var(--accent); color: white; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; letter-spacing: .04em; font-family: var(--pop); }
.news-bar-text { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: white; }
.news-bar-text a { color: rgba(255,255,255,.9); text-decoration: none; }
.news-bar-text a:hover { text-decoration: underline; }
.news-bar-date { font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap; flex-shrink: 0; }
.news-bar-more { font-size: 11px; color: rgba(255,255,255,.6); white-space: nowrap; text-decoration: none; padding: 2px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; flex-shrink: 0; }
.news-bar-close { background: none; border: none; color: rgba(255,255,255,.5); font-size: 18px; cursor: pointer; padding: 0 4px; flex-shrink: 0; line-height: 1; }
.news-bar-close:hover { color: white; }
@media (max-width:600px){ .news-bar-date, .news-bar-more { display: none; } }

/* HEADER */
.header { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 5%; }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.logo-chara { height: 48px; width: auto; display: block; object-fit: contain; }
.logo { font-family: var(--pop); font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; }
.logo span { color: var(--accent); }
.header-cta { background: var(--accent); color: var(--white); border: none; padding: 10px 22px; border-radius: 10px; font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.header-cta:hover { background: var(--accent-light); }
@media (max-width:480px){ .logo-chara { height: 38px; } }

/* SUB NAV */
.sub-nav { background: #2d4a6b; }
.sub-nav-in { max-width: 1100px; margin: 0 auto; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sub-nav-in::-webkit-scrollbar { display: none; }
.sub-nav a { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; text-decoration: none; padding: 11px 22px; display: block; border-right: 1px solid rgba(255,255,255,.1); white-space: nowrap; transition: background .15s; font-family: var(--pop); }
.sub-nav a:first-child { border-left: 1px solid rgba(255,255,255,.1); }
.sub-nav a:hover { background: rgba(255,255,255,.12); color: white; }
.sub-nav-contact { margin-left: auto; display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.sub-nav-tel { background: var(--accent); color: white; font-family: var(--pop); font-size: 15px; font-weight: 700; padding: 8px 18px; margin: 6px 0 6px 12px; border-radius: 6px; white-space: nowrap; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.sub-nav-tel::before { content: none; }
.sub-nav-tel:hover { background: var(--al); }
.sub-nav-contact-btn { background: var(--accent); color: white !important; font-family: var(--pop); font-size: 13px; font-weight: 700; padding: 8px 18px; margin: 6px 12px; border-radius: 6px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.sub-nav-contact-btn:hover { background: var(--al) !important; }
@media (max-width:720px){ .sub-nav-tel { display: none; } }
@media (max-width:480px){ .sub-nav-contact-btn { padding: 7px 12px; font-size: 12px; margin: 6px 8px; } }

/* ===== FOOTER ===== */
.footer { background: #0d1f2d; color: rgba(255,255,255,.6); padding: 48px 5% 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { font-family: var(--pop); font-size: 20px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-info { font-size: 14px; line-height: 2; color: rgba(255,255,255,.6); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.5); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; font-size: 14px; color: rgba(255,255,255,.35); border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; max-width: 1100px; margin: 0 auto; }
@media (max-width:720px){ .footer-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom:80px; right:16px; width:44px; height:44px; background: var(--primary); color: white; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); z-index: 80; opacity: 0; transition: opacity .3s; line-height: 1; }
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--primary-light); }
@media (min-width:721px){ .back-to-top { bottom: 24px; } }

/* ===== ESTIMATE POPUP ===== */
.est-popup { position: fixed; bottom: 24px; left: auto; right: 16px; width: 240px; background: var(--white); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.15); z-index: 9999; display: none; pointer-events: auto; overflow: hidden; will-change: transform; transform: translateZ(0); isolation: isolate; }
.est-popup-accent { height: 5px; background: var(--accent); }
.est-popup-body { padding: 16px 18px 18px; }
.est-popup-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 15px; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.est-popup-close:hover { background: #f0ece6; color: var(--text); }
.est-popup-title { font-family: var(--pop); font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 5px; padding-right: 20px; line-height: 1.4; }
.est-popup-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.est-popup-btn { display: block; background: var(--accent); color: white; text-align: center; padding: 11px; border-radius: 8px; font-family: var(--pop); font-size: 14px; font-weight: 700; text-decoration: none; }
.est-popup-btn:hover { background: var(--al); }
@media (max-width:480px){ .est-popup { display:none !important; } }

/* ===== SP CTA ===== */
.sp-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; padding: 9px 4%; background: white; border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,.1); }
.sp-cta a { display: block; background: var(--accent); color: white; text-align: center; padding: 13px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; font-family: var(--pop); }
@media (max-width:720px){ .sp-cta { display: block; } }

/* ===== COMMON SECTIONS ===== */
.section-eyebrow { font-size: 16px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; font-family: var(--pop); }
.section-title { font-family: var(--pop); font-size: clamp(20px, 3.5vw, 30px); font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.section-sub { font-size: 17px; font-weight: 500; color: var(--text-muted); }
.section-header { text-align: center; margin-bottom: 40px; }

/* ===== BUTTONS ===== */
.btn-main { background: var(--accent); color: white; border: none; padding: 16px 36px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; font-family: var(--pop); }
.btn-main:hover { background: var(--accent-light); }
.btn-sub { background: var(--accent); color: white; border: none; padding: 16px 36px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; font-family: var(--pop); }

/* ===== BREADCRUMB ===== */
.bc { background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 5%; font-size: 14px; color: var(--text-muted); }
.bc-in { max-width: 1100px; margin: 0 auto; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.bc a { color: var(--text-muted); text-decoration: none; }
.bc a:hover { color: var(--primary); }


/* ===== MOBILE RESPONSIVE ===== */

/* ハンバーガーボタン（PC非表示） */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ（開いた時のドロップダウン） */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary);
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 5%;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: rgba(255,255,255,.1); }
.mobile-nav .mobile-nav-cta {
  display: block;
  margin: 16px 5%;
  padding: 14px;
  background: var(--accent);
  color: white;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: none;
}

@media (max-width:600px){
  /* ヘッダー：CTAを隠してハンバーガー表示 */
  .header-inner { height: 56px; flex-wrap: nowrap; }
  .header-cta { display: none !important; }
  .hamburger-btn { display: flex; }

  /* サブナビ：モバイルで非表示 */
  .sub-nav { display: none; }

  /* site-headerをrelativeに（モバイルナビの基準点） */
  .site-header { position: relative; }
}
.plan-shipping-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.discount-badge { color: var(--accent); font-weight: 700; }
/* ===== オプション選択 ===== */
.optional-badge { font-size: 11px; background: var(--bg); color: var(--text-muted); border-radius: 4px; padding: 2px 8px; font-weight: 400; vertical-align: middle; }
.form-section-desc { font-size: 14px; color: var(--text-muted); margin: 4px 0 16px; }
.option-group-title { font-size: 13px; font-weight: 700; color: var(--primary); margin: 14px 0 6px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.option-checks { display: flex; flex-direction: column; gap: 6px; }
.option-check-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: background .15s; }
.option-check-item:hover { background: var(--bg); }
.option-check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.opt-label { font-size: 14px; font-weight: 500; flex: 1; }
.opt-price { font-size: 13px; color: var(--accent); font-weight: 700; margin-left: 8px; }
.media-note { font-size: 13px; color: var(--text-muted); margin: 4px 0 10px; line-height: 1.6; }
.option-qty-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; }
.option-qty-item .opt-label { flex: 1; font-size: 14px; font-weight: 500; }
.opt-qty-input { width: 64px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; text-align: center; }
.opt-unit { font-size: 13px; color: var(--text-muted); }