﻿/* =========================================
   共通設定
========================================= */

/* 画像の暴走防止（共通） */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #1f2d2a;
  background: #ffffff;
  line-height: 1.75;
}

a { color: inherit; }

.page-content {
  padding: 40px 20px;
}

.content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 28px;
  margin-bottom: 20px;
}

/* =========================================
   ヘッダー
========================================= */
.site-header {
  background: linear-gradient(to bottom, #6fbf73, #1b5e20);
  padding: 15px 20px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-logo {
  height: 34px;
  width: auto;
  margin-right: 0;
}

.site-header h1 {
  margin: 0;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: 0.06em;
}

/* =========================================
   ナビ
========================================= */
.site-nav nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
}

.site-nav nav li {
  flex: 1;
  border-left: 1px solid rgba(255,255,255,.25);
}

.site-nav nav li:first-child {
  border-left: none;
}

.site-nav nav a {
  display: block;
  text-align: center;
  padding: 16px 10px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(to bottom, #3f8f45, #246d28);
}

.site-nav nav a:hover {
  background: linear-gradient(to bottom, #5fbf66, #2f7d32);
}

/* =========================================
   セクション共通
========================================= */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 28px 0 12px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #2f7d32;
  border-radius: 50%;
}

/* =========================================
   カード
========================================= */
.fee-card {
  background: #ffffff;
  border: 1px solid #e6f1ee;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.fee-card-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #1b5e20;
}

.small {
  font-size: 0.9em;
  color: #666;
}

/* =========================================
   ★ 料金テーブル（クラス指定版）
   ※ fee.html 側で class="fee-table" を使っている場合はこちらが効きます
========================================= */
.table-wrap {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.fee-table th,
.fee-table td {
  border: 1px solid #cfd8dc;
  padding: 6px 8px;
  vertical-align: middle;
  line-height: 1.4;
}

.fee-table thead th {
  background: #e8f5e9;
  color: #1f2d2a;
  font-weight: 700;
  text-align: center;
}

.fee-table tbody tr:nth-child(even) {
  background: #f9fdf9;
}

.fee-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.fee-note {
  margin-top: 8px;
  font-size: 0.9em;
  color: #555;
}

/* =========================================
   ★ 料金テーブル（汎用：class が付いていない table 用）
   ※ 今のスクショ状況（罫線が消える）対策：これが効きます
========================================= */
table{
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td{
  border: 1px solid #d7e6dc;   /* 罫線 */
  padding: 10px 12px;
  text-align: center;
  font-size: 15px;
}

th{
  background-color: #f3faf6;
  font-weight: 700;
}

tbody tr:nth-child(even){
  background-color: #f9fcfa;
}

/* 1列目は左寄せに（収入金額など） */
td:first-child,
th:first-child{
  text-align: left;
}

/* =========================================
   注意書きエリア
========================================= */
.fee-attention {
  background: #f3faf5;
  border-left: 5px solid #2f7d32;
  padding: 16px 18px;
  border-radius: 6px;
  line-height: 1.8;
}

/* =========================================
   旧サイトリンク
========================================= */
.legacy-site{
  margin:60px 0 20px;
  padding:30px 20px;
  background:#f7faf8;
  border-top:1px solid #dcebe3;
  text-align:center;
}

.legacy-site h2{
  font-size:18px;
  margin:0 0 10px;
  color:#2f7d32;
}

.legacy-link{
  display:inline-block;
  margin-top:8px;
  padding:8px 18px;
  border-radius:999px;
  background:#eef7f1;
  color:#1b5e20;
  text-decoration:none;
  font-weight:700;
  border:1px solid #cfe6df;
}

.legacy-link:hover{
  background:#e3f2ea;
}

/* =========================================
   フッター
========================================= */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #eee;
}

/* =========================================
   レスポンシブ
========================================= */
@media (max-width: 768px){
  .site-header h1{ font-size: 18px; }
  .site-nav nav a{ padding: 14px 8px; font-size: 14px; }
  th, td{ font-size: 14px; padding: 8px 10px; }
}

.ma-guideline {
  margin-top: 18px;
  font-size: 14px;
}

.ma-guideline a {
  color: #1b5e20;
  font-weight: 600;
  text-decoration: underline;
}

.ma-guideline a:hover {
  opacity: 0.8;
}