/* ─────────────────────────────────────────
   INNER PAGE — SHARED
───────────────────────────────────────── */
.sn-inner-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 350;
  overflow: hidden;
}
.sn-inner-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sn-inner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.sn-inner-slide.active { opacity: 1; }
.sn-inner-hero-title {
  position: absolute;
  bottom: 28px;
  left: 28px;
  height: auto;
  padding: 10px 20px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  background: rgba(0, 143, 141, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
}
.sn-inner-hero-main {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.sn-inner-hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.sn-inner-hero-title.has-sub {
  width: 295px;
  height: 102px;
  align-items: center;
  text-align: center;
}

/* Breadcrumb */
.sn-breadcrumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  height: 23px;
  flex-wrap: wrap;
}
.sn-breadcrumb a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #6A778B;
  white-space: nowrap;
}
.sn-breadcrumb a:hover { text-decoration: underline; }
.sn-bc-parent { font-weight: 500; color: #6A778B; font-size: 14px; line-height: 20px; }
.sn-breadcrumb-current {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #061C3D;
  white-space: nowrap;
}
.sn-breadcrumb-sep {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #6A778B;
}

/* Page layout: sidebar + main */
.sn-page-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

/* Sidebar */
.sn-sidebar {
  position: sticky;
  top: 0;
  width: 270px;
}
.sn-sidebar-toggle { display: none; }
.sn-sidebar-nav {
  display: flex;
  flex-direction: column;
  width: 270px;
}
.sn-sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 16px 10px;
  gap: 16px;
  width: 270px;
  min-height: 56px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #42526B;
  border-width: 1px 0;
  border-style: solid;
  border-color: #E6E8EC;
  margin-top: -1px;
  transition: background .15s, color .15s;
}
.sn-sidebar-nav a:hover,
.sn-sidebar-nav a.active {
  color: #2778E2;
  text-decoration: underline;
  border-color: #E6E8EC;
}

/* Main content */
.sn-page-main-content { min-width: 0; display: flex; flex-direction: column; gap: 40px; }

.sn-content-section { margin-bottom: 28px; }
.sn-content-section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
  margin-bottom: 24px;
}

/* Service card grid */
.sn-service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 24px;
  column-gap: 9px;
}
.sn-service-card-item {
  display: flex;
  flex-direction: column;
}
.sn-service-card-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.sn-service-card-item-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
  margin: 12px 0 7px;
}
.sn-service-card-item-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: #000000;
}

/* FAQ */
.sn-faq-section {
  background: #ffffff;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 28px;
  padding: 50px 24px;
  margin-bottom: 3rem;
}
.sn-faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
}
.sn-faq-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #061C3D;
}
.sn-faq-viewall {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  text-decoration: underline;
  color: #008E8C;
  white-space: nowrap;
}
.sn-faq-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
/* Closed item */
.sn-faq-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.sn-faq-q {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 20px 90px;
  min-height: 76px;
  background: #ffffff;
  border: 1px solid #CCCCCC;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.012em;
  color: #061C3D;
  transition: background .2s, border-color .2s, color .2s, border-radius .2s, min-height .2s;
}
/* Q badge — notched corner shape */
.sn-faq-q-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 64px;
  background: #008F8D;
  border-radius: 16px 0px 26px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 31px;
  color: #ffffff;
  transition: background .2s, color .2s, border .2s;
}
/* Circle icon */
.sn-faq-q-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008F8D;
  transition: color .2s;
}
/* Open state */
.sn-faq-item.open .sn-faq-q {
  background: #008F8D;
  border-color: #008F8D;
  border-radius: 16px 16px 0 0;
  color: #ffffff;
  min-height: 80px;
}
.sn-faq-item.open .sn-faq-q-badge {
  background: #ffffff;
  border: 1px solid #CCCCCC;
  color: #008F8D;
}
.sn-faq-item.open .sn-faq-q-icon { color: #ffffff; }
/* Answer */
.sn-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
  background: #ffffff;
  border: 1px solid #CCCCCC;
  border-top: none;
  border-radius: 0 0 16px 16px;
}
.sn-faq-item.open .sn-faq-a { max-height: 3000px; }
.sn-faq-a-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 31px;
  padding: 20px;
}
.sn-faq-a-badge {
  flex-shrink: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 31px;
  color: #FE7F00;
}
.sn-faq-q-icon .icon-minus { display: none; }
.sn-faq-item.open .sn-faq-q-icon .icon-plus  { display: none; }
.sn-faq-item.open .sn-faq-q-icon .icon-minus { display: block; }
.sn-faq-a-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.012em;
  color: #061C3D;
}

