/* ================================
   CSS変数
   ================================ */
:root {
  --c-primary: #00AC97;
  --c-primary-dark: #00A78B;
  --c-accent: #FFE67F;
  --c-accent-light: #FFF8E1;
  --c-accent-warm: #FFF2BC;
  --c-green-bg: #E3F7EC;
  --c-green-tag: #B2E0D2;
  --c-green-pale: #e0f5f1;
  --c-green-hover: #f0faf8;
  --c-text: #303540;
  --c-text-sub: #303540;
  --c-text-muted: #888;
  --c-border: #e8e8e8;
  --c-white: #fff;
  --c-bg: #fff;
  --c-gradient: linear-gradient(to right, #00AC97, #c3d885);
  --radius-pill: 30px;
  --radius-card: 12px;
  --radius-sm: 4px;
  --transition: 0.3s ease;
  --max-w-wide: 1200px;
  --max-w-narrow: 1024px;
}

/* ================================
   リセット & ベース
   ================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--c-text);
  background-color: #fff;
  overflow-x: hidden;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* ================================
   共通: アウトラインボタン
   ================================ */
.header__nav-btn,
.product__action-btn,
.product__cta-download,
.modal__btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-text);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.header__nav-btn:hover,
.product__action-btn:hover,
.product__cta-download:hover,
.modal__btn--outline:hover {
  background: var(--c-accent);
  border-color: var(--c-primary);
  color: var(--c-text);
}

/* ================================
   ヘッダー
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.header__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 64px;
  width: auto;
}

.header__logo-sp {
  display: none;
}

.header__nav {
  display: flex;
  gap: 0.4rem;
}

.header__nav-btn {
  width: 180px;
  height: 50px;
  padding-top: 2px;
  color: var(--c-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.header__nav-btn:hover {
  color: var(--c-text);
}

/* ================================
   ヒーローセクション
   ================================ */
.hero {
  position: relative;
  z-index: 3;
  padding-top: 80px;
  background: #fff;
  overflow: visible;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  min-height: clamp(380px, 25vw + 200px, 500px);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 55%;
  padding-top: 2rem;
}

.hero__title {
  margin-top: 10px;
  margin-left: clamp(-125px, -9.77vw, 0px);
  margin-bottom: 0;
}

.hero__title-img {
  width: clamp(450px, 58.6vw, 750px);
  height: auto;
  object-fit: contain;
}

.hero__title-img--sp {
  display: none;
}

.hero__text {
  margin-top: -1rem;
  font-size: clamp(14px, 1.33vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
}

.br-narrow {
  display: none;
}

.hero__map-guide {
  margin-top: 25px;
}

.hero__map-guide img {
  width: clamp(260px, 33.4vw, 427px);
  height: auto;
}

.hero__map-area {
  /* PC: 特別なスタイルなし、子要素はabsolute */
}

.hero__illustration {
  position: absolute;
  top: 110px;
  right: calc(-1 * clamp(0px, (100vw - 1200px) / 2, 2rem));
  width: 733px;
  z-index: 1;
  transform-origin: top right;
}

.hero__illustration-img {
  width: 100%;
  border-radius: 12px;
}

.hero__labels {
  position: absolute;
  top: 110px;
  right: calc(-1 * clamp(0px, (100vw - 1200px) / 2, 2rem));
  width: 733px;
  height: 684px;
  z-index: 10;
  pointer-events: none;
  transform-origin: top right;
}

.hero__label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 50px;
  padding: 0 16px;
  line-height: 1;
  background: #fff;
  border: 2.5px solid var(--c-primary);
  border-radius: 100px;
  font-size: 19.2px;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  filter: drop-shadow(3.2px 3.2px 0 var(--c-primary));
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero__label:hover {
  transform: translateY(-4px);
  background: var(--c-accent);
  border-color: #fff;
  filter: drop-shadow(3.2px 3.2px 0 #fff);
  font-weight: 700;
}

.hero__label:hover::after {
  border-top-color: #fff;
}

.hero__label:hover::before {
  border-top-color: var(--c-accent);
}

.hero__label::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 14px solid var(--c-primary);
  z-index: 1;
  transition: border-top-color 0.2s ease;
}

.hero__label::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 11px solid #fff;
  z-index: 2;
  transition: border-top-color 0.2s ease;
}

.hero__label--disabled {
  background: #E7E7E7;
  border: 1px solid var(--c-text);
  font-size: 14px;
  min-width: auto;
  max-height: 33px;
  padding: 8px 16px;
  color: var(--c-text);
  filter: none;
  pointer-events: none;
}

.hero__label--disabled::after {
  display: none;
}

.hero__label--disabled::before {
  display: none;
}

/* PC用ラベル位置 */
.hero__label[href*="research"] { top: 5% !important; left: 36% !important; }
.hero__labels > :nth-child(2) { top: 17% !important; left: 12% !important; }
.hero__label[href*="office"] { top: 26% !important; left: 42% !important; }
.hero__labels > :nth-child(4) { top: 23% !important; left: 70% !important; }
.hero__label[href*="commercial"] { top: 31% !important; left: 14% !important; }
.hero__label[href*="medical"] { top: 48% !important; left: 72% !important; }
.hero__label[href*="public"] { top: 52% !important; left: 30% !important; }
.hero__labels > :nth-child(8) { top: 52% !important; left: 56% !important; }
.hero__labels > :nth-child(9) { top: 68% !important; left: 4% !important; }
.hero__labels > :nth-child(10) { top: 73% !important; left: 44% !important; }
.hero__label[href*="dc"] { top: 76% !important; left: 70% !important; }
.hero__labels > :nth-child(12) { top: 84% !important; left: 20% !important; }

