/* ═══════════════════════════════════════════
   大東テープ工業株式会社  ─  style.css
   ═══════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --navy:       #1a2e4a;
  --navy-mid:   #2c4163;
  --accent:     #1a5faa;
  --text:       #1a1a1a;
  --text-mid:   #444444;
  --text-light: #777777;
  --border:     #d8d8d4;
  --bg:         #ffffff;
  --bg-section: #f5f4f0;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.35s ease;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-jp {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.1em;
  line-height: 1;
}

.logo-en {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-light);
  text-transform: uppercase;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

#main-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.2s;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

#main-nav a:hover { color: var(--accent); }
#main-nav a:hover::after { width: 100%; }

.nav-contact-btn {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 9px 22px;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  transition: background 0.2s !important;
}

.nav-contact-btn::after { display: none !important; }
.nav-contact-btn:hover { background: var(--accent) !important; color: #fff !important; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--navy);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
}

.hamburger.is-open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ════════════════════════════════════════════
   MOBILE MENU
   ════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.mobile-menu-close:hover { border-color: var(--navy); }

.close-line {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--navy);
  position: absolute;
}

.close-line:nth-child(1) { transform: rotate(45deg); }
.close-line:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; }

.mobile-nav-link {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.1em;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.25s ease;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-nav-link:first-child { border-top: 1px solid var(--border); }
.mobile-nav-link:hover { color: var(--accent); padding-left: 10px; }

.mobile-menu.is-open .mobile-nav-link:nth-child(1) { opacity: 1; transform: none; transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s, color 0.2s, padding-left 0.25s; }
.mobile-menu.is-open .mobile-nav-link:nth-child(2) { opacity: 1; transform: none; transition: opacity 0.35s ease 0.17s, transform 0.35s ease 0.17s, color 0.2s, padding-left 0.25s; }
.mobile-menu.is-open .mobile-nav-link:nth-child(3) { opacity: 1; transform: none; transition: opacity 0.35s ease 0.24s, transform 0.35s ease 0.24s, color 0.2s, padding-left 0.25s; }

body.menu-open { overflow: hidden; }


/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slide-container { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

.slide.active { opacity: 1; }

.slide-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.slide.active .slide-bg { transform: scale(1); }

.slide-1 .slide-bg {
  background-color: #1a2e4a;
  background-image: url(images/image1.jpg);
  background-size: cover;
}
.slide-2 .slide-bg {
  background-color: #162640;
  background-image: url(images/image2.jpg);
  background-size: cover;
}
.slide-3 .slide-bg {
  background-color: #1e3255;
  background-image: url(images/image3.jpg);
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.52) 0%, rgba(10,22,40,0.38) 100%);
  z-index: 1;
}

/* ヒーローテキスト ── ページ読み込み時フェードイン */
.hero-content {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 760px;
  animation: heroFadeIn 1.2s ease 0.3s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.45em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  color: #fff;
  line-height: 1.65;
  letter-spacing: 0.1em;
  margin-bottom: 100px;
}

.hero-sub {
  font-size: clamp(13px, 1.4vw, 15px);
  color: rgba(255,255,255,0.82);
  line-height: 1.95;
  letter-spacing: 0.08em;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 14px 38px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.hero-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* スライドドット */
.slide-indicators {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slide-dot {
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  outline: none;
}

.slide-dot.active { background: #fff; width: 40px; }


/* ════════════════════════════════════════════
   SECTION COMMON
   ════════════════════════════════════════════ */
section { position: relative; }

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-header { margin-bottom: 52px; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.38em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.3;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--navy);
  display: inline-block;
  /* スクロール時にアンダーラインがスライドイン */
  border-bottom-width: 0;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--navy);
  transition: width 0.7s ease 0.2s;
}

.section-header.visible .section-title::after { width: 100%; }

/* フェードアニメーション */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }


/* ════════════════════════════════════════════
   BUSINESS
   ════════════════════════════════════════════ */
#business { background: var(--bg); }

.business-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2.1;
  letter-spacing: 0.06em;
  max-width: 100%;
  margin-bottom: 52px;
  font-weight: 400;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.business-card {
  background: #fff;
  padding: 40px 36px 44px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

/* カードホバー: 上線が左→右にスライド */
.business-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.business-card:hover::before { width: 100%; }
.business-card:hover {
  background: #fafbfd;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-3px);
  z-index: 1;
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.card-num {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
}

.card-img-wrap {
  margin-bottom: 24px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.business-card:hover .card-img { transform: scale(1.03); }

/* 画像未設定時のプレースホルダー */
.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-section);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder::after {
  content: 'IMAGE';
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--border);
  font-weight: 500;
}

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

.card-items li {
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
  font-weight: 400;
}

.card-items li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 5px; height: 1.5px;
  background: var(--accent);
}


/* ════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════ */
#about { background: var(--bg-section); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-img-placeholder {
  width: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
}

.about-img-placeholder svg { width: 100%; height: auto; display: block; }

.about-img { width: 100%; height: auto; display: block; border: 1px solid var(--border); }

.about-img-caption {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2.1;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  font-weight: 400;
}

.about-table { width: 100%; border-collapse: collapse; }
.about-table tr { border-bottom: 1px solid var(--border); }
.about-table tr:first-child { border-top: 1px solid var(--border); }

.about-table th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-light);
  width: 90px;
  padding: 13px 12px 13px 0;
  vertical-align: top;
  white-space: nowrap;
  text-align: left;
}

.about-table td {
  font-size: 13px;
  color: var(--text);
  padding: 13px 0;
  letter-spacing: 0.04em;
  line-height: 1.75;
  font-weight: 400;
}


/* ════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */
#contact { background: var(--bg); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 50px;
}

.contact-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2.1;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  font-weight: 400;
}

.contact-methods { display: flex; flex-direction: column; }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.method-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--accent);
  min-width: 42px;
  padding-top: 6px;
}

.method-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.method-value.mail { font-size: 16px; letter-spacing: 0.02em; }
.method-value:hover { color: var(--accent); }

.method-note {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* 営業時間 */
.hours-panel {
  background: var(--bg-section);
  border: 1px solid var(--border);
  padding: 36px 40px;
}

.hours-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:first-child { border-top: 1px solid var(--border); }

.hours-table th {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  text-align: left;
  padding: 13px 12px 13px 0;
  letter-spacing: 0.05em;
}

.hours-table td {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 13px 0;
  letter-spacing: 0.06em;
  text-align: right;
}

.hours-table td.closed { color: var(--text-light); font-weight: 400; }

.hours-note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-weight: 400;
}


/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
footer { background: var(--navy); }

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-jp {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.footer-logo-en {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

.footer-tagline {
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.footer-col-title {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
  display: block;
}

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

.footer-links a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.6);
  transition: width 0.25s ease;
}

.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { width: 100%; }

.footer-address {
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.05em;
  font-style: normal;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.footer-bottom { padding: 22px 0; }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .business-grid  { grid-template-columns: 1fr 1fr; }
  .about-layout   { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-top     { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .header-inner  { padding: 0 20px; }
  .section-inner { padding: 72px 20px; }
  .footer-inner  { padding: 0 20px; }
  .business-grid { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 40px; }
  #main-nav      { display: none; }
  .hamburger     { display: flex; }
  .hours-panel   { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .logo-jp             { font-size: 13px; }
  .hero-title          { font-size: 28px; }
  .mobile-nav-link     { font-size: 22px; }
}
