*
{
    color : var(--color-black);
}
body {
  font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
  margin : 0;
  padding : 0;
}

/* 色 */
:root {
	--color-green: #539379; /* 緑 */
	--color-light_green: #74b88d; /* 薄い緑 */
	--color-beige: #efe8db; /* ベージュ */
	--color-black: #464646; /* 黒 */
	--color-gray: #999999; /* グレー */
	--color-light_gray: #f7f7f7; /* 薄いグレー */
	--color-white: #ffffff; /* 白 */
}

/* ヘッダー */
header
{
  background-color : var(--color-beige);
  display : flow-root;
}
/* ナビゲーション */
#NAVIGATION
{
  display : grid;
  background-color : var(--color-white);
  grid-template-columns: 1fr repeat(7, auto) 1fr;
  align-items: center;
  width : 90%;
  margin : 30px auto 10px;
  padding: 10px;
}
#NAVIGATION ul
{
  display : contents;
}
#NAVIGATION ul li
{
  border-right : 1px solid var(--color-gray);
}
#NAVIGATION ul li:last-child
{
  border : none;
}
#NAVIGATION .button_style
{
  margin : 0;
}
ul.navigation_list li
{
  list-style-type: none;
  padding : 5px 15px;
}
ul.navigation_list li a
{
  position : relative;
  color : var(--color-gray);
  padding-right : 20px;
  font-size : 14px;
  padding-bottom : 5px;
  text-decoration: none;
}
ul.navigation_list li a.menu_check
{
  border-bottom : 1px solid var(--color-light_green);
}
ul.navigation_list li a::after
{
  content : "";
  background-image : url(../img/icon_arrow.png);
  background-size : 100%;
  position : absolute;
  right : 0;
  top : 30%;
  display : inline-block;
  width : 10px;
  height : 5px;
}
ul.navigation_list li a::before {
  background: var(--color-light_green);
  content: "";
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .3s;
}
ul.navigation_list li a:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}
ul.navigation_list li a.menu_check:hover::before
{
  transform: scale(0, 1);
}

#NAVIGATION img
{
  width : 77px;
  margin-left : 10px;
}
#NAVIGATION a.button_contact
{
  justify-self: end;
  margin-right : 10px;
}
#NAVIGATION a
{
  text-decoration : none;
}
.menu-toggle,
.menu-icon
{
  display: none;
}

/* ボタンデザイン */
a
{
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
a:hover
{
  opacity : 0.8;
}
.button_lightgreen
{
  background-color : var(--color-light_green);
  color : var(--color-white);
}
.button_green
{
  background-color : var(--color-green);
  color : var(--color-white);
}
.button_radius
{
  border-radius : 20px;
}
.button_contact
{
  font-size : 12px;
  padding : 8px 20px;
}
.button_style
{
    text-decoration: none;
    margin : 20px auto;
    padding : 10px 40px 10px 30px;
    position : relative;
}
.button_style::before
{
  content : "";
  background-image : url(../img/icon_arrow_white.png);
  background-size : 100%;
  position : absolute;
  right: 20px;
  top: 45%;
  display : inline-block;
  width : 10px;
  height : 5px;
}
.button_beige
{
  border : 1px solid var(--color-beige);
  color : var(--color-green);
  padding : 20px 50px;
  font-size : 18px;
}
.button_style.button_beige::before
{
  background-image : url(../img/icon_arrow.png);
}

/* サブページ　タイトル */
.copy {
  font-size: 32px;
  text-align: center;
  color: #464646;
  font-weight: normal;
  margin : 70px auto;
}
#PAGE_TITLE
{
  text-align : center;
}
#PAGE_TITLE h1
{
  font-weight: normal;
  color : var(--color-green);
  display: inline-block;
  letter-spacing: 0.2rem;
  margin : 45px auto;
  position : relative;
  z-index : 1;
}
#PAGE_TITLE h1 span
{
  color : var(--color-gray);
  font-size : 16px;
  display : block;
  margin-top : -5px;
}
#PAGE_TITLE h1::before
{
  background-image : url(../img/icon_title.png);
  background-size : 100%;
  content : "";
  display : inline-block;
  position : absolute;
  top: -5px;
  left: -35px;
  width : 50px;
  height : 30px;
  z-index : -1;
}

/* 汎用 */
.width_1200
{
  max-width : 1200px;
  margin : 45px auto;
}
.width_900
{
  max-width : 900px;
  margin : 45px auto;
}
.width_750
{
  max-width : 750px;
  margin : 45px auto;
}
.text_center
{
  text-align : center;
}
/* wbrを使用するときはその親要素に br_specificationを指定すること*/
.br_specification {
	word-break: keep-all;
}
.br_specification wbr:before {
	content: "\200B";
}
/* 問い合わせ(cta) */
.cta
{
  background-color : #f7f7f7;
  display : grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap : 30px;
  padding : 50px 0px;
  border-top : 1px solid var(--color-gray);
}
.cta a.button_style
{
  font-size : 21px;
  padding: 15px 50px 15px 40px;
}

/* 交互レイアウト */
.content_two_column
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 50px;
}
.content_two_column .image,
.content_two_column .text
{
  width: 100%; /* Grid内では100%でOK */
}
/* 偶数番目（2, 4, ...）のとき左右を反転 */
.content_two_column:nth-child(even) .image {
  grid-column: 2;
  grid-row: 1;
}
.content_two_column:nth-child(even) .text {
  grid-column: 1;
  grid-row: 1;
}
.content_two_column .text p
{
  margin : 20px 0px;
  padding-bottom : 30px;
}