.hero__deco-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  pointer-events: none;
}

.hero__deco-left img {
  width: 100%;
}

.hero__illustration-placeholder {
  position: relative;
  top: 10px;
  width: 733px;
  height: 684px;
  background: url('../images/index/map_bg.gif') center / cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
}

.hero__deco-building {
  width: 100%;
  height: 300px;
  background: transparent;
}

/* ================================
   ソリューションセクション
   ================================ */
.solutions {
  position: relative;
  z-index: 2;
  margin-top: clamp(0px, 5vw - 30px, 3rem);
  padding: 38rem 0 6rem;
  background: url('../images/index/illust_materials_bg.png') center top / 2500px 1270px no-repeat;
  overflow: visible;
  min-height: 1270px;
}

.solutions__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.solutions__subtitle {
  font-family: 'Sen', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  margin-bottom: 0.8rem;
}

.solutions__title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4rem;
}

.solutions__cards {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 840px;
  margin: 0 auto;
}

.solutions__row {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* === カード共通 === */
.solutions__card {
  display: flex;
  background: #fff;
  border: 2px solid var(--c-primary-dark);
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 var(--c-primary);
  overflow: hidden;
  position: relative;
}


/* === 上段カード（横長） === */
.solutions__card--wide {
  flex: 1;
  height: 174px;
  align-items: center;
  overflow: visible;
}

/* === 下段カード（縦長） === */
.solutions__card--tall {
  flex: 1;
  height: 334px;
  flex-direction: column;
  text-align: center;
  overflow: visible;
}

/* === イラスト部分 === */
.solutions__card-illust {
  position: relative;
  flex-shrink: 0;
}

.solutions__card--wide .solutions__card-illust {
  width: 200px;
  height: 178px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

/* エネルギー（1枚目）: 左下にはみ出し */
.solutions__row--top .solutions__card:first-child .solutions__card-illust {
  justify-content: flex-start;
  margin-bottom: -30px;
  margin-left: -35px;
}

/* クリーン（2枚目）: 右下にはみ出し */
.solutions__row--top .solutions__card:last-child .solutions__card-illust {
  justify-content: flex-end;
  margin-bottom: -25px;
  margin-right: -30px;
}

/* 上段カード: ホバーでイラスト左に10px移動（transformはスタッキングコンテキストを生成するためleftを使用） */
.solutions__card--wide .solutions__card-illust {
  transition: left 0.5s ease;
  left: 0;
}

.solutions__card--wide:hover .solutions__card-illust {
  left: -10px;
}

.solutions__card--tall .solutions__card-illust {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  margin-bottom: -25px;
}

/* イラスト画像 */
.solutions__card-img {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.solutions__card--wide .solutions__card-img {
  height: 178px;
  width: auto;
}

.solutions__card--tall .solutions__card-img {
  height: 178px;
  width: auto;
}

.solutions__card-img--on {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.solutions__card:hover .solutions__card-img--on {
  opacity: 1;
}

.solutions__card:hover .solutions__card-img--off {
  opacity: 0;
}

/* 背景シルエット */
.solutions__card-bg {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(calc(-50% + 4px));
  z-index: -1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.solutions__card-bg--on {
  opacity: 0;
}

.solutions__card:hover .solutions__card-bg--on {
  opacity: 1;
}

.solutions__card:hover .solutions__card-bg--off {
  opacity: 0;
}

.solutions__card--wide .solutions__card-bg {
  height: 178px;
  width: auto;
}

.solutions__card--tall .solutions__card-bg {
  height: 180px;
  width: auto;
}

/* === テキスト部分 === */
.solutions__card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px;
  text-align: center;
}

.solutions__card--wide .solutions__card-text {
  flex: 1;
  justify-content: center;
}

/* 左上カード: テキスト右側なので左パディングなし */
.solutions__row--top .solutions__card:first-child .solutions__card-text {
  padding-left: 0;
}

/* 右上カード: テキスト左側なので右パディングなし */
.solutions__row--top .solutions__card:last-child .solutions__card-text {
  padding-right: 0;
}

.solutions__card--tall .solutions__card-text {
  padding: 55px 20px 0;
}

.solutions__card-heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 180%;
  color: var(--c-primary-dark);
  display: inline;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.solutions__card:hover .solutions__card-heading {
  background: linear-gradient(#fff 7%, var(--c-accent) 7%);
  padding: 0 10px;
  margin: 0 -10px;
}

.solutions__card-sub {
  font-size: 24px;
  font-weight: 500;
  line-height: 180%;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* テキスト部分のホバー拡大（イラストと同じ0.5s ease） */
.solutions__card-text {
  transition: transform 0.5s ease;
}

.solutions__card:hover .solutions__card-text {
  transform: scale(1.1);
}

.solutions__deco-right {
  position: absolute;
  top: 20%;
  right: 0;
  width: 200px;
  pointer-events: none;
}

.solutions__deco-right img {
  width: 100%;
}

.solutions__deco-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  pointer-events: none;
}

.solutions__deco-left img {
  width: 100%;
}

/* SP背景イラスト（PCでは非表示） */
.solutions__sp-bg {
  display: none;
}

/* ================================
   お問い合わせセクション
   ================================ */
.contact {
  position: relative;
  z-index: 1;
  padding: 0;
  margin-bottom: 40px;
}

.contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 240px;
  margin: 0 auto;
  background: linear-gradient(to right, var(--c-primary), #c3d885);
  padding: 0 8rem;
  transition: opacity 0.3s ease;
}

.contact__desc {
  font-size: 2.4rem;
  color: #fff;
  line-height: 1.8;
  transform-origin: left center;
  transition: transform 0.3s;
}

.contact__inner:hover .contact__desc {
  transform: scale(0.9);
}

.contact__cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transform-origin: right center;
  transition: transform 0.3s;
}

.contact__inner:hover .contact__cta {
  transform: scale(1.1);
}

.contact__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.contact__arrow-svg path {
  transition: stroke 0.3s;
}

.contact__inner:hover .contact__arrow {
  background-color: var(--c-accent);
}

.contact__inner:hover .contact__arrow-svg path {
  stroke: var(--c-primary);
}

.contact__title {
  font-family: 'Sen', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ================================
   フッター
   ================================ */
.footer {
  margin-top: auto;
  background: #fff;
  height: 200px;
  padding: 0 2rem;

  display: flex;
  align-items: center;
}

.footer__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 1.1rem;
  color: var(--c-text);
  letter-spacing: 0.05em;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.footer__logos img {
  height: 34px;
  width: auto;
}

/* ================================
   ページトップボタン
   ================================ */
.pagetop {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid var(--c-primary-dark);
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s, opacity 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pagetop:hover {
  background-color: #e3f7ec;
}

.pagetop__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.pagetop:hover .pagetop__inner {
  transform: scale(0.85);
}

.pagetop__arrow {
  width: 52px;
  height: 52px;
}

.pagetop__label {
  font-family: 'Sen', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-primary-dark);
  margin-top: -4px;
  letter-spacing: 0.05em;
  transition: transform 0.3s;
}


/* ================================
   モーダル
   ================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
}

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

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal__container {
  position: relative;
  width: 1000px;
  max-width: calc(100% - 40px);
  min-height: 600px;
  background: #fff;
  border-radius: 16px;
  padding: 60px 50px 50px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 68px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.is-open .modal__container {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.modal__close:hover {
  opacity: 0.6;
}

.modal__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--c-primary);
  text-align: center;
}

.modal__body {
  flex: 0 0 auto;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* --- サービスから探す: チェックボックスグループ --- */
.modal__group {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.modal__group-label {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-primary);
  white-space: nowrap;
  min-width: 7em;
  padding-top: 2px;
}

.modal__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.modal__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.5rem;
  color: var(--c-text);
  cursor: pointer;
  white-space: nowrap;
}

.modal__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid #303540;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.modal__checkbox input[type="checkbox"]:checked {
  background: var(--c-accent);
  border: 1px solid #303540;
}

.modal__checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--c-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- お悩みから探す: カード型 --- */
.modal__body--worries {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.modal__card {
  cursor: pointer;
  flex: 0 0 auto;
}

.modal__card:nth-child(n+3) {
  order: 2;
}

.modal__cards::after {
  content: '';
  flex-basis: 100%;
  order: 1;
  height: 0;
}

.modal__card input[type="checkbox"] {
  display: none;
}

.modal__card-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border: 1px solid var(--c-primary);
  border-radius: 4px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--c-text);
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.modal__card-inner::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 1px solid #999;
  border-radius: 3px;
  flex-shrink: 0;
}

.modal__card input[type="checkbox"]:checked + .modal__card-inner {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.modal__card input[type="checkbox"]:checked + .modal__card-inner::before {
  background: var(--c-accent);
  border: 1px solid #999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7L6 10L11 4' stroke='%2300AC97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.modal__card-inner:hover {
  background: #f0faf8;
}

/* --- モーダル下部ボタン --- */
.modal__actions {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.modal__btn {
  height: 56px;
  border-radius: 30px;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}

.modal__btn--outline {
  flex: 0 0 240px;
}

.modal__btn--primary {
  flex: 1;
  background: var(--c-accent);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.modal__btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--c-primary), #c3d885);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.modal__btn--primary:hover {
  color: var(--c-text);
}

.modal__btn--primary:hover::before {
  opacity: 0;
}

/* bodyスクロールロック */
body.modal-open {
  overflow: hidden;
}

/* ================================
   ヘッダーボタンアイコン / 短縮テキスト (PC: 非表示)
   ================================ */
.header__nav-btn-icon {
  display: none;
}

.header__nav-btn-short {
  display: none;
}

/* ================================
   レスポンシブ (ナローPC: 900px以下)
   ================================ */
@media (max-width: 900px) {
  .br-narrow {
    display: inline;
  }
}

@media (max-width: 850px) {
  .solutions__card-heading {
    font-size: 18px;
  }

  .solutions__card-sub {
    font-size: 16px;
  }
}

/* ================================
   レスポンシブ (SP: 768px以下)
   ================================ */
@media (max-width: 768px) {

  /* --- ヘッダー SP --- */
  .header {
    height: 64px;
  }

  .header__inner {
    padding: 0.8rem 16px;
  }

  .header__logo .header__logo-pc {
    display: none;
  }

  .header__logo .header__logo-sp {
    display: block;
    height: 36px;
  }

  .header__nav {
    gap: 4px;
  }

  .header__nav-btn {
    width: auto;
    height: 36px;
    padding: 0 12px;
    font-size: 1.2rem;
    border-width: 1.5px;
    gap: 4px;
  }

  .header__nav-btn-icon {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  .header__nav-btn-full {
    display: none;
  }

  .header__nav-btn-short {
    display: inline;
  }

  /* --- ヒーロー SP --- */
  .hero {
    padding-top: 64px;
  }

  .hero__inner {
    padding: 0;
    min-height: auto;
  }

  .hero__content {
    width: 100%;
    padding: 16px 20px 0;
  }

  .hero__title {
    margin-top: 0;
    margin-left: 0;
  }

  .hero__title-img--pc {
    display: none;
  }

  .hero__title-img--sp {
    display: block;
    width: 100%;
  }

  .hero__text {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero__map-guide {
    display: none;
  }

  .hero__map-area {
    position: relative;
    width: 100%;
    margin-top: 16px;
  }

  .hero__illustration {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    transform: none !important;
    transform-origin: center;
  }

  .hero__illustration-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 733 / 684;
    top: 0;
    border-radius: 0;
  }

  .hero__labels {
    position: absolute;
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
    transform-origin: center;
  }

  .hero__label {
    min-width: auto;
    height: auto;
    padding: 6px 14px;
    font-size: 13px;
    border-width: 1.5px;
    filter: drop-shadow(2px 2px 0 var(--c-primary));
  }

  .hero__label::after {
    bottom: -10px;
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 10px;
  }

  .hero__label::before {
    bottom: -7px;
    border-left-width: 3px;
    border-right-width: 3px;
    border-top-width: 8px;
  }

  .hero__label--disabled {
    font-size: 9px;
    padding: 4px 8px;
    filter: none;
    border-width: 1px;
  }

  .hero__deco-left {
    display: none;
  }

  /* --- ソリューション SP --- */
  .solutions {
    margin-top: 0;
    padding: 40px 0 80px;
    background: #FFF2BC;
    min-height: auto;
    z-index: 1;
  }

  .solutions__inner {
    padding: 0 20px;
  }

  .solutions__subtitle {
    font-size: 1.3rem;
  }

  .solutions__title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .solutions__cards {
    gap: 24px;
    max-width: 100%;
  }

  .solutions__row {
    flex-direction: column;
    gap: 24px;
  }

  .solutions__row--top,
  .solutions__row--bottom {
    gap: 24px;
  }

  /* SP: 全カード横向き表示 */
  .solutions__card {
    width: 100%;
    max-width: 100%;
  }

  .solutions__card--wide,
  .solutions__card--tall {
    flex: none;
    flex-direction: row;
    height: 140px;
    align-items: center;
    overflow: visible;
  }

  .solutions__card--wide .solutions__card-text,
  .solutions__card--tall .solutions__card-text {
    padding: 16px;
    flex: 1;
  }

  .solutions__row--top .solutions__card:first-child .solutions__card-text {
    padding-left: 16px;
  }

  .solutions__row--top .solutions__card:last-child .solutions__card-text {
    padding-right: 16px;
  }

  .solutions__card--tall .solutions__card-illust {
    width: 150px;
    height: 134px;
    flex: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -20px;
  }

  .solutions__card--wide .solutions__card-illust {
    width: 150px;
    height: 134px;
    flex: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -20px;
  }

  .solutions__card--wide .solutions__card-img,
  .solutions__card--tall .solutions__card-img {
    height: 134px;
  }

  .solutions__card--wide .solutions__card-bg,
  .solutions__card--tall .solutions__card-bg {
    height: 134px;
  }

  /* 交互レイアウト: 奇数=イラスト左、偶数=イラスト右 */
  .solutions__row--top .solutions__card:first-child .solutions__card-illust {
    margin-left: -10px;
    margin-bottom: -20px;
    justify-content: center;
  }

  .solutions__row--top .solutions__card:last-child {
    flex-direction: row;
  }

  .solutions__row--top .solutions__card:last-child .solutions__card-illust {
    order: 2;
    margin-right: -10px;
    margin-bottom: -20px;
    justify-content: center;
  }

  .solutions__row--top .solutions__card:last-child .solutions__card-text {
    order: 1;
  }

  /* 下段カード: イラスト/テキスト交互配置 */
  .solutions__row--bottom .solutions__card:nth-child(odd) .solutions__card-illust {
    order: 0;
    margin-left: -10px;
  }

  .solutions__row--bottom .solutions__card:nth-child(odd) .solutions__card-text {
    order: 1;
  }

  .solutions__row--bottom .solutions__card:nth-child(even) {
    flex-direction: row;
  }

  .solutions__row--bottom .solutions__card:nth-child(even) .solutions__card-illust {
    order: 2;
    margin-right: -10px;
    margin-bottom: -20px;
  }

  .solutions__row--bottom .solutions__card:nth-child(even) .solutions__card-text {
    order: 1;
  }

  .solutions__card-heading {
    font-size: 18px;
  }

  .solutions__card-sub {
    font-size: 16px;
  }

  /* SP: 全ホバーエフェクト無効化 */
  .header__nav-btn:hover {
    background: var(--c-white);
    border-color: var(--c-primary);
    color: var(--c-primary);
  }

  .hero__label:hover {
    transform: none;
    background: #fff;
    border-color: var(--c-primary-dark);
    font-weight: 500;
    filter: drop-shadow(2px 2px 0 var(--c-primary));
  }

  .hero__label:hover::after {
    border-top-color: var(--c-primary-dark);
  }

  .hero__label:hover::before {
    border-top-color: #fff;
  }

  /* スマホ用ラベル位置 */
  .hero__label[href*="research"] { top: 5% !important; left: 36% !important; }
  .hero__labels > :nth-child(2) { top: 17% !important; left: 12% !important; }
  .hero__label[href*="office"] { top: 26% !important; left: 42% !important; }
  .hero__labels > :nth-child(4) { top: 23% !important; left: 70% !important; }
  .hero__label[href*="commercial"] { top: 31% !important; left: 14% !important; }
  .hero__label[href*="medical"] { top: 44% !important; left: 72% !important; }
  .hero__label[href*="public"] { top: 48% !important; left: 30% !important; }
  .hero__labels > :nth-child(8) { top: 52% !important; left: 56% !important; }
  .hero__labels > :nth-child(9) { top: 64% !important; left: 4% !important; }
  .hero__labels > :nth-child(10) { top: 73% !important; left: 36% !important; }
  .hero__label[href*="dc"] { top: 76% !important; left: 62% !important; }
  .hero__labels > :nth-child(12) { top: 84% !important; left: 20% !important; }

  .solutions__card:hover .solutions__card-text {
    transform: none;
  }

  .solutions__card--wide:hover .solutions__card-illust {
    left: 0;
  }

  /* SP: モーダル内ホバー無効化 */
  .modal__card-inner:hover {
    background: transparent;
  }

  .modal__btn--outline:hover {
    background: var(--c-white);
    border-color: var(--c-primary);
    color: var(--c-text);
  }

  .modal__btn--primary:hover {
    color: #fff;
  }

  .modal__btn--primary:hover::before {
    opacity: 1;
  }

  .modal__close:hover {
    opacity: 1;
  }

  /* SP: 製品ページボタンホバー無効化 */
  .product__action-btn:hover,
  .product__cta-download:hover {
    background: var(--c-white);
    border-color: var(--c-primary);
    color: var(--c-text);
  }

  .product__cta-contact:hover {
    color: #fff;
  }

  .product__cta-contact:hover::before {
    opacity: 1;
  }

  .solutions__card:hover .solutions__card-img--on {
    opacity: 0;
  }

  .solutions__card:hover .solutions__card-img--off {
    opacity: 1;
  }

  .solutions__card:hover .solutions__card-bg--on {
    opacity: 0;
  }

  .solutions__card:hover .solutions__card-bg--off {
    opacity: 1;
  }

  .solutions__card:hover .solutions__card-heading {
    background: none;
    padding: 0;
    margin: 0;
  }

  .contact__inner:hover .contact__desc {
    transform: none;
  }

  .contact__inner:hover .contact__cta {
    transform: none;
  }

  .contact__inner:hover .contact__arrow {
    background-color: transparent;
  }

  .contact__inner:hover .contact__arrow-svg path {
    stroke: #fff;
  }

  .pagetop:hover {
    background-color: #fff;
  }

  .pagetop:hover .pagetop__inner {
    transform: none;
  }

  .solutions__deco-right,
  .solutions__deco-left {
    display: none;
  }

  .solutions__sp-bg {
    display: block;
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 234px;
    height: auto;
    pointer-events: none;
    z-index: 0;
  }

  /* --- お問い合わせ SP --- */
  .contact {
    margin-bottom: 0;
    z-index: 2;
    padding: 0 20px 40px;
    margin-top: 40px;
  }

  .contact__inner {
    flex-direction: column;
    height: auto;
    padding: 40px 10px;
    text-align: center;
    gap: 24px;
  }

  .contact__desc {
    font-size: 20px;
    text-align: center;
    transform-origin: center center;
  }

  .contact__cta {
    justify-content: center;
    transform-origin: center center;
  }

  .contact__arrow {
    width: 48px;
    height: 48px;
  }

  .contact__arrow-svg {
    width: 28px;
    height: 28px;
  }

  .contact__title {
    font-size: 32px;
  }

  /* --- フッター SP --- */
  .footer {
    height: auto;
    padding: 2rem;
  }

  .footer__inner {
    flex-direction: column-reverse;
    gap: 1.6rem;
    text-align: center;
  }

  .footer__logos {
    width: 100%;
    gap: 1.6rem;
  }

  .footer__logos a {
    flex: 1;
  }

  .footer__logos img {
    height: auto;
    width: 100%;
  }

  .footer__copyright {
    font-size: 1rem;
  }

  /* --- ページトップ SP --- */
  .pagetop {
    width: 72px;
    height: 72px;
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .pagetop__arrow {
    width: 36px;
    height: 36px;
  }

  .pagetop__label {
    font-size: 14px;
  }

  /* --- モーダル SP --- */
  .modal {
    align-items: stretch;
    justify-content: stretch;
  }

  .modal__container {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    border-radius: 0;
    padding: 32px 24px 32px;
    overflow-y: auto;
    box-shadow: none;
    justify-content: flex-start;
    gap: 16px;
  }

  .modal__title {
    font-size: 2.2rem;
    text-align: left;
  }

  .modal__close {
    top: 16px;
    right: 16px;
  }

  /* サービスから探す SP */
  .modal__group {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .modal__group:last-child {
    margin-bottom: 8px;
  }

  .modal__group-label {
    min-width: auto;
  }

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

  .modal__checkbox {
    padding: 0;
    border-bottom: none;
  }

  /* お悩みから探す SP */
  .modal__body {
    flex: 0 1 auto;
  }

  .modal__body--worries {
    display: block;
  }

  .modal__cards {
    max-width: 100%;
    flex-direction: column;
    gap: 10px 0;
    margin: 0 0 8px;
  }

  .modal__cards::after {
    display: none;
  }

  .modal__card:nth-child(-n+2),
  .modal__card:nth-child(n+3) {
    width: 100%;
    order: unset;
  }

  /* ボタン SP */
  .modal__actions {
    flex-direction: column-reverse;
    max-width: 100%;
    gap: 8px;
  }

  .modal__btn {
    height: 36px;
    font-size: 1.4rem;
  }

  .modal__btn--outline {
    flex: 0 0 auto;
    width: 100%;
  }

  .modal__btn--primary {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ================================
   タグバッジ
   ================================ */
.tag {
  display: inline-block;
  padding: 3px 12px 4px;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--building {
  background: #e0f5f1;
  color: #00796B;
  border: 1px solid #b2dfdb;
}

.tag--solution {
  background: #FFF8E1;
  color: #8D6E00;
  border: 1px solid var(--c-accent);
}

.tag--all {
  background: #f0f0f0;
  color: var(--c-text-sub);
  border: 1px solid #ddd;
}

/* ================================
   サブページヘッダー
   ================================ */
.header__center {
  display: none;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  margin-right: 24px;
}

.header--sub .header__center {
  display: flex;
}

.header__icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 1.1rem;
  color: var(--c-text);
  transition: color 0.3s;
}

.header__icon-link:hover {
  color: var(--c-primary);
}

.header__icon-img {
  width: 28px;
  height: 28px;
}

.header__icon-on {
  display: none;
}

.header__icon-link:hover .header__icon-off {
  display: none;
}

.header__icon-link:hover .header__icon-on {
  display: block;
}

.header__icon-label-short {
  display: none;
}

.header--sub {
  background: var(--c-green-bg);
  transition: background 0.3s ease;
}

.header--sub.is-scrolled {
  background: rgba(227, 247, 236, 0.8);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.page-sub {
  position: relative;
  background: #fff;
}

.page-sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 480px;
  background: var(--c-green-bg);
  z-index: 0;
}

.page-sub > *:not(.modal):not(.pagetop):not(.header):not(.image-viewer) {
  position: relative;
  z-index: 1;
}

/* ================================
   フィルターセクション
   ================================ */
.filter,
.results {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.filter.is-loaded,
.results.is-loaded {
  opacity: 1;
}

.filter {
  background: transparent;
}

.filter__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 120px 12px 0;
}

.filter__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.filter__tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter__tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 6px 2px;
  border: 1px solid var(--c-primary);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.05rem;
  color: var(--c-text);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.filter__tag.is-active {
  background: var(--c-accent);
  border-color: var(--c-primary);
  color: var(--c-text);
}

.filter__tag--solution {
  background: transparent;
}

.filter__tag--building {
  background: #B2E0D2;
  border-color: #B2E0D2;
  color: var(--c-text);
}

.filter__tag--building.is-active {
  background: #fff2bc;
  border-color: #fff2bc;
  color: var(--c-text);
}

@media (hover: hover) {
  .filter__tag:hover {
    background: var(--c-accent);
    border-color: var(--c-primary);
    color: var(--c-text);
  }
  .filter__tag.is-active:hover {
    opacity: 0.7;
  }
  .filter__tag--building:hover {
    background: #fff2bc;
    border-color: #fff2bc;
    color: var(--c-text);
  }
  .filter__tag--building.is-active:hover {
    opacity: 0.7;
  }
}

.filter__toggle {
  display: none;
}

/* ================================
   検索結果ページ
   ================================ */
.results {
  padding-top: 20px;
  padding-bottom: 20px;
}

.results__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 12px;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.results__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 0;
  font-size: 1.6rem;
  color: var(--c-text);
  line-height: 2;
}

/* ================================
   製品カード（検索結果）
   ================================ */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-primary);
  border-radius: 4px;
  overflow: hidden;
  padding: 20px;
  gap: 12px;
  position: relative;
}

.product-card:hover {
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__image--fit {
  background: #fff;
}

.product-card__image--fit img {
  object-fit: contain;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 27px;
}

.product-card__subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-sub);
  line-height: 1.6;
  margin-bottom: 4px;
}

.product-card__name {
  font-size: 22px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-card__name-sub {
  font-size: 14px;
}

@media (max-width: 1024px) {
  .product-card__name-sub {
    display: block;
  }
}

@media (max-width: 940px) {
  .product-card__name {
    font-size: 18px;
  }
  .product-card__name-sub {
    font-size: 14px;
  }
}

.product-card__desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-sub);
  line-height: 1.8;
  flex: 1;
}

.product-card__arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 27px;
  height: 27px;
  transition: width 0.4s ease, height 0.4s ease;
}

.product-card__arrow img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
}

.product-card__arrow-on {
  opacity: 0;
}

.product-card:hover .product-card__arrow-off {
  opacity: 0;
}

.product-card:hover .product-card__arrow-on {
  opacity: 1;
}

.product-card:hover .product-card__arrow {
  width: 36px;
  height: 36px;
}

/* ================================
   製品詳細ページ
   ================================ */
.product {
  padding-top: 120px;
  padding-bottom: 0;
}

.product__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 12px;
}

