/*
Theme Name: Honma Kensetsu Theme
Author: Honma Kensetsu
Description: 建設業 本間建設のコーポレートサイト用テーマ
Version: 1.0.0
Text Domain: honma-kensetsu
*/

/* ========================================
   リセット・基本設定
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* iOS Safari でのスムーズスクロール */
@supports (-webkit-overflow-scrolling: touch) {
  html {
    -webkit-overflow-scrolling: touch;
  }
}

:root {
  --main-color: #005b8f;
  --sub-color: #0077b6;
  --bg-color: #ffffff;
  --bg-light: #f5f7fb;
  --text-color: #333333;
  --text-sub: #666666;
  --border-color: #dddddd;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* スマホでのタップハイライトを無効化 */
  -webkit-tap-highlight-color: transparent;
}

/* スマホ用基本設定 */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  /* 画像のドラッグを無効化（スマホ最適化） */
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* ========================================
   レイアウト
======================================== */
.l-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  min-height: 60vh;
  padding: 60px 0;
}

/* ========================================
   ヘッダー
======================================== */
.header {
  background-color: var(--main-color);
  border-bottom: 1px solid var(--main-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.header__logo {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
}

.header__logo a {
  color: #ffffff;
}

.global-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.global-nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.global-nav a {
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  font-size: 15px;
}

.global-nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.header__contact-btn {
  display: inline-block;
  background-color: #ffffff;
  color: var(--main-color);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}

.header__contact-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transform: translateY(-2px);
}

/* ========================================
   ハンバーガーメニュー
======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  display: block;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ナビゲーションオーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-active {
  opacity: 1;
}

/* スマホ表示 */
@media (max-width: 767px) {
  /* ハンバーガーメニューボタンを表示 */
  .hamburger {
    display: flex;
  }
  
  /* PC用のお問い合わせボタンを非表示 */
  .header__contact-btn {
    display: none;
  }
  
  /* ロゴのサイズ調整 */
  .header__logo {
    font-size: 18px;
  }
  
  /* ヘッダーの高さ調整 */
  .header__inner {
    height: 60px;
  }
  
  /* ナビゲーションをサイドメニューに */
  .global-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    padding-top: 80px;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .global-nav.is-active {
    right: 0;
  }
  
  .global-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .global-nav li {
    border-bottom: 1px solid var(--border-color);
  }
  
  .global-nav a {
    display: block;
    color: var(--text-color);
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 500;
  }
  
  .global-nav a:hover {
    background-color: var(--bg-light);
    color: var(--main-color);
  }
  
  /* オーバーレイ表示 */
  .nav-overlay {
    display: block;
  }
  
  /* メニューが開いている時のbody */
  body.nav-open {
    overflow: hidden;
  }
}

/* タブレット・PC表示 */
@media (min-width: 768px) {
  .header__inner {
    height: 80px;
  }
  
  .header__logo {
    font-size: 24px;
  }
  
  .global-nav a {
    font-size: 16px;
  }
  
  .global-nav ul {
    gap: 25px;
  }
  
  .header__contact-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  /* ハンバーガーメニュー関連を非表示 */
  .hamburger,
  .nav-overlay {
    display: none;
  }
}

/* ========================================
   フッター
======================================== */
.footer {
  background-color: var(--main-color);
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__company {
  margin-bottom: 30px;
}

.footer__company-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer__company-info {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.footer-tel-link,
.footer-email-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.footer-tel-link:hover,
.footer-email-link:hover {
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 767px) {
  .footer-tel-link,
  .footer-email-link {
    padding: 2px 0;
    text-decoration: underline;
  }
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  margin-bottom: 30px;
}

.footer-nav a {
  color: #ffffff;
  font-size: 14px;
}

.footer__copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* スマホ用フッター最適化 */
@media (max-width: 767px) {
  .footer {
    padding: 32px 0 16px;
    margin-top: 60px;
  }
  
  .footer__company {
    margin-bottom: 24px;
  }
  
  .footer__company-name {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .footer__company-info {
    font-size: 13px;
    line-height: 1.8;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .footer-nav a {
    font-size: 13px;
    display: inline-block;
    padding: 4px 0;
    min-height: 32px;
    line-height: 24px;
  }
  
  .footer__copyright {
    font-size: 12px;
    padding-top: 16px;
  }
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 背景画像がある場合 */
.hero--has-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 背景画像のオーバーレイ（色をかける） */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* オーバーレイカラーバリエーション */
.hero__overlay--blue {
  background: linear-gradient(135deg, #0077b6 0%, #005b8f 100%);
}

.hero__overlay--dark-blue {
  background: linear-gradient(135deg, #004d73 0%, #003d5c 100%);
}

.hero__overlay--black {
  background-color: #000000;
}

/* コンテンツエリア */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__catch {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__tel {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s, opacity 0.3s;
}

.hero__tel:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* スマホ用ヒーローセクション最適化 */
@media (max-width: 767px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero__catch {
    font-size: 28px;
  }
  
  .hero__sub {
    font-size: 15px;
  }
  
  .hero__tel {
    font-size: 20px;
    padding: 12px 24px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 120px 0;
  }
  
  .hero__catch {
    font-size: 48px;
  }
  
  .hero__sub {
    font-size: 18px;
  }
  
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .hero__tel {
    font-size: 28px;
  }
}

/* ========================================
   セクション共通
======================================== */
.section {
  padding: 60px 0;
}

.section--bg {
  background-color: var(--bg-light);
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--main-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--sub-color);
  margin: 15px auto 0;
}

.section-lead {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 40px;
}

/* スマホ用セクション最適化 */
@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  
  .section-lead {
    font-size: 14px;
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 40px;
  }
}

/* ========================================
   ボタン・リンク
======================================== */
.btn-primary {
  display: inline-block;
  background-color: var(--sub-color);
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s, transform 0.2s;
  min-height: 44px;
  line-height: 1.4;
}

.btn-primary:hover {
  background-color: var(--main-color);
  opacity: 1;
}

/* スマホでのタップ領域最適化 */
@media (max-width: 767px) {
  .btn-primary {
    padding: 16px 32px;
    font-size: 15px;
    width: 100%;
    max-width: 280px;
  }
  
  .btn-primary:active {
    transform: scale(0.98);
  }
}

.link-more {
  display: inline-block;
  color: var(--main-color);
  font-weight: bold;
  margin-top: 30px;
  position: relative;
  padding-right: 20px;
  min-height: 44px;
  line-height: 44px;
}

.link-more::after {
  content: '→';
  position: absolute;
  right: 0;
  transition: transform 0.3s;
}

.link-more:hover::after {
  transform: translateX(5px);
}

@media (max-width: 767px) {
  .link-more {
    padding: 12px 30px 12px 12px;
    font-size: 15px;
  }
}

.link-back {
  display: inline-block;
  color: var(--text-sub);
  margin-top: 40px;
}

.link-back::before {
  content: '← ';
}

/* ========================================
   サービスカード
======================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card__title {
  font-size: 20px;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 15px;
}

.service-card__text {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* スマホ用サービスカード最適化 */
@media (max-width: 767px) {
  .services-grid {
    gap: 20px;
  }
  
  .service-card {
    padding: 24px 20px;
  }
  
  .service-card__title {
    font-size: 18px;
  }
  
  .service-card__text {
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   施工事例一覧（レスポンシブレイアウト）
======================================== */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.works-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.works-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.works-card__image,
.works-card__thumb {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
}

.works-card__image img,
.works-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.works-card:hover .works-card__image img,
.works-card:hover .works-card__thumb img {
  transform: scale(1.05);
}

.works-card__title-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f4d03f 0%, #f1c40f 100%);
  padding: 12px 20px;
  text-align: center;
  z-index: 2;
}

.works-card__title {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.works-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.works-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* スマホ用施工事例最適化（縦並び） */
@media (max-width: 767px) {
  .works-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  
  .works-card__image,
  .works-card__thumb {
    height: 200px;
  }
  
  .works-card__title {
    font-size: 16px;
  }
  
  .works-card__title-bar {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .works-card__image,
  .works-card__thumb {
    height: 180px;
  }
  
  .works-card__title {
    font-size: 15px;
  }
}

/* タブレット用（2列表示） */
@media (min-width: 768px) and (max-width: 1023px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .works-card__image,
  .works-card__thumb {
    height: 250px;
  }
}

/* PC用（3列表示） */
@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .works-card__image,
  .works-card__thumb {
    height: 280px;
  }
}

/* ========================================
   お知らせ・投稿リスト
======================================== */
.news-list, .post-list {
  list-style: none;
}

.news-item, .post-item, .post-list__item {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.news-item:first-child, .post-item:first-child, .post-list__item:first-child {
  padding-top: 0;
}

.news-item__link, .post-item__link, .post-list__item a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: inherit;
}

.news-item__date, .post-item__date, .post-list__date {
  color: var(--text-sub);
  font-size: 14px;
  white-space: nowrap;
}

.news-item__title, .post-item__title, .post-list__title {
  color: var(--text-color);
  font-weight: 500;
  flex: 1;
}

.news-item:hover .news-item__title,
.post-item:hover .post-item__title,
.post-list__item:hover .post-list__title {
  color: var(--main-color);
}

.post-item__excerpt, .post-list__excerpt {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.6;
  display: block;
}

/* スマホ用ニュース・投稿リスト最適化 */
@media (max-width: 767px) {
  .news-item, .post-item, .post-list__item {
    padding: 16px 0;
  }
  
  .news-item__link, .post-item__link, .post-list__item a {
    flex-direction: column;
    gap: 10px;
    min-height: 44px;
  }
  
  .news-item__date, .post-item__date, .post-list__date {
    font-size: 13px;
  }
  
  .news-item__title, .post-item__title, .post-list__title {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .post-item__excerpt, .post-list__excerpt {
    font-size: 13px;
  }
}

/* コラム一覧専用スタイル */
.post-list--column .post-list__item a {
  flex-direction: column;
  gap: 8px;
}

.post-list--column .post-list__date {
  margin-bottom: 5px;
}

.post-list--column .post-list__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* ========================================
   強みセクション
======================================== */
.strength-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.strength-item {
  text-align: center;
  padding: 30px 20px;
}

.strength-item__icon {
  font-size: 48px;
  color: var(--main-color);
  margin-bottom: 15px;
}

.strength-item__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--main-color);
}

.strength-item__text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* スマホ用強みセクション最適化 */
@media (max-width: 767px) {
  .strength-grid {
    gap: 24px;
  }
  
  .strength-item {
    padding: 24px 16px;
  }
  
  .strength-item__icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .strength-item__title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .strength-item__text {
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .strength-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   CTAセクション
======================================== */
.section-contact-cta {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
}

.section-contact-cta__title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.section-contact-cta__text {
  font-size: 16px;
  margin-bottom: 30px;
}

.section-contact-cta .btn-primary {
  background-color: #ffffff;
  color: var(--main-color);
}

.section-contact-cta .btn-primary:hover {
  background-color: var(--bg-light);
}

/* スマホ用CTAセクション最適化 */
@media (max-width: 767px) {
  .section-contact-cta {
    padding: 40px 20px;
  }
  
  .section-contact-cta__title {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .section-contact-cta__text {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

@media (min-width: 768px) {
  .section-contact-cta {
    padding: 80px 20px;
  }
  
  .section-contact-cta__title {
    font-size: 36px;
  }
}

/* ========================================
   ページセクション
======================================== */
.page-section {
  width: 100%;
}

/* ========================================
   ページタイトル
======================================== */
.page-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--main-color);
}

.page-lead {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 50px;
  line-height: 1.8;
}

/* スマホ用ページタイトル最適化 */
@media (max-width: 767px) {
  .page-title {
    font-size: 26px;
    margin-bottom: 16px;
  }
  
  .page-lead {
    font-size: 14px;
    margin-bottom: 40px;
  }
}

@media (min-width: 768px) {
  .page-title {
    font-size: 40px;
    margin-bottom: 30px;
  }
}

/* ========================================
   ページコンテンツ
======================================== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.9;
}

.page-content h2 {
  font-size: 28px;
  font-weight: bold;
  margin: 50px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--main-color);
  color: var(--main-color);
}

.page-content h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 40px 0 15px;
  color: var(--main-color);
}

.page-content p {
  margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
  margin: 20px 0;
  padding-left: 25px;
  list-style: inherit;
}

.page-content li {
  margin-bottom: 10px;
}

.page-content img {
  margin: 30px 0;
}

/* スマホ用ページコンテンツ最適化 */
@media (max-width: 767px) {
  .page-content {
    padding: 0 4px;
  }
  
  .page-content h2 {
    font-size: 22px;
    margin: 40px 0 16px;
    padding-bottom: 8px;
  }
  
  .page-content h3 {
    font-size: 18px;
    margin: 30px 0 12px;
  }
  
  .page-content p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  
  .page-content ul,
  .page-content ol {
    font-size: 15px;
    padding-left: 20px;
  }
}

/* ========================================
   事業者概要テーブル
======================================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
}

.company-table th,
.company-table td {
  padding: 15px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.company-table th {
  background-color: var(--bg-light);
  font-weight: bold;
  width: 30%;
  color: var(--main-color);
}

@media (max-width: 767px) {
  .company-table th {
    width: 35%;
    font-size: 14px;
  }
  
  .company-table td {
    font-size: 14px;
  }
}

.company-map {
  width: 100%;
  margin: 40px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.company-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

@media (min-width: 768px) {
  .company-map iframe {
    height: 450px;
  }
}

/* ========================================
   お問い合わせフォーム
======================================== */
.contact-form {
  max-width: 700px;
  margin: 40px auto;
}

/* ========================================
   投稿詳細
======================================== */
.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 15px;
  color: var(--main-color);
}

.post-meta {
  color: var(--text-sub);
  font-size: 14px;
}

.post-content {
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.9;
}

.post-content h2 {
  font-size: 26px;
  font-weight: bold;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--main-color);
  color: var(--main-color);
}

.post-content h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 30px 0 15px;
  color: var(--main-color);
}

.post-content p {
  margin-bottom: 20px;
}

.post-content img {
  margin: 30px 0;
}

@media (min-width: 768px) {
  .post-title {
    font-size: 40px;
  }
}

/* ========================================
   ページネーション
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.pagination a,
.pagination .current {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
}

.pagination .current {
  background-color: var(--main-color);
  color: #ffffff;
  border-color: var(--main-color);
}

.pagination a:hover {
  background-color: var(--bg-light);
  opacity: 1;
}

/* ========================================
   404ページ
======================================== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404__title {
  font-size: 72px;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 20px;
}

.error-404__message {
  font-size: 20px;
  color: var(--text-sub);
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .error-404__title {
    font-size: 120px;
  }
  
  .error-404__message {
    font-size: 24px;
  }
}

/* ========================================
   Instagramセクション
======================================== */
.instagram-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.instagram-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background-color: var(--bg-light);
}

.instagram-card__image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.instagram-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.instagram-card:hover .instagram-card__image img {
  transform: scale(1.05);
}

.instagram-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.7) 0%, rgba(253, 29, 29, 0.7) 50%, rgba(252, 176, 69, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-card:hover .instagram-card__overlay {
  opacity: 1;
}

.instagram-card__icon {
  width: 48px;
  height: 48px;
  color: #ffffff;
}

/* スマホ用Instagramグリッド最適化 */
@media (max-width: 767px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .instagram-card__icon {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* ========================================
   事業者概要 SNSリンク・電話リンク
======================================== */
.company-sns-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--main-color);
  font-weight: 500;
  transition: all 0.3s;
}

.company-sns-link:hover {
  color: var(--sub-color);
  transform: translateX(5px);
}

.company-sns-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.company-tel-link {
  color: var(--main-color);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s;
}

.company-tel-link:hover {
  color: var(--sub-color);
}

@media (max-width: 767px) {
  .company-tel-link {
    display: inline-block;
    padding: 4px 0;
    font-size: 16px;
  }
}

/* ========================================
   ユーティリティ
======================================== */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* ========================================
   事業案内ページ専用スタイル
======================================== */
.business-intro {
  text-align: center;
  margin-bottom: 60px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-sub);
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.business-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--main-color) 0%, var(--sub-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.business-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 8px 24px rgba(0, 91, 143, 0.15);
  transform: translateY(-4px);
}

.business-card:hover::before {
  opacity: 1;
}

.business-card__icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--main-color);
}

.business-card__title {
  font-size: 24px;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.business-card__title::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: var(--sub-color);
  margin: 10px auto 0;
  transition: width 0.3s ease;
}

.business-card:hover .business-card__title::after {
  width: 80%;
}

.business-card__description {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-color);
  margin-bottom: 20px;
}

.business-card__details {
  background-color: rgba(0, 91, 143, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.business-card__details-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-card__details-title::before {
  content: '■';
  color: var(--sub-color);
}

.business-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.business-card__list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
}

.business-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sub-color);
  font-weight: bold;
}

@media (min-width: 768px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .business-card {
    padding: 45px 35px;
  }
  
  .business-card__icon {
    font-size: 56px;
  }
  
  .business-card__title {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .business-intro {
    font-size: 17px;
    margin-bottom: 80px;
  }
  
  .business-grid {
    gap: 50px;
  }
}
