/* =========================================
   1. Variables (Design Tokens)
   ========================================= */
:root {
  --color-primary: #1a8897;
  --color-primary-hover: #146c78;
  --color-secondary: #003a78;
  --color-text-main: #333333;
  --color-text-muted: #6b7280;
  --color-bg-main: #f8f9fa;
  --color-bg-card: #ffffff;
  --color-border: #e9ecef;

  --font-family-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;

  --max-width-container: 1100px;
  --max-width-article: 880px;

  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  /* Breakpoints (Manual Documentation) */
  --breakpoint-lg: 1000px;
  --breakpoint-md: 768px;
  --breakpoint-sm: 600px;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: outline 0.2s;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

ul,
ol {
  list-style: none;
}

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

/* Placeholder Image Styles (<img src="">) */
img:not([src]),
img[src=""] {
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 120px;
  width: 100%;
  object-fit: cover;
}

img:not([src])::after,
img[src=""]::after {
  content: "📷";
  font-size: 2rem;
  color: #adb5bd;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =========================================
   3. Layout (BEM: l-)
   ========================================= */
.l-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.l-section {
  padding: var(--space-xl) 0;
}

.l-section--alt {
  background-color: #fff;
}

/* =========================================
   4. Components (BEM: c-)
   ========================================= */

/* Button */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  outline: none;
}

.c-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.c-btn--primary {
  background-image: linear-gradient(135deg, var(--color-primary) 0%, #20a6b8 100%);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 4px 6px rgba(26, 136, 151, 0.2);
}

.c-btn--primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(26, 136, 151, 0.4);
}

.c-btn--outline {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.c-btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.c-btn--full {
  width: 100%;
}

/* Header */
.c-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.c-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--space-md);
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.c-header__logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* .c-header__logo-img {
  width: 35px;
  height: 35px;
  border-radius: 4px;
}

.c-header__logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1px;
} */

.c-nav__list {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.c-nav__item a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.c-nav__item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s;
}

.c-nav__item a.is-active,
.c-nav__item a:hover {
  color: var(--color-primary);
}

.c-nav__item a.is-active::after,
.c-nav__item a:hover::after {
  width: 100%;
}

@media(max-width: 1000px) {
  .c-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--space-md);
    width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #eee;
    z-index: 1001;
  }

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

  .c-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .c-nav__item a {
    font-size: 0.875rem;
    font-weight: 600;
    width: 100%;
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text-main);
  }

  .c-nav__item:last-child a {
    border-bottom: none;
  }

  .c-nav__item a::after {
    display: none;
  }

  .c-nav__item a:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
  }

  /* Hamburger Button */
  .c-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: relative;
  }

  .c-hamburger span {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .c-hamburger.is-active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .c-hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .c-hamburger.is-active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
}

@media(min-width: 1001px) {
  .c-hamburger {
    display: none;
  }
}

/* Page Title Banner */
.c-page-title-banner {
  background-color: var(--color-bg-card);
  padding: var(--space-xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.c-page-title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
  font-weight: 800;
  letter-spacing: 2px;
}

/* Section Title */
.c-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  display: inline-block;
  position: relative;
}

.c-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
}

.c-section-title--center {
  text-align: center;
  display: block;
}

.c-section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Hero */
.c-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-image: url('');
  background-size: cover;
  background-position: center;
  background-color: var(--color-text-muted);
}

.c-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 136, 151, 0.2) 0%, rgba(26, 136, 151, 0.7) 100%);
  z-index: 1;
}

.c-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.c-hero__text-wrapper {
  color: #fff;
  max-width: 700px;
}

.c-hero__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.c-hero__subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
}