.product__header {
  margin-bottom: 16px;
}

.product__name {
  font-size: 6.4rem;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product__subtitle-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.product__subtitle {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-text);
  padding-right: 20px;
  border-right: none;
  position: relative;
}

.product__subtitle::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 34px;
  background: var(--c-primary);
}

.product__catch {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-text-sub);
}

.product__tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}

.product__tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product__tags a.filter__tag {
  text-decoration: none;
}

span.filter__tag {
  cursor: default;
  pointer-events: none;
}

.product__tags-error {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--c-text-sub);
  padding: 4px 0;
}

.product__tags-toggle {
  display: none;
}

/* メイン画像 */
.product__hero {
  width: 100%;
  aspect-ratio: 1000 / 424;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 32px;
}

.product__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 横幅フィット（文字入り画像用：高さ可変） */
.product__hero--fit {
  aspect-ratio: auto;
  overflow: visible;
}

.product__hero--fit img {
  height: auto;
  object-fit: contain;
}

/* 説明文 + ボタン */
.product__content {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.product__desc {
  flex: 1;
}

.product__desc p {
  font-size: 1.5rem;
  color: var(--c-text);
  line-height: 2;
}

.product__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  justify-content: flex-start;
  padding-top: 8px;
}

.product__action-btn {
  height: 54px;
  padding: 0 32px;
  font-size: 1.5rem;
}

