/* 共通設定 */
*,
*::before,
*::after {
  box-sizing: border-box; /* はみ出し防止 */
}

html, body {
  overflow-x: hidden; /* 横スクロール防止 */
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
  background: #fff;
}

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

/* ヘッダー */
.site-header {
  position: fixed;      /* 固定表示 */
  top: 0;
  left: 0;
  right: 0;             /* ← width:100%の代わりにright:0で固定 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  color: #fff;
  padding: 10px 20px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.site-logo {
  margin: 0;
}

.site-logo img,
.logo img {
  display: block;
  width: 140px;
  height: auto;
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
}

/* ハンバーガーボタン */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: white;
}

/* メインセクション */
main {
  padding-top: 70px; /* ヘッダー分の余白 */
}

.hero {
  text-align: center;
  padding: 40px 20px;
  background: #eee;
}

.hero h1 {
  font-size: 2em; /* PC用 */
  line-height: 1.4;
}
.hero h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  line-height: 1.8;
}

/* お知らせセクション */
.news {
  margin-top: 40px;
  padding: 30px 20px;
  background: #f9f9f9;
  border-top: 2px solid #ccc;
}

.news h2 {
  font-size: 1.4em;
  margin-top: 0;
  color: #333;
}

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

.news li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

/* WordPress投稿 */
.latest-post {
  margin-top: 20px;
  padding: 15px;
  background: #f3f3f3;
  border-left: 5px solid #0073aa;
}

.latest-post h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.latest-post p {
  font-size: 0.9em;
  color: #666;
}

.latest-post .read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0073aa;
  text-decoration: underline;
  font-weight: bold;
}

.latest-post-content {
  margin-top: 10px;
  line-height: 1.8;
  font-size: 0.95em;
}

/* タイトル */
.news-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

/* 本文 */
.news-body {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555;
  font-weight: normal;
}

/* 本文の強調 */
.news-body strong {
  font-weight: bold;
}

.news .latest-post-content a,
.news .latest-post-content a:visited {
  color: #0073aa !important;
  text-decoration: underline !important;
}

.news .latest-post-content a:hover,
.news .latest-post-content a:focus {
  color: #005177 !important;
  text-decoration: none !important;
}


/* フッター */
.site-footer {
  background: #222;
  color: #ddd;
  padding: 40px 20px 20px;
  font-size: 0.95em;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #fff;
}

.footer-left p {
  line-height: 1.8;
  margin: 0;
  font-size: 0.95em;
}

.footer-left strong {
  font-weight: bold;
  color: #fff;
}

.footer-left a,
.footer-left a:visited {
  color: #ccc;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-tel {
  color: #00ccff;
  font-size: 1.1em;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

.footer-right {
  flex: 1;
  min-width: 200px;
  text-align: right;
}

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

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

.footer-menu a {
  color: #ddd;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-logo-wrapper {
  text-align: center;
  margin: 20px 0 10px;
}

.footer-logo {
  width: 240px;
  height: auto;
  display: inline-block;
}

.copyright {
  text-align: center;
  font-size: 0.8em;
  color: #777;
  margin-top: 30px;
}

.footer-sns {
  display: flex;
  justify-content: center; /* 中央寄せ */
  gap: 60px;
  margin: 60px 0;
}

.footer-sns img {
  width: 40px;
  height: 40px;
  display: block;
}

.footer-sns a:hover img {
  transform: scale(1.1); /* ホバー時に拡大 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}
.footer-sns a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;   /* 円のサイズ */
  height: 60px;
  background: #fff; /* 白ベース */
  border-radius: 50%; /* 丸くする */
}

/* 会社概要ページ */
.company {
  padding: 40px 280px;
  background: #f9f9f9;
}

.company h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.company-info p {
  font-size: 1em;
  line-height: 1.8;
  margin: 0;
}

.company-info strong {
  font-weight: bold;
  color: #333;
}

.company-info a {
  color: #0073aa;
  text-decoration: none;
}

.company-info a:hover {
  text-decoration: underline;
}

/* WORKページ装飾 */
.company .main-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
}