.c-hero__cta {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 3;
  background-image: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  background-size: 200% auto;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.c-hero__cta:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media(max-width: 768px) {
  .c-hero__cta {
    position: static;
    margin-top: var(--space-md);
  }
}

/* Breadcrumb */
.c-breadcrumb {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.c-breadcrumb a {
  color: var(--color-primary);
}

.c-breadcrumb a:hover {
  text-decoration: underline;
}

.c-breadcrumb>*:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  display: inline-block;
  opacity: 0.5;
  color: var(--color-text-muted);
}

/* Important Alert */
.c-alert {
  background-color: #fff;
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--space-xl);
  border-left: 4px solid #d60000;
}

.c-alert__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.c-alert__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #d60000;
}

.c-alert__date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.c-alert__text {
  font-size: 1rem;
  color: var(--color-text-main);
  font-weight: 700;
}

/* News Teaser (Main Page) */
.c-news-teaser {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.c-news-teaser:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.c-news-teaser__content {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: var(--space-md);
  padding-bottom: 0;
}

.c-news-teaser__content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff 90%);
  pointer-events: none;
  z-index: 5;
}

.c-news-teaser iframe {
  pointer-events: none;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

.c-news-teaser iframe::-webkit-scrollbar {
  display: none;
}

.c-news-teaser__footer {
  background-color: #fff;
  padding: 10px 24px 20px 0;
  /* 右側に余白を持たせる */
  text-align: right;
  /* 右寄せに変更 */
  z-index: 10;
}

.c-news-teaser__footer span {
  display: inline-block;
  color: var(--color-primary);
  font-size: 1.125rem;
  /* サイズを少し大きく */
  font-weight: bold;
  transition: all 0.3s ease;
  opacity: 0;
  /* 通常時は非表示 */
  pointer-events: none;
  /* クリック対象として邪魔しない */
  transform: translateX(-10px);
  /* 少し左からスタート */
}

.c-news-teaser:hover .c-news-teaser__footer span {
  opacity: 1;
  /* ホバー時に表示 */
  transform: translateX(0);
  /* 右へスライドして定位置へ */
}

/* News Modal (Popup) */
.c-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.c-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.c-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.c-modal__content {
  position: relative;
  background-color: #fff;
  width: 90%;
  max-width: 800px;
  height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 2100;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-modal.is-active .c-modal__content {
  transform: scale(1);
}

.c-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2200;
}

.c-modal__close:hover {
  background-color: #e0e0e0;
}

.c-modal__body {
  height: 100%;
  padding: 40px 20px 20px;
}

.c-modal__body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* newspage iframe */

.c-news-page__body {
  background-color: var(--color-bg-card);
  padding: var(--space-md);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 500px;
}

.c-news-page__body iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* Body Scroll Lock */
body.is-modal-open {
  overflow: hidden;
}

.c-news-page {
  background-color: var(--color-bg-card);
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Horizontal Scroll (Top Page Products) */
.c-scroller {
  background: var(--color-primary);
  padding: var(--space-lg);
  border-radius: 8px;
  color: #fff;
}

.c-scroller__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  text-align: center;
  font-weight: bold;
}

.c-scroller__track-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.c-scroller__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  padding: 8px 0;
}

.c-scroller__track::-webkit-scrollbar {
  display: none;
}