/* データセクション */
.product__data {
  margin-bottom: 48px;
}

.product__data-image {
  width: 100%;
  position: relative;
}

/* 拡大ボタン – スマホのみ */
.product__data-expand {
  display: none;
}

.product__data-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 受賞歴 */
.product__awards {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--c-text);
}

.product__awards-label {
  font-weight: 700;
  white-space: nowrap;
  color: var(--c-text);
}

.product__awards-bracket {
  color: var(--c-primary);
}

.product__awards-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product__awards-item {
  display: flex;
  gap: 16px;
}

.product__awards-year {
  white-space: nowrap;
}

.product__awards-name {
  flex: 1;
}

.product__awards-note {
  text-align: right;
  padding-right: 1em;
  font-size: 12px;
  margin-top: -10px;
}

/* CTAボタン */
.product__cta {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  align-items: center;
}

.product__cta-download {
  gap: 12px;
  height: 60px;
  padding: 0 32px;
  font-size: 1.6rem;
  width: 373px;
  flex-shrink: 0;
}

.product__cta-download-icon {
  width: 32px;
  height: 32px;
}

.product__cta-contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border-radius: 30px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-accent);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.4s ease;
}

.product__cta-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-gradient);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.product__cta-contact:hover {
  color: var(--c-text);
}

