@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: WindSong-Regular;
    src: url(../fonts/WindSong-Regular.ttf);
}

@font-face {
    font-family: NotoSansJP-Regular;
    src: url(../fonts/NotoSansJP-Regular.ttf);
}

/* メモ帳 */
.toggle-btn {
  position: fixed;
  top: 4vw;
  left: 0; /* 最初は画面の左端にくっつける */
  z-index: 11;
  padding: 2% 3%;
  background: #E83929;
  color: #fff;
  font-size: 6vw;
  border: none;
  cursor: pointer;
  border-radius: 0 5px 5px 0; /* 右側だけ丸みをつける */
  
  /* ボタンもスッと動かすための設定 */
  transition: left 0.3s ease;
}

/* メモが開いたとき、ボタンを右に移動させる */
.toggle-btn.active {
  left: 80%; /* サイドバーの横幅（300px）と同じ分だけ右にずらす */
}

/* サイドバーの基本スタイル */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%; /* メモ帳の横幅 */
  height: 100vh;
  background: #f7f7f7;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  z-index: 10;
  padding: 3vw 2vw 2vw 2vw; /* ボタンと被らないよう上を少しあける */
  box-sizing: border-box;

  overflow-y: auto;       /* 縦方向にはみ出したら自動でスクロールバーを出す */
  overflow-x: hidden;     /* 横方向のはみ出しは隠して、横スクロールを防ぐ */
  
  /* 最初は左側に隠す */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* このクラスがつくと左から出てくる */
.sidebar.open {
  transform: translateX(0);
}

.memo-content div {
    margin-bottom: 10%;
}

.memo-content div h3 {
    margin-bottom: 2%;
    padding: 1%;
    font-size: 6vw;
    color: #fff;
    border: 1px;
    border-radius: 2vw;
    background-color: rgba(232, 57, 41, 0.6);
}

.memo-content div p {
    font-size: 4vw;
    margin-left: 1em;
    line-height: 1.7;
    white-space: pre-wrap;
    color: #202020;
}

.works-card_concept {
    list-style-type: none;
}

.works-card_concept li {
    margin-bottom: 4%;
}

.works-card_concept li p {
    font-size: 4vw;
    margin-left: 1em;
    line-height: 1.7;
    color: #202020;
}

.works-card_concept li p::before {
    content: "・";
    color: #202020;
}
/* メモ帳終了 */


body {
    font-family: NotoSansJP-Regular;
}

/* ヘッダー */
header {
    background-color: #F4EFEA;
    padding-bottom: 15vw;
}

.header-flex-1 {
    display: flex;
    width: 80%;
    padding-top: 3%;
    padding-bottom: 3%;
    margin-left: auto;
    margin-right: auto;
}

.header-flex-1 h1 {
    width: 60%;
    margin-right: auto;
    margin-left: auto;
}

.header-flex-1 h1 a img {
    display: block;
    width: 100%;
    vertical-align: bottom;
}

.header-flex-1 nav {
    display: none;
    width: 50%;
    margin-left: auto;
}

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

.header-flex-1 nav ul li {
    width: calc( 100% / 5 );
}

.header-flex-1 nav ul li a {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 2.8;
    font-size: 1.4vw;
    color: #1E3A5F;
}

.header-flex-1 nav ul li a:active {
    color: 	#E6C200;
}

.main-visual-box {
    position: relative;
}

.main-visual-box .text-box {
    position: absolute;
    top: 30%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    white-space: pre-wrap;
    z-index: 2;
}

.main-visual-box .text-box p:nth-of-type(1) {
    position: absolute;
    line-height: 2.5;
    font-family: WindSong-Regular;
    font-size: 12vw;
    text-shadow: 1px 1px 20px rgba( 30, 58, 95, 0.8);
    color: rgba(255, 255, 255, 0.5);
}

.main-visual-box .text-box p:nth-of-type(2) {
    width: 100vw;
    text-align: center;
    font-size: 5.5vw;
    color: #F4EFEA;
    line-height: 3;
    background-color: #1E3A5F;
}

/* メインビジュアルのスライドショー */
.main-visual {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.main-visual div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 24s infinite;
}

.main-visual div:first-of-type {
    background-image: url(../images/smart_main-visual-1.png);
    animation-delay: 0s;
}

.main-visual div:nth-of-type(2) {
    background-image: url(../images/smart_main-visual-2.png);
    animation-delay: 6s;
}

.main-visual div:nth-of-type(3) {
    background-image: url(../images/smart_main-visual-3.png);
    animation-delay: 12s;
}

.main-visual div:nth-of-type(4) {
    background-image: url(../images/smart_main-visual-4.png);
    animation-delay: 18s;
}

@keyframes fade {
    0% {
        opacity: 1;
        z-index: 0;
    }
    25% {
        opacity: 1;
        transform: scale(1.05);
        z-index: 1;
    }
    26% {
        opacity: 0;
        z-index: 0;
    }
    100% {
        opacity: 0;
        z-index: 0;
    }
}
/* メインビジュアルのスライドショー */
/* ヘッダー */

