/* ========================================
   佐紀吉商事株式会社 公式サイト - スタイルシート
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #000;
}

ul,
ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background-color: #fafafa;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

.lead {
  font-size: 1.1rem;
  color: #555;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo a {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.02em;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  position: relative;
  padding-bottom: 2px;
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #333;
  transition: width 0.25s ease;
}

.header__nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.header__menu-btn span,
.header__menu-btn span::before,
.header__menu-btn span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  position: absolute;
  left: 5px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.header__menu-btn span {
  top: 15px;
}

.header__menu-btn span::before {
  content: "";
  top: -7px;
}

.header__menu-btn span::after {
  content: "";
  top: 7px;
}

.header__menu-btn.is-active span {
  background: transparent;
}

.header__menu-btn.is-active span::before {
  top: 0;
  transform: rotate(45deg);
  background: #333;
}

.header__menu-btn.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #333;
}

/* --- Mobile Nav Drawer --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 48px;
  gap: 24px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  padding: 8px 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.82rem;
  color: #888;
}

.breadcrumb a {
  color: #888;
}

.breadcrumb a:hover {
  color: #333;
}

.breadcrumb span {
  margin: 0 6px;
}

/* --- Hero (Top page) --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.hero h1 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero .lead {
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Hero (Sub pages) --- */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.page-hero .lead {
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: #333;
  color: #fff;
}

.btn--primary:hover {
  background-color: #555;
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  color: #333;
  border: 1.5px solid #333;
}

.btn--outline:hover {
  background-color: #333;
  color: #fff;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* --- Cards (Brand) --- */
.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.brand-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.brand-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f0f0f0;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.85rem;
}

.brand-card__subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
}

.brand-card p {
  font-size: 0.92rem;
  color: #555;
  text-align: left;
}

.brand-card .btn {
  margin-top: 16px;
}

/* --- Large Brand Cards (Brands page) --- */
.brand-card--large {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  text-align: left;
  padding: 40px;
  margin-bottom: 32px;
}

.brand-card--large .brand-card__img {
  height: 200px;
  margin-bottom: 0;
}

.brand-card--large .brand-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-card--large h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.brand-card--large p {
  text-align: left;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #666;
}

/* --- Business Area --- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.business-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 32px;
}

.business-item__icon {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* --- About page --- */
.about-message {
  max-width: 720px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.company-table th,
.company-table td {
  padding: 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  color: #555;
  font-weight: 600;
  background: #fafafa;
}

/* --- Brand Detail page --- */
.brand-hero {
  padding: 80px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.brand-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.brand-concept {
  max-width: 720px;
  margin: 0 auto;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.category-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.category-card__icon {
  width: 48px;
  height: 48px;
  background: #f5f5f5;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.category-card p {
  font-size: 0.88rem;
  color: #666;
}

/* Recommend list */
.recommend-list {
  max-width: 600px;
  margin: 0 auto;
}

.recommend-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #555;
}

.recommend-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #ddd;
  border-radius: 50%;
}

/* Shop Links */
.shop-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Other brands */
.other-brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 24px auto 0;
}

.other-brand-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.other-brand-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.other-brand-card h3 {
  margin-bottom: 8px;
}

.other-brand-card p {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 12px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group label .required {
  color: #c44;
  font-size: 0.8rem;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #999;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-note {
  max-width: 600px;
  margin: 0 auto;
}

.contact-note p {
  font-size: 0.9rem;
  color: #666;
}

/* --- Form Messages --- */
.form-message {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-message--success {
  background: #f0faf0;
  color: #2a7a2a;
  border: 1px solid #c0e8c0;
}

.form-message--error {
  background: #fdf0f0;
  color: #a03030;
  border: 1px solid #e8c0c0;
}

.field-error {
  display: block;
  color: #c03030;
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 1.2em;
}

.is-invalid {
  border-color: #c03030 !important;
}

/* --- Privacy Policy --- */
.privacy-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.privacy-content p,
.privacy-content ul {
  text-align: left;
}

.privacy-date {
  margin-top: 2.5rem;
  color: #888;
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 64px 0;
  background: #fafafa;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  color: #666;
  margin-bottom: 24px;
}

/* --- Footer --- */
.footer {
  background: #f8f8f8;
  border-top: 1px solid #eee;
  padding: 48px 0 24px;
  font-size: 0.88rem;
  color: #666;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__brand {
  font-size: 0.95rem;
}

.footer__brand strong {
  display: block;
  font-size: 1rem;
  color: #333;
  margin-bottom: 8px;
}

.footer__heading {
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  color: #666;
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: #333;
}

.footer__bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #999;
}

.footer__bottom a {
  color: #999;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: #666;
  text-decoration: underline;
}

/* --- Utility: Spacing --- */
.btn--mt {
  margin-top: 24px;
}

/* --- Table Scroll Wrapper --- */
.table-scroll {
  overflow-x: auto;
  margin-top: 32px;
}

/* --- Comparison Table --- */
.comparison-table {
  min-width: 600px;
}

.comparison-table__corner {
  background: #f0f0f0;
}

.comparison-table__head {
  background: #f0f0f0;
  text-align: center;
  font-weight: 700;
  color: #222;
}

/* --- Narrow Category Cards --- */
.category-cards--narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Focus Styles (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: block;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .section {
    padding: 56px 0;
  }

  .brand-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brand-card--large {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .brand-card--large .brand-card__img {
    height: 160px;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .other-brands {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-table th {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
