/* Setting
=============================================== */
:root{
  --main-color: #125faf;
  --sub-color: #496c68;
  --accent-color: var(--sub-color);
  --link-color: #0050a8;

  --width-lg: 1420px;
  --width-md: 1100px;
  --width-sm: 900px;

  --header-bg-color: var(--main-color);
  --spm-bg-color: var(--main-color);
  --spm-arrow: url(../../../img/fm/cpr01/frame/spm-arrow.png);
  --spm-arrow2: url(../../../img/fm/cpr01/frame/spm-arrow2.png);
  --footer-bg-color: #444;
  --footer-font-color: #fff;
  --copyright-bg-color: var(--footer-bg-color);
}

html,body{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  background-color: #fff;
  line-height: 1.7;
  font-family:
    Meiryo,
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    sans-serif;
  font-size: 16px;
  color: #3a3f51;
  @media (max-width: 767px) {
    line-height: 1.5;
    font-size: 15px;
  }
}

header,footer,main,div,section,article,figure {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
ul, ol { margin-top: 0; }
p { margin-top: 0; }
img { border-style: none; vertical-align: bottom; }
table { border-collapse: collapse; border-spacing: 0; }

a { text-decoration: none; }
a:link    { color: var(--link-color); }
a:visited { color: var(--link-color); }
a:hover   { color: var(--link-color); text-decoration: underline; }
a:active  { color: var(--link-color); }

/* ---------------------------- */

/* PC */
@media (min-width: 768px) {
  a[href^="tel:"] { pointer-events: none; }
  .BrSp,.SpBr,.PcNone { display: none; }
}
/* SP */
@media (max-width: 767px) {
  .BrPc,.PcBr,.SpNone { display: none; }
}

.CL { clear: both; }
.CF:after { clear: both; display: block; content: ""; }

/* ///// HEADER /////////////////////////////// */
header {
  z-index: 9999;
  width: 100%;
  background-color: #fff;
  @media (max-width: 767px){
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    position: fixed;
  }
}

#hd_upper {
  background-color: var(--header-bg-color);
}
#hd_upper_inner{
  padding: 0 10px;
  width: 100%;
  @media (min-width: 768px){
    margin: 0 auto;
    max-width: var(--width-lg);
    height: 24px;
    line-height: 24px;
  }
  @media (max-width: 767px){
    height: 20px;
    line-height: 20px;
  }
}

/* SLOGAN
--------------------------- */
p#hd_slogan{
  margin: 0;
  text-align: right;
  font-size: 13px;
  color: #fff;
  @media (max-width: 767px){
    text-align: center;
    font-size: 11px;
  }
}

/* MAIN MENU AREA
=========================== */
#hd_inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10px;
  width: 100%;
  @media (min-width: 768px){
    margin: 0 auto;
    max-width: var(--width-lg);
    height: 80px;
  }
  @media (max-width: 767px){
    height: 50px;
  }
}

/* LOGO
--------------------------- */
#hd_logo {
  width: 180px;
  @media (max-width: 767px){
    width: 120px;
  }
}
#hd_logo img {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
}

/* HEADERの固定（PC）
--------------------------- */
@media (min-width: 768px) {
  .MainMenuArea {
    position: absolute;
  }
  .MainMenuFixed {
    position: fixed;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    opacity: 1;
    animation-duration: 0.5s;
    animation-name: fade-in;
  }
  @keyframes fade-in {
    0% { display: none; opacity: 0; }
    1% { display: block; opacity: 0; }
    100% { display: block; opacity: 1; }
  }
  .MainMenuFixed #hd_upper{
    display: none;
  }
  .MainMenuFixed #hd_inner{
    height: 70px;
  }
}

/* MAIN MENU
--------------------------- */
/* PC */
@media (min-width: 961px) {
  ul#main_menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
  #main_menu li + li {
    border-left: 1px solid #333;
  }
  #main_menu li#mm05 {
    border-left: none;
    }
  #main_menu li {
    margin: 0;
    padding: 0 16px;
  }
  #main_menu li a {
    letter-spacing: 1px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-size: 18px;
    font-weight: 500;
    color: #3a3f51;
    @media (max-width: 1100px){
      font-size: 15px;
    }
  }
  #main_menu li a:hover {
    color: var(--main-color);
    text-decoration: none;
  }
  #main_menu li#mm05 a {
    border-radius: 10px;
    padding: 10px 25px;
    background-color: var(--main-color);
    font-size: 16px;
    color: #fff;
    @media (max-width: 1100px){
      font-size: 15px;
    }
  }
  #main_menu li#mm05 a:hover {
    filter: brightness(1.07);
  }

  #sp_menu_button { display: none; }
}
/* TAB & SP */
@media (max-width: 960px) {
  ul#main_menu { display: none; }

  #sp_menu_button {
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 40px;
    cursor:pointer;
  }

  /* SP MAIN MENU
  --------------------------- */
  #sp_menu_area {
    z-index: 9999;
    position: absolute;
    top: 104px;
    left: 0px;
    display: none;
    width: 100%;
    height: 100vh;
    background-color: var(--spm-bg-color);
    @media (max-width: 767px){
      top: 70px;
    }
  }
  .MainMenuFixed #sp_menu_area {
    top: 70px;
  }
  ul#sp_main_menu {
    margin: 0;
    padding: 0 0 10px;
    width: 100%;
    height: 100%;
    font-size: 12px;
    list-style-type: none;
  }
  #sp_main_menu li {
    display: block;
    border-bottom: 1px dotted #fff;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  #sp_main_menu li a {
    display: block;
    margin: 0;
    padding-left: 35px;
    width: auto;
    height: 40px;
    background: var(--spm-arrow) 12px center/14px no-repeat;
    line-height: 40px;
    color: #fff;
  }
}

