/* ==========================================================================
   base.css
   1. variables / 2. reset / 3. base / 4. common parts / 5. layout
   6. header / 7. footer / 8. utility / 9. print
   ========================================================================== */

/* 1. variables
---------------------------------------------------------------------------- */
:root {
  --color-primary: #014098;
  --color-accent: #e5266a;
  --color-navy: #283666;
}

/* 2. reset
---------------------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
* {
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
table {
  font-weight: normal;
  border-collapse: collapse;
  border-spacing: 0;
}
sub {
  vertical-align: sub;
}
sup {
  vertical-align: super;
}
i {
  font-style: italic;
}
b {
  font-weight: 700;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: bottom;
}

/* 3. base
---------------------------------------------------------------------------- */
html {
  font-size: 0.7163323782vw;
  scroll-behavior: smooth;
}
@media screen and (min-width: 1396px), screen and (max-width: 767px) {
  html {
    font-size: 62.5%;
  }
}
body {
  position: relative;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  font-style: normal;
  font-feature-settings: 'palt';
  line-height: 1;
  color: #000;
  -webkit-text-size-adjust: 100%;
  animation: fadeIn 1.5s ease 0s 1 normal;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
a {
  color: var(--color-navy);
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
  transition: 0.5s;
}
a:focus {
  outline: auto;
  outline-color: var(--color-navy);
}
a img {
  vertical-align: middle;
  margin: 0 0.5rem;
}
@media screen and (max-width: 767px) {
  img {
    max-width: 100%;
  }
}

/* 4. common parts
---------------------------------------------------------------------------- */
/* title */
.c-title {
  position: relative;
  text-align: center;
  font-size: 4.8rem;
  line-height: 1.4791666667;
  font-weight: 700;
  margin-bottom: 8rem;
  padding: 6.4rem 0;
  color: #ffffff;
  background: url("../../img/common/bg_title.webp") no-repeat center center / 100% auto;
}
@media screen and (max-width: 767px) {
  .c-title {
    font-size: 2.4rem;
    line-height: 1.6;
    margin-bottom: 6rem;
    background-size: auto 100%;
  }
}
/* text */
.c-text {
  font-size: 1.8rem;
  line-height: 1.6666666667;
  font-weight: normal;
}
@media screen and (max-width: 767px) {
  .c-text {
    font-size: 1.6rem;
    line-height: 1.7857142857;
    letter-spacing: 0.04em;
  }
}
/* hover */
@media screen and (min-width: 768px) {
  .c-hover {
    display: block;
    transition: 0.4s;
  }
  .c-hover:hover {
    opacity: 0.7;
  }
}

/* 5. layout
---------------------------------------------------------------------------- */
.main_cnts {
  width: 100%;
  overflow: hidden;
}
.l-wrapper,
.l-inner {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 767px) {
  .l-wrapper,
  .l-inner {
    width: 100%;
    max-width: inherit;
  }
  .l-inner {
    padding: 0 2rem;
  }
}

/* 6. header
---------------------------------------------------------------------------- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 1.5rem 0 rgba(0, 0, 0, 0.26);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* logo */
.header__logo-wrap {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-left: 4rem;
}
.header__logo--primary {
  position: relative;
}
.header__logo--primary img {
  width: 14rem;
  vertical-align: top;
}
.header__logo--primary:after {
  display: inline-block;
  content: "";
  width: 1px;
  height: 5rem;
  margin-left: 3rem;
  background: #333333;
}
.header__logo--secondary img {
  width: 12rem;
}
html[lang="en"] .header__logo--secondary img {
  width: 24rem;
}
@media screen and (max-width: 767px) {
  .header__logo-wrap {
    gap: 1.5rem;
    padding-left: 2rem;
  }
  .header__logo--primary {
    padding-right: 1.5rem;
    border-right: 1px solid #000000;
  }
  .header__logo--primary:after {
    display: none;
  }
  .header__logo--primary img {
    width: 90px;
    vertical-align: middle;
  }
  .header__logo--secondary img {
    width: 80px;
  }
  html[lang="en"] .header__logo--primary img {
    width: 70px;
  }
  html[lang="en"] .header__logo--secondary img {
    width: 120px;
  }
}

/* nav : PC (1000px以上) */
.header__nav .menu-trigger {
  display: none;
}
.header__nav.header__nav--sp {
  display: none;
}
@media screen and (min-width: 1000px) {
  .header__nav {
    display: flex;
    justify-content: right;
    gap: 4rem;
  }
  .header__nav .menu-content {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  .header__nav-list {
    display: flex;
    gap: 3rem;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
  }
  .header__nav-item a {
    color: #333333;
    text-decoration: none;
  }
  .header__nav-item a:hover {
    color: #4E82C7;
  }
  .header__nav-item a[href="#."] {
    pointer-events: none;
    opacity: 0.5;
  }
  .header__language {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 11.6rem;
    padding: 2rem 0;
    background-color: #c6d7ed;
  }
  .language__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 1rem;
    font-size: 1.5rem;
  }
  .language__item {
    position: relative;
  }
  .language__item a {
    position: relative;
    font-size: 1.4rem;
    line-height: 1.4285714286;
    font-weight: 500;
    color: #616161;
    text-decoration: none;
  }
  .language__item a:hover {
    color: #000;
  }
  .language__item:first-of-type:after {
    display: inline-block;
    content: "";
    width: 1px;
    height: 1.2rem;
    margin-left: 1rem;
    background: #333333;
  }
}

/* nav : ハンバーガー (1000px以下) */
@media screen and (max-width: 1000px) {
  .header__nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 18px;
    background-color: var(--color-primary);
    cursor: pointer;
  }
  .header__nav .menu-trigger {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 32px;
    height: 35px;
  }
  .header__nav .menu-trigger .line {
    position: absolute;
    width: 32px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease;
  }
  .header__nav .menu-trigger .line:nth-child(1) {
    top: 0;
  }
  .header__nav .menu-trigger .line:nth-child(2) {
    top: 8px;
  }
  .header__nav .menu-trigger .line:nth-child(3) {
    top: 16px;
  }
  .header__nav .menu-trigger .menu-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #fff;
  }
  .header__nav .menu-trigger.open .line:nth-child(1) {
    width: 34px;
    top: 5px;
    transform: rotate(45deg);
  }
  .header__nav .menu-trigger.open .line:nth-child(2) {
    display: none;
  }
  .header__nav .menu-trigger.open .line:nth-child(3) {
    width: 34px;
    top: 5px;
    transform: rotate(-45deg);
  }
  .header__nav .menu-content {
    position: fixed;
    top: 65px;
    right: 0;
    z-index: 100;
    display: block;
    width: 100%;
    height: calc(100vh - 65px);
    padding: 20px;
    background-color: var(--color-primary);
    text-align: center;
    cursor: default;
    transform: translateX(100vw);
    transition: transform 0.3s ease;
  }
  .header__nav .menu-content.open {
    transform: translateX(0);
  }
  .header__nav .header__nav-list {
    margin-bottom: 32px;
  }
  .header__nav .header__nav-item a {
    display: flex;
    align-items: center;
    padding: 1em 1.25em;
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
  }
  .header__nav .header__language {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 16px 20px;
    background-color: #c6d7ed;
  }
  .header__nav .language__list {
    display: flex;
    gap: 1rem;
    font-size: 1.6rem;
  }
  .header__nav .language__item {
    display: flex;
    align-items: center;
  }
  .header__nav .language__item a {
    font-size: 1.6rem;
  }
  .header__nav .language__item:after {
    content: "|";
    display: block;
    margin-left: 1em;
  }
  .header__nav .language__item:last-of-type:after {
    content: none;
  }
}

