/*
Theme Name: Tomoe Manufacturing
Theme URI: http://tomoe-mfg.co.jp
Description: A modern, responsive theme for Tomoe Manufacturing Co., Ltd.
Version: 1.0.0
Author: Tomoe Manufacturing Co., Ltd.
Text Domain: tomoe-theme
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ======================================
 * 1. 共通設定・リセット
 * ====================================== */
 :root {
  --primary: #0a3277;
  --secondary: #1e5bb0;
  --accent: #ff6a00;
  --light: #f5f7fa;
  --dark: #333;
  --gray: #f0f0f0;
  
  /* ヘッダーの高さ変数（スクロールやパディング調整に使用） */
  --header-height: 80px;
  --header-height-mobile: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  color: var(--dark);
  line-height: 1.6;
}

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

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* グローバルセクション設定 */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

section .container {
  width: 100%;
  max-width: 1200px;
}

/* コンテナの標準スタイル */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container p {
  margin-bottom: 20px;
}

/* セクションタイトルの共通スタイル */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
}

/* ======================================
 * 2. ヘッダー
 * ====================================== */
/* ヘッダー全体のスタイル */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-top {
  padding: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* 右側のヘッダー要素をグループ化 */
.header-right {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

/* コンテンツラッパーを調整（ヘッダー用） */
header .content-wrapper {
  max-width: 1300px; /* ヘッダーは少し広めに */
}

/* ロゴ */
.logo {
  display: block;
  flex: 0 0 auto;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* メインナビゲーション */
.main-nav {
  margin-right: 15px;
}

.nav-wrapper {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
  margin: 0 10px;
}

.nav-links a {
  display: block;
  padding: 10px 15px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
  color: var(--accent);
}

/* 電話番号 */
.header-contact-phone {
  display: flex;
  margin-right: 20px;
  flex: 0 0 auto;
}

.phone {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* 電話アイコン（SVG）のスタイル調整 */
.phone svg,
.phone .svg-inline--fa {
  font-size: 24px;
  color: var(--primary);
  width: 24px;
  margin-right: 20px; /* アイコンと番号の間隔を広げる */
}

/* 既存の .phone i スタイルも維持 */
.phone i {
  font-size: 24px;
  color: var(--primary);
  width: 24px;
  margin-right: 20px; /* アイコンと番号の間隔を広げる */
  text-align: center;
}

.phone-info {
  display: flex;
  flex-direction: column;
}

.phone-label {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

.phone-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

/* お問い合わせボタン */
.header-contact-button {
  flex: 0 0 auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(255, 106, 0, 0.2);
  white-space: nowrap;
}

.contact-btn span {
  margin-left: 8px;
}

.contact-btn:hover {
  background-color: #e55f00;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 106, 0, 0.3);
  color: white;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

/* モバイルナビゲーション */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-inner {
  padding: 80px 20px 30px;
}

/* モバイルナビゲーションのヘッダー（閉じるボタン） */
.mobile-nav-header {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1001;
}

.mobile-nav-close {
  background: rgba(10, 50, 119, 0.1);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 28px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close:hover,
.mobile-nav-close:active {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
  border-color: var(--primary);
}

.mobile-nav-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 50, 119, 0.3);
}

.mobile-nav-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  gap: 15px;
}

.mobile-phone,
.mobile-contact {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.mobile-phone {
  background-color: rgba(10, 50, 119, 0.1);
  color: var(--primary);
}

.mobile-contact {
  background-color: var(--accent);
  color: white;
}

.mobile-phone i,
.mobile-contact i {
  margin-right: 10px;
  font-size: 18px;
}

.mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-links li {
  margin-bottom: 5px;
}

.mobile-links a {
  display: block;
  padding: 12px 15px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.mobile-links a:hover,
.mobile-links .current-menu-item > a {
  color: var(--accent);
  background-color: rgba(10, 50, 119, 0.05);
}

/* オーバーレイ */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* モバイルでのスクロール時の挙動改善 */
body.mobile-menu-open {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* デスクトップにアクティブクラスを追加 */
@media screen and (min-width: 993px) {
  .nav-links a {
    position: relative;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .nav-links a:hover::after,
  .nav-links .current-menu-item > a::after {
    width: calc(100% - 20px);
  }
}

/* ======================================
 * 3. パンくず・ページタイトル
 * ====================================== */
/* Breadcrumb */
.breadcrumb {
  background-color: #f5f5f5;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  color: #666;
  position: relative;
  padding: 0 20px 0 0;
  margin-right: 8px;
}

.breadcrumb li:not(:last-child):after {
  content: '>';
  position: absolute;
  right: 0;
  top: 0;
  color: #999;
}

.breadcrumb li:last-child {
  color: #333;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Page Title */
.page-title {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: var(--header-spacing, 0);
}

.page-title h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.page-title h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
}

/* ======================================
 * 4. トップページセクション
 * ====================================== */
/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
  overflow: hidden;
  padding: 0;
  height: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: none; /* 元々のグリッド画像を非表示 */
}

.hero-image {
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hero-image:hover img {
  transform: scale(1.05);
}

/* メインビジュアルを画面幅いっぱいに表示するためのスタイル */
.hero-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.hero-subtitle {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.hero-subtitle img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-title {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
  margin: 0;
}

.hero-action {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--light);
}

.about .section-title {
  margin-bottom: 30px;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  margin-top: 30px;
}

/* Services Section */
.services {
  padding: 80px 0;
}

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

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-description {
  margin-bottom: 20px;
  color: #666;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.3s;
}

.service-link i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.service-link:hover {
  color: var(--accent);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Equipment Section */
.equipment {
  padding: 80px 0;
  background-color: var(--light);
}

.equipment-slider {
  margin-top: 50px;
  position: relative;
}

.equipment-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 15px;
}

.equipment-image {
  height: 250px;
  overflow: hidden;
}

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

.equipment-content {
  padding: 25px;
}

.equipment-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.equipment-specs {
  margin-bottom: 20px;
  color: #666;
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
  background-color: var(--primary);
  color: white;
}

.gallery .section-title {
  color: white;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: white;
  font-size: 30px;
}

.gallery-link {
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Gallery Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

#modal-image {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#modal-caption {
  margin: 15px 0;
  color: white;
  font-size: 18px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--accent);
  text-decoration: none;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: var(--accent);
}

/* News Section */
.news {
  padding: 80px 0;
}

.news-list {
  margin-top: 50px;
  border-top: 1px solid #ddd;
}

.news-item {
  border-bottom: 1px solid #ddd;
}

.news-item:first-child {
  border-top: 1px solid #ddd;
}

.news-item-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.3s;
}

.news-item-link:hover {
  background-color: #f9f9f9;
}

.news-date {
  min-width: 120px;
  font-weight: 500;
  color: #666;
}

.news-title {
  flex-grow: 1;
}

.news-arrow {
  color: var(--secondary);
  margin-left: 20px;
  transition: color 0.3s, transform 0.3s;
}

.news-item-link:hover .news-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* 古いスタイルの互換性維持 */
.news-link {
  display: none; /* 古いリンクを非表示 */
}

/* ニュース一覧へのリンク */
.news-more-link {
  text-align: center;
  margin-top: 30px;
}

.news-more-link .btn-more {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
}

.news-more-link .btn-more:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 会社案内セクション */
.company {
  padding: 80px 0;
  background-color: var(--light);
}

.company .section-title {
  margin-bottom: 40px;
}

.company-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.company-details {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  min-width: 120px;
  font-weight: 500;
  color: var(--primary);
}

.info-value {
  flex-grow: 1;
}

.company-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 100%;
}

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

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

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

.cta-btn {
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.primary-btn {
  background-color: white;
  color: var(--primary);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.secondary-btn {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.secondary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ======================================
 * 5. 下層ページ用コンポーネント
 * ====================================== */
/* 会社案内/設備案内のCTAセクション */
.dual-cta {
  padding: 80px 0;
  background-color: var(--light);
}

.dual-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cta-block {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  height: 400px;
}

.cta-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cta-block:hover .cta-image img {
  transform: scale(1.05);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  transition: all 0.3s ease;
}

.cta-block:hover .cta-overlay {
  background: linear-gradient(to bottom, rgba(10, 50, 119, 0.5), rgba(10, 50, 119, 0.8));
}

.cta-overlay h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-overlay p {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.cta-btn:hover {
  background-color: white;
  color: var(--accent);
}

.cta-btn:hover i {
  transform: translateX(5px);
}

/* 加工事例一覧へのリンク */
.examples-more-link {
  text-align: center;
  margin-top: 40px;
}

.examples-more-link .btn-more {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
}

.examples-more-link .btn-more:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 業務案内のショーケース */
.service-showcase {
  display: flex;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-top: 40px;
}

.service-showcase-image {
  flex: 1;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.service-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.service-showcase:hover .service-showcase-image img {
  transform: scale(1.05);
}

.service-showcase-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.showcase-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent);
}

.showcase-description {
  color: #555;
  line-height: 1.8;
}

.showcase-description p {
  margin-bottom: 20px;
}

.service-feature-list {
  list-style: none;
  margin: 25px 0;
  padding: 0;
}

.service-feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333;
}

.service-feature-list i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 16px;
}

.service-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: var(--primary);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid var(--primary);
  transition: all 0.3s;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #f5f7fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  color: var(--secondary);
}

/* ======================================
 * 6. フッターとアクション
 * ====================================== */
/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 60px 0 30px;
}

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

/* フッター情報部分を少し広めに */
.footer-info {
  grid-column: span 1;
}

/* ロゴとその下の説明文の幅を調整 */
.footer-desc {
  max-width: 90%;
}

/* フッターロゴ */
.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
  text-decoration: none;
}

.footer-logo-img {
  max-width: 200px;
  height: auto;
  vertical-align: middle;
}

.footer-desc {
  margin-bottom: 20px;
  color: #aaa;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--accent);
}

.footer-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li {
  color: #aaa;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  padding-bottom: 50px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* Bottom Action Buttons */
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  display: flex;
  z-index: 100;
}

.bottom-action {
  flex: 1;
  text-align: center;
  color: white;
  padding: 15px;
  font-size: 14px;
  border-right: 1px solid #444;
  transition: background-color 0.3s;
}

.bottom-action:last-child {
  border-right: none;
}

.bottom-action:hover {
  background-color: var(--secondary);
}

.bottom-action i {
  font-size: 20px;
  margin-right: 8px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-5px);
}

/* ======================================
 * 7. レスポンシブスタイル
 * ====================================== */
/* 大画面 */
@media screen and (min-width: 1200px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* デスクトップ表示時の比率を指定 */
  }
  
  .company-info {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .company-details {
    margin-bottom: 0;
  }
}

/* 中画面 */
@media screen and (max-width: 1100px) {
  .phone-label {
    display: none;
  }
  
  .nav-links a {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .contact-btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .main-nav {
    margin-right: 10px;
  }
  
  .nav-links li {
    margin: 0 5px;
  }
}

/* タブレット */
@media screen and (max-width: 992px) {
  html {
    scroll-padding-top: var(--header-height-mobile);
  }

  /* デスクトップメニューを非表示 */
  .main-nav {
    display: none;
  }
  
  /* 右側のヘッダー要素を調整 */
  .header-right {
    justify-content: flex-end;
  }
  
  /* ハンバーガーメニューを表示 */
  .hamburger {
    display: block;
    margin-left: 15px;
  }
  
  /* お問い合わせボタンのスタイル調整 */
  .contact-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .contact-btn span {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .service-showcase {
    flex-direction: column;
  }
  
  .service-showcase-image {
    height: 300px;
  }
  
  .service-showcase-content {
    padding: 30px;
  }
  
  .dual-cta-grid {
    grid-template-columns: 1fr;
  }
}

/* スマホ（中） */
@media screen and (max-width: 768px) {
  .logo img {
    height: 40px;
  }
  
  .header-top {
    padding: 10px 0;
  }
  
  /* 電話番号部分を非表示にしてロゴとの重なりを防ぐ */
  .header-contact-phone {
    display: none;
  }
  
  /* モバイルナビの閉じるボタンをスマホサイズでさらに大きく */
  .mobile-nav-header {
    top: 10px;
    right: 10px;
  }
  
  .mobile-nav-close {
    width: 64px;
    height: 64px;
    font-size: 32px;
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-nav-close:hover,
  .mobile-nav-close:active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  
  .hamburger {
    padding: 8px;
    width: 40px;
    height: 40px;
  }
  
  .hero {
    height: 500px;
  }
  
  .hero-content {
    background: transparent;
  }
  
  .hero-title {
    font-size: 30px;
    top: 10px;
    left: 10px;
    max-width: 70%;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-action {
    bottom: 30px;
  }
  
  .section-title {
    font-size: 30px;
  }
  
  .cta-title {
    font-size: 30px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-block {
    height: 300px;
  }
  
  .cta-overlay h3 {
    font-size: 24px;
  }
  
  .cta-overlay p {
    font-size: 14px;
  }
  
  .bottom-actions {
    flex-direction: column;
  }
  
  .bottom-action {
    border-right: none;
    border-bottom: 1px solid #444;
  }
  
  .bottom-action:last-child {
    border-bottom: none;
  }
  
  .back-to-top {
    bottom: auto;
    top: 100%;
  }
  
  .footer-logo-img {
    max-width: 150px; /* モバイル表示時のサイズ調整 */
  }
  
  .breadcrumb {
    padding: 10px 0;
    font-size: 12px;
  }
  
  .breadcrumb li {
    padding: 0 12px 0 0;
    margin-right: 5px;
  }
}

/* スマホ（小） */
@media screen and (max-width: 576px) {
  .hero {
    height: 400px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-action {
    padding: 10px 25px;
    font-size: 16px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .service-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* メディアクエリのwill-change最適化 */
.header-inner,
.nav-wrapper,
.hamburger span,
.mobile-nav {
  will-change: transform, opacity;
}