/* ===== フォント読み込み ===== */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@600&display=swap");

/* ===== ベース ===== */
* {
  font-family: "Dosis", "Noto Sans JP", sans-serif;
  color: #3f4b49;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.8em;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}

body {
  min-height: 100dvh;
  background-color: #f0f0f0;
  position: relative;
  overflow-x: hidden;
}

.wrap {
  max-width: 1000px;
  min-height: 100vh;
  position: relative;
  padding: 70px;
  overflow: hidden;
  margin: 0 auto 30px;
}

/* ===== リンク ===== */
a {
  transition: 0.2s;
  border-bottom: 1px dashed #548778; /* 下線色 */
}
a:hover {
  color: #548778;
}

/* ヘッダーやフッターの装飾は外す */
header a,
footer a {
  border-bottom: 0;
}

/* ===== 強調（安定マーカー） =====
   必要な箇所だけ <strong class="marker">…</strong> を使う */
.marker {
  font-weight: 700;
  background-image: linear-gradient(
    to bottom,
    transparent calc(100% - 0.42em),
    rgba(84, 135, 120, 0.22) 0
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ===== レイアウト ===== */
.main-flex {
  display: flex;
  align-items: flex-start;
  column-gap: 7%;
}

/* ===== ヘッダー ===== */
header {
  width: 23%;
  text-align: center;
  padding: 65px 40px;
  border-radius: 16px;
  background-color: #548778;
}

.nav li {
  display: block;
  text-align: center;
  padding: 12px 0;
  transition: 0.2s;
}
.nav li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.nav a {
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.2em;
}
.nav a:hover {
  opacity: 0.5;
}

/* ===== メイン ===== */
main {
  width: 70%;
  margin: 0 auto;
  padding: 60px 60px 80px;
  background-color: #fff;
  border-radius: 16px;
}

/* ===== 見出し ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h1 {
  font-size: 20px;
  text-align: center;
  padding-bottom: 30px;
  color: #fff;
  letter-spacing: 0.15em;
  word-wrap: break-word;
}

h2 {
  font-size: 16px;
  padding-bottom: 5px;
  color: #548778;
}

h3 {
  font-size: 14px;
  padding-bottom: 5px;
}
h3::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background-color: #548778;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: -2px;
}

/* ===== セクション ===== */
.section {
  width: 100%;
}
.section + .section {
  margin-top: 50px;
}

/* ===== フッター ===== */
footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  opacity: 0.6;
}

/* ===== SP（≤640px） ===== */
@media screen and (max-width: 640px) {
  .wrap {
    padding: 25px;
  }
  .main-flex {
    display: block;
  }
  header {
    width: 100%;
    padding: 15px 30px;
  }
  .nav {
    display: flex;
    column-gap: 25px;
    justify-content: center;
  }
  h1 {
    padding-bottom: 0;
  }
  .nav li + li {
    border-top: none;
  }
  main {
    width: 100%;
    margin-top: 30px;
    padding: 40px 30px;
  }
}
