/* フォント設定 */
body {
  font-family: 'メイリオ', 'Noto Sans JP';
  line-height: 1.7;
  font-size: 17px;
  color: #222;
  background: #fafafa;
  margin: 0;
  padding: 0;
}

/* コンテンツ幅と余白 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 見出し */
h1:not(.article_page h1) {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-left: 0.8rem;
  border-left: 6px solid #2b7a78; /* アクセントカラー */
  color: #222;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 6px solid #2b7a78; /* アクセントカラー */
  color: #222;
}

/* リスト */
ul:not(.nav-list) {
  list-style: none;
  padding: 0;
}
ul:not(.nav-list) li {
  background: #f9fafb;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 6px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
}
ul:not(.nav-list) li::before {
  content: "✔";
  color: #4caf50;
  margin-right: 0.5rem;
}

/* 全体設定 */
@media (max-width: 600px) {
  .tax-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
}

html {
    font-family: yu-gothic-pr6n, sans-serif;
    font-style: normal;
    font-weight: 400;}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0%;
}

#flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

/* ページ全体の余白をリセット */
body {
  margin: 0;
}

/* フッター */
footer {
  background: #52796F; /* ヘッダーと同じ色 */
  color: #fff;         /* 白文字 */
  text-align: right;  /* 右寄せ */
  box-shadow: 0 -2px 6px rgba(0,0,0,0.08); /* 上に影を追加 */
  max-width: auto; /* 幅を自動調整 */  
}
footer p {
  margin: 0; /* 上下の余白を削除 */
  padding: 10px 20px; /* パディングを追加 */
  font-size: 14px; /* フォントサイズ調整 */
  line-height: 1.5; /* 行間を少し広げる */
  color: #fff; /* 白文字 */
}

/* ヘッダー */
header {
  background: #52796F; /* 濃い緑色 */
  width: 100%;
  margin: 0;       /* 上余白なし */
  padding: 0;      /* 余計なパディング削除 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* 下に影を追加 */
}

/* 中身は中央寄せ＆最大幅制限 */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ロゴ */
.logo {
  font-family: 'Montserrat', 'Arial Black', 'Meiryo', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #fff;
  margin: 0; /* 左端に寄せる */
  margin-right: 400px; /* ロゴとメニューの間隔 */
}

/* ヘッダーナビ（枠） */
.header-nav {
  display: flex;
  align-items: center;
}

/* ヘッダーナビ（項目） */
.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list_item a {
  font-family: 'メイリオ', 'Noto Sans JP', sans-serif;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

/* 下線アニメーション */
.nav-list_item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-list_item a:hover {
  color: #ffe082;
}

.nav-list_item a:hover::after {
  width: 100%;
}

/* ハンバーガーボタン */
.header-nav-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50px;/* 32px→50pxに調整 */
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 25px;   /* ヘッダー内の上余白 */
  right: 15px; /* ヘッダー右端 */
  z-index: 1000; /* メニューより前に表示 */
}

/* ハンバーガーの線 */
.header-nav-btn .bar {
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center center; /* 中心を基準に変形 */
}

/* ハンバーガー → × に変化 */
.header-nav-btn.open .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.header-nav-btn.open .bar:nth-child(2) {
  opacity: 0;
}
.header-nav-btn.open .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* スマホ用メニュー（非表示→表示） */
@media (max-width: 767px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.9);
    padding: 15px;
    border-radius: 8px;
  }
  .nav-list.open {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
}

/* PCではハンバーガー非表示・メニュー横並び */
@media (min-width: 768px) {
  .header-nav-btn {
    display: none;
  }
  .nav-list {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 25px;
    background: transparent;
  }
}

/*パンくずリスト*/
.breadcrumb {
  margin: 0;
  padding: 0.6em 1em;
  list-style: none;
  background: #e9edf5;
  overflow: hidden;
}

.breadcrumb li {
  display: inline;/*横に並ぶように*/
  list-style: none;
}

.breadcrumb li:after {
  /* >を表示*/
  font-family: FontAwesome;
  content: '\f101';
  padding: 0 0.2em;
  color: #8186a0;
}

.breadcrumb li:last-child:after {
  content: '';
}

