/* =====================================================
   銚子補聴器みぞぐち  共通スタイル
   ===================================================== */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: #5a5a5a;
  background-color: #faf9f6;
}

/* ---------- Typography ---------- */
.sec-ja {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #4a4a4a;
  font-size: 1.9rem;
  line-height: 1.5;
}
.sec-ja-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sec-ja-deco::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #6db38a 0%, #b8975a 100%);
  border-radius: 2px;
}
.sec-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.18em;
  color: #b8975a;
  font-size: 0.85rem;
}

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.1em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, #6db38a, #b8975a);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover          { color: #4e8f6a; }
.nav-link:hover::after   { width: 100%; }
.nav-link.active         { color: #4e8f6a; font-weight: 500; }
.nav-link.active::after  { width: 100%; }

/* Mobile menu */
#mobile-menu          { display: none; }
#mobile-menu.open     { display: flex; }

/* ---------- Buttons ---------- */
.tel-btn {
  background: linear-gradient(135deg, #6db38a 0%, #3a8060 100%);
  letter-spacing: 0.18em;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(58,128,96,0.28), inset 0 1px 0 rgba(255,255,255,0.20);
  border: none;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  padding-top: calc(1em - 8px);
  padding-bottom: calc(1em + 8px);
}
.tel-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.tel-btn:hover {
  background: linear-gradient(135deg, #7ac49b 0%, #4a9070 100%);
  box-shadow: 0 10px 32px rgba(58,128,96,0.36), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-2px);
}
.tel-btn:hover::after {
  left: 160%;
}

/* ---------- Cards ---------- */
.p-card {
  background: #ffffff;
  border: 1px solid #ece7e0;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(80,65,50,0.06);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.p-card:hover {
  border-color: #a8d4b8;
  box-shadow: 0 10px 36px rgba(80,65,50,0.11);
  transform: translateY(-4px);
}
.top-accent { border-top: 3px solid #bfd97b; }

/* ---------- Image placeholder ---------- */
.img-ph {
  background: linear-gradient(135deg, #f6fbe9 0%, #e8ede0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------- Page hero band ---------- */
.page-hero {
  background: linear-gradient(160deg, #deeab8 0%, #edf5d8 40%, #f7f2ea 100%);
  border-bottom: 1px solid rgba(180,210,160,0.4);
}

/* ---------- Step flow ---------- */
.step-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #6db38a;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 1.35rem; font-weight: 600;
  color: #7dbb97;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(109,179,138,0.18);
}
.step-arrow {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #bfd97b;
}
/* Equal-height step cards */
.step-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .step-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .step-arrow    { display: none; }
  .step-card     { min-width: 0; display: flex; flex-direction: column; }
  .step-card .step-body { flex: 1; }
}
@media (min-width: 1280px) {
  .step-row      { display: flex; flex-direction: row; align-items: stretch; gap: 0; }
  .step-arrow    { display: flex; }
  .step-card     { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; }
}

/* ---------- Hours table ---------- */
.hours-table th { font-weight: 400; letter-spacing: 0.12em; }
.hours-table td { letter-spacing: 0.08em; }

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.fade      { animation: fadeIn 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.fade-d1   { animation-delay: 0.1s; }
.fade-d2   { animation-delay: 0.25s; }
.fade-d3   { animation-delay: 0.4s; }
/* alias used in index */
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }

/* ---------- Wave section dividers ---------- */
.wave-bg {
  position: relative;
  overflow: hidden;
}
.wave-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath d='M0,52 Q720,0 1440,52 L1440,0 L0,0 Z' fill='white'/%3E%3C/svg%3E") no-repeat top / 100% 100%;
}

/* ---------- Decorative lines ---------- */
.gold-line {
  display: block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, #b8975a, transparent);
  margin: 0 auto;
}

/* =====================================================
   index.html 固有
   ===================================================== */
.hero-bg {
  background-color: #f6fbe9;
}

/* =====================================================
   owner.html 固有
   ===================================================== */
.quote-block {
  border-left: 4px solid #bfd97b;
  background: linear-gradient(to right, #f8fbf2, #faf8f4);
  border-radius: 0 12px 12px 0;
}
.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #ede8e0;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  flex-shrink: 0;
  width: 5.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4e8f6a;
  letter-spacing: 0.1em;
  padding-top: 0.15rem;
}
.info-value {
  font-size: 0.97rem;
  color: #5a5a5a;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f9ec;
  border: 1px solid #b8d8a0;
  color: #3d7558;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

/* =====================================================
   about.html 固有（ギャラリー）
   ===================================================== */
#main-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #d4e8db;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  background: linear-gradient(135deg, #f6fbe9 0%, #dde8e2 100%);
  width: 100%;
  aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: background 0.3s;
}
#main-icon-wrap {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}
#main-icon-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
#main-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(40,40,40,0.72) 0%, transparent 100%);
  color: #fff;
  padding: 2rem 1.25rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  pointer-events: none;
}
#main-label p.sub {
  font-size: 0.78rem;
  font-weight: 300;
  opacity: 0.85;
  margin-top: 0.2rem;
}
.thumb {
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: linear-gradient(135deg, #f6fbe9 0%, #dde8e2 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* PC表示：サムネグリッドをメイン画像に高さ揃え */
@media (min-width: 1024px) {
  .thumb { aspect-ratio: unset; }
}
.thumb:hover,
.thumb.active {
  border-color: #6db38a;
  box-shadow: 0 4px 16px rgba(109,179,138,0.28);
}
.thumb-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(44,44,44,0.65) 0%, transparent 100%);
  color: #fff;
  font-size: 0.72rem;
  padding: 1.2rem 0.5rem 0.4rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  pointer-events: none;
}
.thumb.active .thumb-label {
  background: linear-gradient(to top, rgba(78,143,106,0.75) 0%, transparent 100%);
}
.maker-card {
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(80,65,50,0.05);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.22s;
  min-height: 130px;
}
.maker-card:hover {
  border-color: #a8d4b8;
  box-shadow: 0 8px 24px rgba(80,65,50,0.1);
  transform: translateY(-4px);
}
.maker-card .maker-logo-ph {
  width: 100%; height: 72px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.maker-card .maker-name      { font-size:0.85rem; font-weight:500; color:#5a5a5a; letter-spacing:0.06em; text-align:center; }
.maker-card .maker-name-ja   { font-size:0.72rem; color:#8a8278; letter-spacing:0.06em; text-align:center; }

/* =====================================================
   philosophy.html 固有
   ===================================================== */
.big-quote {
  border-left: 4px solid #bfd97b;
  background: linear-gradient(to right, #f3f9ec, #faf7f2);
  border-radius: 0 16px 16px 0;
}
.phi-card {
  background: #fff;
  border: 1px solid #ece7e0;
  border-top: 3px solid #bfd97b;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(80,65,50,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.phi-card:hover {
  box-shadow: 0 10px 32px rgba(80,65,50,0.11);
  transform: translateY(-4px);
}
.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef7e8, #e2f0d6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(109,179,138,0.15);
}

/* =====================================================
   first.html 固有
   ===================================================== */
.info-block {
  background: #fff;
  border: 1px solid #ece7e0;
  border-left: 4px solid #bfd97b;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 2px 10px rgba(80,65,50,0.05);
}
.notice-box {
  background: linear-gradient(135deg, #fffdf6, #fdf8ee);
  border: 1px solid #e8d8b0;
  border-radius: 10px;
}
.step-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid #6db38a;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 1.35rem; font-weight: 600; color: #7dbb97;
  flex-shrink: 0; background: #fff;
  box-shadow: 0 2px 8px rgba(109,179,138,0.18);
}
.check-item               { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-item .ck           { color: #bfd97b; flex-shrink: 0; margin-top: 2px; font-size: 1rem; }
.sec-h2 {
  font-size: 1.15rem; font-weight: 500;
  color: #4a4a4a; letter-spacing: 0.1em;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e0dbd4;
  margin-bottom: 1.25rem;
}
.sec-h2 span { color: #eaab5d; }

/* =====================================================
   access.html 固有
   ===================================================== */
.map-ph {
  background: linear-gradient(135deg, #f6fbe9 0%, #dde8e2 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px solid #d4e8db;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.landmark {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #f3f9ec; border: 1px solid #b8d8a0;
  color: #3d7558; font-size: 0.8rem;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  letter-spacing: 0.06em;
}
.h-table th { font-weight: 400; letter-spacing: 0.1em; font-size: 0.85rem; }

/* =====================================================
   voices.html 固有
   ===================================================== */
.v-card {
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(80,65,50,0.06);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.v-card:hover {
  border-color: #a8d4b8;
  box-shadow: 0 10px 32px rgba(80,65,50,0.11);
  transform: translateY(-4px);
}
.v-card-featured {
  background: linear-gradient(145deg, #eef8f2 0%, #faf7f0 100%);
  border: 1px solid #b8d8c0;
}
.q-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; line-height: 1;
  color: #b8d8c0; font-weight: 300;
}
.avatar {
  width: 3.75rem; height: 3.75rem;
  border-radius: 50%;
  background: #f3f9ec;
  border: 2px solid #a8d4b8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(109,179,138,0.15);
}