/* フィルター */
/* ベージュの透過 */
.filter_beige
{
  position : relative;
}
.filter_beige::before
{
  content : "";
  width : 100%;
  height : 100%;
  position : absolute;
  top : 0;
  left : 0;
  background-color : rgba(239,232,219,0.2);
}
/* 白のグラデーション */
.filter_white::before
{
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 100));
  z-index: -1; 
}
.content_gradation
{
  position : relative;
  padding-bottom : 75px;
}
.content_gradation:after
{
  content: '';
  position: absolute;
  right: 0; 
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(239, 232, 219, 0.3));
  z-index: -1; 
  width : 100%;
  height: 50px;
}

/* 固定問い合わせボタン */
#CONTACT
{
  position : fixed;
  top : 100px;
  right : 0;
  display : inline-block;
  z-index : 10;
}
#CONTACT ul
{
  display : grid;
  grid-template-columns: 1fr;
}
#CONTACT li
{
  display: inline-block;
  padding-bottom : 20px;
}
#CONTACT li a
{
  writing-mode: vertical-rl;
  padding : 5px 8px;
  font-size : 18px;
  color : var(--color-white);
  text-decoration: none;
  position : relative;
  letter-spacing: 0.2em;
  font-weight: 100;
}
#CONTACT li a span
{
  font-size : 12px;
  padding : 3px 5px;
  writing-mode: horizontal-tb;
  background-color : #b7272d;
  color : var(--color-white);
  border-radius: 10px;
  margin : 5px 0px 10px 0px;
  letter-spacing: 0px;
}
#CONTACT li:nth-of-type(1)
{
  background-color : var(--color-green);
}
#CONTACT li:nth-of-type(2)
{
  background-color : var(--color-black);
}
#CONTACT li a::after
{
  content : "";
  background-image : url(../img/icon_arrow_white.png);
  background-size : 100%;
  position : absolute;
  bottom : -10px;
  right : 0;
  left : 0;
  margin : auto;
  display : inline-block;
  width : 10px;
  height : 5px;
}

/* footer */
footer > div:nth-of-type(1)
{
  display : grid;
  grid-template-columns: auto 50%;
  justify-content: center;
  gap : 20px;
  padding-top : 30px;
  border-top : 1px solid var(--color-gray);
}
footer > div:nth-of-type(1) > div
{
  display : grid;
  place-items: center;
}
footer > div:nth-of-type(1) > div > p
{
  font-size : 12px;
  color : var(--color-gray);
  text-align-last: justify;
  margin-left : 5px;
}
footer img
{
  width : 168px;
}
footer > div > ul
{
  display : grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
footer > div:nth-of-type(2)
{
  background-color : var(--color-black);
  padding : 10px;
  margin-top : 30px;
}
footer > div:nth-of-type(2) p
{
  margin : 0px;
  color : var(--color-white);
  font-size : 12px;
}

/* モバイル用スタイル */
@media (max-width: 1300px) 
{
  #NAVIGATION {
      grid-template-columns: auto repeat(7, auto) 1fr;
  }
  #NAVIGATION img {
    margin-right: 20px;
  }
}

