@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

/* ヘッダー部分ここから//////////////////// */
header {
    position: fixed;
    display: flex;
    top: 0;
    width: 100%;
    padding: 1%;
    margin-left: auto;
    margin-right: auto;
    align-items: baseline;
    backdrop-filter: blur(4px);
}

h1 {
    width: 25%;
    margin-top: 1%;
    margin-left: 10%;
}

h1 img {
    width: 100%;
    transition: 2s;
}

h1:hover img {
    transform: rotateY(360deg);
    transition: 2s;
}

nav {
    width: 50%;
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    width: 20%;
}

nav ul li a {
    display: block;
    text-align: center;
    line-height: 3;
    text-decoration: none;
    font-weight: 400;
    color: #142979;
    font-size: 1.2vw;
    transition: 1s;
}

a {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

a::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  content: '';
  width: 100%;
  height: 1px;
  background: #142979;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform .3s;
}
a:hover::after {
  transform: scale(1, 1);
}
/* ヘッダー部分ここまで/////////////////// */

main picture img {
    max-width: 100%;
    height: auto;
    margin-top: 10%;
}

/* セクション部分ここから */
main {
    width: 80%;
    margin-top: 5%;
    margin-bottom: 10%;
    margin-left: auto;
    margin-right: auto;
}


/* ここから冒頭部分 */
.flex-box {
    display: flex;
}

.child-box2 {
    width: 90%;
    margin-top: 14%;
    margin-left: 5%;
    font-size: 1.2vw;
    color: #202020;
}
 
.child-box2 p {
    width: fit-content;
    margin-top: 3%;
    margin-left: auto;
    margin-right: auto;
    padding: 2% 14%;
    font-size: 1.2vw;
    border: 3px solid #142979;
    border-radius: 5px;
    background-color: #ffffff;
    transition: 1s;
}

.child-box2 p:hover {
    color: #ffffff;
    background-color: #142979;
    transition: 1s;
    opacity: 8;
}

.child-box2 p {cursor: context-menu} 
/* ここまで冒頭部分 */

/* ここから得意分野の文字など */
section:nth-of-type(1) {
    margin-top: 10%;
}

h2 {
    padding-bottom: 2%;
    font-size: 2.5vw;
    border-bottom: 2px solid #142979;
    color: #142979;
}

h3 {
    padding-top: 2%;
    font-size: 1.5vw;
    color: #142979;
}

h4 {
    margin-top: 4%;
    margin-bottom: 3%;
    font-size: 1.3vw;
    color: #2e46a6;
}

.parent-box p {
    font-size: 1.1vw;
}

.parent-box2 p {
    font-size: 1.1vw;
}

/* ここまで得意分野なども文字 */

/* ここから得意分野セクション部分 */
.parent-box {
    display: block;
    margin-top: 3%;
    margin-bottom: 5%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-box {
    display: block;
    width: 90%;
    padding: 2% 5%;
    transition: 1s;
    border-radius: 1vw;
    box-shadow: 3px 5px 6px rgb(209, 222, 255);
    /* box-shadowは要素に影をつけるプロパティ。
    値の一つ目は影を右にずらす距離の指定。
    値の二つ目は影を下にずらす距離の指定。
    値の三つ目は影のぼかしの距離の指定。
    値の四つ目は影の広がりの距離の指定。
    値の五つ目は影の色の指定。 */
}

.section-box:hover {
    background-color: #e3ecf9;
    box-shadow: 3px 5px 4px rgb(163, 175, 205);
    transition: 1.5s;
}

.section-box2 {
    display: block;
    width: 90%;
    padding: 2% 5%;
    transition: 1s;
    border-radius: 1vw;
    box-shadow: 3px 5px 4px rgb(209, 222, 255);
}

.section-box2:hover {
    background-color: #e3ecf9;
    box-shadow: 3px 5px 4px rgb(163, 175, 205);
    transition: 1s;
}

.parent-box2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-box3 {
    display: block;
    width: 90%;
    padding: 2% 5%;
    transition: 1s;
    border-radius: 1vw;
    box-shadow: 3px 5px 4px rgb(209, 222, 255);
}

.section-box3:hover {
    background-color: #e3ecf9;
    box-shadow: 3px 5px 4px rgb(163, 175, 205);
    transition: 1s;
}

.section-box4 {
    display: block;
    width: 90%;
    padding: 2% 5%;
    transition: 1s;
    border-radius: 1vw;
    box-shadow: 3px 5px 4px rgb(209, 222, 255);
}

.section-box4:hover {
    background-color: #e3ecf9;
    box-shadow: 3px 5px 4px rgb(163, 175, 205);
    transition: 1s;
}
/* ここまで得意分野セクション部分 */

/* スライドショー余白 */
section:nth-of-type(2) h3 {
    margin-top: 10%;
}

/* ここからスライドショー実装 */
.wrap {
    display: flex;
    margin-top: 2%;
    align-items: center;
    height: 14vw;
    overflow: hidden;
}

.slideshow {
    display: flex;
}

.content {
    width: 14vw;
    list-style-type: none;
}

.slideshow img {
    width: 100%;
}

.slideshow {
    display: flex;
    animation: loop-slide 20s infinite linear 1s both;
}
@keyframes loop-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.slide-paused:hover .slideshow {
  animation-play-state: paused;
}
/* ここまでスライドショー終わり */

/* ここからニュース部分 */

main section p time {
    display: inline-block;
    width: 16%;
    font-size: 1vw;
    font-weight: 600;
    color: #808080;
}

main section:nth-of-type(3) {
    margin-top: 10%;
}

main section:nth-of-type(3) h2 {
    margin-bottom: 5%;
}

main section:nth-of-type(3) p {
    padding-left: 2%;
    border-top: 1px solid #80808080;
    line-height: 4;
    color: #202020;
}

main section:nth-of-type(3) p:last-child {
    border-bottom: 1px solid #808080;
}


/* ここからフッター部分 */
footer {
    margin-top: 5%;
    color: #ffffff;
    background-image: linear-gradient(360deg, rgba(68, 116, 211, 1) 20%, rgba(20, 41, 121, 1) 76%);
}

footer h2 {
    margin-left: 10%;
    color: #ffffff;
}

footer p {
    margin-left: 10%;
    font-style: normal;
}

.footer-container1 {
    padding-top: 5%;
}

.footer-container {
    display: flex;
    width: 80%;
    margin-bottom: 5%;
    padding-top: 5%;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
}

.footer-child-container {
    width: 40%;
}

h5 {
    margin-left: 10%;
    font-size: 0.9vw;
    font-weight: 300;
}

figcaption {
    font-weight: 700;
}

footer ul {
    width: 100%;
    list-style-type: none;
    line-height: 3;
}

footer ul li a {
    color: #1C1C1C;
    text-decoration: none;
    font-size: 1.2vw;
}

small {
    font-weight: 500;
    font-size: 1vw;
    color: #142979;
}





