/* ============================
   QOL株式会社 - ハイブリッド版CSS
   画像セクションとテキストセクションの併用
   AIO対策追加版
   ============================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--qol-fixed-header-height, 82px);
}

[id] {
  scroll-margin-top: calc(var(--qol-fixed-header-height, 82px) + 16px);
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #f8f6f8;
}

:root {
  --qol-fixed-header-height: 82px;
}

@media (max-width: 900px) {
  :root {
    --qol-fixed-header-height: 65px;
  }
}

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

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

/* ============================
   Header
   ============================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(18,51,74,.06);

  box-shadow:
    0 8px 30px rgba(15,23,42,.05);

  transition: .3s;
}

.site-header-fixed-strong {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;

  padding: 0 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 82px;
}

.logo img {
  height: 72px;
  width: auto;
}


.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #82b0c6;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger:focus-visible {
  outline: 3px solid #156082;
  outline-offset: 3px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #333;
  transition: 0.3s;
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   画像セクション共通
   ============================ */
.hero-banner,
.label-banner,
.sns-banner,
.strengths,
.why-section,
.four-points,
.trust-banner,
.reason-banner,
.case-study,
.flow {
  margin-top: 20px;
}

.trust-banner {
  margin-bottom: 20px;
  padding: 0;
}

.hero-banner:first-of-type {
  margin-top: 0px;
}

/* PC/SP切り替え */
.hero-pc,
.label-pc,
.sns-pc,
.strengths-pc,
.why-pc,
.trust-pc,
.reason-pc,
.case-pc,
.flow-pc,
.product-pc,
.cleaning-pc,
.delivery-pc,
.octopus-pc,
.reform-pc,
.company-banner-pc {
  display: block;
}

.hero-sp,
.label-sp,
.sns-sp,
.strengths-sp,
.why-sp-top,
.why-sp-nayami,
.trust-sp,
.reason-sp,
.case-sp,
.flow-sp,
.product-sp,
.cleaning-sp,
.delivery-sp,
.octopus-sp,
.reform-sp,
.company-banner-sp {
  display: none;
}

/* 画像は幅100%表示 */
.hero-banner img,
.hero-pc img,
.hero-sp img,
.label-banner img,
.label-pc img,
.label-sp img,
.sns-banner img,
.sns-pc img,
.sns-sp img,
.strengths img,
.strengths-pc img,
.strengths-sp img,
.why-section img,
.why-pc img,
.why-sp-top img,
.why-sp-nayami img,
.four-points img,
.trust-banner img,
.trust-pc img,
.trust-sp img,
.reason-banner img,
.reason-pc img,
.reason-sp img,
.flow img,
.flow-pc img,
.flow-sp img,
.case-study img,
.case-pc img,
.case-sp img,
.warranty-image img,
.cleaning-images img,
.cleaning-pc img,
.cleaning-sp img,
.delivery-images img,
.delivery-pc img,
.delivery-sp img,
.octopus-images img,
.octopus-pc img,
.octopus-sp img,
.reform-images img,
.reform-pc img,
.reform-sp img,
.company-banner-pc img,
.company-banner-sp img,
.product-pc img,
.product-sp img {
  width: 100% !important;
  height: auto;
  display: block;
}

/* ============================
   テキストセクション共通
   ============================ */
.section-text {
  padding: 60px 20px;
  background: #f8f6f8;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.8rem;
  color: #12334a;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  line-height: 1.42;
}

.section-heading .en {
  font-size: 0.85rem;
  color: #b0b0b0;
  display: block;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sub-heading {
  font-size: 1.3rem;
  color: #12334a;
  margin: 40px 0 15px;
  font-weight: 600;
}

.section-intro,
.text-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 20px;
}

.highlight-text {
  background: #e0e0e0;
  padding: 15px 20px;
  border-left: 4px solid #b0b0b0;
  margin: 20px 0;
}

/* ブログ下の余白を縮小 */
#blog {
  padding-bottom: 10px;
}

/* 会社情報上の余白を縮小 */
#company {
  padding-top: 10px;
}

/* ============================
   AIO対策追加セクション
   ============================ */
.aio-intro {
  padding-top: 45px;
  padding-bottom: 45px;
  background: #f8f6f8;
}

body.fixed-header-firstview-fix .aio-intro.section-text {
  padding-top: calc(60px + var(--qol-fixed-header-height));
}

.main-heading {
  font-size: 3rem;
  line-height: 1.3;
  color: #12334a;
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
}

.aio-lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}

.aio-description {
  font-size: 0.95rem;
  line-height: 2;
  color: #555;
  max-width: 850px;
  margin: 0 auto;
}

/* ============================
   延長保証セクション
   ============================ */
.warranty-image {
  text-align: center;
  margin: 30px 0;
}

.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  background: #f8f8f8;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px;
}

.feature-list .num {
  position: absolute;
  left: 20px;
  top: 15px;
  width: 32px;
  height: 32px;
  background: #82b0c6;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.warranty-labels {
  margin-top: 40px;
}

.warranty-labels-pc,
.warranty-labels-sp {
  margin-bottom: 20px;
}

.warranty-labels-pc img,
.warranty-labels-sp img {
  width: 100% !important;
  height: auto;
  display: block;
}

.warranty-labels-sp {
  display: none;
}

.warranty-labels-pc {
  display: none;
  padding: 0 25%;
}

.warranty .btn-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  text-align: center;
}

/* ============================
   事業内容
   ============================ */
.business-item {
  margin: 40px 0;
  padding: 30px;
  background: #f8f6f8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.business-item h3 {
  font-size: 1.2rem;
  color: #82b0c6;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #b0b0b0;
}

.merit-banner {
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  margin: 40px 0;
}

.banner-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #82b0c6;
  margin-bottom: 15px;
}

.banner-link {
  display: inline-block;
  background: #82b0c6;
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.banner-link:hover {
  background: #e3e4e5;
  color: #000;
  transform: translateY(-2px);
}

/* 動画グリッド */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.video-item h4 {
  font-size: 0.95rem;
  color: #82b0c6;
  margin-bottom: 10px;
  font-weight: 600;
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.video-item p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
}

/* 取扱商品 */
.product-images-new {
  display: block;
  margin: 30px 0;
}

.product-item-new {
  margin-bottom: 40px;
}

.product-item-new h4 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #82b0c6;
  font-weight: 600;
}

.product-img-pc {
  display: block;
}

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

.product-img-pc img,
.product-img-sp img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-images-sp {
  display: block;
  margin: 30px 0;
}

.product-item-sp {
  margin-bottom: 30px;
}

.product-item-sp h4 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #82b0c6;
  font-weight: 600;
}

.product-item-sp img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 30px auto;
  max-width: 800px;
}

.product-img-set h4 {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #82b0c6;
}