/* Responsive */
@media (max-width: 768px) {
  .sn-page-layout { grid-template-columns: 1fr; }
  .sn-sidebar { position: static; }
  .sn-service-card-grid { grid-template-columns: repeat(2, 1fr); }
  .sn-inner-hero { aspect-ratio: 1200 / 350; }
}
@media (max-width: 480px) {
  .sn-service-card-grid { grid-template-columns: 1fr; }
  .sn-page-layout       { padding-left: 16px; padding-right: 16px; gap: 16px; }
  .sn-faq-section       { padding: 24px 16px; border-radius: 16px; }

  .fi-detail-images     { flex-wrap: wrap; }
  .fi-detail-images img,
  .fi-detail-img-placeholder { width: 100%; height: auto; flex-shrink: 1; }
  .fi-detail-related    { height: auto; padding: 10px 12px; }
  .fi-detail-related-title { font-size: 18px; line-height: 26px; }
  .sn-inner-hero-title.has-sub { width: auto; height: auto; padding: 4px 8px; }
  .sn-inner-hero-main  { font-size: 20px; line-height: 26px; }
  .sn-inner-hero-sub   { font-size: 11px; line-height: 16px; }
}

/* ─────────────────────────────────────────
   FOOD INSPECTION — CUSTOM FOOTER
───────────────────────────────────────── */
.fi-footer-wrap {
  position: relative;
  overflow: hidden;
}
.fi-footer-pattern {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36%;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.fi-footer-pattern-left  { left: -197px; background-position: left center; }
.fi-footer-pattern-right { right: -197px; background-position: right center; transform: scaleX(-1); }
.fi-footer-contact { position: relative; z-index: 1; }

/* ─────────────────────────────────────────
   FOOD INSPECTION — CUSTOM SITE FOOTER
───────────────────────────────────────── */
.fi-site-footer {
  position: relative;
  background: #ffffff;
  padding: 48px 2rem 40px;
}
.fi-footer-deco {
  position: absolute;
  top: -240px;
  width: clamp(140px, 28vw, 400px);
  height: min(100%, 520px);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.fi-footer-deco-left {
  left: 0;
  background-image: url('../../images/clip_path_01.png');
  background-position: top left;
}
.fi-footer-deco-right {
  right: 0;
  background-image: url('../../images/clip_path_04.png');
  background-position: top right;
}
.fi-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.fi-footer-logo { text-align: center; }
.fi-footer-logo-img { height: 60px; width: auto; margin: 0 auto; }
.fi-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  width: 100%;
}
.fi-footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.fi-footer-nav-col a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #243752;
  line-height: 17px;
  transition: color .2s;
}
.fi-footer-nav-col a::before { content: '・'; }
.fi-footer-nav-col a:hover { color: var(--primary); }

