/* ============================================================
   翔誠運輸 共通スタイルシート
   style.css
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ===== 大阪イラスト 全体背景 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../img/osaka_illust.png') center center / contain no-repeat;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== CSS VARIABLES ===== */
:root {
  --blue:      #0a2d6e;
  --blue-mid:  #1a4fa0;
  --blue-light:#e8eef8;
  --red:       #c0001a;
  --gold:      #d4a732;
  --light:     #f4f6fa;
  --text:      #1a1a1a;
  --gray:      #666;
  --gray-light:#999;
  --border:    #e0e4ed;
  --header-h:  60px;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-logo-sub {
  font-size: 0.62rem;
  color: var(--gray);
  line-height: 1.2;
}
.header-logo-main {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.02em;
  line-height: 1;
}
.header-logo-main img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin: 0 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-tel {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.82rem;
}
.header-tel svg { width: 16px; height: 16px; fill: var(--blue); }

/* ===== HAMBURGER ===== */
.hamburger {
  width: 38px; height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--light); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== DRAWER ===== */
#drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--blue);
  z-index: 1001;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  padding-top: var(--header-h);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#drawer.open { right: 0; }
#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer-inner { padding: 12px 0 40px; }
.drawer-section-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  padding: 16px 24px 6px;
  text-transform: uppercase;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  padding: 13px 24px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, padding-left 0.2s;
  gap: 10px;
}
.drawer-nav a:hover { background: rgba(255,255,255,0.1); padding-left: 30px; }
.drawer-nav a .nav-arrow {
  margin-left: auto;
  width: 6px; height: 6px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.drawer-cta {
  margin: 20px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-cta a {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
}
.drawer-cta-contact { background: var(--red); color: #fff; }
.drawer-cta-tel { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* ===== FLOATING BUTTONS ===== */
#floating-buttons {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.float-btn {
  display: block;
  width: 54px;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn img { width: 54px; height: auto; display: block; }
.float-btn:hover { transform: translateX(5px); box-shadow: 4px 4px 14px rgba(0,0,0,0.28); }
.float-btn.hidden { display: none; }

@media (min-width: 768px) {
  #floating-buttons {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    position: fixed;
    z-index: 100;
  }
}

/* ===== BOTTOM NAV ===== */
#bottom-nav {
  position: fixed;
  bottom: -80px;
  left: 0; right: 0;
  height: 66px;
  background: rgba(8,18,35,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: stretch;
  z-index: 600;
  transition: bottom 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.3);
}
#bottom-nav.visible { bottom: 0; }
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.6rem;
  gap: 3px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
  padding: 8px 4px;
}
.bnav-item:last-child { border-right: none; }
.bnav-item:active { background: rgba(255,255,255,0.1); }
.bnav-item.bnav-contact { background: var(--red); color: #fff; }
.bnav-item.bnav-contact:active { background: #a0001a; }
.bnav-icon { font-size: 1.05rem; line-height: 1; }

/* ===== SCROLL TOP ===== */
#scroll-top {
  position: fixed;
  bottom: 80px;
  right: 14px;
  width: 42px; height: 42px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, bottom 0.4s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { transform: translateY(-2px); }

/* ===== PAGE HERO (内ページ共通) ===== */
.page-hero {
  margin-top: var(--header-h);
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,45,110,0.8) 0%, rgba(10,45,110,0.4) 100%);
}
.page-hero-body {
  position: relative;
  z-index: 2;
  padding: 20px 20px 24px;
  color: #fff;
}
.page-hero-en {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.page-hero-title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 10px 20px;
  font-size: 0.72rem;
  color: var(--gray-light);
  background: var(--light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }

/* ===== SECTION COMMON ===== */
.section {
  padding: 48px 20px;
}
.section-alt { background: var(--light); }
.section-dark { background: var(--blue); color: #fff; }

.section-head { margin-bottom: 28px; }
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--blue);
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.section-dark .section-title { color: #fff; }
.section-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--gray);
  padding-left: 14px;
}
.section-dark .section-sub { color: rgba(255,255,255,0.6); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  letter-spacing: 0.03em;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 16px; }
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.card-text {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.6;
}
.card-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

/* ===== TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.info-table th,
.info-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.info-table th {
  width: 35%;
  background: var(--light);
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.info-table td { color: var(--text); line-height: 1.7; }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.form-required {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-optional {
  display: inline-block;
  background: var(--gray-light);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,45,110,0.1);
}
.form-control.error { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 0.72rem; color: var(--gray); margin-top: 4px; }
.form-error-msg { font-size: 0.72rem; color: var(--red); margin-top: 4px; display: none; }
.form-error-msg.show { display: block; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

/* ===== GRID UTILS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-gray { color: var(--gray); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ===== BADGE / LABEL ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-blue { background: var(--blue); color: #fff; }
.badge-red { background: var(--red); color: #fff; }
.badge-gold { background: var(--gold); color: #fff; }
.badge-light { background: var(--blue-light); color: var(--blue); }

/* ===== FOOTER ===== */
#footer {
  background: #060e1f;
  color: rgba(255,255,255,0.75);
  padding: 44px 20px 110px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.footer-logo img { width: 18px; height: 18px; object-fit: contain; }
.footer-tagline { font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; font-style: italic; }
.footer-sep { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 18px 0; }
.footer-info { font-size: 0.74rem; line-height: 2.1; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.footer-info a { color: rgba(255,255,255,0.65); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 20px;
}
.footer-nav a { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.footer-nav a:hover { color: rgba(255,255,255,0.85); }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.35); }

/* ===== ALERT / NOTICE ===== */
.alert {
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #4caf50; }
.alert-error { background: #ffebee; color: #b71c1c; border-left: 4px solid var(--red); }
.alert-info { background: var(--blue-light); color: var(--blue); border-left: 4px solid var(--blue); }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .grid-2 { gap: 16px; }
}

@media (min-width: 768px) {
  :root { --header-h: 68px; }
  .section { padding: 64px 40px; }
  .page-hero { height: 260px; }
  .page-hero-title { font-size: 2.2rem; }
  .grid-2 { gap: 20px; }
  .grid-3 { gap: 20px; }
  .float-btn { width: 68px; }
  .float-btn img { width: 68px; }
  .info-table th { width: 28%; }
  #bottom-nav { display: none; }
  #scroll-top { bottom: 24px; }
  .card-img { height: 200px; }
}

@media (min-width: 1024px) {
  .section { padding: 80px max(40px, calc((100% - 1000px)/2)); }
  .page-hero { height: 320px; }
}
/* PCでサイドバナーを非表示にする場合 */
@media (min-width: 768px) {
  .side-banner {  /* クラス名は実際のものに合わせる */
    display: none;
  }
}