.product-img-set img {
  width: 100% !important;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-brands {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.product-brands img {
  width: 100% !important;
  height: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.product-brands-sp-only {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.product-brands-sp-only img {
  width: 100% !important;
  height: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 各事業の画像 */
.cleaning-images,
.delivery-images,
.octopus-images,
.reform-images {
  margin: 20px 0;
  text-align: center;
}

.octopus-btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.octopus-btn {
  display: inline-block;
  background: #82b0c6;
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.octopus-btn:hover {
  background: #0e3a20;
  transform: translateY(-2px);
}

/* ============================
   導入事例
   ============================ */
.case-slide-heading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.case-slide-en {
  text-align: center;
  font-size: 0.9rem;
  color: #b0b0b0;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.case-images {
  margin: 40px 0;
}

.case-text {
  margin: 40px 0;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.case-text h3 {
  color: #82b0c6;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.case-text p {
  line-height: 1.9;
  color: #333;
}

.case-images .case-pc,
.case-images .case-sp {
  margin-bottom: 30px;
}

.slide-embed {
  margin: 30px 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.slide-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================
   会社情報
   ============================ */
.company-banner-pc,
.company-banner-sp {
  margin-bottom: 40px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #f8f6f8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
}

.comparison-table-scroll .company-table {
  min-width: 1900px;
  margin: 0;
}

.comparison-table-scroll .evaluation-criteria-table,
.comparison-table-scroll .manufacturer-score-table {
  min-width: 760px;
}

.battery-comparison-table th,
.battery-comparison-table td {
  min-width: 120px;
  vertical-align: top;
}

.company-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.company-table th {
  text-align: left;
  padding: 15px 20px;
  font-size: 0.9rem;
  color: #82b0c6;
  width: 150px;
  font-weight: 600;
  background: #f8f8f8;
  vertical-align: top;
}

.company-table td {
  padding: 15px 20px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.company-table td small {
  font-size: 0.8rem;
  color: #999;
}

.company-table a {
  color: #82b0c6;
  text-decoration: underline;
}

.company-map {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.company-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* 代表挨拶 */
.message-content {
  position: relative;
}

.ceo-signature {
  text-align: right;
  margin-top: 30px;
}

.ceo-signature img {
  max-width: 200px;
  height: auto;
  display: inline-block;
  width: auto !important;
}

.signature-sp {
  display: none;
}

.signature-pc {
  display: block;
}

/* お知らせ */
.news-list {
  max-width: 700px;
  margin: 30px auto;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: baseline;
}

.news-date {
  font-size: 0.85rem;
  color: #999;
  flex-shrink: 0;
  font-weight: 600;
}

.news-text {
  font-size: 0.95rem;
  color: #333;
}

/* ブログ */
.note-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 30px 0 0;
  align-items: start;
}

.note-widget iframe {
  width: 100%;
  height: 170px;
  min-height: 0;
  border: 0;
  border-radius: 4px;
  display: block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}


/* ============================
   FAQ
   ============================ */
.faq-list {
  margin-top: 30px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-left: 4px solid #82b0c6;
}

.faq-item h3 {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #82b0c6;
  margin-bottom: 10px;
  font-weight: 650;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
  font-weight: 400;
}

/* ============================
   お問い合わせ
   ============================ */
.contact-form {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-form iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
}

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

.partnership-content .sub-heading {
  margin-bottom: 15px;
}

.partnership-content .text-content {
  margin-bottom: 20px;
}

.line-btn-wrapper {
  text-align: center;
  margin: 20px 0;
}

.line-btn {
  display: inline-block;
  background: #06C755;
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.line-btn:hover {
  background: #05a647;
  transform: translateY(-2px);
}

.partner-message {
  text-align: center;
  font-weight: 600;
  margin: 30px 0 15px;
  line-height: 1.8;
}

.partner-link-wrapper {
  text-align: center;
  margin-top: 10px;
}

.partner-link {
  display: inline-block;
  text-align: center;
  color: #82b0c6;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid #82b0c6;
  border-radius: 8px;
  transition: 0.3s;
}

.partner-link:hover {
  background: #82b0c6;
  color: #fff;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background: linear-gradient(
    135deg,
    #14334b 0%,
    #1f4e73 100%
  );
  color: rgba(255,255,255,0.85);
  padding: 30px 20px;
  text-align: center;
}

.sns-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.sns-icons img {
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.sns-icons img:hover {
  opacity: 0.7;
}

.site-footer p {
  font-size: 0.8rem;
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.72;
}

.definition-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.definition-item {
  background: #ffffff;
  border: 1px solid rgba(20,51,75,0.12);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20,51,75,0.06);
  padding: 24px 26px;
}

.aio-definition-box .definition-item,
.ai-summary .definition-item {
  background: rgba(255,255,255,0.82);
}

.definition-list dt {
  color: #14334b;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 8px;
}

.definition-list dd {
  color: #334155;
  line-height: 1.9;
  margin: 0;
}

.answer-target {
  margin: 12px 0 20px;
  padding: 16px 18px;
  border-left: 4px solid #14334b;
  background: #f8fbfd;
  border-radius: 12px;
  color: #334155;
  font-weight: 500;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .definition-list {
    gap: 14px;
    margin-top: 18px;
  }

  .definition-item {
    border-radius: 14px;
    padding: 18px 20px;
  }

  .answer-target {
    padding: 14px 16px;
    font-size: 15px;
  }
}

.privacy-page {
  background: #f8f6f3;
  color: #14334b;
  line-height: 1.9;
}

.privacy-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.privacy-breadcrumb {
  margin-bottom: 24px;
  color: #5d6872;
  font-size: 0.9rem;
}

.privacy-breadcrumb a {
  color: #14334b;
  font-weight: 700;
  text-decoration: none;
}

.privacy-hero,
.privacy-section {
  background: #ffffff;
  border: 1px solid rgba(20,51,75,0.12);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(20,51,75,0.06);
  margin-bottom: 28px;
  padding: 40px;
}

.privacy-hero h1 {
  color: #14334b;
  font-size: clamp(28px,4vw,44px);
  line-height: 1.35;
  margin: 0 0 18px;
}

.privacy-hero p,
.privacy-section p {
  margin: 0;
}

.privacy-section h2 {
  border-bottom: 2px solid #e5ded5;
  color: #14334b;
  font-size: 24px;
  line-height: 1.45;
  margin: 0 0 18px;
  padding-bottom: 12px;
}

.privacy-section ul {
  margin: 0;
  padding-left: 1.4em;
}

.privacy-contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.privacy-contact-list div {
  display: grid;
  gap: 4px;
}

.privacy-contact-list dt {
  color: #14334b;
  font-weight: 800;
}

.privacy-contact-list dd {
  margin: 0;
}

.privacy-contact-list a {
  color: #14334b;
  font-weight: 700;
}

.sitemap-page-list {
  display: grid;
  gap: 28px;
}

.sitemap-category h2 {
  border-bottom: 2px solid #e5ded5;
  color: #14334b;
  font-size: 24px;
  line-height: 1.45;
  margin: 0 0 18px;
  padding-bottom: 12px;
}

.sitemap-link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-link-grid a {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(20,51,75,0.14);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(20,51,75,0.06);
  color: #14334b;
  display: flex;
  font-weight: 800;
  min-height: 64px;
  padding: 16px 18px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sitemap-link-grid a:hover {
  background: #14334b;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .privacy-container {
    padding-top: 100px;
  }

  .privacy-hero,
  .privacy-section {
    border-radius: 16px;
    padding: 24px;
  }
}

/* ============================
   レスポンシブ
   ============================ */
.nav-links {
  display: flex;
}

.hamburger {
  display: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex !important;
  }

  .hamburger {
    display: flex !important;
  }

 

  .trust-banner,
  .reason-banner {
    display: none !important;
  }

  .hero-pc,
  .label-pc,
  .sns-pc,
  .strengths-pc,
  .why-pc,
  .trust-pc,
  .reason-pc,
  .case-pc,
  .flow-pc,
  .product-pc,
  .cleaning-pc,
  .delivery-pc,
  .octopus-pc,
  .reform-pc,
  .company-banner-pc,
  .warranty-labels-pc,
  .signature-pc,
  .product-img-pc {
    display: none !important;
  }

  .hero-sp,
  .label-sp,
  .sns-sp,
  .strengths-sp,
  .why-sp-top,
  .why-sp-nayami,
  .trust-sp,
  .reason-sp,
  .case-sp,
  .flow-sp,
  .product-sp,
  .cleaning-sp,
  .delivery-sp,
  .octopus-sp,
  .reform-sp,
  .company-banner-sp,
  .warranty-labels-sp,
  .signature-sp,
  .product-img-sp {
    display: block !important;
  }

  .hero-sp img,
  .label-sp img,
  .sns-sp img,
  .strengths-sp img,
  .why-sp-top img,
  .why-sp-nayami img,
  .trust-sp img,
  .reason-sp img,
  .case-sp img,
  .flow-sp img,
  .product-sp img,
  .cleaning-sp img,
  .delivery-sp img,
  .octopus-sp img,
  .reform-sp img,
  .company-banner-sp img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .main-heading {
    font-size: 1.55rem;
  }

  .aio-lead {
    font-size: 0.98rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .video-item iframe {
    width: 100% !important;
    height: auto;
  }

  .note-widget {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 20px 0;
  }

  .note-widget iframe {
    min-height: 300px;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
  }

  .note-widget iframe:last-child {
    border-bottom: none;
  }

  .product-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-brands-sp-only {
    display: block;
  }

  .company-table th {
    width: 100px;
    font-size: 0.8rem;
  }

  .company-table td {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section-text {
    padding: 40px 15px;
  }

  .section-heading {
    font-size: 1.2rem;
  }

  .main-heading {
    font-size: 1.35rem;
    text-align: left;
  }

  .aio-lead {
    font-size: 0.95rem;
    text-align: left;
  }

  .aio-description {
    font-size: 0.9rem;
  }

  .faq-item {
    padding: 20px;
  }

  .faq-item h3 {
    font-size: 0.95rem;
  }

  .product-images {
    grid-template-columns: 1fr;
  }

  .company-table {
    font-size: 0.8rem;
  }

  .company-table th,
  .company-table td {
    padding: 10px;
  }
}

.service-links {
  padding: 30px 20px;
}

.service-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-link-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid rgba(120, 120, 120, 0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  color: #222222;
}

.service-link-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

.service-link-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.service-link-card p {
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

@media (max-width: 768px) {

  .service-link-grid {
    grid-template-columns: 1fr;
  }

  .service-link-card {
    padding: 24px;
  }

}

@media (max-width: 768px) {

  .main-heading {
    font-size: 2.2rem;
    line-height: 1.4;
  }

}

.breadcrumb {
  padding: 120px 20px 20px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-list li {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.breadcrumb-list li a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb-list li::after {
  content: ">";
  margin-left: 10px;
  color: rgba(255,255,255,0.4);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.service-link-card h3 {
  color: #1f2937;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-link-card p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

@media (max-width: 768px) {

  .service-link-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-link-card {
    padding: 24px 20px;
  }

  .service-link-card h3 {
    font-size: 24px;
  }

}

.updated-date{
  margin-top:12px;
  color:#cbd5e1;
  font-size:14px;
  font-weight:600;
}

.author-name{
  margin-top:6px;
  color:#e2e8f0;
  font-size:14px;
  font-weight:700;
}

.case-note{
  margin-bottom:18px;
  color:#64748b;
  font-size:14px;
  font-weight:600;
}

.results-text{
  margin-top:24px;
  padding:24px 28px;
  border-radius:20px;
  background:#f8fbfd;
  border:1px solid rgba(18,51,74,.08);

  font-size:18px;
  line-height:2;
  color:#12334a;
  font-weight:700;

  text-align:center;
}


/* ==============================
   QOL 高級感UI 統一CSS
============================== */

:root{
  --qol-navy:#12334a;
  --qol-blue:#1f6684;
  --qol-bg:#f6f8fb;
  --qol-card:#ffffff;
  --qol-text:#1e293b;
  --qol-muted:#64748b;
  --qol-border:rgba(18,51,74,.10);
  --qol-shadow:0 24px 60px rgba(15,23,42,.08);
  --qol-shadow-soft:0 14px 36px rgba(15,23,42,.06);
}

body{
  background:var(--qol-bg);
  color:var(--qol-text);
  letter-spacing:.02em;
}

section,
.section{
  padding-top:0px;
  padding-bottom:0px;
}

.container{
  max-width:1040px;
}

.section-heading,
.section h2,
.info-card h2,
.case-box h2{
  color:var(--qol-navy);
  font-size:clamp(30px,4vw,44px);
  line-height:1.45;
  letter-spacing:.04em;
  margin-bottom:28px;
}

.section-heading .en{
  display:block;
  margin-top:8px;
  font-size:13px;
  letter-spacing:.18em;
  color:var(--qol-blue);
  text-transform:uppercase;
}

p{
  color:var(--qol-text);
}

.aio-lead,
.expert-text,
.section p,
.info-card p,
.case-box
 p{
  line-height:2.15;
}

.card,
.info-card,
.case-box,
.aio-case-card,
.faq-item,
.summary-card,
.data-item,
.box{
  border-radius:28px;
  background:var(--qol-card);
  border:1px solid var(--qol-border);
  box-shadow:var(--qol-shadow-soft);
}

.card,
.info-card,
.case-box,
.aio-case-card{
  padding:34px;
}

.card h3,
.faq-item h3,
.info-card h3,
.case-box h3{
  color:var(--qol-navy);
  line-height:1.6;
}

.btn,
.case-detail-link,
.related-links a{
  display:inline-block;
  border-radius:999px;
  background:linear-gradient(135deg,var(--qol-navy),var(--qol-blue));
  color:#fff !important;
  text-decoration:none;
  font-weight:700;
  padding:14px 26px;
  box-shadow:0 14px 30px rgba(18,51,74,.22);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover,
.case-detail-link:hover,
.related-links a:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(18,51,74,.28);
  opacity:.95;
}

.case-more-wrapper {
  text-align: center;
  margin-top: 32px;
}

.hero,
.case-hero{
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 32%),
    linear-gradient(135deg,#102f45,#1f6684) !important;
}

.hero h1,
.case-hero h1{
  letter-spacing:.04em;
  font-weight:800;
}

.results-text{
  margin:30px auto 0;
  padding:26px 30px;
  max-width:980px;
  border-radius:24px;
  background:#ffffff;
  border:1px solid rgba(18,51,74,.10);
  box-shadow:var(--qol-shadow-soft);
  font-size:18px;
  line-height:2;
  color:var(--qol-navy);
  font-weight:600;
  text-align:center;
}

.updated-date,
.author-name,
.case-note{
  font-size:14px;
  font-weight:700;
}

.updated-date,
.author-name{
  color:#e2e8f0;
}

.case-note{
  color:var(--qol-muted);
}

.gallery-grid figure,
.gallery-item{
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--qol-border);
  box-shadow:var(--qol-shadow-soft);
}

.gallery-grid img,
.gallery-item img{
  transition:transform .35s ease;
}

.gallery-grid figure:hover img,
.gallery-item:hover img{
  transform:scale(1.03);
}

@media (max-width:768px){
  section,
  .section{
    padding-top:64px;
    padding-bottom:64px;
  }

  .card,
  .info-card,
  .case-box,
  .aio-case-card{
    padding:24px;
    border-radius:22px;
  }

  .section-heading,
  .section h2,
  .info-card h2,
  .case-box h2{
    font-size:28px;
  }

  .results-text{
    font-size:16px;
    padding:22px;
  }
}


.four-points .container{
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* ==============================
   画像バナー余白統一
============================== */

.hero-banner,
.label-banner,
.sns-banner,
.strengths,
.why-section,
.four-points,
.trust-banner,
.reason-banner,
.case-study,
.flow{
  margin-top:0 !important;
  margin-bottom:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

.hero-banner img,
.label-banner img,
.sns-banner img,
.strengths img,
.why-section img,
.four-points img,
.trust-banner img,
.reason-banner img,
.case-study img,
.flow img{
  display:block;
}

/* CTAボタン強化 */
.contact-cta,
.line-btn,
.banner-link,
.octopus-btn{
  display:inline-block;
  border-radius:999px;
  background:linear-gradient(135deg,#12334a,#1f6684);
  color:#fff !important;
  font-weight:800;
  padding:15px 30px;
  box-shadow:0 14px 30px rgba(18,51,74,.22);
  transition:.2s ease;
}

.contact-cta:hover,
.line-btn:hover,
.banner-link:hover,
.octopus-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(18,51,74,.28);
  opacity:.95;
}


.hero-buttons{
  display:flex;
  gap:18px;
  justify-content:center;
  margin-top:34px;
  flex-wrap:wrap;
}


.hero-banner{
  width:100%;
  overflow:hidden;
  background:#f6f8fb;
}

.hero-banner img{
  width:100%;
  height:auto !important;
  display:block;
  object-fit:contain !important;
}

.hero-picture{
  display:block;
}

.hero-pc{
  display:block;
}

.hero-sp{
  display:none;
}

/* 1100px以下はSP版バナーに切り替える */
@media (max-width:1100px){
  .hero-pc{
    display:none !important;
  }

  .hero-sp{
    display:block !important;
  }
}

@media (max-width:1100px){
  .hero-banner{
    padding-top:82px !important;
  }
}

@media (max-width:1100px){
  .header-inner{
    height:64px !important;
    padding:0 18px !important;
  }

  .logo img{
    height:40px !important;
  }

  .hamburger span{
    width:24px;
    height:2px;
  }

  .hero-banner{
    padding-top:64px !important;
  }
}

.pc-four-points{
  display:block;
}

.sp-four-points{
  display:none;
}


.pc-four-points img,
.sp-four-points img{
  width:100%;
  display:block;
}

@media (max-width:1100px){
  .pc-four-points{
    display:none !important;
  }

  .sp-four-points{
    display:block !important;
  }
}

/* ==============================
   PC画像セクション横幅統一
============================== */
@media (min-width:901px){

  .four-points,
  .trust-banner,
  .reason-banner,
  .case-study,
  .flow{
    width:100%;
    max-width:none;
    margin:0 !important;
    padding:0 !important;
  }

  .four-points img,
  .trust-banner img,
  .reason-banner img,
  .case-study img,
  .flow img{
    width:100% !important;
    height:auto !important;
    display:block;
  }

}


/* =========================
   画像セクション統一
========================= */

.image-section{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  box-sizing:border-box;
}

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

/* PC版：固定ヘッダー分だけTOPバナーを下げる */
@media (min-width:1101px){
  .hero-banner{
    padding-top:82px !important;
  }
}

.faq-links-section {
  padding: 30px 20px;
  background: #f8f6f9;
}

.faq-links-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  color: #14334b;
  margin-bottom: 16px;
}

.faq-links-description {
  text-align: center;
  color: #5b6b7a;
  font-size: 16px;
  margin-bottom: 50px;
}

.faq-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-link-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  text-decoration: none;
  color: #14334b;
  box-shadow: 0 10px 30px rgba(20, 51, 75, 0.08);
  border: 1px solid rgba(20, 51, 75, 0.08);
  transition: 0.3s;
}

.faq-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 51, 75, 0.12);
}

.faq-link-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #8aa0b5;
}

.faq-link-card h3 {
  font-size: 28px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.faq-link-card p {
  color: #5b6b7a;
  line-height: 1.8;
}

@media (max-width: 768px) {

  .faq-links-grid {
    grid-template-columns: 1fr;
  }

  .faq-links-title {
    font-size: 30px;
  }

  .faq-link-card {
    padding: 28px;
  }

  .faq-link-card h3 {
    font-size: 22px;
  }

}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.comparison-table{
  width:100%;
  border-collapse:collapse;
  margin:40px 0;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.comparison-table th{
  background:#14334b;
  color:#fff;
  padding:16px;
  text-align:left;
}

.comparison-table td{
  padding:16px;
  border-bottom:1px solid #e5e7eb;
}

.comparison-table tr:last-child td{
  border-bottom:none;
}

.page-hero {
  padding-top: 120px;

}

.page-hero .container{
  max-width:1240px;
}

.page-hero .eyebrow{
  font-size:18px;
  letter-spacing:2px;
  color:#64748b;
  margin-bottom:16px;
}

.page-hero h1{
  font-size:clamp(42px,4.5vw,72px);
  line-height:1.15;
  font-weight:900;
  color:#12334a;
  margin-bottom:24px;
  max-width:900px;
}

.page-hero .lead{
  font-size:18px;
  line-height:2;
  max-width:900px;
  color:#475569;
}

.section h2{
  font-size:52px;
  line-height:1.2;
  font-weight:800;
  color:#12334a;
  margin-bottom:24px;
}

.solar-section .container{
  max-width:1240px;
}

.note-widget {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 10px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.note-widget iframe {
  flex: 0 0 420px;
  width: 420px;
  height: 260px;
  scroll-snap-align: start;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .note-widget iframe {
    flex: 0 0 85%;
    width: 85%;
    height: 260px;
  }
}

.youtube-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
}

.youtube-card {
  flex: 0 0 520px;
  scroll-snap-align: start;
}

.youtube-card h4 {
  min-height: 64px;
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.6;
  color: #1f2937;
}

.youtube-card iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 16px;
}

.youtube-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #14334b;
  box-shadow: 0 12px 30px rgba(20, 51, 75, 0.18);
  cursor: pointer;
}

.youtube-lite-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.youtube-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 51, 75, 0.18);
  transition: background 0.25s ease;
}

.youtube-lite:hover .youtube-lite-thumb,
.youtube-lite:focus-visible .youtube-lite-thumb {
  transform: scale(1.03);
  opacity: 0.92;
}

.youtube-lite:hover::after,
.youtube-lite:focus-visible::after {
  background: rgba(20, 51, 75, 0.08);
}

.youtube-lite:focus-visible {
  outline: 3px solid #82b0c6;
  outline-offset: 4px;
}

.youtube-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 74px;
  height: 52px;
  border-radius: 14px;
  background: rgba(20, 51, 75, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.youtube-play-button::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #ffffff;
}

.youtube-fallback {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.youtube-fallback a {
  color: #14334b;
  font-weight: 700;
}

@media (max-width: 768px) {
  .youtube-card {
    flex: 0 0 86%;
  }

  .youtube-card h4 {
    min-height: auto;
    font-size: 17px;
  }
}


/* スマホ時のみ横スクロール */
@media (max-width: 768px) {

  .product-images-new {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-images-new::-webkit-scrollbar {
    display: none;
  }

  .product-item-new {
    flex: 0 0 90%;
    scroll-snap-align: center;
  }

  .product-item-new img {
    width: 100%;
    height: auto;
    display: block;
  }

}

.product-item-new h4 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.aio-summary {
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 24px 28px;
  background: #ffffff;
  border-left: 5px solid #14334b;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.aio-summary h2 {
  margin: 0 0 14px;
  color: #14334b;
  font-size: 1.45rem;
}

.aio-summary ul {
  margin: 0;
  padding-left: 20px;
}

.aio-summary li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-weight: 600;
  color: #374151;
}

/* FAQ一覧ボタン */
.faq-more {
  text-align: center;
  margin-top: 30px;
}

.faq-more-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #14334b;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s;
}

.faq-more-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .faq-more-btn {
    box-sizing: border-box;
    width: min(100%, 354px);
    padding: 12px 10px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
  }
}





/* TOP：高級住宅設備サイト風に調整 */
.aio-summary,
.aio-definition-box,
.expert-text,
.results-text,
.card,
.service-link-card {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 75, 0.12);
  border-left: none;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(20, 51, 75, 0.06);
}

.aio-summary,
.aio-definition-box,
.expert-text,
.results-text {
  padding: 28px 34px;
}

.card,
.service-link-card {
  padding: 30px 34px;
}

.service-link-grid,
.card-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.card h3,
.service-link-card h3,
.aio-summary h2,
.aio-definition-box h2 {
  color: #14334b;
  font-weight: 700;
}

.card p,
.service-link-card p,
.aio-definition-box p,
.expert-text,
.results-text,
.aio-summary li {
  color: #263443;
  line-height: 1.9;
}

.card .btn,
.case-detail-link {
  background: #14334b;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(20, 51, 75, 0.18);
  border-radius: 4px;
}

/* 空の白枠が出る場合は非表示 */
.aio-definition-box:empty {
  display: none;
}

.home-page .nav-links {
  gap: clamp(14px, 1.45vw, 24px);
}

.home-page .nav-links a {
  white-space: nowrap;
}

.top-sim-cta {
  background: #f4f9fc;
  border-top: 1px solid rgba(20, 51, 75, 0.08);
  border-bottom: 1px solid rgba(20, 51, 75, 0.08);
}

.top-sim-cta--service,
.top-sim-cta--case,
.top-sim-cta--final {
  background: #ffffff;
  border-top: none;
}

.top-sim-cta--case {
  background: #eef6fa;
}

.top-sim-cta__inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.top-sim-cta__inner--compact {
  padding: 24px 0;
}

.top-sim-cta__content {
  min-width: 0;
}

.top-sim-cta__eyebrow {
  margin: 0 0 6px;
  color: #156082;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.top-sim-cta__title {
  margin: 0 0 10px;
  color: #14334b;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.45;
}

.top-sim-cta__text,
.top-sim-cta__note {
  margin: 0;
  color: #334;
  line-height: 1.8;
}

.top-sim-cta__note {
  margin-top: 8px;
  color: #52636f;
  font-size: 0.92rem;
}

.top-sim-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.top-sim-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid #156082;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.top-sim-cta__button--primary {
  background: #156082;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 51, 75, 0.16);
}

.top-sim-cta__button--secondary {
  background: #ffffff;
  color: #156082;
}

.top-sim-cta__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 51, 75, 0.18);
}

.top-sim-cta__button:focus-visible {
  outline: 3px solid rgba(21, 96, 130, .28);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .aio-summary,
  .aio-definition-box,
  .expert-text,
  .results-text,
  .card,
  .service-link-card {
    border-radius: 5px;
    padding: 22px 20px;
  }

  .top-sim-cta__inner {
    width: min(100% - 28px, 560px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .top-sim-cta__actions {
    display: grid;
    justify-content: stretch;
  }

  .top-sim-cta__button {
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
  }

  .top-sim-cta__title {
    font-size: clamp(1.22rem, 5.4vw, 1.55rem);
  }
}




/* 導入事例ページ：スマホ時の比較表画像を拡大 */
@media (max-width: 768px) {
  .case-main-image,
  .case-main-image img,
  .case-image,
  .case-image img,
  .case-photo,
  .case-photo img {
    width: 100%;
    max-width: 100%;
  }

  .case-main-image img,
  .case-image img,
  .case-photo img {
    transform: scale(1.25);
    transform-origin: center;
    margin: 30px 0;
  }
}

/* Unified cards for article links and knowledge sections */
:root {
  --qol-card-text: #14334b;
  --qol-card-body: #263443;
  --qol-card-border: rgba(20, 51, 75, 0.14);
  --qol-card-shadow: 0 12px 28px rgba(20, 51, 75, 0.08);
  --qol-card-shadow-hover: 0 18px 36px rgba(20, 51, 75, 0.18);
}

.service-link-grid,
body.article-page .related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-link-grid > .service-link-card,
body.article-page .related-links > a,
body.article-page .case-detail-link {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 138px;
  max-width: none;
  margin: 0;
  padding: 24px;
  background: #ffffff;
  color: var(--qol-card-text) !important;
  border: 1px solid var(--qol-card-border);
  border-radius: 8px;
  box-shadow: var(--qol-card-shadow);
  text-align: left;
  text-decoration: none;
  line-height: 1.7;
  opacity: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-link-grid > .service-link-card h3,
.service-link-grid > .service-link-card p,
body.article-page .related-links > a h3,
body.article-page .related-links > a p,
body.article-page .case-detail-link h3,
body.article-page .case-detail-link p {
  color: inherit !important;
}

.service-link-grid > .service-link-card h3 {
  min-height: 2.8em;
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.4;
}

.service-link-grid > .service-link-card p {
  margin: 0;
  color: var(--qol-card-body) !important;
  font-size: 0.95rem;
}

a.service-link-card:hover,
body.article-page .related-links > a:hover,
body.article-page .case-detail-link:hover {
  background: var(--qol-card-text);
  color: #ffffff !important;
  border-color: var(--qol-card-text);
  box-shadow: var(--qol-card-shadow-hover);
  opacity: 1;
  transform: translateY(-3px);
}

a.service-link-card:hover h3,
a.service-link-card:hover p,
body.article-page .related-links > a:hover h3,
body.article-page .related-links > a:hover p,
body.article-page .case-detail-link:hover h3,
body.article-page .case-detail-link:hover p {
  color: #ffffff !important;
}

body.article-page .cta-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  padding: 14px 22px;
  background: #ffffff;
  color: var(--qol-card-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--qol-card-shadow);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.article-page .cta-box h2 {
  color: #ffffff !important;
  opacity: 1;
}

body.article-page .cta-box p {
  max-width: 820px;
  margin: 0 0 20px;
  color: #f5f7fa !important;
  opacity: 1;
}

body.article-page .cta-box p:last-child {
  margin-bottom: 0;
}

body.article-page .cta-box a:hover {
  background: var(--qol-card-text);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--qol-card-shadow-hover);
  transform: translateY(-2px);
}

body.article-page .subsidy-simulation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 26px 0;
  align-items: stretch;
}

body.article-page .subsidy-simulation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 75, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 51, 75, 0.08);
  color: #14334b;
}

body.article-page .subsidy-simulation-card h3 {
  margin: 0;
  color: #14334b;
  font-size: 1.08rem;
  line-height: 1.5;
}

body.article-page .subsidy-simulation-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

body.article-page .subsidy-simulation-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5ded5;
}

body.article-page .subsidy-simulation-card dt,
body.article-page .subsidy-simulation-card dd {
  margin: 0;
}

body.article-page .subsidy-simulation-card dt {
  color: #526476;
  font-size: 0.92rem;
}

body.article-page .subsidy-simulation-card dd {
  color: #14334b;
  font-weight: 800;
  text-align: right;
}

body.article-page .subsidy-total {
  margin-top: auto;
  padding: 12px 14px;
  background: #eef5f8;
  border-radius: 10px;
  color: #14334b;
  font-weight: 800;
  text-align: center;
}

body.article-page .table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.article-page .table-scroll .price-table {
  min-width: 720px;
}

body.article-page .subsidy-notes {
  margin-top: 20px;
  padding: 18px 20px;
  background: #f8f6f3;
  border-left: 4px solid #14334b;
  border-radius: 12px;
  color: #455a6f;
  font-size: 0.95rem;
}

body.article-page .subsidy-notes p {
  margin: 0 0 6px;
}

body.article-page .subsidy-notes p:last-child {
  margin-bottom: 0;
}

body.article-page .subsidy-case-section .case-subtitle {
  margin: -8px 0 22px;
  color: #526476;
  font-weight: 700;
  line-height: 1.8;
}

body.article-page .subsidy-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

body.article-page .subsidy-case-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 75, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 51, 75, 0.08);
}

