/* ==========================================================================
   業務用エアコン比較サイト - スタイルシート
   ========================================================================== */

/* ==========================================================================
   1. リセット・ベーススタイル
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333333;
  background-color: #FFFFFF;
}

a {
  color: #EB6601;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FF6600;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ==========================================================================
   2. レイアウト
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

.section-title span {
  color: #EB6601;
}

.section-bg-gray {
  background-color: #F5F5F5;
}

/* ==========================================================================
   3. ヘッダー
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

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

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
}

.header-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #EB6601;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav-list {
  display: flex;
  gap: 30px;
}

.header-nav-link {
  color: #333333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-nav-link:hover {
  color: #EB6601;
}

.header-cta {
  display: flex;
  gap: 10px;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333333;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-link {
  display: block;
  padding: 10px;
  color: #333333;
  font-weight: 500;
  border-bottom: 1px solid #E0E0E0;
}

/* ヘッダー分のスペース確保 */
.main-content {
  padding-top: 70px;
}

/* ==========================================================================
   4. ヒーローセクション
   ========================================================================== */

.hero {
  width: 100%;
  background: linear-gradient(135deg, #EB6601 0%, #FF6600 100%);
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   5. 比較表
   ========================================================================== */

.comparison-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.comparison-table {
  min-width: 800px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #E0E0E0;
  vertical-align: middle;
}

.comparison-table th {
  background-color: #F5F5F5;
  font-weight: 700;
  color: #333333;
}

.comparison-table thead th {
  background-color: #333333;
  color: #FFFFFF;
}

.comparison-table tbody tr:hover {
  background-color: #FFF8F3;
}

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

/* 自社カラム強調 */
.comparison-table th.highlight-column,
.comparison-table td.highlight-column {
  background-color: #FFF3E8;
  border-left: 3px solid #EB6601;
  border-right: 3px solid #EB6601;
}

.comparison-table thead th.highlight-column {
  background-color: #EB6601;
  color: #FFFFFF;
}

/* 評価マーク */
.rating-best,
.rating-good,
.rating-average {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.125rem;
}

.rating-best {
  background-color: #D1FAE5;
  color: #10B981;
}

.rating-good {
  background-color: #DBEAFE;
  color: #3B82F6;
}

.rating-average {
  background-color: #FEF3C7;
  color: #F59E0B;
}

/* 評価テキスト付き */
.rating-text-best {
  color: #10B981;
  font-weight: 700;
}

.rating-text-good {
  color: #3B82F6;
  font-weight: 700;
}

.rating-text-average {
  color: #F59E0B;
  font-weight: 700;
}

/* 比較表の注釈 */
.comparison-note {
  font-size: 0.875rem;
  color: #666666;
  text-align: right;
}

/* ==========================================================================
   6. カードレイアウト
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.company-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-card.highlight {
  border: 2px solid #EB6601;
  background-color: #FFF8F3;
}

.company-card-logo {
  width: 120px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
}

.company-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333333;
}

.company-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.company-card-info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E0E0E0;
}

.company-card-info-label {
  color: #666666;
  font-size: 0.875rem;
}

.company-card-info-value {
  font-weight: 600;
  color: #333333;
}

.company-card-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.company-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-card-feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #F5F5F5;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #666666;
}

.company-card-feature-tag.highlight {
  background-color: #FFF3E8;
  color: #EB6601;
}

/* ==========================================================================
   7. ボタンスタイル
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #EB6601;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #FF6600;
  color: #FFFFFF;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #EB6601;
  border: 2px solid #EB6601;
}

.btn-secondary:hover {
  background-color: #FFF3E8;
  color: #EB6601;
}

.btn-cta {
  background-color: #EB6601;
  color: #FFFFFF;
  padding: 16px 40px;
  font-size: 1.125rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(235, 102, 1, 0.4);
}

.btn-cta:hover {
  background-color: #FF6600;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 102, 1, 0.5);
}

.btn-white {
  background-color: #FFFFFF;
  color: #EB6601;
}

.btn-white:hover {
  background-color: #F5F5F5;
  color: #EB6601;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-icon {
  margin-right: 8px;
}

/* ==========================================================================
   8. 記事スタイル
   ========================================================================== */

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.4;
  padding-bottom: 15px;
  border-bottom: 3px solid #EB6601;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  margin-top: 50px;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #EB6601;
}

.article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 10px;
}

.article p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.article ul,
.article ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.article ul {
  list-style: disc;
}

.article ol {
  list-style: decimal;
}

.article li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.article a {
  color: #EB6601;
  text-decoration: underline;
}

.article a:hover {
  color: #FF6600;
}

.article blockquote {
  background-color: #F5F5F5;
  border-left: 4px solid #EB6601;
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
}

.article img {
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  color: #666666;
  font-size: 0.875rem;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #FFF3E8;
  color: #EB6601;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-right: 8px;
}