.breadcrumb li a {
  text-decoration: none;
  color: #273376;
}

.breadcrumb li:first-child a:before {/*家アイコンに*/
  font-family: FontAwesome;
  content: '\f015';
  font-weight: normal;
  font-size: 1.1em;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}


/* メイン */
main{
    padding: 10px 20px;
    margin-top: -10px auto 0;
    max-width:1120px;
    width: 100%;
}

/* フォント、高さ、ボタン */
input, select, button {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.5;
}

/*各ページタイトル*/
.title h1, .form-wrapper h1,
.title h2, .form-wrapper h2{
    display: flex;
    flex-wrap: wrap;
    color: #323a45;
    font-size: 1.6rem;
    align-items: baseline;
    margin-bottom: 0rem;
    margin-top: 1%;
}

.title p,
.form-wrapper p {
  display: block;
  color: #000000;
  margin-top: 0.5%;
  margin-left: 10px;
  margin-right: 10px;
}

.red-title h3 {
    color: #e31c3d;
    margin-bottom: 0.5rem;
}

/* シミュレーター */
/* タブ */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
  }
  
  .tab {
    padding: 0.5rem 4rem;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #f2f2f2;
    margin-right: 3px;
    border-radius: 5px 5px 0 0;
  }

  .tab:hover {
    font-weight: bold;
    background-color: #fff;
  }
  .tab:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fdf08f;
  }
  
  .tab.active {
    background-color: #fff;
    font-weight: bold;
    border-bottom: 3px solid #2e2e2e; /* 少し太め＆アクセントカラー */
  }
  
  .tab-content {
    display: none;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 0 5px 5px 5px;
    background-color: #fff;
  }
  
  .tab-content.active {
    display: block;
  }

/* 情報入力 */
#building{
    flex-wrap: wrap;
    font-size: 1rem;
    line-height: 1rem;
}

#land{
    flex-wrap: wrap;
    font-size: 1rem;
    line-height: 1rem;
}

/* selectの共通スタイル */
#building select,
#land select {
  width: 200px;
  height: 40px;
  font-size: 16px;
  padding: 5px 35px 5px 10px; /* 右に余白を作る（矢印用） */
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* カスタム矢印を右側に配置 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><polygon points='0,0 10,0 5,7' fill='%23333'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

/* inputのデザイン */
#building input[type="number"],
#land input[type="number"] {
  width: 200px;
  height: 30px;
  font-size: 16px;
  padding: 5px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
}

/* ラベル */
label {
  display: inline-block;
  margin-bottom: 0%;
}

/* ボタン */
.btn,
a.btn,
button.btn {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 0.25;
  position: relative;
  display: inline-block;
  padding: 1rem 3rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.1s;
  transition: all 0.1s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.15em;
  color: #666;
  border-radius: 0.5rem;
}