body.article-page .subsidy-case-card h3 {
  margin: 0 0 16px;
  color: #14334b;
  font-size: 1.08rem;
  line-height: 1.5;
}

body.article-page .subsidy-case-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

body.article-page .subsidy-case-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5ded5;
}

body.article-page .subsidy-case-card dt,
body.article-page .subsidy-case-card dd {
  margin: 0;
}

body.article-page .subsidy-case-card dt {
  color: #526476;
  font-size: 0.92rem;
}

body.article-page .subsidy-case-card dd {
  color: #14334b;
  font-weight: 800;
  text-align: right;
}

body.article-page .subsidy-case-highlight {
  margin: 30px 0;
  padding: 26px;
  background: #14334b;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(20, 51, 75, 0.18);
}

body.article-page .subsidy-case-highlight span {
  display: block;
  margin-bottom: 8px;
  color: #f5f7fa;
  font-weight: 700;
}

body.article-page .subsidy-case-highlight strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

body.article-page .subsidy-case-comment {
  margin-top: 26px;
  padding: 24px;
  background: #f8f6f3;
  border-left: 4px solid #14334b;
  border-radius: 12px;
}

body.article-page .subsidy-case-comment h3 {
  margin-top: 0;
}

body.article-page .subsidy-case-cta {
  margin-top: 28px;
  padding: 28px;
  background: #eef5f8;
  border-radius: 16px;
  text-align: left;
}

