*{
  margin: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
  font-style: normal;
  font-family: inherit;
  font-size: inherit;
  list-style: none;
  box-sizing: border-box;
  border-collapse: collapse;
  outline: inherit;
}

:root{
  --blue:#2E5077;
  --green:#4DA1A9;
  --deep-green:#1c7178;
  --light-green:#79D7BE;
  --bright-green:#c5e8df;
  --ivory:#F6F4F0;
  --accent-color:#ffa200;
  --invalid-color: #b4b4b4;
  --invalid-back-color: #fbfbfb;
}

html{
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
  font-size: 10px;
}

body{
  min-height: 100vh;
  color: #000;
  line-height: 1.8;
  font-family: "Noto Sans JP", sans-serif;
  background: var(--green);
}

.container{
  width: 600px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  position: relative;
}

.flex{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

a{
  display: block;
}

img{
  max-width: 100%;
}

/* -----------------------ヘッダー----------------------- */
header {
  width: 600px;
  height: 60px;
  background: var(--green);
  color: var(--ivory);
  display: flex;
  justify-content: left;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100;
}

.header_inner{
  width: 100%;
  position: relative;
  user-select: none;
}

.header_inner h1 {
  font-size: 2rem;
  padding-left: 10px;
}

/* -----------------------メニュー----------------------- */
.menu-wrapper{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* メニュー非表示用 */
.menu-toggle {
  display: none;
}

/* ハンバーガーの見た目 */
.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10px;
  z-index: 200;
}

/* ハンバーガーの線 */
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--ivory);
  transition: 0.3s;
  position: absolute;
}

/* 1本目（上の線） */
.hamburger span:nth-child(1) {
  top: 12px;
}

/* 2本目（中央の線） */
.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

/* 3本目（下の線） */
.hamburger span:nth-child(3) {
  bottom: 12px;
}

/* チェック時のアニメーション */
.menu-toggle:checked + .hamburger{
  background: none;
}

.menu-toggle:checked + .hamburger span{
  background: var(--deep-green);
}

.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  right: 10px;
}

.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  right: 10px;
}

/* メニューの表示 */
.menu {
  display: none;
  color: var(--deep-green);
}

.menu-toggle:checked ~ .menu {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 600px;
  background: var(--ivory);
  border: 4px solid var(--deep-green);
  border-radius: 10px;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  padding-top: 40px;
  animation: slideIn 0.3s ease-in-out forwards;
}
@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu li a {
  padding: 15px 0;
}

.menu li a:hover {
  background: var(--deep-green);
  color: var(--ivory);
  transition: 0.2s linear;
}

/* -----------------------シミュレーションページ----------------------- */
.combine_inner{
  width: 100%;
  height: 100%;
  background: #fff;
  margin-top: 60px;
  font-size: 1.8rem;
  text-align: center;
}

.combine_inner h2{
  font-size: 2rem;
  background: var(--bright-green);
  color: var(--deep-green);
  padding: 9px 0;
}

/* color_img_wrapper */
.color_img_wrapper{
  margin-top: 20px;
}

.color_img_wrapper h3{
  font-size: 2rem;
}

.color_img_inner{
  margin: 20px;
}

.color_img_inner ul{
  width: 32%;
  justify-content: center;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 13px 5px 5px;
  margin-bottom: 10px;
}

.color_img_inner li{
  width: 50px;
  height: 50px;
}

.elegant_color>.left_color{
  background: #ded3e3;
}

.elegant_color>.center_color{
  background: #c8a3cc;
}

.elegant_color>.right_color{
  background: #767ebc;
}

.casual_color>.left_color{
  background: #74af37;
}

.casual_color>.center_color{
  background: #f45917;
}

.casual_color>.right_color{
  background: #fcf3a6;
}

.classic_color>.left_color{
  background: #043e63;
}

.classic_color>.center_color{
  background: #392330;
}

.classic_color>.right_color{
  background: #734013;
}

.clear_color>.left_color{
  background: #b9dfec;
}

.clear_color>.center_color{
  background: #7eb7e4;
}

.clear_color>.right_color{
  background: #bce0dc;
}

.chic_color>.left_color{
  background: #32384a;
}

.chic_color>.center_color{
  background: #949494;
}

.chic_color>.right_color{
  background: #1a4949;
}

.natural_color>.left_color{
  background: #86aa6f;
}

