@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Sawarabi+Mincho&display=swap');

/* 全体設定 */
/* 検証用  */
/* * {
    outline: 1px solid;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Sawarabi Mincho", serif;
    color: #083538;
}

html {
    font-size: 100%;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.wrapper {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 100px;
}

header .wrapper {
    margin-bottom: 0;
}

h2 {
    padding-top: 160px;
}

/*////// h2テキストアニメーション //////*/
/* 初期状態：画面外に配置し、透明にする */
.fade-in {
    opacity: 0;
    transform: translateY(100px);
    /* 下に100px移動 */
    transition: opacity 1s, transform 1s;
    /* アニメーションの時間 */
}

/* 活性状態：画面内に表示し、元の位置に戻す */
.fade-in.is-active {
    opacity: 1;
    transform: translateY(0);
    display: inline-block;
    border-bottom: 0.2rem solid #398187;
    margin-bottom: 60px;
}

@media screen and (max-width: 767px) {
    .site-header-navbtn {
        display: none;
        position: fixed;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        z-index: 1;
        background-color: #398187;
    }

    .site-header-navbtn span,
    .site-header-navbtn::before,
    .site-header-navbtn::after {
        width: 30px;
        height: 1px;
        background-color: #fafafa;
        position: absolute;
        top: 50%;
        left: 5px;
        transition: transform .4s;
    }

    .site-header-navbtn::before,
    .site-header-navbtn::after {
        content: '';
    }

    .site-header-navbtn::before {
        transform: translateY(-8px);
    }

    .site-header-navbtn::after {
        transform: translateY(8px);
    }

    .site-header-nav ul li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 1.5em;
    }

    .site-header-nav ul li a {
        text-decoration: none;
        font-size: .9rem;
        color: #000;
        position: relative;
    }

    body.is-nav-open .site-header-navbtn span {
        transform: scaleX(0);
    }

    body.is-nav-open .site-header-navbtn::before {
        transform: translateY(0) rotate(45deg);
    }

    body.is-nav-open .site-header-navbtn::after {
        transform: translateY(0) rotate(-45deg);
    }

    .site-header-navbtn {
        display: block;
    }

    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #398187;
        transform: translateX(-100%);
        transition: transform .6s;
    }

    body.is-nav-open .site-header-nav {
        transform: translateX(0);
    }

    .site-header-nav ul {
        display: flex;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
        color: #fafafa;
        border-bottom: 3px dotted #b2d5de;
    }

    .wrapper {
        margin-bottom: 100px;
    }
}

/* ///////////////////
 ヘッダー 
 ///////////////// */
header {
    position: fixed;
    background-color: #39818759;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    box-shadow: 2px 5px 20px 1px #17363859;
}

header .wrapper {
    display: flex;
    align-items: center;
}

header h1 a {
    color: #fafafa;
    background-color: #398187;
    padding: 35px 52px 35px 52px;
    display: block;
    margin: 0.5rem 0 0.5rem 1rem;
}

header nav ul {
    display: flex;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
}

header li {
    margin-left: 30px;
}

header li a {
    color: #24292e;
    font-weight: 700;
}

header li a:hover {
    opacity: 0.7;
}

header .site-header-nav ul li a span {
    color: red;
}

.nav img {
    max-width: 8%;
    position: absolute;
    bottom: 0;
    right: 445px;
}

.sp-only {
    display: none;
}

@media screen and (max-width: 767px) {

    header .wrapper,
    .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    header h1 a {
        writing-mode: horizontal-tb;
    }

    .nav img {
        display: none;
    }

    .sp-only {
        display: block;
    }
}

/* ///////////////////
 メインビジュアル 
 ///////////////// */
main {
    margin-top: 246px;
}

#mainvisual {
    margin-bottom: 80px;
}

#mainvisual img {
    display: block;
    width: 60%;
    height: 700px;
    object-fit: cover;
    margin: auto;
}

#mainvisual {
    font-size: 2.5em;
    color: #333;
    opacity: 0;
    animation: fadeIn 5s ease forwards;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 767px) {
    #mainvisual img {
        height: auto;
        width: 100%;
    }
}

/* ///////////////////
バナー・サイト共通
///////////////// */
.wrapper ul li img {
    max-width: 90%;
}

.two-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

span.red {
    color: red;
}

#works span.next {
    display: inline-block;
    margin-top: 50px;
}

.section-subtitle {
    display: inline-block;
    margin-bottom: 40px;
}

#banner-section {
    padding-bottom: 138px;
}

.two-rows h4 {
    padding-bottom: 20px;
}

.badge {
    display: inline-block;
    background-color: #398187;
    color: #fff;
    padding: 0.3rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
}

.original {
    display: inline-block;
    background-color: #ff006a;
    color: #fff;
    padding: 0.3rem 0.4rem;
    border-radius: 1rem;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
}

.otehon {
    display: inline-block;
    background-color: orange;
    color: #fff;
    padding: 0rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
    width: 25%;
}