.c-scroller__card {
  flex: 0 0 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  scroll-snap-align: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.c-scroller__card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.c-scroller__img {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
  border-radius: 4px;
  background: #fff;              
  width: 145px;
  height: 145px;
}

.c-scroller__img img {
  object-fit: fill;
  width: 100%;
  height: 100%;
}

/* Footer CTA */
.c-cta {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.c-cta__title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.c-cta__text {
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

/* Footer */
.c-footer {
  background-color: #222;
  color: #ccc;
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.c-footer__inner {
  max-width: var(--max-width-container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #444;
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-md);
}

.c-footer__logo-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.c-footer__address {
  font-size: 0.875rem;
  line-height: 1.8;
}

.c-footer__links {
  display: flex;
  gap: var(--space-xl);
}

.c-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-footer__nav-item a {
  font-size: 0.875rem;
  transition: color 0.3s;
}

.c-footer__nav-item a:hover {
  color: #fff;
}

.c-footer__copyright {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

@media(max-width: 768px) {
  .c-footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .c-footer__links {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Back to Top Button */
.c-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 998;
  font-size: 1.5rem;
}

.c-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.c-back-to-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Pagination */
.c-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-lg);
}

.c-pagination__btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
}

.c-pagination__btn:hover,
.c-pagination__btn.is-active {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =========================================
   6. About Page (p-about)
   ========================================= */
.p-about__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-lg);
}

.p-about__info-table {
  width: 100%;
  border-collapse: collapse;
}

.p-about__info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.p-about__info-table th {
  text-align: left;
  padding: var(--space-sm);
  width: 40%;
}

.p-about__info-table td {
  padding: var(--space-sm);
}

.p-about__info-actions {
  margin-top: var(--space-lg);
  text-align: center;
}

@media (max-width: 768px) {
  .p-about__info-actions {
    text-align: center;
  }

  .p-about__info-actions .c-btn {
    width: 100%;
  }
}

.p-about__history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.p-about__history-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-about__history-date {
  font-weight: bold;
  color: var(--color-primary);
}

.p-about__policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media(max-width: 768px) {
  .p-about__policy-grid {
    grid-template-columns: 1fr;
  }
}

.p-about__policy-card {
  padding: var(--space-lg);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background-color: #fff;
}

.p-about__policy-num {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-weight: bold;
}

.p-about__msg-layout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: flex-start;
}

.p-about__msg-photo {
  flex-shrink: 0;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 3/4;
}

.p-about__msg-content {
  flex: 1;
  min-width: 0;
}

.p-about__msg-content p {
  margin-bottom: var(--space-md);
}

.p-about__msg-sig {
  text-align: right;
  font-weight: bold;
  margin-top: var(--space-xl);
}

/* =========================================
   7. Locations Page (p-locations)
   ========================================= */

.location-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.location-bottom .l-section {
  padding: 0;
}

.location-bottom > .l-section {
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--space-lg) + 8px) var(--space-xl);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-bottom > .l-container {
  max-width: none;
  padding: 0;
}

.location-bottom .p-locations__card {
  height: auto;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.location-bottom .p-locations__info {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-top: 20px;
  padding-left: 30px;
  padding-right: 0;
  justify-content: flex-start;
  align-items: stretch;
}

.location-bottom .p-locations__address p {
  text-align: left;
}

@media (max-width: 1200px) {
  .location-bottom {
    grid-template-columns: 1fr;
  }
  .location-bottom > .l-section:nth-child(1),
  .location-bottom > .l-section:nth-child(2) {
    grid-column: auto;
  }
}
.p-locations__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.l-section.l-container > .p-locations__card {
  margin-bottom: 0;
}

.p-locations__map {
  width: 100%;
  height: 500px;
  margin-bottom: var(--space-lg);
  margin-top: var(--space-lg);
}

.p-locations__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.p-locations__address p {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* =========================================
   8. Contact Page (p-contact)
   ========================================= */
.p-contact__channels {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.p-contact__channel-label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.p-contact__channel-num {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
}

.p-contact__form {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.p-contact__form-group {
  margin-bottom: var(--space-md);
}

.p-contact__form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: bold;
}

.p-contact__req {
  color: #d60000;
  margin-left: 4px;
}

.p-contact__input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: 0.2s;
}

.p-contact__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(26, 136, 151, 0.2);
}

.p-contact__input:user-invalid {
  border-color: #d60000;
  background-color: #fff5f5;
}

.p-contact__textarea {
  min-height: 150px;
  resize: vertical;
}

@media(min-width: 600px) {
  .p-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

/* =========================================
   9. News Detail Page (p-news-detail)
   ========================================= */
.p-news-detail {
  background: #fff;
  padding: var(--space-xl);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.p-news-detail__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.p-news-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.p-news-detail__date {
  color: var(--color-text-muted);
  font-weight: bold;
}

.p-news-detail__body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

.p-news-detail__body p {
  margin-bottom: var(--space-md);
}

/* =========================================
   10. Products Page (p-products)
   ========================================= */
.p-products__search {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-xl);
}

.p-products__search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  cursor: text;
}

.p-products__search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
}