/*計算ボタンのスタイル*/
button.calculate-btn {
    border: 0.5px solid #0064a6;
    border-radius: 5;
    background: #0071bc;
    color: #fff;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  }
  
button.calculate-btn:hover {
    color: #fff;
    background: #0082d8;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    transform: scale(1.01);
  }

/*リセットボタンのスタイル*/
button.reset-btn {
  border: 0.5px solid #ffffff;
  background: #575757;
  color: #fff;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

button.reset-btn:hover {
  background: #a1a1a1;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  transform: scale(1.01);
}


/* 税率設定 */
.tax-settings span{
    display: flex;
    flex-wrap: wrap;
    color: #666;
    align-items: baseline;
    margin-bottom: -5%;
    margin-top: 2%;
    margin-left: 2%;
}

.tax-settings h6{
    color: #666;
    margin-bottom: -10%;
    font-size: 0.8rem;
    align-items: center;
}

.tax-settings label{
    display: flex;
    flex-wrap: wrap;
    color: #666;
    align-items: baseline;
    margin-bottom: -3%;
    margin-top: 2%;
    margin-left: 3%;
}
.tax-settings label input{
    color: #666;
    font-size: 0.8rem;
    align-items: center;
    margin-top: 2%;
    margin-left: 3%;
    margin-bottom: 0%;
    width: 80px;
}

/* 結果 */
.tax-result{
    color: #666;
    text-align: center;
}
#result h5{
    flex-wrap: wrap;
    margin-bottom: 0;
    font-family: yu-gothic-pr6n, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    font-size: small;

}

h3 {
  margin-top: 15px;
  font-size: 1.5em;
}

.result-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.result-section h5 {
  margin-top: 20px;
  font-weight: bold;
}

.result-section p {
  margin: 8px 0;
  line-height: 1.6;
}

.tax_highlight {
  font-weight: bold;
  color: #d35400;
  background-color: #fff3e0;
  padding: 0 4px;
  border-radius: 4px;
}


body { font-family: sans-serif; padding: 20px; }
fieldset { margin-top: 20px; padding: 10px; border: 1px solid #ccc; }
label { display: block; margin-bottom: 10px; }

/* スマホ専用スタイル */
@media (max-width: 600px) {

  /* コンテナの幅を調整 */
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
  }

  /* ヘッダーのロゴサイズ調整 */
  .logo {
    font-size: 22px;
  }
  .logo img {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    margin-left: 2px;
  }

  /* メニューを縦並びに */
  .header-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header-menu li {
    margin-left: 0;
    margin-bottom: 8px;
  }

  /* メインの余白調整 */
  main {
    padding: 10px 0;
    margin-top: 0;
    margin-right: 0;
  }

  /* 画像を画面幅いっぱいに 
  .asset_inner img {
    width: 100%;
    max-width: 100%;
    margin-left: -3%;
    margin-bottom: 10px;
    margin-top: -8%;
  }*/

  /* タブを横スクロール可能に */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    box-sizing: border-box; /* 追加 */
    padding-right: 2px;     /* 右端の余白を少し追加 */
  }
  .tab {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    min-width: 80px;
    margin-right: 2px;
  }

  /* 入力フォームの幅・余白調整 */
  #building select,
  #land select,
  #building input[type="number"],
  #land input[type="number"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-size: 1rem;
  }

  /* ボタンを大きく・縦並びに */
  .btn,
  a.btn,
  button.btn {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .calculate-btn,
  .reset-btn {
    gap: 0;
    flex: unset;
    margin-bottom: 10px;
  }

  /* 税率設定を縦並びに */
  .tax-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .tax-settings span{
    margin-left: 0;
    margin-top: 0;
    margin-bottom: -5%;
    font-size: 0.95rem;
}
  
  .tax-settings label {
    margin-left: 0;
    margin-top: -2%;
    margin-bottom: 0;
    font-size: 0.95rem;
  }
  
  .tax-settings label input {
    width: 100px;
    font-size: 0.95rem;
    margin-left: 8px;
  }

  /* 結果表示ボックスの余白調整 */
  .result-section,
  .result-box {
    padding: 12px;
    margin-top: 10px;
    font-size: 1rem;
  }
  .result-section h5,
  .result-box p {
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  /* フォントサイズ全体調整 */
  html, body {
    font-size: 16px;
  }
}

/* 記事ページ */
/* 強調テキスト */
.highlight {
  background: #e8f5e9;
  padding: 1rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border-left: 4px solid #4caf50;
}

/* テーブル */
.table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.table th, .table td {
  border: 1px solid #ddd;
  padding: 0.9rem;
  text-align: left;
}
.table th {
  background: #f5f5f5;
  font-weight: bold;
}
.table tr:nth-child(even) {
  background: #fafafa;
}

/* セクション余白 */
.section {
  margin-bottom: 3rem;
}

/* 引用・補足 */
.note {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}




/* ========== 基本設定 ========== */
:root{
  --bg: #ffffff;            /* 白背景 */
  --panel: #ffffff;         /* カードも白ベース */
  --text: #222;          /* メインテキスト */
  --muted: #333;         /* サブテキスト */
  --brand: #0078d7;         /* アクセントカラー（ブルー系に変更） */
  --ok: #2ecc71;
  --warn: #ffad33;

  --radius: 14px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;

  --shadow: 0 4px 12px rgba(0,0,0,.08); /* 明るいシャドウ */
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; height: auto; display: block; border-radius: calc(var(--radius) - 4px); }
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{ width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

/* スキップリンク（アクセシビリティ） */
.skiplink{
  position: absolute; left: -999px; top: -999px; background: #000; color: #fff;
  padding: 8px 12px; border-radius: 6px;
}
.skiplink:focus{ left: 12px; top: 12px; }

/* ========== ヒーロー ========== */
.hero{
  display: grid; gap: var(--space-4);
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  padding: clamp(20px, 4vw, 36px) 0;
}
.hero__title{
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.35; margin: 0 0 var(--space-2);
}
.hero__lead{ margin: 0 0 var(--space-3); color: var(--muted); }
.hero__thumb{ border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.keychips{
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.keychips li{
  padding: 6px 10px; border-radius: 999px; border: 1px solid #ddd;
  background: #f7f9fb; font-size: .9rem;
}

/* ========== セクション共通 ========== */
.section{ padding: clamp(16px, 2.8vw, 28px) 0; }
.section-title{
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin: 0 0 var(--space-3);
}

.card{
  background: var(--panel);
  border: 1px solid #e6e6e6;
  border-radius: var(--radius);
  padding: clamp(14px, 2.2vw, 22px);
  box-shadow: var(--shadow);
}

.grid{ display: grid; gap: var(--space-4); }
.grid--2{ grid-template-columns: 1fr 1fr; }
@media (max-width: 840px){
  .hero{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
}

/* 情報ディスクリプション */
.dl{ display: grid; gap: 10px; margin: 0; }
.dl div{
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  padding: 10px 12px; border-radius: 10px;
  background: #f9fafb; border: 1px dashed #ddd;
}
.dl dt{ color: var(--muted); font-weight: 600; }
.dl dd{ margin: 0; }

/* 注記・ヒント */
.note, .tip{
  border-left: 4px solid var(--brand);
  background: #f0f8ff;
}
.note__title, .tip__title{ margin: 0 0 4px; font-weight: 700; }

/* 箇条書き */
.bullets{ margin: 0; padding-left: 1.2em; }
.bullets li+li{ margin-top: 6px; }

/* チェックリスト */
.checklist{
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.checklist li{
  position: relative; padding: 10px 12px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 10px; background: #fafafa;
}
.checklist li::before{
  content: "✔"; position: absolute; left: 12px; top: 10px; font-weight: 700; color: var(--ok);
}

/* テーブル */
.table{
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid #ddd;
  border-radius: 12px; overflow: hidden;
  display: block; overflow-x: auto;
}
.table th, .table td{ padding: 12px 14px; border-bottom: 1px solid #eee; }
.table thead th{
  position: sticky; top: 0; background: #f9fafb; z-index: 1;
  text-align: left;
}
.table tbody tr:last-child td, .table tbody tr:last-child th{ border-bottom: none; }
.caption{ color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* 特集ブロック */
.feature{
  background: #f9fafb;
  border: 1px solid #e6e6e6;
  border-radius: var(--radius);
  padding: var(--space-4);
}
.feature__heading{ margin: 0 0 8px; font-size: 1.1rem; }
.feature__body{ margin: 0; color: var(--text); }

/* CTA */
.cta{ text-align: center; }
.cta__actions{ display: flex; gap: 10px; justify-content: center; margin-top: var(--space-3); }
.btn{
  display: inline-block; padding: 12px 18px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700;
  border: 1px solid transparent;
}
.btn:hover{ opacity: .9; text-decoration: none; }
.btn--ghost{
  background: transparent; border-color: #ccc; color: var(--text);
}

/* FAQ */
.faq{
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px; margin-bottom: 10px;
}
.faq summary{ cursor: pointer; font-weight: 600; }
.faq[open]{ border-color: #bbb; }

/* フッター */
.site-footer{
  margin-top: var(--space-5);
  border-top: 1px solid #e6e6e6;
  background: #f9f9f9;
}
.footer__inner{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 0;
}
.footer-nav{ display: flex; gap: 16px; }
.footer-nav a{ color: var(--muted); }

/* 印刷用 */
@media print{
  .site-header, .site-footer, .cta__actions, .hero__thumb{ display: none !important; }
  body{ background: #fff; color: #000; }
  .card, .feature{ border: 1px solid #ccc; box-shadow: none; }
}
