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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  background: #f8f6f8;
}

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.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img {
  height: 44px;
  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 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: 70px;
}

/* 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: #82b0c6;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
}

.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: #82b0c6;
  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;
}

/* ============================
   延長保証セクション
   ============================ */
.warranty {
  /* background継承 */
}

.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%;
}

/* ============================
   事業内容
   ============================ */
.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;
}

/* 商品画像 */
/* 取扱商品（PC/SP切り替え対応） */
.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 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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 {
  /* background継承 */
}

.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;
}

.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: 5px;
  margin: 30px 0;
}

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

/* ============================
   お問い合わせ
   ============================ */
.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: #111;
  color: rgba(255,255,255,0.6);
  padding: 40px 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;
}

/* ============================
   レスポンシブ
   ============================ */

/* PC表示時 - !important なしで通常適用 */
.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; }

  /* スマホ表示で4つのポイントを非表示 */
  .four-points {
    display: none;
  }

  /* スマホ表示で信頼バナーと選ばれる理由バナーを非表示 */
  .trust-banner,
  .reason-banner {
    display: none !important;
  }

  /* 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, .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;
  }

  /* スマホ表示時の画像幅を確実に100%に */
  .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;
  }

  .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;
  }

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

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

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