/* style.css */

/* 全体のスタイル */
* {
    box-sizing: border-box;
}
body {
    font-family: monospace, Arial, sans-serif;
    color: #555;
    margin: 0;
    padding: 0;
}
.flex {
    display: flex;
}
h1 {
    text-align: center;
    font-size: 25px;
    margin: 0 0 10px;
}
.container {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px;
}
/* ヘッダー */
.header {
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
}

/*TOPページ*/
.top > .header {
    text-align: unset;
    height: 500px;
}
.top > .header > img.bg {
    width: 100%;
    height: 100%;
    opacity: 50%;
    object-fit: cover;
}

/**ナビゲーション**/
.nav {
    padding: 1rem;
    display: flex;
    position: fixed;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.3);
    width: 100%;
    height: auto;
}

.nav > .logo {
    width: 30%;
}

.nav > .hamburger {
    display: none; /* デフォルトで非表示 */
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
    margin-left: auto;
    transition: all 0.3s ease;
}

.nav > .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    transition: all 0.3s ease;
}

.nav > .hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 9px;
}

.nav > .hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav > .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -9px;
}

.nav > .menu {
    display: flex;
    gap: 1rem;
    margin: 50px 10rem 0 0;
    visibility: visible; /* PCではメニュー表示 */
    opacity: 1; /* PCでは透明度を1 */
    flex-direction: row; /* 横並びにする */
    gap: 1rem;
    position: unset;
    top: unset;
    right: unset;
    background-color: unset;
    box-shadow: unset;
    padding: unset;
    margin: unset;
}

/* メニューのリンク */
.nav > .menu a {
    color: #666;
    font-weight: bold;
    text-decoration: none;
}

.nav > .menu a:hover {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .nav > .logo {
        width: 70%;
    }

    .nav > .hamburger {
        display: flex; /* モバイル時に表示 */
    }

    /* モバイルメニューの設定 */
    .nav > .menu {
        visibility: hidden; /* 初期状態は非表示 */
        opacity: 0; /* 初期状態は透明 */
        transform: translateY(-30px); /* 初期位置 */
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s; /* visibility を最後に切り替える */
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        flex-direction: column;
        background-color: rgba(255, 200, 200, 0.3);
        width: 100%;
    }

    .nav > .menu.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0); /* メニューを開いた位置に移動 */
        transition: transform 0.3s ease, opacity 0.3s ease; /* visibility の遅延を除外 */
    }
}

/* メインコンテンツ */
.main {
    margin-top: 20px;
}

.section {
    text-align: center;
    position: relative; /* 相対位置指定 */
    padding: 130px 60px 0 60px;
    /* font-size: 16px; */
}
@media screen and (max-width: 768px) {
    .section {
        font-size: 16px;
        padding: 130px 10px 0 10px;
    }
}
.section::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 130px;
    bottom: -125px;
    border-radius: 0 0 50% 50%;
    z-index: 1;
}
.section > h1 {
    text-align: center;
    /* font-size: 25px; */
    margin: 0 0 10px;
    padding: 1rem;
    color: white;
}

#about {
    padding: 60px 60px 0 60px;
    background-color: #ffc0c0;
    border-radius: 10px 10px 0 0;
    text-align: left;
}
@media screen and (max-width: 768px) {
    #about {
        padding: 60px 10px 0 10px;
    }
}
#about::after {
    background: #ffc0c0;
}

#youtube {
    background-color: #ffe8aa;
}
#youtube::after {
    background: #ffe8aa;
}

#youtube a {
    text-decoration: none;
    margin-bottom: 40px;
    display: block;
}

#slides {
    background-color: #cdf5dd;
}
#slides::after {
    background: #cdf5dd;
}

/* ボタン全体のスタイル */
.channnel {
    display: inline-block;
    background-color: #fff;
    border: 3px solid #f39595;
    border-radius: 20px;
    padding: 10px;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #555;
    margin: 10px;
}

/* ボタン内の画像と情報の横並び */
.channel-img {
    display: inline-block;
    width: 80%;
    margin: 30px 0;
}

.channel-info {
    display: inline-block;
    vertical-align: top;
    text-align: center;
}

.channel-info h2 {
    margin: 20px 0 0 0;
}

/* ホバー時のスタイル */
.channnel:hover {
    background-color: #eee;
}

/* クリック時のスタイル */
.channnel:active {
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#sns {
    background-color: #ccdcf5;
}
#sns::after {
    background: #ccdcf5;
}
.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666666;
    margin: 0 10px;
    transition: transform 0.2s;
    width: calc(100% / 3);
}
.social-icon:hover {
    transform: translateY(-3px);
}
.icon-image {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}
#goods {
    background-color: #e7c8f3;
}
#goods::after {
    background: #e7c8f3;
}
#goods div {
    display: flex;
    padding: 20px;
    justify-content: space-around;
}