.company-info h3 {
  font-size: 1.3em;
  color: #222;
  margin-top: 30px;
  padding-left: 10px;
  border-left: 5px solid #0073aa;
}

.company-info ul {
  margin: 10px 0 20px 20px;
  padding-left: 0;
  list-style: disc;
  font-size: 0.95em;
  color: #555;
}

.company-info ul li {
  margin-bottom: 5px;
}

.price {
  color: #d9534f;
  font-weight: bold;
}

/* アクセスページ */
.access {
  padding: 40px 20px;
  background: #f9f9f9;
}

.access h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.map-container {
  margin-bottom: 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.company-info {
  font-size: 1em;
  line-height: 1.8;
}

.company-info p {
  margin: 0;
}

.company-info strong {
  font-weight: bold;
  color: #333;
}

.company-info a:hover {
  text-decoration: underline;
}

/* 価格表セクション */
.price-table {
  margin-top: 40px;
  padding: 30px 20px;
  background: #fdfdfd;
  border-top: 2px solid #ccc;
}

.price-table h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #333;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.price-table th,
.price-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.price-table th {
  background: #f0f0f0;
  color: #333;
}

.price-table tr:nth-child(even) {
  background: #f9f9f9;
}

.wp-fixed-content {
  margin-top: 20px;
  font-size: 0.95em;
  line-height: 1.8;
}



/* お問い合わせページ */
.contact .table th {
  width: 120px;
  white-space: nowrap;
  padding: 8px;
}

.contact {
  padding: 40px 20px;
}

.contact h1 {
  font-size: 1.6em;
  margin-bottom: 15px;
  text-align: center;
}

.contact p {
  font-size: 1em;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* メールフォーム専用はみ出し防止 */
.contact-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

.contact-wrapper iframe {
  max-width: 100%;
  width: 100%;
  height: 1000px; /* 必要に応じて調整 */
  display: block;
  border: none;
}

/* ================================
   テーブル：共通（PCは横いっぱい／スマホは横スクロール）
   シックなグレー系デザイン
   ================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  position: relative; /* ← フェードを重ねるため */
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;          /* スマホでも表崩れ防止（横スクロール前提） */
  font-size: 14px;
}

/* 共通セル（横スクロール前提なので折り返さない） */
.table-responsive th,
.table-responsive td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  white-space: nowrap;        /* 折り返さず横スクロール */
}

/* ヘッダー（濃いグレー × 白文字） */
.table-responsive th {
  background: #444;
  color: #fff;
  font-weight: bold;
}

/* 偶数行ストライプ */
.table-responsive tbody tr:nth-child(even) td {
  background: #f5f5f5;
}

/* 左端の列（見出し的に強調） */
.table-responsive td:first-child {
  font-weight: bold;
  background: #fafafa;
  text-align: left;
}

/* ================================
   2列表など横スクロール不要の表：.narrow を付与
   ================================ */
.table-responsive.narrow table {
  min-width: auto;           /* 強制横幅を解除 */
  table-layout: fixed;       /* 列幅を均等計算（比率指定と相性良い） */
}

.table-responsive.narrow td,
.table-responsive.narrow th {
  white-space: normal;       /* 折り返しOK */
  word-break: break-word;    /* 長い単語も折る */
}

/* 列比率（2列想定） */
.table-responsive.narrow td:first-child,
.table-responsive.narrow th:first-child {
  width: 70%;
  text-align: left;
}

.table-responsive.narrow td:last-child,
.table-responsive.narrow th:last-child {
  width: 30%;
  text-align: right;         /* 金額などを右寄せ */
}

/* （任意）スマホで少し詰めたい場合 */
@media (max-width: 768px) {
  .table-responsive table { font-size: 13px; }
  .table-responsive th,
  .table-responsive td { padding: 8px; }
}