@media (max-width: 1190px) 
{
  .menu-icon 
  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    justify-self: end;
    margin-right : 20px;
  }
  .menu-icon span
  {
    background: var(--color-black);
    height: 3px;
    margin: 4px 0;
    transition: 0.3s;
    display: block;
    border-radius: 2px;
  }
  /* ← チェックされたら、バツ印に変形 */
  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  /* メニュー非表示（初期状態） */
  #NAVIGATION ul
  {
    display: none;
    padding: 1rem;
    background: #fff;
  }
  /* チェックされたら表示 */
  #NAVIGATION .menu-toggle:checked ~ ul
  {
    display: block;
    position : absolute;
    top: 55px;
    right: 0px;
    width: 50%;
    z-index: 5;
  }
  #NAVIGATION .menu-toggle:checked ~ ul li
  {
    border-right : none;
    padding-bottom : 10px;
    text-align: center;
  }
  #NAVIGATION
  {
    position : relative;
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 950px) {
  /* モバイル時左右に余白をつける */
  #PLAN_LIST, #shops, .section-head + ul, #TRAIN section,
  .model-content, .plans-wrapper > ul, .landplan img, .security + div
  {
    width: 90%;
  }
  #PLAN_LIST, #shops, .section-head + ul, #TRAIN section, .landplan img, .security + div
  {
    margin-left: auto;
    margin-right: auto;
  }
  .width_900
  {
    width : 100%;
    margin : 10px auto;
  }
}

@media (max-width: 768px) {
  .width_750
  {
    width : 100%;
    margin : 10px auto;
  }
  .cta
  {
    grid-template-columns: 1fr;
    gap : 20px;
    padding : 20px;
  }
  .cta a.button_style
  {
    margin : 0px auto;
  }
  footer > div:nth-of-type(1)
  {
    grid-template-columns: auto 1fr;
  }
  footer > div:nth-of-type(1) > div
  {
    margin-left : 20px;
  }
  .copy {
    font-size: 20px;
    margin : 40px auto;
    /*text-align: center;
    color: #464646;
    font-weight: normal;
    */
  }

  .content_two_column {
    grid-template-columns: 1fr;
    width : 90%;
    margin : 20px auto;
    gap : 20px;
    padding-top : 50px;
    display : flow-root;
  }
  .content_two_column:nth-child(even) .image
  {
    grid-column: 1;
  }
  .content_two_column:nth-child(even) .text
  {
    grid-row: none;
  }

  .content_two_column .image,
  .content_two_column .text {
    grid-column: auto;
    grid-row: auto;
  }
  .content_two_column .image img
  {
    width : 100%;
    padding-top : 30px;
  }
}

@media (max-width: 550px) {
  footer > div:nth-of-type(1){
    grid-template-columns: 1fr;
  }
  footer > div:nth-of-type(1) > div 
  {
    margin-left : 0px;
  }
  footer > div > ul
  {
    padding-left : 30px;
    margin-top : 0px;
  }
  #CONTACT
  {
    display : block;
    bottom : 0;
    left : 0;
    top : auto;
  }
  #CONTACT ul
  {
    grid-template-columns: 1fr 1fr;
    width : 100%;
    margin : 0;
    padding : 0;
  }
  #CONTACT li
  {
    padding : 5px 0px;
  }
  #CONTACT li a
  {
    writing-mode : horizontal-tb;
    display: block;
    text-align: center;
    font-size : 21px;
  }
  #CONTACT li a::after
  {
    bottom: 50%;
    right: 20px;
    left : auto;
  }
  #CONTACT li a span {
    margin: 0px 5px 5px -15px;
    display: inline-block;
    font-size: 14px;
  }
  .width_1200
  {
    margin : 20px auto;
  }

}
@media (max-width: 380px) {
  #NAVIGATION a.button_contact
  {
    padding: 5px 20px;
  }

}