.natural_color>.center_color{
  background: #d9c69c;
}

.natural_color>.right_color{
  background: #c6ae8b;
}

.modern_color>.left_color{
  background: #242831;
}

.modern_color>.center_color{
  background: #ffffb4;
}

.modern_color>.right_color{
  background: #ef0027;
}

.romantic_color>.left_color{
  background: #f5ca9d;
}

.romantic_color>.center_color{
  background: #f37e83;
}

.romantic_color>.right_color{
  background: #faa66e;
}

.active_color>.left_color{
  background: #fc4f31;
}

.active_color>.center_color{
  background: #214489;
}

.active_color>.right_color{
  background: #ffe500;
}

/* popup */
#popup_el,#popup_ca,#popup_cs,#popup_cl,#popup_ch,#popup_na,#popup_mo,#popup_ro,#popup_ac {
  display: none; /* label でコントロールするので input は非表示に */
}

.popup-open {
  border: 2px solid #ccc;
  border-radius: 20px;
  padding: 0 15px;
  margin: 15px 0 10px;
  cursor: pointer;
  user-select: none;
}

.popup-open:hover {
  background: #eee;
  transition: 0.3s
}

.popup-overlay_el,.popup-overlay_ca,.popup-overlay_cs,.popup-overlay_cl,.popup-overlay_ch,.popup-overlay_na,.popup-overlay_mo,.popup-overlay_ro,.popup-overlay_ac {
  display: none; /* input にチェックが入るまでは非表示に */
}

#popup_el:checked ~ .popup-overlay_el,#popup_ca:checked ~ .popup-overlay_ca,#popup_cs:checked ~ .popup-overlay_cs,#popup_cl:checked ~ .popup-overlay_cl,#popup_ch:checked ~ .popup-overlay_ch,#popup_na:checked ~ .popup-overlay_na,#popup_mo:checked ~ .popup-overlay_mo,#popup_ro:checked ~ .popup-overlay_ro,#popup_ac:checked ~ .popup-overlay_ac {
  display: block;
  z-index: 99999;
  background-color: #00000070;
  position: fixed;
  width: 100%;
  height: 100dvh;
  top: 0;
  left: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}

