@charset "UTF-8";
/* ネイティブ変数　　変数名の先頭に「--」をつけて値を定義し、 var(変数名) で呼び出すことができる。 */
:root {
  --link-color: #016cca;
  --main-color: #339183;
  --text-color: #333;
  --white-color: #fff;
  --accent-color:#fcc;
  --small-size: #14px;
}
/* ------------------------------
    reset
------------------------------ */
*, *::before, *::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
ul, li {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
/* hover 忘れずに*/
img {
  max-width: 100%;
  vertical-align: bottom;
}
/* ------------------------------
    body
------------------------------ */
body {
  /* ネイティブ変数を呼び出す */
  color: var(--text-color);
  font-size: 15px;
  font-family:
  'Helvetica Neue',
  Arial,
  'Noto Sans Jp',
  'Hiragino kaku Gothic ProN',
  'Hiragino sans',
  sans-serif,
  Meiryo;
  line-height: 1.0;
}
h2, h3, h4 {
  font-family: sans-serif;
}

@media screen and (max-width:480px) {
  .key-visual ul li img{
    width: 60%;
  }
}
/* PCデバイスで若干見やすくする */
@media screen and (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

/* ------------------------------
    layout
------------------------------ */
.container {
  width: 90%;
  /* sp用デバイスで左右に５％空けるレイアウトを作るため */
  max-width: 1080px; 
  margin: 0 auto;
}
h3 {
  color: var(--main-color);/* 変数の呼び出し */
  font-size: 40px;
}
/* ------------------------------
    header
------------------------------ */
/* .header {
  width: 100%;
} */
.header  .logo {
  text-align: center;
}
.header h1 {
  height: 90px;
  display: inline-block;
  background-image: url(../img/logo01.svg);
  /* background-size: cover; */
  background-position: center center;
  background-repeat: no-repeat;
  text-indent: 100%;   /* 右にずらす */
  white-space: nowrap;  /*  改行しない 文字列は繰り返さない*/
  overflow: hidden;
}
@media screen and (min-width: 768px) {
  .header > .container {
    display: flex;
  }
  .header h1 {
    height: 90px;
    width: 240px;
    background-image: url(../img/logo01.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-indent: 100%;   /* 右にずらす */
    white-space: nowrap;  /*  改行しない 文字列は繰り返さない*/
    overflow: hidden;
  }
}
/* ------------------------------
nav
------------------------------ */
.gnav > ul {
  display: flex;
  /* gap: 10px; */
  flex-flow: column;
  justify-content: center;
}
.gnav li {
  line-height: 40px;
  text-align: center;
  }
  .gnav li a {
    font-size: 14px;
    font-weight: 700;
    border-bottom: dotted 2px #339183;
  }
@media screen and (min-width: 768px) {
  .gnav {
    margin-left: auto;
    width: 100%;
  }
  .gnav > ul {
    flex-flow: row wrap;
  }
  .gnav > ul {
    max-width: 900px;
    /* margin: 0 auto; */
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
    align-items: center;
  }
  .gnav li {
  line-height: 80px;
  }
  .gnav li a {
    font-size: 14px;
    position: relative;
    display: inline-block;
    text-align: center;
    font-weight: 700;
    /* 「font-weight:bold;」と同義。初期値は400 */
    color: inherit;
    line-height: 2em;
    /* ［class="current"］の影響で赤色になった要素を戻す */
    border-bottom: none;
  }
  .gnav li a::after {
    display: block;
    content:'';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    /* 起点は左下(bottom,left)、高さ2px幅は文字（コンテナ）分100％のラインを作る */
    background-color: var(--main-color);
    transform: scale(0, 1);
    /* こっちがオブジェクトの始点 */
    transform-origin: center top;
    /* 要素（ラインオブジェクト）の起点は真ん中トップから */
    transition: .3s;
  }
  .gnav li a:hover::after {
    transform: scale(1, 1);
    /* こっちがオブジェクトの終点。 scale(0, 1)からscale(1, 1)まで、x軸方向に「１」倍だけ動く。数字は要素の長さに対する倍率となる。（ */
  } 
  .gnav li.current > a {
    color: var(--main-color);
  }
}
/* 現在いるページを赤色に表示するために、［class="current"］を加える */
/* ------------------------------
    key-visual
------------------------------ */
.key-visual .slider img {
  width: 100%;
  height: calc(100vh - 150px);
  object-fit: cover;
}
.key-visual > .container {
  /* 既に「.container」に幅指定がされているので、高さを加えて指示することでコンテナを作ることができる （display:flex;が使える） */
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-color);/* 変数呼び出し */
  text-align: center;/* 孫要素（h2,p）にも効く */
}
.key-visual .catch {
  font-size: 18px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  position: absolute;
  top: 58%;
  left: 65%;
  /* background-color: #fff; */
  line-height: 1.7;
}
@media (min-width:768px){
  .key-visual .slider img {
    width: 100%;
    height: calc(100vh - 90px);
    object-fit: cover;  
  }
  .key-visual > .container {
    /* 既に「.container」に幅指定がされているので、高さを加えて指示することでコンテナを作ることができる （display:flex;が使える） */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);/* 変数呼び出し */
    text-align: center;/* 孫要素（h2,p）にも効く */
  }
  .key-visual .catch {
    font-size: 24px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    position: absolute;
    top: 25%;
    left: 15%;
    /* background-color: #fff; */
    line-height: 1.7;
  }
}
/* ------------------------------
    main
------------------------------ */
/* ------------------------------
    focus
------------------------------ */
.focus h2 {
  margin-top: 60px;
  margin-bottom: 120px;
  font-size: 18px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin-left: auto;
  margin-right: auto;
  /* position: absolute;
  top: 25%;
  left: 15%; */
  /* background-color: #fff; */
  line-height: 1.7;
}
/* ------------------------------
    about
------------------------------ */
.about > .text > h3 {
  padding-left: 30px;
  font-size: 32px;
  margin-bottom: 20px;
}
.about > .text > p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
}
.about > .photo {
  margin-bottom: 80px;
}
@media (min-width:768px){
  .about:nth-child(2) {
    display: flex;
    /* padding-left: 30px; */
    margin-bottom: 30px;
  }
  .about .photo {
    width: 50%;
  }
  .photo > img {
    height: 100%;
    width: 100%;
    vertical-align: bottom;
  }
  .about .text {
    width: 50%;
  }
  .about > .text > h3 {
    padding-left: 0px;
    margin-bottom: 15px;
    font-size: 32px;
    width: 90%;
  }
  .about > .text > p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
  }
  .about:nth-child(2) >.text > p {
    padding-right: 30px;
  }
  .reverse {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: 30px;
  }
  .reverse > .text {
    padding-left: 30px;
  }
} 

/* ------------------------------
    footer
------------------------------ */
.footer {
  background-color: var(--main-color);
}
.footer > .container {
  padding: 60px 0;
}
.footer ul {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.footer ul a, .footer small {
  color: var(--white-color);
}
.footer ul a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
.footer .copyright {
  margin-bottom: 10px;
}
.footer .sns {
  display: flex;
}
.footer .sns p{
  color: var(--white-color);
  padding-bottom: 8px;
  padding-left: 6px;
  display: inline-block;
}