.p-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.p-products__card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.p-products__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(26, 136, 151, 0.2);
  border-color: var(--color-primary);
}

.p-products__card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--color-bg-main);
  display: flex;
  /* align-items: center; */
  justify-content: center;
}

.p-products__card-img img {
  object-fit: contain;
  
}

.p-products__card-body {
  padding: var(--space-lg);
  flex: 1;
}

.p-products__card-title {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-weight: bold;
}

.p-products__card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.p-products__other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-lg);
}

.p-products__other-card {
  background: #fff;
  text-align: center;
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
/* アニメーションの制御 */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 製造販売品目カードと同じようにアニメーションを追加しました */
.p-products__other-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.p-products__other-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.p-products__flow-timeline {
  margin-top: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-left: 2px solid var(--color-primary);
  padding-left: 70px;
}

.p-products__flow-item {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-products__flow-item p {
  margin-right: 30px;
}

.p-products__flow-item::before {
  content: attr(data-step);
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 4px solid var(--color-bg-main);
}

.p-products__flow-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.p-products__flow-img {
  width: 64px;
  height: 64px;
  background: var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* 補足テキスト（各ステップ内の短い説明） */
.p-products__flow-desc {
  color: var(--muted, #374151);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.01em;
  max-width: 60ch;
  
  /* 修正・追加ポイント */
  margin-left: auto;      /* 親がFlexboxの場合、これで要素ごと右側に押し寄せます */
  text-align: right;      /* テキスト内の文字を右揃えにします */
  word-break: keep-all;
}

/* 行間の微調整（必要なら） */
.p-products__flow-desc br {
  content: "";
  line-height: 1.0; /* br の高さを調整したい場合に使う（通常は不要） */
}

/* 強調したい語句用 */
.p-products__flow-desc strong {
  color: var(--color-primary, #0a66c2);
  font-weight: 700;
}





/* 小画面での調整 */
@media (max-width: 600px) {
  .p-products__flow-desc {
    font-size: 0.92rem;
    max-width: 100%;
  }
  .p-products__flow-item {
    gap: 0.75rem;
    padding: calc(var(--space-sm, 12px)) calc(var(--space-md, 16px));
  }
}

/* =========================================
   11. Product Detail Page (p-product-detail)
   ========================================= */
.p-product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.p-product-detail__image {
  flex: 1;
  min-width: 300px;
  aspect-ratio: 1/1.2;
  width:100%; 
  height:500px; 
  overflow:hidden;
}

.p-product-detail__info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.p-product-detail__title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.p-product-detail__desc {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: var(--space-md);
}

.p-product-detail__comment {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.p-product-detail__specs {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.p-product-detail__specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: bold;
}

.p-product-detail__gallery {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.p-product-detail__gallery-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-product-detail__gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.p-product-detail__thumb {
  width: 64px;
  height: 64px;
  background: var(--color-border);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.p-product-detail__thumb.is-active,
.p-product-detail__thumb:hover {
  opacity: 1;
}

.p-product-detail__gallery-right {
  flex: 1;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-product-detail__gallery-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-product-detail__gallery-img.is-active {
  opacity: 1;
}

@media(max-width: 768px) {
  .p-product-detail__gallery {
    flex-direction: column;
  }

  .p-product-detail__gallery-thumbs {
    margin-top: var(--space-md);
  }
}

/* =========================================
   13. Other Detail Page (p-other-detail)
   ========================================= */

.p-other-detail {
  padding: 50px 0;
}

.p-other-detail__text {
  padding-top: 60px;
  font-size: 140%;
}

.p-other-product-catalog__actions {
  justify-content: center;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 30px;
}

/* =========================================
   14. Utility / Shared Class Extensions
   ========================================= */

/* Breadcrumb - center variant */
.c-breadcrumb--center {
  justify-content: center;
}

/* CTA Section button override */
.c-cta .c-btn--outline {
  background: #fff;
  padding: 18px 48px;
  font-size: 1.125rem;
}

/* Scroller nav buttons (prev/next) */
.c-scroller__nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 12px;
  border-radius: 50%;
}

/* Layout utilities */
.l-section--center {
  text-align: center;
}

.l-container--narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =========================================
   Top page (p-top) extensions
   ========================================= */
.p-top__news-header {
  margin-bottom: var(--space-md);
}

.p-top__news-title {
  margin-bottom: 0;
}

/* =========================================
   About page extensions
   ========================================= */
.p-about__policy-card--full {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* =========================================
   Contact page extensions
   ========================================= */
.p-contact__lead {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.p-contact__channel-item {
  min-width: 140px;
}

.p-contact__note {
  margin-bottom: 4rem;
  color: var(--color-text-muted);
}

.p-contact__form-note {
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.p-contact__submit {
  margin-top: 2rem;
}

.p-contact__submit-btn {
  font-size: 1.125rem;
  padding: 16px;
}

/* =========================================
   Products page extensions
   ========================================= */
.p-products__intro {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.p-products__intro-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.p-products__intro-text:last-child {
  margin-bottom: 0;
}

.p-products__section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.p-products__flow-header {
  text-align: center;
}

/* l-section with alt gray background */
.l-section--gray {
  background: #eef2f5;
}

/* =========================================
   News page extensions
   ========================================= */
.p-news__back-wrapper {
  margin-top: 3rem;
  text-align: center;
}

/* News detail actions (button group) */
.p-news-detail__actions {
  margin-top: 4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================
   15. Product Detail Extensions
   ========================================= */

.p-product-detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
  width:100%;
  height:100%;
  object-position:center;
}

.p-product-detail__contact-btn {
  align-self: flex-start;
}

.p-product-detail__gallery-intro {
  font-size: 1.125rem;
}

.p-product-detail__gallery-img--placeholder {
  background-color: var(--color-border);
}

/* =========================================
16. Product Catalog Section
========================================= */
.p-product-catalog {
  text-align: center;
}

.p-product-catalog__content {
  max-width: var(--max-width-container);
  margin: var(--space-lg) auto 0;
}

.p-product-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl) var(--space-lg);
  justify-content: center;
  padding-top: 20px;
}

/* カタログが少ない場合でも中央に寄るように調整 */
@media (min-width: 768px) {
  .p-product-catalog__grid:has(> :last-child:nth-child(1)) {
    grid-template-columns: minmax(auto, 600px);
  }
}

.p-product-catalog__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.p-product-catalog__link {
  display: block;
  width: 100%;
}

.p-product-catalog__img-wrapper {
  position: relative;
  background-color: var(--color-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* シャドウを抑えて周囲と調和させる */
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  aspect-ratio: 4 / 5.2;
}

.p-product-catalog__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.p-product-catalog__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 136, 151, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover effects */
.p-product-catalog__img-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  /* ホバー時の影も主張を抑える */
}

.p-product-catalog__img-wrapper:hover .p-product-catalog__img {
  transform: scale(1.03);
}

.p-product-catalog__img-wrapper:hover .p-product-catalog__overlay {
  opacity: 1;
}

.p-product-catalog__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.p-product-catalog__actions .c-btn {
  font-size: 0.875rem;
  padding: 10px 24px;
}

.p-product-catalog__footer {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .p-product-catalog__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .p-product-catalog__actions .c-btn,
  .p-product-catalog__footer .c-btn {
    width: 100%;
  }
}