:root {
  /* Google Font の適用 */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

  /* step-0: 本文用 (スマホ 16px 〜 PC 18px) */
  --font-size-step-0: clamp(1rem, 0.95vw + 0.8rem, 1.125rem);

  /* step-1: 小見出し・h3用 (スマホ 20px 〜 PC 24px) */
  --font-size-step-1: clamp(1.25rem, 1.2vw + 1rem, 1.5rem);

  /* step-2: 中見出し・h2用 (スマホ 28px 〜 PC 40px) */
  --font-size-step-2: clamp(1.75rem, 2.5vw + 1.2rem, 2.5rem);

  /* step-3: 大見出し・h1用 (スマホ 32px 〜 PC 56px) */
  --font-size-step-3: clamp(2rem, 5vw + 1rem, 3.5rem);

  /* step-4: header (スマホ 16px 〜 PC 18px) */
  --font-size-step-4: clamp(1.0rem, 1.7vw, 1.125rem);

  /* トランジション（アニメーション設定） */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-step-0);
  line-height: 1.6;
  /* 英語は1.5〜1.6が読みやすい */
}

/* ==========================================
   Modern CSS Reset
========================================== */
/* 1. box-sizingの統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. デフォルトの余白を削除し、スムーズスクロールを有効化 */
* {
  margin: 0;
  padding: 0;
}

html {
  /* ページ内リンク（アンカー）の移動を滑らかにする */
  scroll-behavior: smooth;
}

/* 3. bodyの基本設定 */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Macでのテキストを美しくレンダリング */
  color: #3c3c3c;
  font-family: var(--font-primary);
  font-size: var(--font-size-step-0);
}

/* 4. 画像などのメディア要素をレスポンシブ＆隙間なく表示 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. フォーム要素のフォントを親から継承させる */
input,
button,
textarea,
select {
  font: inherit;
}

/* 6. 長い単語でのテキストの折り返しを自然にする */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 7. 【アクセシビリティ】OS設定で「視差効果を減らす」をオンにしている人への配慮 */
/* @media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
} */

img {
  display: block;
  width: 100%;
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}




/********************************** header  **********************************/
header {
  width: 100%;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 9999;
}

header .container {
  width: 100%;
  max-width: 1600px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1.0rem 0.5rem;
  margin: 0 auto;
}

header .container>a {
  display: block;
  width: 40%;
  max-width: 16rem;
}

header .container #menu {
  display: block;
  width: 7%;
  max-width: 4rem;
  position: relative;
}

header .container #menu::after {
  content: "";
  display: block;
  padding-top: 100%;
}

header .container #menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #00862e;
  position: absolute;
  left: 0;
  transition: var(--transition-normal);
}

header .container #menu span:nth-of-type(1) {
  top: 0;
}

header .container #menu span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

header .container #menu span:nth-of-type(3) {
  bottom: 0;
}


header .container #menu[aria-expanded="true"] span:nth-of-type(1) {
  transform: rotate(45deg) translateY(-50%);
  top: 50%;
  transform-origin: center;
}

header .container #menu[aria-expanded="true"] span:nth-of-type(2) {
  transform: rotate(45deg) translateY(-50%);
  top: 50%;
  transform-origin: center;
}

header .container #menu[aria-expanded="true"] span:nth-of-type(3) {
  transform: rotate(-45deg) translateY(-50%);
  top: 50%;
  transform-origin: center;
}

header .container #list {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 6px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition-normal);

  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
}

header .container #menu[aria-expanded="true"]+#list {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

header .container #list .navi li a {
  display: block;
  text-align: center;
  padding: 1.0rem;
  text-decoration: none;
  color: #3c3c3c;
  border-bottom: solid 1px #eee;
  position: relative;
  transition: var(--transition-normal);
}

header .container #list .navi li.on a {
  color: #00862e;
  font-weight: bold;
}

header .container #list .navi li.on a::after {
  content: "";
  display: block;
  width: 20%;
  height: 2px;
  background-color: #00862e;
  position: absolute;
  bottom: 0;
  left: 40%;
}