body.article-page .subsidy-case-cta h3 {
  margin: 0 0 16px;
  color: #14334b;
}

body.article-page .subsidy-case-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: #14334b;
  color: #ffffff !important;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20, 51, 75, 0.12);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.article-page .subsidy-case-cta a:hover {
  background: #0f293d;
  box-shadow: 0 18px 36px rgba(20, 51, 75, 0.2);
  transform: translateY(-2px);
}

.loan-refinance-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.loan-refinance-result-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 75, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(20, 51, 75, 0.08);
}

.loan-refinance-result-card h3 {
  margin: 0 0 16px;
  color: #14334b;
  font-size: 1.08rem;
  line-height: 1.5;
}

.loan-refinance-result-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.loan-refinance-result-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5ded5;
}

.loan-refinance-result-card dt,
.loan-refinance-result-card dd {
  margin: 0;
}

.loan-refinance-result-card dt {
  color: #526476;
  font-size: 0.92rem;
}

.loan-refinance-result-card dd {
  color: #14334b;
  font-weight: 800;
  text-align: right;
}

.loan-refinance-highlight {
  margin: 28px 0;
  padding: 28px;
  background: #14334b;
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(20, 51, 75, 0.18);
}

.loan-refinance-highlight span {
  display: block;
  margin-bottom: 8px;
  color: #f5f7fa;
  font-weight: 700;
}