.note {
    display: block;
    text-align: left;
    padding-bottom: 50px;
}

li p .arrow {
    font-size: 4rem;
    text-align: center;
    display: block;
}

.icon img {
    max-width: 8%;
}

.icon {
    padding-top: 100px;
}

/*////// 説明ポップアップ //////*/
/* サムネイル画像 */
.thumbnail {
    display: inline-block;
    margin: 15px;
    cursor: pointer;
    max-width: 200px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* モーダル全体 */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #ffffff;
}

/* サムネイル画像 */
.thumbnail {
    display: inline-block;
    margin: 15px;
    cursor: pointer;
    max-width: 200px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail-site {
    display: inline-block;
    margin: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail-site:hover {
    transform: scale(1.05);
}

/* モーダル全体 */
.modal {
    display: none;
    /* 初期非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* 半透明背景 */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* モーダル表示中 */
.modal.show {
    display: flex;
    opacity: 1;
}

/* モーダル画像 */
.modal-image {
    max-width: 80%;
    max-height: 70%;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

/* モーダル表示時の画像アニメーション */
.modal.show .modal-image {
    transform: scale(1);
}

/* モーダル説明文 */
.modal-text {
    color: #083538;
    font-size: 18px;
    max-width: 500px;
    width: 80%;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    background-color: #b2d5de;
    padding: 30px 30px;
    word-wrap: break-word;
}

@media screen and (max-width: 767px) {
    .modal-text {
        width: 90%;
    }
}

/* モーダル表示時の説明文アニメーション */
.modal.show .modal-text {
    opacity: 1;
}

/* 閉じるボタン */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}


@media screen and (max-width: 767px) {
    .two-rows {
        grid-template-columns: 1fr;
    }

    .two-rows li p {
        margin-top: 30px;
        margin-bottom: 25px;
    }
}

/* ///////////////////
バナー
///////////////// */
.center {
    grid-column: 1 / -1;
    justify-self: center;
}



/* ///////////////////
 ボタン
///////////////// */
.site-header-navbtn {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 1;
    background-color: #398187;
}

.site-header-navbtn span,
.site-header-navbtn::before,
.site-header-navbtn::after {
    width: 30px;
    height: 1px;
    background-color: #fafafa;
    position: absolute;
    top: 50%;
    left: 5px;
    transition: transform .4s;
}

.site-header-navbtn::before,
.site-header-navbtn::after {
    content: '';
}

.site-header-navbtn::before {
    transform: translateY(-8px);
}

.site-header-navbtn::after {
    transform: translateY(8px);
}

.site-header-nav ul li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 2em;
}

.site-header-nav ul li a {
    text-decoration: none;
    font-size: 1rem;
    color: #000;
    position: relative;
}

body.is-nav-open .site-header-navbtn span {
    transform: scaleX(0);
}

body.is-nav-open .site-header-navbtn::before {
    transform: translateY(0) rotate(45deg);
}

body.is-nav-open .site-header-navbtn::after {
    transform: translateY(0) rotate(-45deg);
}

@media screen and (max-width: 767px) {
    .site-header-navbtn {
        display: none;
        position: fixed;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        z-index: 1;
        background-color: #398187;
    }

    .site-header-navbtn span,
    .site-header-navbtn::before,
    .site-header-navbtn::after {
        width: 30px;
        height: 1px;
        background-color: #fafafa;
        position: absolute;
        top: 50%;
        left: 5px;
        transition: transform .4s;
    }

    .site-header-navbtn::before,
    .site-header-navbtn::after {
        content: '';
    }

    .site-header-navbtn::before {
        transform: translateY(-8px);
    }

    .site-header-navbtn::after {
        transform: translateY(8px);
    }

    .site-header-nav ul li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 1.5em;
    }

    .site-header-nav ul li a {
        text-decoration: none;
        font-size: .9rem;
        color: #000;
        position: relative;
    }

    body.is-nav-open .site-header-navbtn span {
        transform: scaleX(0);
    }

    body.is-nav-open .site-header-navbtn::before {
        transform: translateY(0) rotate(45deg);
    }

    body.is-nav-open .site-header-navbtn::after {
        transform: translateY(0) rotate(-45deg);
    }

    .site-header-navbtn {
        display: block;
    }

    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #398187;
        transform: translateX(-100%);
        transition: transform .6s;
    }

    body.is-nav-open .site-header-nav {
        transform: translateX(0);
    }

    .site-header-nav ul {
        display: flex;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;

    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
        color: #fafafa;
        border-bottom: 3px dotted #b2d5de;
    }
}

/* ///////////////////
 フッター 
 ///////////////// */
footer {
    padding: 35px 0;
    background-color: #398187;
}

footer p{
    color: #fff;
}

.ship {
    position: relative;
    top: 6px;
    left: 550px;
}

@media screen and (max-width: 767px) {
    .ship{
        left: 20%;
    }
}
