/* =========================
   Header / Navigation
   ========================= */

/* Header */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.logo img {
  height: 2rem;
}

/* Search */
.search-box {
  flex: 1;
  max-width: 32rem;
  position: relative;
  display: none;
}
@media (min-width: 768px) {
  .search-box { display: block; }
}

.search-box input {
  width: 100%;
  padding: 0.5rem 1rem;
  padding-right: 2.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background-color: var(--gray-100);
}

.search-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray-600);
  font-size: 0.75rem;
}

.cart-icon-wrapper { position: relative; }

.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: var(--red-500);
  color: var(--white);
  font-size: 0.75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact button */
.contact-button {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #7ac47f;
  color: #333;
  border-radius: 0.5rem;
}
@media (min-width: 1024px) {
  .contact-button { display: flex; }
}

/* Mobile menu button */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
}
@media (min-width: 1024px) {
  .mobile-menu-button { display: none; }
}

/* Global Navigation */
.main-nav {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.nav-list {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  white-space: nowrap;
  list-style: none;
}

.nav-list li a {
  color: var(--gray-600);
  font-size: 0.875rem;
}
.nav-list li a:hover {
  color: var(--gray-900);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.mobile-menu.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}
.mobile-nav ul li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav ul li a:hover {
  background-color: var(--gray-50);
  color: var(--gray-900);
}

/* =========================
   Footer
   ========================= */

.footer {
  background: #111;
  color: #fff;
  padding: 32px 0 24px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Top columns */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-column {
  padding: 8px 0 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-column:first-child {
  border-top: none;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin: 2px 0;
}

/* SNS (text links) */
.footer-social {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social .social-link {
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

/* PC layout */
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
  }
  .footer-column {
    border-top: none;
    flex: 1;
    max-width: 33%;
  }
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 24px;
  padding-top: 12px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* SNS icons */
.footer-sns {
  margin-top: 1.5rem;
  text-align: right;
}

.footer-sns-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-sns-list {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  list-style: none;
}

.footer-sns-list .sns-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-sns-list .sns-link:hover {
  background: #fff;
}

/* ===== Header : Contact Button Fix ===== */
.contact-button {
  font-size: 0.85rem;          /* 全体を一段小さく */
  line-height: 1.2;
}

.contact-button .phone-number {
  font-weight: 700;            /* 電話番号は太字 */
  font-size: 0.95rem;
}

.contact-button .phone-hours {
  font-size: 0.7rem;           /* 営業時間は小さく */
  font-weight: 400;
  opacity: 0.9;
}

/* ===== Footer : SNS note ===== */
.footer-sns-note {
  font-size: 0.7rem;     /* 小さめ注釈 */
  color: #aaaaaa;
  line-height: 1.4;
}