.loan-refinance-highlight strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .service-link-grid,
  body.article-page .related-links {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .service-link-grid > .service-link-card,
  body.article-page .related-links > a,
  body.article-page .case-detail-link {
    min-height: 112px;
    padding: 20px;
  }

  .service-link-grid > .service-link-card h3 {
    min-height: 0;
    font-size: 1.05rem;
  }

  body.article-page .cta-box a {
    width: 100%;
    padding: 14px 18px;
    text-align: center;
  }

  body.article-page .subsidy-simulation-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.article-page .subsidy-simulation-card {
    padding: 20px;
  }

  body.article-page .subsidy-case-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.article-page .subsidy-case-card,
  body.article-page .subsidy-case-comment,
  body.article-page .subsidy-case-cta,
  body.article-page .subsidy-case-highlight {
    padding: 20px;
  }

  body.article-page .subsidy-case-cta a {
    width: 100%;
  }

  .loan-refinance-result-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .loan-refinance-result-card,
  .loan-refinance-highlight {
    padding: 20px;
  }

  .loan-refinance-result-card div {
    flex-direction: column;
    gap: 4px;
  }

  .loan-refinance-result-card dd {
    text-align: left;
  }
}

/* ============================
   導入事例ページ 余白調整
   ============================ */
body.case-detail-page .case-article-hero,
body.case-detail-page .case-section {
  padding: 30px 40px !important;
  margin-bottom: 40px !important;
}

body.case-detail-page .case-section h2,
body.case-detail-page .case-article-hero h1 {
  margin-bottom: 22px !important;
  line-height: 1.55 !important;
}

body.case-detail-page .case-section p,
body.case-detail-page .case-section li,
body.case-detail-page .case-table th,
body.case-detail-page .case-table td {
  line-height: 2 !important;
}

body.case-detail-page .case-table {
  margin: 26px 0 !important;
}

body.case-detail-page .case-table th,
body.case-detail-page .case-table td {
  padding: 18px 22px !important;
}

body.case-detail-page .faq-item {
  padding: 30px 0 !important;
  margin-bottom: 0 !important;
}

body.case-detail-page .faq-item h3 {
  padding-left: 40px !important;
  padding-right: 40px !important;
  margin-bottom: 14px !important;
  line-height: 1.65 !important;
}

body.case-detail-page .faq-item p {
  padding-left: 40px !important;
  padding-right: 40px !important;
  line-height: 2 !important;
}

body.case-detail-page .photo-grid,
body.case-detail-page .related-links {
  gap: 20px !important;
  margin-top: 24px !important;
}

body.case-detail-page .photo-placeholder,
body.case-detail-page .related-links > a {
  padding: 24px !important;
}

body.case-detail-page .cta-box {
  padding: 36px 40px !important;
  margin: 42px 0 !important;
}

body.case-detail-page .cta-box p:last-child {
  margin-top: 24px !important;
}

body.case-detail-page .cta-box a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 16px 30px !important;
  background: #ffffff !important;
  color: #14334b !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

body.case-detail-page .cta-box a:hover {
  background: #f5f7fa !important;
  color: #14334b !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24) !important;
  transform: translateY(-2px) !important;
}

.case-proof .case-proof-grid,
body:has(.case-hero) .case-proof .case-proof-grid,
body.case-detail-page .case-proof .case-proof-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 24px 0 0 !important;
  align-items: stretch !important;
}

.case-proof .case-proof-card,
body:has(.case-hero) .case-proof .case-proof-card,
body.case-detail-page .case-proof .case-proof-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 140px !important;
  width: 100% !important;
  padding: 22px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
  color: #12334a !important;
  text-align: left !important;
}