/* ================================
   スコープ版：このクラスだけに適用
   - 全体幅・1列目/2列目幅を CSS 変数で指定
   - 2列目の左右寄せも CSS 変数で切替（left / right）
   ================================ */
.table-responsive--scoped {
  --table-width: 100%;   /* テーブル全体の幅 */
  --col1-width: 70%;     /* 1列目の幅 */
  --col2-width: 30%;     /* 2列目の幅 */
  --col2-align: right;   /* 2列目の寄せ（left / right）*/

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  text-align: left; /* 左寄せ配置 */
}

.table-responsive--scoped table {
  width: var(--table-width);
  border-collapse: collapse;
  font-size: 14px;
  margin: 0; /* 左寄せ */
}

/* セル共通（このスコープだけ） */
.table-responsive--scoped th,
.table-responsive--scoped td {
  border: 1px solid #ccc;
  padding: 10px;
  white-space: nowrap; /* PCは横スクロール優先 */
}

/* ヘッダー */
.table-responsive--scoped th {
  background: #444;   /* 濃いグレー */
  color: #fff;
  font-weight: bold;
  text-align: center;
}
.table-responsive--scoped th[colspan="2"] {
  background: #444444;  /* 濃いグレー背景 */
  color: #fff;          /* 白文字 */
  text-align: center;   /* センター寄せ */
  font-weight: bold;
}

/* 偶数行ストライプ */
.table-responsive--scoped tbody tr:nth-child(even) td {
  background: #f5f5f5; /* 薄いグレー */
}

/* 1列目（見出し側） */
.table-responsive--scoped td:first-child,
.table-responsive--scoped th:first-child {
  width: var(--col1-width);
  text-align: left;
/* background: #fafafa; /* やや強調 */
  font-weight: bold;
}

/* 2列目（可変寄せ） */
.table-responsive--scoped td:last-child,
.table-responsive--scoped th:last-child {
  width: var(--col2-width);
  text-align: var(--col2-align); /* ← ここで left/right を変数で制御 */
}

/* スマホ：折り返しOKで見やすく */
@media (max-width: 768px) {
  .table-responsive--scoped th,
  .table-responsive--scoped td {
    white-space: normal;
    word-break: break-word;
    padding: 8px;
  }
  .table-responsive--scoped table {
    width: 100%;   /* スマホは全幅でOK */
    font-size: 13px;
  }
}





/* =========================================
   スクロールヒント（疑似要素→オーバーレイ要素へ刷新）
   ========================================= */

.table-hint {
  position: absolute;
  top: 50%;                /* 上下中央 */
  right: 50%;              /* 横中央寄せ */
  transform: translate(50%, -50%); /* 完全中央に配置 */
  
  font-size: 20px;         /* 文字を大きく */
  font-weight: bold;
  color: #fff;
  background: rgba(51,51,51,.8);
  padding: 12px 20px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 3;
  
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.table-responsive.show-hint .table-hint {
  opacity: 1;
  transform: translate(50%, -50%) scale(1.05); /* 少し拡大して目立たせる */
}

@media (max-width: 768px) {
  .table-fade { width: 22px; }
  .table-hint {
    font-size: 18px;
    padding: 10px 16px;
  }
}





/* レスポンシブ対応 */
@media (max-width: 768px) {
    
.company {
  padding: 40px 20px;

}
  .hero h1 {
    font-size: 1.2em; 
    line-height: 1.5; 
  }

  .hero p {
    font-size: 0.95em;
    line-height: 1.6;
  }
  .hero br {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #333;
    width: 200px;
    padding: 10px 0;
    border-radius: 0 0 0 8px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-end;
    padding: 0 20px;
  }

  .site-nav li {
    margin: 10px 0;
  }

  .site-nav.show {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    text-align: left;
  }

  .footer-right {
    text-align: left;
    margin-top: 20px;
  }
/* お問い合わせページ */

      .contact {
    padding: 0 !important;
    margin: 0 !important;
  }
}
