/* リセット・基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* メニューをクリックした時にスムーズにスクロールさせる設定 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* 固定ヘッダー分の余白調整 */
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

/* ----------------------------------
   ヘッダー全体の固定設定
---------------------------------- */
.header-fix {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ロゴ ＋ ボタンの並び（上段） */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 15px;
}

/* ----------------------------------
   ロゴ部分（マーク画像 ＋ 1つの屋号テキスト）
---------------------------------- */
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px; /* マークとテキストの間隔 */
  text-decoration: none;
  flex-shrink: 0; /* ロゴの潰れ防止 */
}

/* 丸型マーク画像（rogotoka_2.png） */
.logo-mark {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* 屋号テキスト全般（便利屋 ゴリちゃん） */
.logo-main {
  font-size: 24px;
  color: #ff8c00;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  /* くっきり白フチ */
  text-shadow:
    -2px -2px 0 #ffffff,
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff,
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
  /* ほんのり柔らかい立体影 */
  filter: drop-shadow(2px 2px 2px rgba(180, 50, 0, 0.25));
}

/* ----------------------------------
   お問い合わせグループ（PC時）
---------------------------------- */
.header-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* LINEボタン */
.btn-line {
  background-color: #06c755;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-line:hover {
  opacity: 0.9;
}

/* 電話番号エリア */
.btn-tel-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  white-space: nowrap;
}

.tel-num {
  font-size: 19px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap; /* 電話番号の改行を絶対防止 */
}

.tel-sub {
  font-size: 10px;
  font-weight: bold;
  color: #e65100;
  margin-top: 2px;
  white-space: nowrap;
}

/* ----------------------------------
   メニューバー（下段）
---------------------------------- */
.header-nav {
  background-color: #ff8c00;
}
.header-nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
}
.header-nav a {
  display: block;
  padding: 8px 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

/* ----------------------------------
   メインコンテンツエリア
---------------------------------- */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

/* メインビジュアル */
.hero {
  position: relative;
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1,
.hero p {
  display: none;
}

/* 各コンテンツセクション枠 */
.content-section {
  background-color: #fff;
  padding: 25px 15px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.content-section h2 {
  color: #ff8c00;
  border-bottom: 2px solid #ff8c00;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 18px;
}

/* ----------------------------------
   サービスカード
---------------------------------- */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.service-card {
  background-color: #ffffff;
  border: 2px solid #ff8c00;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.card-header {
  background-color: #ff8c00;
  color: #ffffff;
  padding: 8px 10px;
  text-align: center;
}
.card-header h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.card-img-box {
  width: 100%;
  height: 120px;
  background-size: 200% 200%;
  background-repeat: no-repeat;
  border-bottom: 1px solid #eee;
}

.lawn-img {
  background-image: url('services-sprite.jpg');
  background-position: 0% 0%;
}
.beehive-img {
  background-image: url('services-sprite.jpg');
  background-position: 100% 0%;
}
.shopping-img {
  background-image: url('services-sprite.jpg');
  background-position: 0% 100%;
}
.moving-img {
  background-image: url('services-sprite.jpg');
  background-position: 100% 100%;
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.trouble-title {
  font-size: 11px;
  font-weight: bold;
  color: #d9534f;
  margin-bottom: 6px;
}

.trouble-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.trouble-list li {
  font-size: 11px;
  color: #444;
  line-height: 1.4;
  position: relative;
  padding-left: 12px;
  margin-bottom: 4px;
}
.trouble-list li::before {
  content: "✔";
  font-size: 10px;
  color: #ff8c00;
  position: absolute;
  left: 0;
  top: 1px;
}

.price-box {
  background-color: #fff3e0;
  border: 1px dashed #ff8c00;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.price-label {
  display: block;
  font-size: 9px;
  color: #666;
  font-weight: bold;
}

.price-value {
  font-size: 16px;
  font-weight: bold;
  color: #e65100;
}

.price-unit {
  font-size: 10px;
  font-weight: normal;
}

.other-services-box {
  margin-top: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
}

.other-services-box h4 {
  font-size: 13px;
  color: #333;
  border-left: 4px solid #ff8c00;
  padding-left: 8px;
  margin-bottom: 10px;
}

.other-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.other-item {
  background: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #eee;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.other-item strong {
  color: #ff8c00;
}

.price-note {
  font-size: 10px;
  color: #777;
  margin-top: 8px;
  text-align: right;
}

/* ----------------------------------
   よくある質問（FAQ）
---------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
}

.q-icon {
  background-color: #ff8c00;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.faq-a {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  margin: 0;
}

.a-icon {
  background-color: #e65100;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ----------------------------------
   会社概要テーブル
---------------------------------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.company-table th,
.company-table td {
  padding: 10px 8px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.company-table th {
  width: 1%;
  white-space: nowrap;
  background-color: #fff8f0;
  color: #ff8c00;
  font-weight: bold;
}

.company-table td {
  color: #444;
  line-height: 1.5;
  word-break: break-all;
}

.table-tel {
  color: #ff8c00;
  font-weight: bold;
  text-decoration: none;
}

/* ==================================
   スマホ表示用の自動最適化（画面幅768px以下）
   ※潰れ・重なりを防止する緊急修正
================================== */
@media (max-width: 768px) {
  /* ヘッダーの左右余白を詰める */
  .header-inner {
    padding: 6px 8px;
  }

  /* ロゴ画像のサイズと間隔調整 */
  .logo-mark {
    height: 36px;
  }
  .header-logo {
    gap: 4px;
  }

  /* スマホでの屋号文字サイズをぎゅっと収まるサイズへ */
  .logo-main {
    font-size: 15px;
    letter-spacing: 0;
  }

  /* お問い合わせグループの間隔調整 */
  .header-cta-group {
    gap: 6px;
  }

  /* スマホ用LINEボタン（コンパクト化） */
  .btn-line {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 14px;
  }

  /* スマホ用電話番号エリア（文字サイズ調整・改行絶対阻止） */
  .tel-num {
    font-size: 13px;
    letter-spacing: 0;
  }

  .tel-sub {
    font-size: 8px;
    margin-top: 1px;
  }

  /* サービスカードをスマホで縦1列化 */
  .service-card-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .other-services-grid {
    grid-template-columns: 1fr;
  }

  .card-img-box {
    height: 140px;
  }

  .trouble-list li {
    font-size: 12px;
  }
}