/**
 * Nakamura Shouten - Secondary Pages CSS
 * Design reference: https://densetsu-service.co.jp/about
 * Curved hero bottom, Kiwi Maru headings, wave deco, densetsu-style tables
 */

/* ========================================
   1. BASE
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #4c4948;
  background: #fff;
  line-height: 1.8;
  font-size: 15px;
}
a { color: #4c4948; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ========================================
   2. PAGE HERO  (curved bottom like densetsu)
   ======================================== */
.page-hero {
  position: relative;
  width: 100%;
  height: 540px;                /* 420px + 120px header height */
  background-size: cover;
  background-position: center;
  overflow: hidden;
  z-index: 10;
  margin-top: -120px;           /* slide behind sticky header (100px + 20px padding) */
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 185, 255, 0.45);
  z-index: 1;
}
/* Curved bottom via ellipse pseudo-element */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 2;
}
.page-hero__overlay {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding-top: 120px;           /* compensate header overlap (100px header + 20px) */
}
.page-hero__title {
  font-family: 'Kiwi Maru', serif;
  font-size: 3.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.3);
}
.page-hero__subtitle {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.15em;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}
/* Wave deco under hero subtitle */
.page-hero__deco {
  display: block;
  width: 90px;
  height: 6px;
  margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0 25 4 T50 4 T75 4 T100 4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ========================================
   3. BREADCRUMB
   ======================================== */
.breadcrumb {
  text-align: center;
  padding: 20px 20px 10px;
  font-size: 13px;
  color: #999;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: #c8a84e; }
.breadcrumb a:hover { text-decoration: underline; }

/* ========================================
   4. SECTION HEADING  (densetsu midashi_style01)
   ======================================== */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}
.section-heading__en {
  display: block;
  font-family: 'Kiwi Maru', serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: #4c4948;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.section-heading__ja {
  display: block;
  font-family: 'Kiwi Maru', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #FFB61E;
  letter-spacing: 0.15em;
}
/* Wave deco under heading */
.section-heading__deco {
  /*display: block;*/
  display: none;
  width: 80px;
  height: 6px;
  margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0 25 4 T50 4 T75 4 T100 4' fill='none' stroke='%23c8a84e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ========================================
   5. PAGE SECTIONS
   ======================================== */
.page-section {
  padding: 70px 40px;
}
.page-section--gray {
  background: #f7f7f7;
}
.page-content {
  max-width: 960px;
  margin: 0 auto;
}

/* ========================================
   6. COMPANY TABLE  (densetsu style)
   ======================================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.company-table th,
.company-table td {
  padding: 18px 15px 18px 28px;
  font-size: 15px;
  line-height: 1.7;
  vertical-align: top;
  border: none !important;
  border-bottom: 1px solid #c0c0c0 !important;
}
.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: 1px solid #c0c0c0 !important;
}
.company-table th {
  background: #eef8fa !important;
  font-weight: 700;
  width: 180px;
  white-space: nowrap;
  color: #4c4948;
}
.company-table td {
  background: #fff !important;
  color: #4c4948;
}

/* ========================================
   7. MESSAGE BLOCK  (image + text grid)
   ======================================== */
.message-block {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 30px;
}
.message-block__image img {
  width: 100%;
  border-radius: 6px;
}
.message-block__image--placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #eef8fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
}
.message-block__text h3 {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #4c4948;
  margin-bottom: 20px;
  line-height: 1.6;
}
.message-block__body {
  font-size: 18px;
  line-height: 2;
  color: #4c4948;
}
.message-block__body p {
  margin-bottom: 1em;
}
.message-block__name {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 700;
  color: #4c4948;
  text-align: right;
}

/* ========================================
   8. TIMELINE
   ======================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #c0c0c0;
}
.timeline__year {
  font-family: 'Kiwi Maru', serif;
  font-weight: 500;
  font-size: 15px;
  color: #4c4948;
  white-space: nowrap;
}
.timeline__event {
  font-size: 14px;
  line-height: 1.8;
  color: #4c4948;
}

/* ========================================
   9. FACILITY CARDS
   ======================================== */
.facility-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}
.facility-card--reverse {
  direction: rtl;
}
.facility-card--reverse > * {
  direction: ltr;
}
.facility-card__image img {
  width: 100%;
  border-radius: 6px;
}
.facility-card__placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: #eef8fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #aaa;
}
.facility-card__content {}
.facility-card__name {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #4c4948;
  margin-bottom: 8px;
}
.facility-card__spec {
  font-size: 15px;
  color: #888;
  margin-bottom: 12px;
}
.facility-card__description {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

/* ========================================
   10. PRODUCT CARDS
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.product-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  background: #eef8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #c8a84e;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__body {
  padding: 20px;
}
.product-card__title {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #4c4948;
  margin-bottom: 8px;
}
.product-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #888;
}

/* ========================================
   11. NEWS LIST
   ======================================== */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #c0c0c0;
  align-items: center;
}
.news-item__date {
  font-family: 'Kiwi Maru', serif;
  font-size: 14px;
  color: #888;
}
.news-item__title {
  font-size: 15px;
  color: #4c4948;
}
.news-item__title a { color: #4c4948; }
.news-item__title a:hover { color: #c8a84e; }

/* ========================================
   12. RECRUIT
   ======================================== */
.recruit-intro {
  text-align: center;
  font-size: 15px;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #4c4948;
}
.recruit-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 30px;
}
.recruit-card__title {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #4c4948;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #c8a84e;
}
.recruit-table {
  width: 100%;
}
.recruit-table th { width: 160px; }
.recruit-table th,
.recruit-table td {
  border: none !important;
  border-bottom: 1px solid #c0c0c0 !important;
}
.recruit-table tr:first-child th,
.recruit-table tr:first-child td {
  border-top: 1px solid #c0c0c0 !important;
}

/* ========================================
   13. BRANCHES / ACCESS
   ======================================== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.branch-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.branch-card__name {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #4c4948;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c8a84e;
}
.branch-table {
  width: 100%;
}
.branch-table th {
  width: 80px;
  padding: 10px 8px;
  font-size: 13px;
  border: none !important;
  border-bottom: 1px solid #c0c0c0 !important;
}
.branch-table td {
  padding: 10px 8px;
  font-size: 13px;
  border: none !important;
  border-bottom: 1px solid #c0c0c0 !important;
}
.branch-table tr:first-child th,
.branch-table tr:first-child td {
  border-top: 1px solid #c0c0c0 !important;
}

/* ========================================
   14. CTA SECTION
   ======================================== */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: #f7f7f7;
}
.cta-section__text {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.3rem;
  color: #4c4948;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 27px;
  padding: 20px 40px;
  background-color: transparent;
  background-image: linear-gradient(115deg, var(--e-global-color-2224e22, #F8B500) 72%, var(--e-global-color-7f52cd1, #00B9FF) 50%);
  color: #fff;
  fill: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, background-image 0.3s;
  text-decoration: none;
}
.btn .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.btn .btn-arrow i {
  color: #fff;
}
.btn:hover,
.btn:focus {
  color: #fff;
  background-color: transparent;
  background-image: linear-gradient(115deg, var(--e-global-color-7f52cd1, #00B9FF) 72%, var(--e-global-color-2224e22, #F8B500) 50%);
  transform: scale(0.9);
}
.btn:visited {
  color: #fff;
}

/* ========================================
   15. PAGE INTRO
   ======================================== */
.page-intro {
  text-align: center;
  font-size: 18px;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #4c4948;
}

/* ========================================
   15b. HISTORY TABLE
   ======================================== */
.history-table th {
  white-space: nowrap;
  width: 140px;
  text-align: center;
  font-weight: 600;
  color: #333;
}
.history-table td {
  line-height: 1.8;
}

/* ========================================
   15c. BRANCH GRID (3-column)
   ======================================== */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.branch-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
.branch-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}
.branch-card__map {
  width: 100%;
  background: #e8e8e8;
  line-height: 0;
}
.branch-card__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
}
.branch-card__image {
  width: 100%;
  line-height: 0;
}
.branch-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.branch-card__info {
  padding: 20px;
}
.branch-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00b9ff;
}
.branch-card__address {
  font-size: 13.5px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 8px;
}
.branch-card__tel {
  font-size: 13.5px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 8px;
}
.branch-card__area {
  font-size: 12.5px;
  color: #888;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.6;
}

/* 関連会社 */
.related-company {
  margin-top: 40px;
  padding: 25px 30px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #FFB61E;
}
.related-company__heading {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.related-company__name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.related-company__item p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2px;
}

/* ========================================
   16. CONTACT FORM
   ======================================== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #fafafa;
  padding: 40px;
  border-radius: 6px;
}
.contact-form__group {
  margin-bottom: 28px;
}
.contact-form__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #4c4948;
  margin-bottom: 8px;
}
.contact-form__required {
  color: #d32f2f;
  font-weight: bold;
}
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.3s;
}
.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: #c8a84e;
  outline: none;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form__submit {
  margin-top: 36px;
  text-align: center;
}

/* ========================================
   16b. RECRUIT CONTACT
   ======================================== */
.recruit-contact {
  margin: 20px auto 10px;
  text-align: center;
  font-size: 16px;
  line-height: 2;
}
.recruit-contact a {
  color: #00b9ff;
  text-decoration: none;
}
.recruit-contact a:hover {
  text-decoration: underline;
}
.recruit-card__desc {
  font-size: 15px;
  line-height: 1.8;
  color: #4c4948;
  margin-bottom: 30px;
}

/* ========================================
   16c. PRODUCT CARD PLACEHOLDER
   ======================================== */
.product-card__image--placeholder {
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   17. NEWS CARDS (card grid + filter + pagination)
   ======================================== */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.news-filter__btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4c4948;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.news-filter__btn:hover {
  background: #eef8fa;
  border-color: #00b9ff;
  color: #00b9ff;
}
.news-filter__btn.is-active {
  background: #00b9ff;
  color: #fff;
  border-color: #00b9ff;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
.news-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.news-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #eef8fa;
  overflow: hidden;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #c8a84e;
  background: linear-gradient(135deg, #eef8fa 0%, #e0f0f5 100%);
}
.news-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 185, 255, 0.85);
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.news-card__body {
  padding: 20px;
}
.news-card__date {
  display: block;
  font-family: 'Kiwi Maru', serif;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.news-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #4c4948;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card__title {
  color: #00b9ff;
}
.news-card__excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-empty {
  text-align: center;
  font-size: 15px;
  color: #999;
  padding: 60px 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 14px;
  font-weight: 500;
  color: #4c4948;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}
.pagination__link:hover {
  background: #eef8fa;
  border-color: #00b9ff;
  color: #00b9ff;
}
.pagination__link.is-active {
  background: #00b9ff;
  color: #fff;
  border-color: #00b9ff;
}
.pagination__prev,
.pagination__next {
  font-size: 12px;
}

/* ========================================
   17b. NEWS DETAIL PAGE
   ======================================== */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.news-detail__date {
  font-family: 'Kiwi Maru', serif;
  font-size: 14px;
  color: #aaa;
  letter-spacing: 0.04em;
}
.news-detail__category {
  display: inline-block;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #00b9ff;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.news-detail__title,
h2.news-detail__title {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #4c4948;
  line-height: 1.6;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #FFB61E;
}
.news-detail__image {
  margin-bottom: 30px;
  border-radius: 6px;
  overflow: hidden;
}
.news-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}
.news-detail__content {
  font-size: 18px;
  line-height: 2;
  color: #4c4948;
}
.news-detail__content p {
  margin-bottom: 1.4em;
}
.news-detail__content ul,
.news-detail__content ol {
  margin: 1em 0 1.4em 1.5em;
}
.news-detail__content li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}
.news-detail__content a {
  color: #00b9ff;
  text-decoration: underline;
}
.news-detail__content a:hover {
  color: #0090d0;
}
.news-detail__content strong {
  font-weight: 700;
  color: #333;
}

/* Pager (prev / back / next) */
.news-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.news-pager__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #4c4948;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.news-pager__link:hover {
  background: #eef8fa;
  color: #00b9ff;
}
.news-pager__back {
  padding: 10px 24px;
  background: #f5f5f5;
  border-radius: 50px;
  font-weight: 500;
}
.news-pager__back:hover {
  background: #00b9ff;
  color: #fff;
}
.news-pager__arrow {
  font-size: 13px;
}
.news-pager__label {
  font-size: 14px;
}
.news-pager__disabled {
  visibility: hidden;
  width: 100px;
}

/* ========================================
   18. KNOW CARDS (中村商店を知る・カード形式)
   ======================================== */
/* Know Section - full-width colored background */
.know-section {
  background: #ECF4FA;
  padding: 60px 0 70px;
}
.know-section .section-heading__en,
.know-section .section-heading__ja {
  color: #2a2a2a;
}
.know-section .section-heading__deco {
  background: #00b9ff;
}

/* Know Hero - first item, no card, centered large text */
.know-hero {
  text-align: center;
  margin-bottom: 40px;
}
.know-hero__label {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: #4A7FAD;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.know-hero__number {
  display: block;
  font-family: 'Montserrat', 'Kiwi Maru', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Know Cards - 3 column grid */
.know-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.know-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.know-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.know-card__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4A7FAD;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.know-card__icon {
  width: auto;
  height: auto;
  margin: 0 auto 18px;
  background: none;
  border-radius: 0;
  display: block;
  font-size: 3rem;
  color: #f8b500;
}
.know-card__number {
  display: block;
  font-family: 'Montserrat', 'Kiwi Maru', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ========================================
   19. SITE NAV GRID (ページ案内カード)
   ======================================== */
.page-section--light {
  background: #EAF4FA;
  padding: 70px 40px;
}
.site-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 60px;
  max-width: 900px;
  margin: 0 auto;
}
.site-nav-card {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: #4c4948;
  transition: transform 0.3s ease;
}
.site-nav-card:hover {
  transform: translateY(-4px);
}
.site-nav-card__image {
  flex-shrink: 0;
  width: 180px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.site-nav-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.site-nav-card:hover .site-nav-card__image img {
  transform: scale(1.05);
}
.site-nav-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid #00B9FF;
}
.site-nav-card__ja {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.05em;
}
.site-nav-card__en {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.1em;
}

/* ========================================
   20. PHILOSOPHY SECTION (経営理念)
   ======================================== */
.philosophy-section {
  background: #fff;
  padding: 80px 40px 70px;
}
.philosophy-main {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #1a3a5c;
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  line-height: 1.6;
}
.philosophy-sub {
  text-align: center;
  color: #666;
  font-size: 18px;
  line-height: 2;
  max-width: 720px;
  margin: 0 auto 50px;
}
.philosophy-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.philosophy-card {
  text-align: center;
  padding: 36px 24px 32px;
  border-radius: 12px;
  background: #f8fbfe;
  border: 1px solid #e4eef6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.philosophy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.philosophy-card__icon {
  font-size: 2.4rem;
  color: #00b9ff;
  margin-bottom: 16px;
}
.philosophy-card__title {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #1a3a5c;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}
.philosophy-card__en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #00b9ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.philosophy-card__body {
  font-size: 1rem;
  color: #666;
  line-height: 1.9;
}

/* ========================================
   21. STRENGTHS SECTION (私たちの強み)
   ======================================== */
.strengths-section {
  padding: 80px 40px 70px;
}
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.strength-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 24px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00b9ff, #00CDFF);
}
.strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.strength-card__icon {
  font-size: 2.2rem;
  color: #00b9ff;
  margin-bottom: 12px;
}
.strength-card__number {
  font-family: 'Montserrat', 'Kiwi Maru', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.strength-card__title {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.strength-card__body {
  font-size: 1rem;
  color: #666;
  line-height: 1.9;
}

/* ========================================
   22. SITE FOOTER
   ======================================== */
.site-footer {
  background: #011640;
  color: rgba(255,255,255,0.75);
  padding: 0;
  width: 100% !important;
  max-width: 100% !important;
}
.site-footer__inner {
  max-width: 100%;
  margin: 0;
  padding: 60px 60px 40px;
}
.site-footer__brand {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__logo img {
  height: 36px;
  width: auto;
}
.site-footer__tagline {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}
.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer__col-title {
  font-family: 'Kiwi Maru', serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00B9FF;
  display: inline-block;
}
.site-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__nav li {
  margin-bottom: 8px;
}
.site-footer__nav a {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}
.site-footer__nav a::before {
  content: '›';
  margin-right: 6px;
  color: #00B9FF;
}
.site-footer__nav a:hover {
  color: #fff;
}
.site-footer__nav--2col {
  columns: 2;
  column-gap: 20px;
}
.site-footer__address {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.site-footer__contact-line {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer__contact-line i {
  color: #00B9FF;
  margin-right: 6px;
  width: 14px;
  text-align: center;
}
.site-footer__bottom {
  background: #FFB61E;
  text-align: center;
  padding: 16px 20px;
  font-size: 12px;
  color: #1a1a1a;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ========================================
   22. ANIMATIONS (reveal-up)
   ======================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   18. RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .news-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 340px;
    margin-top: -100px;
  }
  .page-hero__overlay { padding-top: 100px; }
  .page-hero__title { font-size: 1.8rem; }
  .page-hero::after { height: 40px; }
  .page-section { padding: 50px 20px; }
  .section-heading__en { font-size: 1.6rem; }
  .message-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .facility-card {
    grid-template-columns: 1fr;
  }
  .facility-card--reverse { direction: ltr; }
  .timeline__item {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }
  .company-table th {
    width: 120px;
    padding: 12px 10px;
  }
  .company-table td { padding: 12px 10px; }
  .btn {
    font-size: 18px;
    padding: 16px 30px;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .branches-grid {
    grid-template-columns: 1fr;
  }
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .branch-card__map iframe {
    height: 180px;
  }
  .history-table th {
    width: 100px;
    font-size: 13px;
  }
  .related-company {
    padding: 20px;
  }
  .recruit-card { padding: 24px; }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .news-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .know-section {
    padding: 40px 0 50px;
  }
  .know-hero__number {
    font-size: 2.4rem;
  }
  .know-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .know-card {
    padding: 22px 14px 26px;
  }
  .know-card__icon {
    font-size: 2.4rem;
  }
  .know-card__number {
    font-size: 1.5rem;
  }
  /* Philosophy responsive */
  .philosophy-section { padding: 50px 20px; }
  .philosophy-main { font-size: 1.4rem; }
  .philosophy-values {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 480px;
  }
  .philosophy-card { padding: 28px 20px 26px; }
  /* Strengths responsive */
  .strengths-section { padding: 50px 20px; }
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 480px;
    margin: 0 auto;
  }
  .strength-card { padding: 28px 20px 26px; }
  .strength-card__number { font-size: 1.6rem; }

  .page-section--light {
    padding: 50px 20px;
  }
  .site-nav-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-nav-card__image {
    width: 140px;
    height: 100px;
  }
  .site-nav-card__ja {
    font-size: 1rem;
  }
  .news-detail__title {
    font-size: 1.2rem;
  }
  .news-pager {
    gap: 10px;
    flex-wrap: wrap;
  }
  .news-pager__link {
    padding: 8px 12px;
    font-size: 13px;
  }
  .news-pager__disabled {
    display: none;
  }
  /* Footer responsive */
  .site-footer__inner {
    padding: 40px 20px 30px;
  }
  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .site-footer__logo img {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .page-hero { height: 280px; margin-top: -100px; }
  .page-hero__title { font-size: 1.4rem; }
  .page-hero__subtitle { font-size: 0.8rem; }
  .section-heading__en { font-size: 1.3rem; }
  .btn {
    font-size: 16px;
    padding: 14px 24px;
  }
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
  }
  .company-table th { border-bottom: none; }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ========================================
   20. FACILITY PHOTO GRID (images only)
   ======================================== */
.facility-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.facility-photo-grid__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  background: #eef8fa;
}
.facility-photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.facility-photo-grid__item:hover img {
  transform: scale(1.05);
}
.facility-photo-grid__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  color: #aaa;
}

/* ========================================
   21. MAKER SEARCH SYSTEM
   ======================================== */
.maker-search-box {
  max-width: 500px;
  margin: 0 auto 30px;
}
.maker-search-box__input {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  border: 2px solid #ddd;
  border-radius: 50px;
  outline: none;
  background: #fff;
  transition: border-color 0.3s;
}
.maker-search-box__input:focus {
  border-color: #00B9FF;
}
.maker-search-box__input::placeholder {
  color: #bbb;
}

/* Category buttons */
.maker-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.maker-cat-btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4c4948;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.maker-cat-btn:hover {
  background: #1F86DE;
  color: #ffffff;
  border-color: #1F86DE;
}
.maker-cat-btn.is-active {
  background: #FFB61E;
  color: #fff;
  border-color: transparent;
}

/* Result count */
.maker-result-count {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

/* Maker cards grid */
.maker-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.maker-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid #FFB61E;
  transition: transform 0.25s, box-shadow 0.25s;
}
.maker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.maker-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #00B9FF;
  background: rgba(0,185,255,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.maker-card__name {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #4c4948;
  margin-bottom: 6px;
}
.maker-card__products {
  font-size: 13px;
  line-height: 1.7;
  color: #888;
}

/* No results */
.maker-no-result {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 15px;
}

/* ========================================
   21b. MAKER SEARCH RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .facility-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .maker-categories {
    gap: 8px;
  }
  .maker-cat-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .maker-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .maker-search-box__input {
    padding: 12px 16px;
    font-size: 14px;
  }
  .maker-cat-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
  .maker-card {
    padding: 18px 16px;
  }
}