.case-proof .case-proof-card h3,
.case-proof .case-proof-card dt,
body:has(.case-hero) .case-proof .case-proof-card h3,
body:has(.case-hero) .case-proof .case-proof-card dt,
body.case-detail-page .case-proof .case-proof-card h3,
body.case-detail-page .case-proof .case-proof-card dt {
  margin: 0 0 10px !important;
  color: #12334a !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

.case-proof .case-proof-card p,
.case-proof .case-proof-card dd,
body:has(.case-hero) .case-proof .case-proof-card p,
body:has(.case-hero) .case-proof .case-proof-card dd,
body.case-detail-page .case-proof .case-proof-card p,
body.case-detail-page .case-proof .case-proof-card dd {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
}

.case-proof .case-proof-note,
.case-proof .proof-note,
body:has(.case-hero) .case-proof .case-proof-note,
body:has(.case-hero) .case-proof .proof-note,
body.case-detail-page .case-proof .case-proof-note,
body.case-detail-page .case-proof .proof-note {
  margin: 22px 0 0 !important;
  color: #64748b !important;
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
}

body:has(.case-hero) .info-card,
body:has(.case-hero) .card,
body:has(.case-hero) .summary-card,
body:has(.case-hero) .comparison-card,
body:has(.case-hero) .data-item,
body:has(.case-hero) .box {
  padding: 30px 40px !important;
}

body:has(.case-hero) .info-card,
body:has(.case-hero) .section,
body:has(.case-hero) .comparison-box,
body:has(.case-hero) .card-grid,
body:has(.case-hero) .summary-grid {
  margin-bottom: 40px !important;
}

body:has(.case-hero) .info-card h2,
body:has(.case-hero) .section h2,
body:has(.case-hero) .card h3,
body:has(.case-hero) .summary-card dt,
body:has(.case-hero) .comparison-card strong,
body:has(.case-hero) .data-item dt,
body:has(.case-hero) .box h2 {
  margin-bottom: 18px !important;
  line-height: 1.55 !important;
}

body:has(.case-hero) .info-card p,
body:has(.case-hero) .section p,
body:has(.case-hero) .card p,
body:has(.case-hero) .summary-card dd,
body:has(.case-hero) .comparison-card p,
body:has(.case-hero) .data-item dd,
body:has(.case-hero) .box p {
  line-height: 2 !important;
}

body:has(.case-hero) .faq-item {
  padding: 30px 40px !important;
  margin-bottom: 22px !important;
}

body:has(.case-hero) .faq-item h3 {
  padding-left: 40px !important;
  padding-right: 40px !important;
  margin-bottom: 14px !important;
  line-height: 1.65 !important;
}

body:has(.case-hero) .faq-item p {
  padding-left: 40px !important;
  padding-right: 40px !important;
  line-height: 2 !important;
}

body:has(.case-hero) .case-result-image {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body:has(.case-hero) .case-result-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 768px) {
  body.case-detail-page .case-article-hero,
  body.case-detail-page .case-section,
  body.case-detail-page .cta-box {
    padding: 20px !important;
    margin-bottom: 28px !important;
  }

  body.case-detail-page .cta-box a {
    width: 100% !important;
    min-height: 52px !important;
    padding: 15px 20px !important;
  }

  body.case-detail-page .case-section h2,
  body.case-detail-page .case-article-hero h1 {
    margin-bottom: 18px !important;
  }

  body.case-detail-page .case-table th,
  body.case-detail-page .case-table td {
    padding: 16px 18px !important;
  }

  body.case-detail-page .faq-item {
    padding: 22px 0 !important;
  }

  body.case-detail-page .faq-item h3,
  body.case-detail-page .faq-item p {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .case-proof .case-proof-grid,
  body:has(.case-hero) .case-proof .case-proof-grid,
  body.case-detail-page .case-proof .case-proof-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .case-proof .case-proof-card,
  body:has(.case-hero) .case-proof .case-proof-card,
  body.case-detail-page .case-proof .case-proof-card {
    min-height: auto !important;
    padding: 20px !important;
  }

  body.case-detail-page .photo-placeholder,
  body.case-detail-page .related-links > a {
    padding: 20px !important;
  }

  body:has(.case-hero) .info-card,
  body:has(.case-hero) .card,
  body:has(.case-hero) .summary-card,
  body:has(.case-hero) .comparison-card,
  body:has(.case-hero) .data-item,
  body:has(.case-hero) .box,
  body:has(.case-hero) .faq-item {
    padding: 20px !important;
  }

  body:has(.case-hero) .info-card,
  body:has(.case-hero) .section,
  body:has(.case-hero) .comparison-box,
  body:has(.case-hero) .card-grid,
  body:has(.case-hero) .summary-grid {
    margin-bottom: 28px !important;
  }

  body:has(.case-hero) .case-result-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body:has(.case-hero) .case-result-image img {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
  }

  body:has(.case-hero) .info-card h2,
  body:has(.case-hero) .section h2,
  body:has(.case-hero) .card h3,
  body:has(.case-hero) .summary-card dt,
  body:has(.case-hero) .comparison-card strong,
  body:has(.case-hero) .data-item dt,
  body:has(.case-hero) .box h2,
  body:has(.case-hero) .faq-item h3 {
    margin-bottom: 12px !important;
  }

  body:has(.case-hero) .faq-item h3,
  body:has(.case-hero) .faq-item p {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* TOP CLS stabilization */
.hero-picture {
  aspect-ratio: 1708 / 921;
}

.hero-picture img {
  aspect-ratio: inherit;
}

.sns-pc img {
  aspect-ratio: 1400 / 768;
}

.sns-sp img {
  aspect-ratio: 720 / 720;
}

.strengths-pc img {
  aspect-ratio: 1774 / 887;
}

.strengths-sp img {
  aspect-ratio: 1161 / 878;
}

.pc-four-points img {
  aspect-ratio: 1774 / 1753;
}

.sp-four-points img {
  aspect-ratio: 600 / 2163;
}

.product-img-pc img {
  aspect-ratio: 1920 / 572;
}


.flow-pc img {
  aspect-ratio: 1726 / 878;
}

.flow-sp img {
  aspect-ratio: 903 / 1802;
}

.signature-pc img,
.signature-sp img {
  aspect-ratio: 554 / 268;
}

.site-footer .sns-icons img {
  aspect-ratio: 1 / 1;
}

@media (max-width: 1100px) {
  .hero-picture {
    aspect-ratio: 935 / 1627;
  }
}

@media (max-width: 768px) {
  .youtube-card h4 {
    min-height: 72px;
  }
}

/* ============================
   AIO service page
   ============================ */
body.aio-service-page .breadcrumb {
  background: linear-gradient(135deg, #102f45, #1f6684);
}

body.aio-service-page .section-text {
  padding: 72px 20px;
}

body.aio-service-page .table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.aio-service-hero {
  padding: 76px 20px 78px;
  background:
    radial-gradient(circle at 88% 8%, rgba(31,102,132,.18), transparent 34%),
    linear-gradient(180deg, #f6f8fb 0%, #eef4f8 100%);
}

.aio-hero-grid,
.aio-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
}

.aio-service-hero .aio-hero-grid {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.aio-two-column-reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
}

.aio-hero-copy h1 {
  color: var(--qol-navy);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.32;
  font-weight: 800;
  margin: 10px 0 22px;
  letter-spacing: .04em;
}

.aio-hero-copy h1 span {
  display: block;
}

.aio-kicker {
  color: var(--qol-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.aio-hero-lead {
  color: var(--qol-navy);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 16px;
}

.aio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.aio-btn-secondary {
  background: #fff !important;
  color: var(--qol-navy) !important;
  border: 1px solid rgba(18,51,74,.16);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.aio-slide-card,
.aio-wide-image {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(18,51,74,.12);
  background: #fff;
  box-shadow: var(--qol-shadow-soft);
}

.aio-slide-card img,
.aio-wide-image img {
  width: 100%;
  display: block;
}

.aio-band {
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(246,248,251,.94));
}

.hubcast-gallery-section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid rgba(18,51,74,.10);
}

.hubcast-gallery-section .aio-lead {
  color: var(--qol-navy);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hubcast-slide-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 32px -6px 0;
  padding: 6px 6px 18px;
  scrollbar-color: rgba(18,51,74,.28) rgba(18,51,74,.08);
  scrollbar-width: thin;
}

.hubcast-slide-gallery::-webkit-scrollbar {
  height: 8px;
}

.hubcast-slide-gallery::-webkit-scrollbar-track {
  background: rgba(18,51,74,.08);
  border-radius: 999px;
}

.hubcast-slide-gallery::-webkit-scrollbar-thumb {
  background: rgba(18,51,74,.28);
  border-radius: 999px;
}

.hubcast-slide-card {
  flex: 0 0 clamp(320px, 34vw, 360px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 18px;
  box-shadow: var(--qol-shadow-soft);
  padding: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hubcast-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(18,51,74,.18);
}

.hubcast-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.hubcast-lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.hubcast-slide-card h3 {
  color: var(--qol-navy);
  font-size: 15px;
  line-height: 1.55;
  margin: 12px 2px 2px;
}

.hubcast-gallery-copy {
  margin-top: 28px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 18px;
  box-shadow: var(--qol-shadow-soft);
}

.hubcast-gallery-copy h3 {
  color: var(--qol-navy);
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.hubcast-gallery-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hubcast-gallery-copy li {
  position: relative;
  padding-left: 24px;
  color: #334155;
  font-weight: 600;
  line-height: 1.7;
}

.hubcast-gallery-copy li::before {
  content: "";
  position: absolute;
  top: .78em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qol-navy), var(--qol-blue));
}

.hubcast-gallery-cta {
  margin-top: 28px;
  text-align: center;
}

.hubcast-gallery-cta p {
  color: var(--qol-navy);
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 16px;
}

.hubcast-lightbox {
  width: min(94vw, 1180px);
  padding: 18px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15,23,42,.35);
}

.hubcast-lightbox::backdrop {
  background: rgba(15,23,42,.72);
}

.hubcast-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
}

.hubcast-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--qol-navy);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15,23,42,.24);
}

.aio-compare-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 30px;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 18px;
  box-shadow: var(--qol-shadow-soft);
}

.aio-compare-table th,
.aio-compare-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(18,51,74,.10);
  color: #334155;
  line-height: 1.72;
  text-align: left;
  vertical-align: top;
}

.aio-compare-table tr:last-child th,
.aio-compare-table tr:last-child td {
  border-bottom: 0;
}

.aio-compare-table thead th,
.aio-compare-table tbody th {
  color: var(--qol-navy);
  font-weight: 700;
}

.aio-compare-table td {
  font-weight: 400;
}

.aio-compare-table thead th:first-child,
.aio-compare-table tbody th {
  width: 26%;
}

.aio-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.aio-check-list li {
  position: relative;
  min-width: 0;
  padding: 16px 18px 16px 42px;
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 16px;
  box-shadow: var(--qol-shadow-soft);
  color: #334155;
  font-weight: 600;
  line-height: 1.72;
}

.aio-check-list li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qol-navy), var(--qol-blue));
}

.aio-diagram {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.aio-diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.aio-diagram-box {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 18px;
  box-shadow: var(--qol-shadow-soft);
  color: #334155;
  font-weight: 600;
  line-height: 1.8;
}

.aio-diagram-main,
.aio-diagram-accent {
  color: var(--qol-navy);
  border-color: rgba(31,102,132,.22);
  background: linear-gradient(180deg, #fff, #f4f8fb);
}

.aio-diagram-box ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.aio-diagram-arrow {
  color: var(--qol-blue);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.aio-step-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: aio-step;
}

.aio-step-flow li {
  position: relative;
  min-width: 0;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 16px;
  box-shadow: var(--qol-shadow-soft);
  color: var(--qol-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.68;
  text-align: center;
  counter-increment: aio-step;
}

.aio-step-flow li::before {
  content: counter(aio-step);
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qol-navy), var(--qol-blue));
  color: #fff;
  font-weight: 700;
}

.aio-company-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.aio-company-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 16px;
  box-shadow: var(--qol-shadow-soft);
}

.aio-company-list dt {
  color: var(--qol-navy);
  font-weight: 700;
}

.aio-company-list dd {
  min-width: 0;
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

.aio-card-grid,
.aio-measure-grid,
.aio-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.aio-card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.aio-feature-card,
.aio-measure-grid article,
.aio-service-list div,
.aio-flow-list li {
  background: #fff;
  border: 1px solid rgba(18,51,74,.10);
  border-radius: 20px;
  box-shadow: var(--qol-shadow-soft);
  padding: 26px;
}

a.aio-feature-card {
  color: inherit;
  display: block;
  text-decoration: none;
}

#services .aio-service-card {
  cursor: pointer;
  transition: all .25s ease;
}

#services .aio-service-card h3,
#services .aio-service-card p,
#services .aio-service-card span,
#services .aio-service-card small {
  transition: color .25s ease;
}

#services .aio-service-card:hover {
  background: #14334b;
  box-shadow: 0 20px 42px rgba(20, 51, 75, .24);
  transform: translateY(-4px);
}

#services .aio-service-card:hover h3,
#services .aio-service-card:hover p,
#services .aio-service-card:hover span,
#services .aio-service-card:hover small {
  color: #fff;
}

.aio-feature-card h3,
.aio-measure-grid h3,
.aio-service-list h3,
.aio-flow-list h3 {
  color: var(--qol-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.58;
  margin-bottom: 10px;
}

.aio-feature-card p,
.aio-measure-grid p,
.aio-service-list p,
.aio-flow-list p {
  color: #334155;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.82;
}

.aio-wide-image {
  margin-top: 34px;
}

.aio-service-list span,
.aio-flow-list span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qol-navy), var(--qol-blue));
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.aio-flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin-top: 32px;
  padding: 0;
}

.aio-final-cta {
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(130,176,198,.18), transparent 30%),
    #fff;
}