/* メイン */
html {
    scroll-behavior: smooth;
}
/* ページ内リンクをスムーズに移動 */

main {
    background-color: #F4EFEA;
}

section {
    padding-bottom: 20%;
}

section h2 {
    text-align: center;
    letter-spacing: 0.5vw;
    font-size: 6vw;
    margin-bottom: 5%;
    color: #1E3A5F;
}

.btn-container a {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 1%;
    font-size: 4.5vw;
    border: 1px;
    border-radius: 5vw;
    text-decoration: none;
    color: #F4EFEA;
    background-color: #1E3A5F;
}
/* デコレーション */
.decoration-1 {
    width:50vw;
    margin-left: auto;
    margin-right: auto;
}

.decoration-1 img {
    width: 100%;
    vertical-align: bottom;
}
/* デコレーション */

/* メイン */

/* トピックス */
section:first-of-type {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.news-list {
    margin-bottom: 5%;
}

.news-list ul {
    list-style-type: none;
}

.news-list ul li {
    margin-bottom: 6%;
    border-bottom: 1px dotted #1E3A5F;
}

.news-list ul li a {
    display: block;
    width: fit-content;
    padding-top: 1%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 1%;
    font-size: 3.5vw;
    text-decoration: none;
    color: #202020;
}

.news-list ul li a p:first-of-type {
    width: fit-content;
    color: #1E3A5F;
    padding: 1%;
    margin-bottom: 3%;
    border: 1px solid #1E3A5F;
}
/* トピックス */

/* メニュー */
section:nth-of-type(2) {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

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

.menu-flex-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5%;
}

.menu-flex-box div {
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 6%;
    background-color: rgba(255, 255, 255, 0.6);
}

.menu-flex-box div:nth-of-type(1),
.menu-flex-box div:nth-of-type(2) {
    margin-bottom: 10%;
}

.menu-flex-box div a {
    display: block;
    text-decoration: none;
}

.menu-flex-box div a img {
    width: 100%;
    vertical-align: bottom;
    margin-bottom: 6%;
}

.menu-flex-box div a p {
    text-align: center;
    font-size: 3.5vw;
    color: #202020;
}
/* メニュー */

/* アクセス */
section:nth-of-type(3) {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.access-flex-box {
    display: flex;
    flex-direction: column;
    border: 1px;
    border-radius: 2vw;
    box-shadow: 1px 1px 8px rgba( 30, 58, 95, 0.8);
}

.access-flex-box iframe {
    display: block;
    width: 100%;
    height: 40vw;
    border: 1px;
    border-top-left-radius: 2vw;
    border-bottom-left-radius: 2vw;
}

.info-row {
    display: grid;
    grid-template-columns: 30% 1fr;
    margin-left: 2%;
    margin-right: 2%;
    padding-bottom: 2%;
    border-bottom: 2px dotted #1E3A5F;
    margin-bottom: 4.5%;
    
}

.info-row p {
    font-size: 3.5vw;
    line-height: 1.7;
    color: #202020;
}

.info-row:nth-of-type(4) {
    border: none;
}

.access-flex-box address {
    width: 100%;
    font-style: normal;
}
/* アクセス */

/* ギャラリー */
/* ギャラリースライドショー */
.slider-wrapper {
    display: flex;
    margin-bottom: 5%;
    overflow: hidden;
}

.slider {
    animation: scroll-left 20s infinite linear both;
    display: flex;
    list-style-type: none;
}

.slide {
    width: calc( 400vw / 5 );
}

.slide img {
    display: block;
    width: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* ギャラリースライドショー */
/* ギャラリー */

/* フッター */
footer {
    position: relative;
    width: 100%;
    height: 60vw;
    background-image: url(../images/footer_background.jpg);
    background-size: cover;
}

.footer_back-ground {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 100%;
    height: 60vw;
    background-color: rgba(244, 239, 234, 0.3);
}

.footer-flex-box {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.footer-flex-box div:first-of-type {
    width: 50%;
    margin-right: auto;
    margin-left: auto;
}

.footer-flex-box div:first-of-type img {
    width: 100%;
    margin-bottom: 5%;
    vertical-align: bottom;
}

.footer-flex-box div:nth-of-type(2) {
    display: flex;
    width: 100%;
    background-color: rgba( 30, 58, 95, 0.8);
}

.footer-flex-box div:nth-of-type(2) ul {
    width: 50%;
    list-style-type: none;
}

.footer-flex-box div:nth-of-type(2) ul:first-of-type {
    border-right: 1px solid #F4EFEA;
}

.footer-flex-box div:nth-of-type(2) ul li {
    margin: 1%;
}

.footer-flex-box div:nth-of-type(2) ul li a {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    line-height: 2;
    font-size: 3.5vw;
    color: #F4EFEA;
    
}

.footer_back-ground p {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    line-height: 3;
    font-size: 2vw;
    background-color: #1E3A5F;
    color: #F4EFEA;
}
/* フッター */