#goods .goods-image {
    width: 50%;
}
@media screen and (max-width: 768px) {
    #goods div {
        display: block;
    }
    #goods .goods-image {
        width: 100%;
    }
}
#info {
    text-align: center;
    background-color: #ddd;
    padding-bottom: 60px;
    border-radius: 0 0 10px 10px;
}
#info::after {
    height: 0;
}

/* まりんとすふぃあ */
.about h1 {
    background-color: #ffc0c0;
    padding: 50px;
    color: white;
}
.marine-sphere-body {
    width: 80%;
    margin: 3rem auto 0 auto;
}
.marine-text,
.sphere-text {
    width: 50%;
}
.marine-sphere-img {
    width: 100%;
}
.marine-sphere-intro {
    display: flex;
}
.marine-sphere-intro > img {
    margin-top: 3rem;
    width: 50%;
    height: 50%;
}
.marine-sphere-intro table {
    margin: 2rem 0;
}
.marine-sphere-intro table > tbody > tr > th {
    white-space: nowrap;
    padding-right: 0.5rem;
}
.marine-text > h2 {
    text-align: center;
    border-bottom: solid 3px #92e4b4;
}
.sphere-text > h2 {
    text-align: center;
    border-bottom: solid 3px #a18ad2;
}
.marine-text > .twitter,
.sphere-text > .twitter {
    margin: 1rem;
}

@media screen and (max-width: 768px) {
    .marine-sphere-body {
        width: 100%;
    }
    .marine-text,
    .sphere-text {
        width: 70%;
    }
    .marine-sphere-intro > img {
        margin-top: 3rem;
        width: 30%;
        height: 50%;
    }
}

/* 記事一覧 */

.article-category {
    border-bottom: solid 3px #ffe8aa;
}
.category-list {
    border: solid 3px #ffe8aa;
    margin: 2rem 0;
}
.category-list > h3 {
    background-color: #ffe8aa;
    margin: 0;
    padding: 1rem;
}
/* 記事 */
.title > h2 {
    background-color: #f39595;
    color: #fff;
    padding: 0.5rem;
}
.article-contents {
    border: solid 3px #f39595;
    margin: 2rem 0;
}
.article-contents > h3 {
    background-color: #f39595;
    color: #fff;
    margin: 0;
    padding: 1rem;
}

.article-body > h3 {
    max-width: unset;
    border-bottom: solid 3px #f39595;
}

.article-body > p {
    position: relative;
    color: #333; /* テキストの色 */
    padding: 10px 15px; /* 吹き出し内の余白 */
    border-radius: 10px; /* 吹き出しの丸み */
    word-wrap: break-word; /* 長いテキストを折り返す */
    margin-left: 170px; /* アイコンのスペースを作るための左余白 */
    margin-right: 100px;
}
@media screen and (max-width: 768px) {
    /* 600pxまでの幅の場合に適応される */
    .article-body > p {
        margin-left: 70px; /* アイコンのスペースを作るための左余白 */
        margin-right: 0px;
    }
}
.article-body > p::before {
    content: "";
    position: absolute;
    top: 10px; /* 吹き出しとアイコンの縦位置を揃える */
    left: -70px; /* アイコンの横位置 */
    width: 50px; /* アイコンの直径 */
    height: 50px;
    background-size: cover; /* 画像を丸枠内に収める */
    background-position: center; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像の繰り返しを無効化 */
    border-radius: 50%; /* 丸いアイコン */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* アイコンに影を付ける */
}
.article-body > p::after {
    content: "";
    position: absolute;
    top: 20px; /* 吹き出し先端の縦位置 */
    left: -10px; /* 吹き出し先端の横位置 */
    border-width: 10px; /* 吹き出しの先端サイズ */
    border-style: solid;
}
.article-body > p.marine {
    background-color: #cdf5dd; /* 吹き出しの背景色 */
}
.article-body > p.marine::before {
    background-image: url("../images/marineSphere/marine-icon.JPG"); /* アイコン画像のパス */
}
.article-body > p.marine::after {
    border-color: transparent transparent #cdf5dd transparent; /* 吹き出しの背景色に合わせる */
}
.article-body > p.sphere {
    background-color: #d7cfea; /* 吹き出しの背景色 */
}
.article-body > p.sphere::before {
    background-image: url("../images/marineSphere/sphere-icon.JPG"); /* アイコン画像のパス */
}
.article-body > p.sphere::after {
    border-color: transparent transparent #d7cfea transparent; /* 吹き出しの背景色に合わせる */
}
.article-body > img {
    width: 80%;
    display: block;
    margin: auto;
}
.tw_share {
    font-weight: bold;
    padding: 0.8em 1.6em;
    margin: 0.4em;
    text-decoration: none;
    border-style: none;
    border-radius: 5px;
}
.tw_share:hover {
    opacity: 0.6;
    transition: 1s;
}
/* フッター */
.footer {
    background-color: #9bd7bf;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
}