/* 目次 */
.toc {
  background-color: #F5F5F5;
  border-radius: 8px;
  padding: 25px 30px;
  margin: 30px 0;
}

.toc-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333333;
}

.toc-list {
  list-style: none;
  padding-left: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: #333333;
  text-decoration: none;
}

.toc-list a:hover {
  color: #EB6601;
}

/* ==========================================================================
   9. フッター
   ========================================================================== */

.footer {
  background-color: #333333;
  color: #FFFFFF;
  padding: 60px 20px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  color: #CCCCCC;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-nav-link:hover {
  color: #EB6601;
}

.footer-contact {
  color: #CCCCCC;
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid #555555;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-copyright {
  color: #999999;
  font-size: 0.75rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-link {
  color: #999999;
  font-size: 0.75rem;
}

.footer-legal-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   10. レスポンシブ対応
   ========================================================================== */

/* タブレット（1199px以下） */
@media (max-width: 1199px) {
  .container {
    padding: 0 30px;
  }

  .section {
    padding: 50px 30px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .header-nav-list {
    gap: 20px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 15px;
  }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 15px;
  }

  .section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  /* ヘッダー */
  .header-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-content {
    padding-top: 60px;
  }

  /* ヒーロー */
  .hero {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-features {
    flex-direction: column;
    gap: 15px;
  }

  /* 比較表 - モバイルではカード形式 */
  .comparison-table-mobile {
    display: block;
  }

  .comparison-table-desktop {
    display: none;
  }

  .comparison-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
  }

  .comparison-card.highlight {
    border: 2px solid #EB6601;
    background-color: #FFF8F3;
  }

  .comparison-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E0E0E0;
  }

  .comparison-card-company {
    font-size: 1.125rem;
    font-weight: 700;
  }

  .comparison-card-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
  }

  .comparison-card-label {
    color: #666666;
    font-size: 0.875rem;
  }

  .comparison-card-value {
    font-weight: 600;
    text-align: right;
  }

  /* カード */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .company-card {
    padding: 20px;
  }

  /* ボタン */
  .btn-cta {
    width: 100%;
    padding: 14px 30px;
  }

  /* 記事 */
  .article {
    padding: 30px 15px;
  }

  .article h1 {
    font-size: 1.5rem;
  }

  .article h2 {
    font-size: 1.25rem;
    margin-top: 40px;
  }

  .article h3 {
    font-size: 1.125rem;
  }

  /* フッター */
  .footer {
    padding: 40px 15px 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 小さいスマートフォン（374px以下） */
@media (max-width: 374px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   11. ユーティリティクラス
   ========================================================================== */

/* テキスト配置 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* マージン - トップ */
.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 40px;
}

.mt-5 {
  margin-top: 50px;
}

/* マージン - ボトム */
.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.mb-5 {
  margin-bottom: 50px;
}

/* マージン - 左右 */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* パディング */
.p-1 {
  padding: 10px;
}

.p-2 {
  padding: 20px;
}

.p-3 {
  padding: 30px;
}

/* 自社強調用 */
.highlight {
  background-color: #FFF3E8;
  border-color: #EB6601;
}

.highlight-text {
  color: #EB6601;
  font-weight: 700;
}

.highlight-badge {
  display: inline-block;
  background-color: #EB6601;
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 表示制御 */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-inline-block {
  display: inline-block;
}

/* Flexbox ユーティリティ */
.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.gap-1 {
  gap: 10px;
}

.gap-2 {
  gap: 20px;
}

.gap-3 {
  gap: 30px;
}

/* 幅 */
.w-100 {
  width: 100%;
}

.w-auto {
  width: auto;
}

/* フォント */
.fw-bold {
  font-weight: 700;
}

.fw-semibold {
  font-weight: 600;
}

.fw-normal {
  font-weight: 400;
}

.fs-sm {
  font-size: 0.875rem;
}

.fs-lg {
  font-size: 1.125rem;
}

/* カラー */
.text-primary {
  color: #EB6601;
}

.text-muted {
  color: #666666;
}

.text-white {
  color: #FFFFFF;
}

.bg-primary {
  background-color: #EB6601;
}

.bg-white {
  background-color: #FFFFFF;
}

.bg-gray {
  background-color: #F5F5F5;
}

/* ボーダー */
.border {
  border: 1px solid #E0E0E0;
}

.border-primary {
  border-color: #EB6601;
}

.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-full {
  border-radius: 50px;
}

/* シャドウ */
.shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 非表示（レスポンシブ） */
@media (max-width: 767px) {
  .d-none-mobile {
    display: none;
  }

  .d-block-mobile {
    display: block;
  }
}

@media (min-width: 768px) {
  .d-none-desktop {
    display: none;
  }

  .d-block-desktop {
    display: block;
  }
}