/* 7. footer
---------------------------------------------------------------------------- */
.l-footer {
  padding: 5rem 0;
  background: #EFEFEF;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__left {
  display: flex;
  gap: 5rem;
}
.footer__logo-wrap {
  width: 7rem;
}
.footer__info {
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.6;
}
.footer__nav {
  margin-top: 1rem;
}
.footer-nav__item {
  padding-left: 1.7rem;
  background: url("../../img/common/icon_arrow_footer.svg") no-repeat left center;
}
.footer-nav__item a {
  color: #000000;
  text-decoration: none;
}
.footer-nav__item a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer__sns {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.sns-list__item {
  width: 4rem;
}
@media screen and (max-width: 767px) {
  .l-footer {
    padding: 4rem 2rem;
  }
  .footer__inner {
    flex-flow: column;
    gap: 2rem;
  }
  .footer__left {
    flex-flow: column;
    align-items: center;
    gap: 3rem;
  }
  .footer__logo-wrap {
    width: 5rem;
  }
  .sns-list__item {
    width: 3rem;
  }
}

/* pagetop */
.pagetop {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 998;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .pagetop {
    width: 6rem;
   right: 1rem;
   bottom: 1rem;
  }
}

/* 8. utility
---------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
  .nopc {
    display: none !important;
  }
}

/* 9. print
---------------------------------------------------------------------------- */
@media print {
  .header__inner nav.only-pc {
    display: flex !important;
  }
  .header__inner nav.under-tbl {
    display: none !important;
  }
  .pagetop {
    display: none;
  }
}