.aio-final-cta .aio-hero-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  .aio-hero-grid,
  .aio-two-column,
  .aio-two-column-reverse {
    grid-template-columns: 1fr;
  }

  .aio-card-grid.five,
  .aio-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.aio-service-page .section-text {
    padding: 54px 18px;
  }

  .aio-service-hero {
    padding: 52px 18px 58px;
  }

  .aio-hero-grid,
  .aio-two-column {
    gap: 24px;
  }

  .aio-card-grid,
  .aio-card-grid.five,
  .aio-measure-grid,
  .aio-service-list,
  .aio-flow-list {
    grid-template-columns: 1fr;
  }

  .aio-feature-card,
  .aio-measure-grid article,
  .aio-service-list div,
  .aio-flow-list li {
    padding: 22px;
    border-radius: 16px;
  }

  .aio-slide-card,
  .aio-wide-image {
    border-radius: 14px;
  }

  .aio-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hubcast-gallery-section {
    margin-top: 34px;
    padding-top: 34px;
  }

  .hubcast-slide-gallery {
    gap: 16px;
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hubcast-slide-card {
    flex-basis: clamp(240px, 74vw, 280px);
    border-radius: 16px;
    padding: 10px;
  }

  .hubcast-gallery-copy {
    padding: 22px;
    border-radius: 16px;
  }

  .hubcast-gallery-copy ul {
    grid-template-columns: 1fr;
  }

  .hubcast-lightbox {
    width: calc(100vw - 28px);
    padding: 12px;
    border-radius: 16px;
  }

  .hubcast-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .aio-compare-table,
  .aio-compare-table thead,
  .aio-compare-table tbody,
  .aio-compare-table tr,
  .aio-compare-table th,
  .aio-compare-table td {
    display: block;
    width: 100%;
  }

  .aio-compare-table thead {
    display: none;
  }

  .aio-compare-table tr {
    padding: 16px;
    border-bottom: 1px solid rgba(18,51,74,.10);
  }

  .aio-compare-table tr:last-child {
    border-bottom: 0;
  }

  .aio-compare-table th,
  .aio-compare-table td {
    padding: 0;
    border-bottom: 0;
  }

  .aio-compare-table td {
    margin-top: 6px;
  }

  .aio-check-list,
  .aio-diagram-grid,
  .aio-step-flow {
    grid-template-columns: 1fr;
  }

  .aio-company-list div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }
}

/* battery / solar 商品画像のスマホ表示調整 */
@media (max-width: 768px) {
  .product-images-new {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  .product-item-new {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  .product-item-new .product-img-pc {
    display: none !important;
  }

  .product-item-new .product-img-sp {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    text-align: center !important;
  }

  .product-item-new img,
  .product-item-new .product-img-sp img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }
}

/* Common CTA */
.qol-floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .24s ease, transform .24s ease;
}

.qol-floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.qol-floating-cta__inner {
  display: grid;
  gap: 10px;
}

.qol-floating-cta__link {
  display: grid;
  gap: 2px;
  min-width: 210px;
  padding: 13px 17px;
  border: 1px solid rgba(21, 96, 130, .22);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 53, 78, .18);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.qol-floating-cta__link--primary {
  background: #156082;
  color: #fff;
}

.qol-floating-cta__link--secondary {
  background: #fff;
  color: #124760;
}

.qol-floating-cta__main {
  font-size: 15px;
}

.qol-floating-cta__main--sp {
  display: none;
}

.qol-floating-cta__sub {
  font-size: 12px;
  font-weight: 600;
  opacity: .86;
}

.qol-floating-cta__close {
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(18, 71, 96, .18);
  border-radius: 50%;
  background: #fff;
  color: #124760;
  box-shadow: 0 8px 18px rgba(16, 53, 78, .16);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.qol-floating-cta__link:focus-visible,
.qol-floating-cta__close:focus-visible,
.qol-common-cta__button:focus-visible {
  outline: 3px solid rgba(21, 96, 130, .32);
  outline-offset: 3px;
}

.qol-common-cta {
  width: min(1000px, calc(100% - 40px));
  margin: 48px auto;
  padding: 28px;
  border: 1px solid rgba(21, 96, 130, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, #f4fafc 0%, #fff 100%);
  box-shadow: 0 12px 30px rgba(16, 53, 78, .08);
}

.qol-common-cta__title {
  margin: 0 0 10px;
  color: #124760;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
}

.qol-common-cta__text {
  margin: 0;
  color: #334;
  line-height: 1.8;
}

.qol-common-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.qol-common-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #156082;
  border-radius: 999px;
  background: #156082;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.qol-common-cta__button--secondary {
  background: #fff;
  color: #156082;
}

@media (max-width: 768px) {
  body.has-qol-floating-cta {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .qol-floating-cta {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(21, 96, 130, .14);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 24px rgba(16, 53, 78, .12);
  }

  .qol-floating-cta__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    margin: 0 auto;
    gap: 8px;
  }

  .qol-floating-cta__link {
    min-width: 0;
    min-height: 50px;
    padding: 9px 10px;
    text-align: center;
    box-shadow: none;
  }

  .qol-floating-cta__main {
    font-size: 14px;
  }

  .qol-floating-cta__main--pc {
    display: none;
  }

  .qol-floating-cta__main--sp {
    display: block;
  }

  .qol-floating-cta__sub {
    display: none;
  }

  .qol-floating-cta__close {
    top: -18px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .qol-common-cta {
    margin: 36px auto;
    padding: 22px;
    border-radius: 14px;
  }

  .qol-common-cta__actions {
    display: grid;
  }

  .qol-common-cta__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qol-floating-cta {
    transition: none;
  }
}
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
/* Municipality subsidy standard template
 * Shared by Osaka municipality pages and intended for nationwide reuse.
 */
.municipality-subsidy-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

html,
body.municipality-subsidy-page {
  overflow-x: clip;
}

.municipality-subsidy-page .updated-date {
  color: var(--qol-navy);
}

.municipality-subsidy-page h1,
.municipality-subsidy-page .section-heading {
  min-width: 0;
  overflow-wrap: anywhere;
}

.municipality-subsidy-page .breadcrumb-list {
  list-style: none;
}

.municipality-subsidy-page .municipality-subsidy-narrow {
  max-width: 960px;
}

.municipality-subsidy-page .municipality-summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.municipality-subsidy-page .municipality-program-table {
  min-width: 840px;
}

.municipality-subsidy-page .table-scroll:focus-visible,
.municipality-subsidy-page .municipality-official-link:focus-visible,
.municipality-subsidy-page .municipality-nearby-link:focus-visible,
.municipality-subsidy-page details summary:focus-visible,
.municipality-subsidy-page .btn:focus-visible,
.municipality-subsidy-page .aio-feature-card:focus-visible {
  outline: 3px solid var(--qol-blue);
  outline-offset: 3px;
}

.municipality-subsidy-page .municipality-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.municipality-subsidy-page .municipality-equipment-grid article {
  padding: 22px;
  border: 1px solid var(--qol-border);
  border-radius: 14px;
  background: var(--qol-card);
}

.municipality-subsidy-page .municipality-equipment-grid h3 {
  margin-top: 0;
  color: var(--qol-navy);
}

.municipality-subsidy-page .municipality-steps {
  display: grid;
  gap: 14px;
  padding-left: 1.5rem;
}

.municipality-subsidy-page .municipality-steps li {
  padding-left: 8px;
}

.municipality-subsidy-page .municipality-steps strong,
.municipality-subsidy-page .municipality-steps span {
  display: block;
}

.municipality-subsidy-page .municipality-official-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.municipality-subsidy-page .municipality-confirmed-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
}

.municipality-subsidy-page .municipality-update-history {
  display: grid;
  gap: 12px;
  padding-left: 1.5rem;
}

.municipality-subsidy-page .municipality-update-history li {
  padding-left: 8px;
}

.municipality-subsidy-page .municipality-update-history time,
.municipality-subsidy-page .municipality-update-history span {
  display: block;
}

.municipality-subsidy-page .municipality-update-history time {
  font-weight: 700;
  color: var(--qol-navy);
}

.municipality-subsidy-page .nav-links a,
.municipality-subsidy-page .breadcrumb a,
.municipality-subsidy-page .btn,
.municipality-subsidy-page .footer-links a {
  white-space: nowrap;
}

.municipality-subsidy-page .hamburger {
  border: 0;
  background: transparent;
}

.municipality-subsidy-page details.faq-item {
  overflow: hidden;
}

.municipality-subsidy-page details.faq-item summary {
  min-height: 56px;
  padding: 16px 52px 16px 20px;
  cursor: pointer;
}

.municipality-subsidy-page details.faq-item p {
  padding: 0 20px 20px;
}

.municipality-subsidy-page .municipality-link-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.municipality-subsidy-page .municipality-nearby-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.municipality-subsidy-page .municipality-nearby-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--qol-border);
  border-radius: 10px;
  background: var(--qol-card);
  color: var(--qol-navy);
  font-weight: 700;
  text-decoration: none;
}

.municipality-subsidy-page .municipality-final-cta {
  text-align: center;
}

.municipality-subsidy-page .municipality-final-cta .aio-hero-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .municipality-subsidy-page .municipality-summary-list,
  .municipality-subsidy-page .municipality-nearby-list,
  .municipality-subsidy-page .municipality-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .municipality-subsidy-page .municipality-summary-list,
  .municipality-subsidy-page .municipality-equipment-grid,
  .municipality-subsidy-page .municipality-nearby-list,
  .municipality-subsidy-page .municipality-link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .municipality-subsidy-page .municipality-equipment-grid {
    gap: 12px;
  }

  .municipality-subsidy-page .municipality-equipment-grid article {
    padding: 18px;
  }
}

.osaka-subsidy-hub-page .municipality-hub-group {
  margin-top: 32px;
}

.osaka-subsidy-hub-page .municipality-hub-group h3 {
  margin-bottom: 12px;
  color: var(--qol-navy);
}

.osaka-subsidy-hub-page .municipality-hub-table {
  width: 100%;
  min-width: 560px;
}

.osaka-subsidy-hub-page .municipality-hub-table a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
}

.osaka-subsidy-hub-page .municipality-hub-table a:focus-visible {
  outline: 3px solid var(--qol-blue);
  outline-offset: 3px;
}