/* ─────────────────────────────────────────
   FOOD INSPECTION — DETAIL PANEL
───────────────────────────────────────── */
.fi-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.fi-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fi-detail-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #061C3D;
}
.fi-detail-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #42526B;
}
.fi-detail-images {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
.fi-detail-images img,
.fi-detail-img-placeholder {
  width: 267px;
  height: 164px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.fi-detail-img-placeholder {
  background: #e8f5f5;
}
.fi-detail-purpose {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fi-detail-purpose-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #E7380D;
}
.fi-detail-purpose-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
}
.fi-detail-purpose-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #42526B;
}
.fi-detail-related {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #061C3D;
  border-radius: 8px;
  box-shadow: 5px 5px 0px #008F8D;
  height: 188px;
  padding: 20px 24px;
  overflow: hidden;
}
.fi-detail-related::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 119px;
  height: 188px;
  background-image: url('../../images/svg/mask_01.svg');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.6;
  pointer-events: none;
}
.fi-detail-related-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fi-detail-related-left { display: flex; flex-direction: column; gap: 10px; }
#fi-detail-links { display: flex; flex-direction: column; gap: 10px; }
.fi-detail-related-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
}
.fi-related-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #2778E2;
  text-decoration: underline;
}
.fi-related-link:hover { opacity: .8; }
.fi-detail-newsletter-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  background-color: #008F8D;
  background-image: url('../../images/Btn_background.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
  transition: opacity .2s;
}
.fi-detail-newsletter-btn:hover { opacity: .9; color: #fff; }
.fi-detail-newsletter-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* ─── 検査項目 Table ─── */
.fi-detail-table-section { display: flex; flex-direction: column; gap: 16px; }
.fi-detail-table-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 32px; line-height: 40px;
  letter-spacing: -0.02em; color: #E7380D;
}
.fi-detail-table-wrap { display: flex; flex-direction: column; gap: 10px; }
.fi-detail-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: 8px; overflow: hidden;
}
.fi-detail-table thead tr th {
  background: #F5F6F7;
  border-top: 1px solid #E6E8EC;
  border-right: 1px solid #E6E8EC;
  border-bottom: 1px solid #E6E8EC;
  padding: 10px 12px; text-align: left;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 500;
  font-size: 16px; line-height: 24px; color: #42526B;
}
.fi-detail-table thead tr th:first-child { border-left: 1px solid #E6E8EC; }
.fi-detail-table .fi-th-item  { width: auto; }
.fi-detail-table .fi-th-price, .fi-detail-table .fi-th-std, .fi-detail-table .fi-th-rush { width: 130px; }
.fi-detail-table tbody tr td {
  border-right: 1px solid #E6E8EC;
  border-bottom: 1px solid #E6E8EC;
  padding: 14px 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px; line-height: 24px; vertical-align: middle;
}
.fi-detail-table tbody tr td:first-child { border-left: 1px solid #E6E8EC; }
.fi-td-item strong { display: block; font-weight: 500; color: #061C3D; }
.fi-td-item span   { display: block; font-weight: 400; color: #044F4E; }
.fi-td-num { font-weight: 500; color: #061C3D; }
.fi-detail-table-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400; font-size: 16px; line-height: 24px; color: #FE7F00;
}
.fi-detail-table2 thead tr th { width: 50%; }
.fi-td2-item {
  padding: 14px 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #061C3D;
  width: 50%;
}

/* ─────────────────────────────────────────
   FOOD INSPECTION — FOOTER MOBILE
───────────────────────────────────────── */
@media (max-width: 480px) {
  .fi-site-footer      { padding: 24px 16px 16px; }
  .fi-footer-logo-img  { height: 48px; }
  .fi-footer-inner     { gap: 16px; }
  .fi-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .fi-footer-nav-col   { gap: 0; }
  .fi-footer-nav-col a {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 2.2;
    color: #243752;
    padding-left: .6rem;
  }
  .fi-footer-nav-col a::before { content: '・'; color: #888888; }
}

@media (max-width: 480px) {
  .fi-detail-related-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fi-detail-newsletter-btn { font-size: 14px; line-height: 20px; padding: 8px 12px; width: 100%; }
  .fi-detail-newsletter-arrow { width: 28px; height: 28px; font-size: 18px; }

  .sn-inner-hero-title      { bottom: 12px; left: 12px; }
  .sn-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #008F8D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 4px;
  }
  .sn-sidebar-toggle-icon { transition: transform .25s; flex-shrink: 0; }
  .sn-sidebar-toggle[aria-expanded="true"] .sn-sidebar-toggle-icon { transform: rotate(180deg); }
  .sn-sidebar-nav {
    display: none;
    border: 1px solid #E6E8EC;
    border-radius: 8px;
    overflow: hidden;
  }
  .sn-sidebar-nav.open { display: flex; }
  .sn-sidebar-nav a { width: 100%; border-radius: 0; }
  .sn-faq-title             { font-size: 20px; line-height: 28px; }
  .sn-faq-viewall           { font-size: 14px; }
  .sn-faq-list              { gap: 12px; }
  .sn-faq-q                 { font-size: 13px; line-height: 20px; padding: 14px 14px 14px 64px; min-height: 56px; }
  .sn-faq-q-badge           { width: 50px; height: 50px; font-size: 22px; }
  .sn-faq-q-icon            { width: 28px; height: 28px; }
  .sn-faq-a-inner           { gap: 16px; padding: 14px; }
  .sn-faq-a-badge           { font-size: 22px; line-height: 26px; }
  .sn-faq-a-text            { font-size: 13px; line-height: 20px; }

  .fi-detail-table-wrap     { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fi-detail-table          { min-width: 480px; font-size: 13px; }
  .fi-detail-table thead tr th { font-size: 12px; padding: 8px; }
  .fi-detail-table .fi-th-price,
  .fi-detail-table .fi-th-std,
  .fi-detail-table .fi-th-rush { width: 80px; }
  .fi-detail-table tbody tr td { font-size: 12px; padding: 10px 8px; }
  .fi-detail-table-note     { font-size: 12px; }
  .fi-td2-item              { font-size: 12px; padding: 10px 8px; }
}