.product__cta-contact:hover::before {
  opacity: 0;
}

/* 下部タグ */
.product__bottom-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 32px;
}

/* ================================
   検索結果 & 製品 レスポンシブ (SP)
   ================================ */
@media (max-width: 768px) {
  /* ヘッダー SP: home & back ボタン（サブページのみ） */
  .header__center {
    display: none;
  }

  .header--sub .header__center {
    display: flex;
    margin: 0;
    gap: 8px;
    align-self: flex-end;
    padding-bottom: 2px;
  }

  .header__icon-link {
    gap: 1px;
    font-size: 0.9rem;
  }

  .header__icon-link:hover {
    color: inherit;
  }

  .header__icon-link:hover .header__icon-off {
    display: block;
  }

  .header__icon-link:hover .header__icon-on {
    display: none;
  }

  .header__icon-img {
    width: 20px;
    height: 20px;
  }

  .header__icon-label-full {
    display: none;
  }

  .header__icon-label-short {
    display: inline;
  }

  .page-sub::before {
    height: 500px;
  }

  /* フィルター */
  .filter__inner {
    padding: 80px 20px 16px;
  }

  .results__inner {
    padding: 0 20px;
  }

  .filter__label {
    font-size: 1.3rem;
    font-weight: 500;
  }

  .filter__tags {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 8px;
    max-height: 68px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .filter__tags.is-open {
    max-height: 500px;
  }

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

  .filter__tag {
    font-size: 1.3rem;
    padding: 6px 12px 8px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .filter__toggle {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    height: 26px;
    line-height: 26px;
    border: none;
    border-radius: 9999px;
    background: var(--c-primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
  }

  /* 検索結果 */
  .results {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .results__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 製品カード - 横レイアウト */
  .product-card {
    flex-direction: row;
    border: 1px solid var(--c-primary);
    border-radius: 4px;
    overflow: hidden;
    padding: 10px;
    gap: 0;
  }

  .product-card:hover {
    box-shadow: none;
    transform: none;
  }

  .product-card:hover .product-card__arrow {
    width: 27px;
    height: 27px;
  }

  .product-card:hover .product-card__arrow-off {
    opacity: 1;
  }

  .product-card:hover .product-card__arrow-on {
    opacity: 0;
  }

  .product-card__image {
    width: 40%;
    min-width: 40%;
    aspect-ratio: 3 / 4;
  }

  .product-card__image--fit {
    background: #fff;
  }

  .product-card__body {
    padding: 0 0 30px 8px;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .product-card__subtitle {
    font-size: 1.4rem;
    font-weight: 500;
  }

  .product-card__name {
    font-size: 2.0rem;
    font-weight: 500;
    margin-bottom: 6px;
  }

  .product-card__name-sub {
    display: inline;
  }


  .product-card__desc {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
  }

  .product-card__arrow {
    bottom: 0;
    right: 0;
  }

  .product-card__arrow img {
    width: 28px;
    height: 28px;
  }

  /* 製品詳細 */
  .product {
    padding-top: 80px;
    padding-bottom: 0;
  }

  .product__inner {
    padding: 0 16px;
  }

  .product__name {
    font-size: 3.6rem;
    font-weight: 500;
  }

  .product__subtitle-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product__subtitle {
    font-size: 1.7rem;
    font-weight: 500;
    padding-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-primary);
    width: 100%;
  }

  .product__subtitle::after {
    display: none;
  }

  .product__catch {
    font-size: 1.4rem;
    font-weight: 400;
  }

  .product__tags {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 8px;
    max-height: 68px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
  }

  .product__tags.is-open {
    max-height: 500px;
  }

  .product__tags-row {
    flex-direction: column;
    gap: 8px;
  }

  .product__tags-toggle {
    display: block;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 0;
    height: 26px;
    line-height: 26px;
    border: none;
    border-radius: 9999px;
    background: var(--c-primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
  }

  .product__tags .filter__tag {
    font-size: 1.2rem;
    padding: 6px 12px 8px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .product__hero {
    aspect-ratio: 350 / 260;
    border-radius: 0;
    margin-bottom: 20px;
  }

  .product__hero--fit {
    aspect-ratio: auto;
  }

  .product__content {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
  }

  .product__desc p {
    font-size: 1.4rem;
  }

  .product__actions {
    min-width: auto;
    padding-top: 0;
  }

  .product__action-btn {
    height: 48px;
    font-size: 1.4rem;
  }

  .product__data {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .product__data-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }

  .product__awards {
    flex-direction: column;
    gap: 8px;
    font-size: 1.4rem;
    margin-bottom: 24px;
  }

  .product__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 32px;
  }

  .product__cta-download {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 1.4rem;
  }

  .product__cta-contact {
    flex: none;
    width: 100%;
    height: 52px;
    font-size: 1.5rem;
  }

  .product__cta-contact:hover {
    color: #fff;
  }

  .product__cta-contact:hover::before {
    opacity: 1;
  }

  .product__bottom-tags {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 8px;
    padding: 8px 0 24px;
  }

  .product__bottom-tags .filter__label {
    grid-column: 1 / -1;
  }

  .product__bottom-tags .product__tags-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .product__bottom-tags .filter__tag {
    font-size: 1.2rem;
    padding: 6px 12px 8px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* SP: タグホバー無効化 */
  .filter__tag:hover {
    background: #fff;
    border-color: var(--c-primary);
    color: var(--c-text);
  }

  .filter__tag--solution:hover {
    background: transparent;
  }

  .filter__tag.is-active:hover {
    background: var(--c-accent);
    border-color: var(--c-primary);
    color: var(--c-text);
    opacity: 1;
  }

  .filter__tag--building:hover {
    background: #B2E0D2;
    border-color: #B2E0D2;
    color: var(--c-text);
  }

  .filter__tag--building.is-active:hover {
    background: #fff2bc;
    border-color: #fff2bc;
    color: var(--c-text);
    opacity: 1;
  }

  .product__tags .filter__tag:hover,
  .product__bottom-tags .filter__tag:hover {
    background: #fff;
    border-color: var(--c-primary);
    color: var(--c-text);
  }

  .product__tags .filter__tag--building:hover,
  .product__bottom-tags .filter__tag--building:hover {
    background: #B2E0D2;
    border-color: #B2E0D2;
    color: var(--c-text);
  }

  .product__tags .filter__tag.is-active:hover,
  .product__bottom-tags .filter__tag.is-active:hover {
    background: var(--c-accent);
    border-color: var(--c-primary);
    color: var(--c-text);
    opacity: 1;
  }

  .product__tags .filter__tag--building.is-active:hover,
  .product__bottom-tags .filter__tag--building.is-active:hover {
    background: #fff2bc;
    border-color: #fff2bc;
    color: var(--c-text);
    opacity: 1;
  }

}

/* ================================
   画像ビューア（SPフルスクリーンズーム）
   ================================ */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
}

.image-viewer.is-open {
  visibility: visible;
  opacity: 1;
}

.image-viewer__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.image-viewer__body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.image-viewer__img {
  width: 100vw;
  height: auto;
  display: block;
  will-change: transform;
  transform-origin: center center;
  pointer-events: none;
}

.image-viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ================================
   404エラーページ
   ================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 120px 2rem 2rem;
  text-align: center;
}

.error-page__inner {
  max-width: 560px;
}

.error-page__code {
  font-family: 'Sen', sans-serif;
  font-size: 12rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
  letter-spacing: 0.05em;
}

.error-page__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.error-page__desc {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--c-text);
  margin-bottom: 4rem;
}

.error-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 56px;
  padding: 0 3.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-white);
  background: var(--c-accent);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.4s ease;
}

.error-page__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-gradient);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.error-page__btn:hover {
  color: var(--c-text);
}

.error-page__btn:hover::before {
  opacity: 0;
}

@media (max-width: 768px) {
  .error-page {
    padding: 70px 1rem 1rem;
  }
}