header .container #list .choice {
  margin: 2.0rem 0 1.0rem;
  display: flex;
  justify-content: center;
}

header .container #list .choice li {
  display: block;
  padding: 0 2.0rem;
  border-right: solid 1px #eee;
  font-size: var(--font-size-step-0);
  color: #00862e;
  font-weight: bold;
}

header .container #list .choice li:last-child {
  border-right: none;
}

header .container #list .choice li a {
  color: #3c3c3c;
  text-decoration: none;
}



/****************** PC ******************/
@media screen and (min-width:768px) {
  header .container #menu {
    display: none;
  }

  header .container #list {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    width: calc(100% - 18rem);
    position: relative;
    display: flex;
    justify-content: right;
    align-items: center;
    box-shadow: none;
  }

  header .container #list .navi {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 100%;
  }

  header .container #list .navi li a {
    font-size: var(--font-size-step-4);
    border-bottom: none;
    padding: 0.6rem;
  }

  header .container #list .navi li.on a::after {
    width: 80%;
    left: 10%;
  }

  header .container #list .choice {
    margin: 0;
    margin-left: 2.0rem;
  }

  header .container #list .choice li {
    display: block;
    padding: 0.6rem;
    font-size: 1.0rem;
  }

}

/********************************** footer  **********************************/

footer {
  background-color: #fff;
}

footer>a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #444;
  background-color: #eee;
  font-size: var(--font-size-step-1);
  padding: 1.2rem 0;
  transition: var(--transition-normal);
  border-bottom: 0.7rem solid #00862e;
}

footer>a:hover {
  opacity: 0.6;
}

footer .container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.0rem 1.0rem;
}

footer .container div:nth-of-type(1) {
  font-size: var(--font-size-step-0);
}

footer .container div:nth-of-type(1) a {
  display: block;
  width: 35%;
  max-width: 15rem;
  transition: var(--transition-normal);
}

footer .container div:nth-of-type(1) strong {
  display: block;
  margin: 1.0rem 0 0.5rem;
  font-weight: bold;
  font-size: var(--font-size-step-1);
}

footer .container div ul:nth-of-type(1) {
  margin: 3.0rem 0 0;
}

footer .container div ul:nth-of-type(1) a {
  color: #3c3c3c;
  display: block;
  text-decoration: none;
  padding: 1.0rem 0.5rem;
  border-top: solid 1px #eee;
  transition: var(--transition-normal);
}

footer .container a:hover {
  opacity: 0.6;
}

footer .container div ul:nth-of-type(2) {
  margin: 2.0rem 0;
  display: flex;
  flex-wrap: wrap;
}

footer .container div ul:nth-of-type(2) li {
  margin-right: 1.0rem;
}

footer .container div ul:nth-of-type(2) li a {
  color: #3c3c3c;
  font-size: var(--font-size-step-4);
  display: block;
  text-decoration: none;
  padding: 1.0rem 0.5rem;
  transition: var(--transition-normal);
}

footer>div:last-child {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #444;
  background-color: #eee;
  font-size: var(--font-size-step-4);
  padding: 1.2rem 0;
}

@media screen and (min-width:768px) {
  footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

  }

  footer .container div:nth-of-type(2) {
    width: calc(75% - 5%);
    max-width: calc(100% - 15rem -5%);
  }

  footer .container div ul:nth-of-type(1) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 2.0rem 0 0;
  }

  footer .container div ul:nth-of-type(1) a {
    padding: 1.0rem 1.0rem;
    border-top: none;
    font-weight: bold;
  }

  footer .container div ul:nth-of-type(2) li a {
    padding: 1.0rem 1.0rem;
  }

}





/* 

@media screen and (min-width:768px) {
  footer .container {
    justify-content: space-between;
  }

  footer .container div:nth-of-type(1) {
    width: 15%;
    margin: 3.0rem 0;
  }

  footer .container div:nth-of-type(2) {
    width: 83%;
    margin: 3.0rem 0;
  }


} */







/********************************** footer  **********************************/