.popup-window {
  width: 560px;
  max-height: 100dvh;
  padding: 25px 20px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-text {
  text-align: justify;
}

.popup-text h4 {
  font-size: 1.8rem;
  position: relative;
  padding: .4em .5em .3em;
  margin-bottom: 20px;
  border-bottom: 3px solid #ccafde;
}

.popup-text h4::before,
.popup-text h4::after {
  position: absolute;
  left: 30px;
  bottom: -15px;
  width: 30px;
  height: 15px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
}

.popup-text h4::before {
  background-color: #ccafde;
}

.popup-text h4::after {
  bottom: -11px;
  background-color: #fff;
}

.popup-overlay_ca .popup-text h4 {
  border-bottom: 3px solid #ec963b;
}

.popup-overlay_ca .popup-text h4::before {
  background-color: #ec963b;
}

.popup-overlay_cs .popup-text h4 {
  border-bottom: 3px solid #8f602e;
}

.popup-overlay_cs .popup-text h4::before {
  background-color: #8f602e;
}

.popup-overlay_cl .popup-text h4 {
  border-bottom: 3px solid #70cfe4;
}

.popup-overlay_cl .popup-text h4::before {
  background-color: #70cfe4;
}

.popup-overlay_ch .popup-text h4 {
  border-bottom: 3px solid #7b7b7b;
}

.popup-overlay_ch .popup-text h4::before {
  background-color: #7b7b7b;
}

.popup-overlay_na .popup-text h4 {
  border-bottom: 3px solid #50891e;
}

.popup-overlay_na .popup-text h4::before {
  background-color: #50891e;
}

.popup-overlay_mo .popup-text h4 {
  border-bottom: 3px solid #00053d;
}

.popup-overlay_mo .popup-text h4::before {
  background-color: #00053d;
}

.popup-overlay_ro .popup-text h4 {
  border-bottom: 3px solid #ffa4be;
}

.popup-overlay_ro .popup-text h4::before {
  background-color: #ffa4be;
}

.popup-overlay_ac .popup-text h4 {
  border-bottom: 3px solid #f25252;
}

.popup-overlay_ac .popup-text h4::before {
  background-color: #f25252;
}

.popup-text p {
  font-size: 1.6rem;
  line-height: 2.2rem;
  margin-bottom: 10px;
}

.popup-close {
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 10px;
}

/* color_scheme_wrapper */
.color_scheme_wrapper{
  margin-top: 40px;
}

.color_scheme_inner{
  margin: 20px;
}

.color_scheme_inner ul{
  width: 49%;
  justify-content: center;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 13px 10px 5px;
  margin-bottom: 10px;
}

.color_scheme_inner li{
  width: 55px;
  height: 55px;
  margin: 20px 10px 10px;
}

.color_scheme_inner li input{
  width: 100%;
  height: 100%;
  border: none
}

.color_scheme_inner p{
  width: 100%;
  background: #fdeccf;
  border-radius: 20px;
  display: inline-block;
  padding: 0 10px;
  margin: 10px 0;
}

.illust{
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.illust svg{
  height: 230px;
}

.cls-1 {
  fill: #fff;
}

.cls-2 {
  fill: #000;
}

@media screen and (max-width: 768px) {
  .container{
    width: 485px;
  }
  
  /* -----------------------ヘッダー----------------------- */
  header {
    width: 485px;
    height: 50px;
  }

  .header_inner h1 {
    font-size: 1.8rem;
  }

  /* -----------------------メニュー----------------------- */
  .menu-toggle:checked ~ .menu {
    width: 485px;
    font-size: 1.6rem;
  }

  /* -----------------------シミュレーションページ----------------------- */
  .combine_inner{
    margin-top: 50px;
    font-size: 1.6rem;
  }

  .combine_inner h2{
    font-size: 1.8rem;
  }

  /* color_img_wrapper */
  .color_img_wrapper h3{
    font-size: 1.8rem;
  }

  .color_img_inner li{
    width: 40px;
    height: 40px;
  }

  /* popup */
  .popup-text h4 {
    font-size: 1.6rem;
  }

  .popup-open {
    padding: 0 10px;
    margin: 10px 0 5px;
  }

  .popup-window {
    width: 445px;
  }

  .popup-text p {
    font-size: 1.4rem;
    line-height: 2rem;
  }

  /* color_scheme_wrapper */
  .color_scheme_inner li{
    width: 48px;
    height: 48px;
    margin: 20px 8px 10px;
  }

  .illust{
    height: 220px;
  }
  
  .illust svg{
    height: 200px;
  }
}

@media screen and (max-width: 500px) {
  .container{
    width: 100%;
  }
  
  /* -----------------------ヘッダー----------------------- */
  header {
    width: 100%;
  }

  /* -----------------------メニュー----------------------- */
  .menu-toggle:checked ~ .menu {
    width: 100vw;
  }

  /* -----------------------シミュレーションページ----------------------- */
  .combine_inner{
    font-size: 1.3rem;
  }

  .combine_inner h2{
    font-size: 1.5rem;
    line-height: 2.2rem;
    padding: 5px 0;
  }

  .combine_inner h2 span{
    display: inline-block;
  }

  /* color_img_wrapper */
  .color_img_wrapper{
    margin-top: 10px;
  }

  .color_img_wrapper h3{
    font-size: 1.5rem;
  }

  .color_img_inner{
    margin: 10px;
  }

  .color_img_inner ul{
    padding: 10px 0 3px;
    margin-bottom: 10px;
  }

  .color_img_inner li{
    width: 30%;
    height: 35px;
  }

  /* popup */
  .popup-window {
    width: calc(100% - 20px);
  }

  .popup-text h4 {
    font-size: 1.5rem;
  }

  .popup-open {
    padding: 0 5px;
  }

  .popup-text p {
    font-size: 1.3rem;
  }

  .popup-close {
    top: 13px;
    right: 10px;
  }

  /* color_scheme_wrapper */
  .color_scheme_wrapper{
    margin-top: 20px;
  }

  .color_scheme_wrapper p{
    line-height: 2rem;
  }

  .color_scheme_wrapper p>span{
    display: inline-block;
  }

  .color_scheme_inner{
    margin: 10px;
  }

  .color_scheme_inner li{
    width: 30%;
    height: 40px;
    margin: 10px 1px 5px;
  }

  .illust{
    height: 120px;
  }
  
  .illust svg{
    width: 120px;
    height: 110px;
  }
}