@charset "UTF-8";
/* ───────── Design Tokens ───────── */
/* ───────── Reset / Base ───────── */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #4b372e;
  line-height: 1.7;
  background: #faf9f7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

p {
  margin: 0.5em 0;
}

a {
  color: #4b372e;
  text-decoration: none;
}

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

/* ───────── Layout ───────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

@media screen and (min-width: 768px) {
  section {
    padding: 48px 0;
  }
}
/* ───────── Typography ───────── */
body {
  font-size: 16px;
}
@media screen and (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

h1 {
  font-size: 24px;
}
@media screen and (min-width: 768px) {
  h1 {
    font-size: 32px;
  }
}

h2 {
  font-size: 20px;
  position: relative;
  margin: 2rem 0 1.5rem;
  padding: 0.6em 1.2em;
  background: rgba(255, 180, 0, 0.15);
  color: #4b372e;
  /* 茶色のステッチ風ボーダー */
  border-top: 2px dashed #4b372e;
  border-bottom: 2px dashed #4b372e;
}
@media screen and (min-width: 768px) {
  h2 {
    font-size: 24px;
  }
}

h3 {
  font-size: 18px;
  text-align: left;
  position: relative;
  margin: 1.5rem 0 1rem;
  padding-left: 1rem; /* 縦線ぶんの余白 */
  color: #4b372e;
}
h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #ffb400;
}
@media screen and (min-width: 768px) {
  h3::before {
    font-size: 20px;
  }
}

small {
  font-size: 12px;
  color: #757575;
}

@media screen and (min-width: 768px) {
  .pc-hidden {
    display: none;
  }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-block;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.75em 1.5em;
  border-bottom: solid 4px #4b372e;
  border-radius: 8px;
  background: #ffb400;
  color: #4b372e;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
.btn:hover {
  -webkit-transform: scale(1.04);
          transform: scale(1.04);
}
.btn.dark {
  background: #4b372e;
  color: #fff;
}
.btn.line {
  background: #56713a;
  color: #fff;
  margin-left: 8px;
}

.btn-sm {
  padding: 0.5em 1.2em;
  font-size: 14px;
}

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.site-header .header-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  height: 56px;
}
.site-header .logo img {
  height: 32px;
}
.site-header .header-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}
.site-header .nav-link {
  font-weight: 400;
}
.site-header .nav-link:hover {
  color: #ffb400;
}

/* ───────── Hero ───────── */
#hero_top {
  position: relative;
  background: url("../img/hero.png") center/cover no-repeat;
  text-align: center;
  color: #faf9f7;
}
#hero_top::before {
  content: "";
  position: absolute;
  inset: 0; /* 全面 */
  background: rgba(75, 55, 46, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 24px 120px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-hero {
  margin-top: 24px;
}

/* ───────── Cards / Divider ───────── */
.cards {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 60px;
}
.cards .card {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 280px;
          flex: 1 1 280px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  -webkit-box-shadow: 2px 2px 4px #4b372e;
          box-shadow: 2px 2px 4px #4b372e;
}
.cards .card h3 {
  margin-top: 0;
  font-size: 18px;
  text-align: left;
}

/* ───────── Timeline ───────── */
.steps {
  counter-reset: step;
  margin-top: 24px;
}
.steps .step {
  position: relative;
  padding-left: 48px;
  margin: 24px 0;
}
.steps .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffb400;
  color: #4b372e;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* ───────── Simulator ───────── */
.form-bg {
  background: url(../img/bg-pattern.png) center center;
}

.container-form {
  background-color: #faf9f7;
  border-radius: 24px;
  border: solid 2px #4b372e;
  padding: 24px;
}

#simulator_form form label,
#simulator_form form fieldset {
  display: block;
  margin: 16px 0;
}
#simulator_form form input[type=number],
#simulator_form form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
}
#simulator_form form fieldset {
  border: none;
  padding: 0;
}
#simulator_form form fieldset legend {
  font-weight: 700;
  margin-bottom: 8px;
}
#simulator_form form fieldset label {
  display: block;
  margin: 4px 0;
}
#simulator_form .btn-sim {
  margin-top: 20px;
}

/* ───────── Result Table ───────── */
#resultTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
#resultTable th,
#resultTable td {
  border: 1px solid #e0e0e0;
  padding: 0.5rem;
  text-align: right;
}
#resultTable th {
  text-align: left;
  background: #f7f7f7;
}

/* ───────── Accordion ───────── */
details {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0;
}
details summary {
  font-weight: 700;
  cursor: pointer;
}

.cta__text {
  text-align: center;
}

.cta-button {
  text-align: center;
  margin-top: 24px;
}

/* ───────── Footer ───────── */
footer {
  background: #4b372e;
  color: #faf9f7;
  text-align: center;
  font-size: 12px;
  padding: 32px 0;
}

/* ───────── Back to Top ───────── */
.top-button {
  /* 初期は非表示にする */
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 101;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #ffb400;
  color: #4b372e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  /* optional ：hover 効果 */
}
.top-button:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

/* ───────── Image Modal ───────── */
/* ───────── Utility ───────── */
.gray {
  background: #f7f7f7;
}