/* Prefecture subsidy pages · shared generated template */
.prefecture-subsidy-page .site-header { position: sticky; top: 0; z-index: 1000; }
.prefecture-subsidy-page .updated-date { color: var(--qol-navy); }
.prefecture-subsidy-page .prefecture-subsidy-narrow { max-width: 980px; }
.prefecture-subsidy-page .prefecture-program-table { min-width: 760px; }
.prefecture-subsidy-page .prefecture-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.prefecture-subsidy-page .prefecture-equipment-grid article {
  padding: 24px;
  border: 1px solid var(--qol-border);
  border-radius: 12px;
  background: var(--qol-card);
}
.prefecture-subsidy-page .prefecture-equipment-grid h3 { margin-top: 0; color: var(--qol-navy); }
.prefecture-subsidy-page .prefecture-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 12px;
  border: 1px solid var(--qol-navy);
  border-radius: 999px;
  color: var(--qol-navy);
  font-weight: 700;
}
.prefecture-subsidy-page .prefecture-source-list a,
.prefecture-subsidy-page .prefecture-municipality-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
}
.prefecture-subsidy-page .prefecture-source-list a::after { content: " ↗"; }
.prefecture-subsidy-page .prefecture-municipality-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.prefecture-subsidy-page .prefecture-municipality-list li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--qol-border);
  border-radius: 10px;
  background: var(--qol-card);
}
.prefecture-subsidy-page .prefecture-municipality-list span {
  color: var(--qol-text-muted);
  font-size: .9rem;
}
.prefecture-subsidy-page .prefecture-update-history { display: grid; gap: 12px; padding-left: 1.25rem; }
.prefecture-subsidy-page .prefecture-update-history time { display: block; color: var(--qol-navy); font-weight: 700; }
.prefecture-subsidy-page details.faq-item summary {
  min-height: 48px;
  padding: 16px 48px 16px 20px;
  cursor: pointer;
  font-weight: 700;
}
.prefecture-subsidy-page .prefecture-final-cta { text-align: center; }
.prefecture-subsidy-page .prefecture-final-cta .aio-hero-actions { justify-content: center; }
.prefecture-subsidy-page .table-scroll:focus-visible,
.prefecture-subsidy-page .prefecture-official-link:focus-visible,
.prefecture-subsidy-page .prefecture-municipality-list a:focus-visible,
.prefecture-subsidy-page details summary:focus-visible,
.prefecture-subsidy-page .btn:focus-visible,
.prefecture-subsidy-page .aio-feature-card:focus-visible {
  outline: 3px solid var(--qol-blue);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .prefecture-subsidy-page .prefecture-equipment-grid,
  .prefecture-subsidy-page .prefecture-municipality-list,
  .prefecture-subsidy-page .prefecture-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .prefecture-subsidy-page .prefecture-equipment-grid,
  .prefecture-subsidy-page .prefecture-municipality-list,
  .prefecture-subsidy-page .prefecture-link-grid { grid-template-columns: minmax(0, 1fr); }
.prefecture-subsidy-page .prefecture-equipment-grid article { padding: 20px; }
}

/* Nationwide subsidy portal */
.subsidy-portal-page .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.subsidy-portal-page [hidden] {
  display: none !important;
}

.subsidy-portal-page .breadcrumb {
  padding: 24px 0;
}

.subsidy-portal-page .subsidy-portal-hero {
  padding: clamp(48px, 7vw, 88px) 0;
  background: linear-gradient(135deg, var(--qol-navy) 0%, #0f4c81 100%);
  color: #fff;
}

.subsidy-portal-page .subsidy-portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: end;
}

.subsidy-portal-page .subsidy-portal-hero h1 {
  margin: 12px 0 20px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.subsidy-portal-page .subsidy-portal-hero h1 span {
  display: block;
}

.subsidy-portal-page .subsidy-portal-hero .aio-kicker {
  color: #9edcff;
}

.subsidy-portal-page .subsidy-portal-lead {
  max-width: 680px;
  margin: 0;
  color: #eaf5ff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.8;
}

.subsidy-portal-page .subsidy-portal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .35);
  border-left: 1px solid rgba(255, 255, 255, .35);
}

.subsidy-portal-page .subsidy-portal-facts div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.subsidy-portal-page .subsidy-portal-facts dt {
  margin-bottom: 5px;
  color: #dceeff;
  font-size: .78rem;
  font-weight: 700;
}

.subsidy-portal-page .subsidy-portal-facts dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.subsidy-portal-page .subsidy-portal-narrow {
  max-width: 980px;
}

.subsidy-portal-page .subsidy-portal-notes {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.subsidy-portal-page .subsidy-portal-notes li {
  position: relative;
  padding-left: 30px;
}

.subsidy-portal-page .subsidy-portal-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--qol-accent);
  font-weight: 900;
}

.subsidy-portal-page .subsidy-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.subsidy-portal-page .subsidy-search {
  padding: 20px;
  border: 1px solid #c8d6e3;
  background: #fff;
}

.subsidy-portal-page .subsidy-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--qol-navy);
  font-weight: 800;
}

.subsidy-portal-page .subsidy-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.subsidy-portal-page .subsidy-search input,
.subsidy-portal-page .subsidy-search button {
  min-height: 48px;
  border: 1px solid #8da3b8;
  border-radius: 6px;
  font: inherit;
}

.subsidy-portal-page .subsidy-search input {
  min-width: 0;
  padding: 10px 14px;
  color: #142333;
  background: #fff;
}

.subsidy-portal-page .subsidy-search button {
  padding: 10px 16px;
  color: var(--qol-navy);
  background: #edf4f9;
  font-weight: 700;
  cursor: pointer;
}

.subsidy-portal-page .subsidy-search button:disabled {
  color: #6b7785;
  cursor: default;
  opacity: .7;
}

.subsidy-portal-page .subsidy-search input:focus-visible,
.subsidy-portal-page .subsidy-search button:focus-visible,
.subsidy-portal-page .subsidy-prefecture-card:focus-visible,
.subsidy-portal-page details summary:focus-visible,
.subsidy-portal-page .btn:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.subsidy-portal-page .subsidy-search p {
  margin: 8px 0 0;
  font-size: .88rem;
}

.subsidy-portal-page .subsidy-search-count {
  color: var(--qol-navy);
  font-weight: 800;
}

.subsidy-portal-page .subsidy-region {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid #c8d6e3;
}

.subsidy-portal-page .subsidy-region-heading h3 {
  margin: 0 0 6px;
  color: var(--qol-navy);
  font-size: 1.25rem;
}

.subsidy-portal-page .subsidy-region-heading p {
  margin: 0;
  color: #526579;
  font-size: .9rem;
}

.subsidy-portal-page .subsidy-prefecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subsidy-portal-page .subsidy-prefecture-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid #c8d6e3;
  border-left: 4px solid var(--qol-accent);
  border-radius: 8px;
  color: #142333;
  background: #fff;
  text-decoration: none;
  transition: transform .16s ease-out, border-color .16s ease-out, box-shadow .16s ease-out;
}

.subsidy-portal-page .subsidy-prefecture-card:hover {
  transform: translateY(-2px);
  border-color: #7e9ab3;
  box-shadow: 0 8px 20px rgba(15, 76, 129, .1);
}

.subsidy-portal-page .subsidy-prefecture-name {
  color: var(--qol-navy);
  font-size: 1.12rem;
  font-weight: 900;
}

.subsidy-portal-page .subsidy-status {
  align-self: start;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.subsidy-portal-page .subsidy-status--受付中 { color: #17603a; background: #e8f6ee; }
.subsidy-portal-page .subsidy-status--受付予定 { color: #174f7c; background: #e8f2fb; }
.subsidy-portal-page .subsidy-status--受付終了 { color: #6b3d26; background: #f8eee8; }
.subsidy-portal-page .subsidy-status--2026年度未公表 { color: #624d15; background: #fbf4d8; }
.subsidy-portal-page .subsidy-status--確認中 { color: #4c5662; background: #eef1f4; }

.subsidy-portal-page .subsidy-card-action {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #315b7d;
  font-size: .82rem;
  font-weight: 700;
}

.subsidy-portal-page .subsidy-no-results {
  padding: 24px;
  border: 1px solid #c8d6e3;
  background: #fff;
  text-align: center;
}

.subsidy-portal-page .subsidy-portal-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.subsidy-portal-page details.faq-item summary {
  min-height: 48px;
  padding: 18px 48px 18px 18px;
  cursor: pointer;
  font-weight: 800;
}

.subsidy-portal-page .subsidy-portal-cta {
  text-align: center;
}

.subsidy-portal-page .subsidy-portal-cta .aio-hero-actions {
  justify-content: center;
}

@media (max-width: 1024px) {
  .subsidy-portal-page .subsidy-prefecture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subsidy-portal-page .subsidy-portal-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .subsidy-portal-page .subsidy-portal-hero-grid,
  .subsidy-portal-page .subsidy-directory-heading,
  .subsidy-portal-page .subsidy-region {
    grid-template-columns: minmax(0, 1fr);
  }

  .subsidy-portal-page .subsidy-portal-facts,
  .subsidy-portal-page .subsidy-prefecture-grid,
  .subsidy-portal-page .subsidy-portal-link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .subsidy-portal-page .subsidy-directory-heading { gap: 24px; margin-bottom: 32px; }
  .subsidy-portal-page .subsidy-region { gap: 16px; padding: 28px 0; }
  .subsidy-portal-page .subsidy-prefecture-card { min-height: 112px; }
  .subsidy-portal-page .subsidy-portal-hero h1 { font-size: clamp(1.75rem, 8.5vw, 2.25rem); }
}

@media (max-width: 374px) {
  .subsidy-portal-page .subsidy-search-control { grid-template-columns: minmax(0, 1fr); }
  .subsidy-portal-page .subsidy-search button { width: 100%; }
}

/* Natural Japanese wrapping: keep short headings and labels together where possible. */
:where(h1, h2, h3, h4, h5, h6, .section-heading, .section-title, .page-title, .hero-title, .card-title, .result-title, .faq-question, .faq-category-title, .sub-heading) {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-wrap: pretty;
}

/* High-specificity fallback for page-specific heading rules. */
h1[class][class], h2[class][class], h3[class][class], h4[class][class], h5[class][class], h6[class][class] {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word !important;
  text-wrap: balance;
  text-wrap: pretty;
}

:where(.btn, .button, .cta, a.cta, [class*="-cta"]) {
  line-break: strict;
  text-wrap: pretty;
}