#sp_menu_area { display: none; }

/* ///// CONTENT AREA ///////////////////////// */
/* PC */
@media (min-width: 768px) {
  .ContentBody {
    margin: 0px auto;
    max-width: 1100px;
    overflow: hidden;
  }

  /* MAIN_AREA
  --------------------------- */
  /* wide one column */
  section.ContentArea {
    clear: both;
    width: 100%;
    overflow: hidden;
  }
  section.ContentArea .ContentBody {
    padding: 120px 10px;
  }
}
/* SP */
@media (max-width: 767px) {
  .ContentBody {
    width: 100%;
  }
  .ContentBody:after {
    clear: both;
    display: block;
    content: "";
  }

  /* MAIN_AREA
  --------------------------- */
  #main_area {
    margin: 0 auto;
    width: 100%;
    height: auto;
    background-color: #fff;
  }
  /* wide one column */
  section.ContentArea {
    padding: 0;
    width: 100%;
    overflow: hidden;
  }
  .ContentArea .ContentBody {
    max-width: 480px;
    margin: 0 auto 0;
    padding: 50px 10px;
  }
}

/* ///// FOOTER /////////////////////////////// */
footer {
  clear: both;
  position: relative;
  padding: 70px 0 0;
  background-color: var(--footer-bg-color);
  color: var(--footer-font-color);
  @media (max-width: 767px){
    padding: 30px 0 0;
  }
}

/* FOOTER PROFILE
--------------------------- */
dl#ft_profile {
  margin: 0 0 50px;
  text-align: center;
  font-size: 15px;
  @media (max-width: 767px){
    margin-bottom: 30px;
  }
}
dl#ft_profile dd{
  margin: 0;
}

dt#ft_logo {
  margin: 0 auto 30px;
  width: 180px;
  @media (max-width: 767px){
    margin-bottom: 30px;
    width: 120px;
  }
}
#ft_logo a {
  display: inline-block;
  font-size: 0; /* inline-block space out */
}
#ft_logo img {
  width: 100%;
  height: auto;
}

#ft_tel {
  padding-top: 3px;
  text-indent: 20px;
  background: url(/img/fm/cpr01/frame/ft-tel.png) calc(50% - 65px) center / 20px no-repeat;
  line-height: 20px;
}

/* FOOTER MENU
--------------------------- */
/* PC */
@media (min-width: 768px) {
  ul.FooterMenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto 50px;
    padding: 0;
    width: 100%;
    list-style-type: none;
  }
  .FooterMenu li + li {
    border-left: 1px solid #fff;
    }
  .FooterMenu li {
    margin: 0;
    padding: 0 20px;
  }
  .FooterMenu a {
    font-size: 16px;
    color: inherit;
  }
  .FooterMenu a:hover {
    text-decoration: underline;
    color: inherit;
  }
}
/* SP */
@media (max-width: 767px) {
  ul.FooterMenu {
    border-top: 1px dotted #fff;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .FooterMenu li {
    border-bottom: 1px dotted #fff;
    width: 100%;
  }
  .FooterMenu a {
    display: block;
    margin: 0;
    padding: 10px 0 10px 35px;
    background: var(--spm-arrow2) 12px center/14px no-repeat;
    font-size: 12px;
    color: inherit;
  }
}

/* COPYRIGHT
--------------------------- */
#copyright {
  background-color: var(--copyright-bg-color);
}
#copyright p {
  margin: 0;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: gray;
  @media (max-width: 767px){
    padding: 20px 0;
    font-size: 12px;
  }
}

/* FOOTER TIES AREA
--------------------------- */
#ft_ties_area {
  padding: 20px 10px;
}
#ft_ties_area p{
  margin: 0;
  text-align: center;
  line-height: 32px;
  font-size: 24px;
  font-weight: bold;
  @media (max-width: 767px){
    font-size: 18px;
  }
}
#ft_ties_area p img {
vertical-align:middle;
  margin-right: 20px;
  width: 64px;
  @media (max-width: 767px){
    margin-right: 10px;
    width: 40px;
  }
}
#ft_ties_area p a{
  color: #3a3f51;
}

/* PAGE TOP
--------------------------- */
#pagetop_fixed {
  z-index: 9998;
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  border-radius: 5px;
  width: 60px;
  height: 60px;
  background: rgba(000,000,000,0.7);
  @media (max-width: 767px){
    bottom: 4px;
    right: 4px;
    width: 50px;
    height: 50px;
  }
}
#pagetop_fixed a,
#pagetop_fixed img{
  display: block;
  width: 100%;
  height: 100%;
}

