@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/************************************
** 子テーマ用のスタイル
************************************/

/* ヘッダー */
header .tagline {
    font-weight: bold;
    font-size: 16px;
    color: #24a3d2;
    margin-bottom: 10px; /* キャッチフレーズとタイトルの間隔を広げる */
}

/* サイトタイトル */
.site-name-text {
    font-size: 40px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

/* ロゴテキスト */
.logo-text {
    padding: 5px 0; /* 上下のパディングを調整 */
}

/* ボタンの基本スタイル */
.btn {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    border: none;
    height: 60px;
}

/* ボタンの色 */
.rakuten {
    background-color: #bf0000;
}
.rakuten:hover {
    background-color: #fa0000;
}
.sbi {
    background-color: #0058a0;
}
.sbi:hover {
    background-color: #0083ee;
}

/* ボタンコンテナのスタイル */
.login-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* 円の中のテキストデザイン */
.circle-container {
    width: 250px;
    height: 250px;
    position: relative;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
    margin: 30px auto 20px;
}
.circle-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 6px solid #24a3d2;
    border-radius: 50%;
    box-sizing: border-box;
}
.circle-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #24a3d2;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}
.circle-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background-color: #24a3d2;
}
.top-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
.middle-text {
    font-size: 40px;
    font-weight: bold;
    margin: -15px 0 15px;
    display: flex;
    align-items: baseline;
}
.middle-text .whole-number {
    font-size: 60px;
    color: black;
}
.middle-text .fraction {
    font-size: 25px;
    color: black;
}
.bottom-text {
    font-size: 16px;
    margin: -30px 0 40px;
}

/* バナー全体のスタイル */
.promo-banner, .banners {
    display: flex;
    flex-wrap: wrap; /* 複数行に折り返し */
    justify-content: center; /* 中央に配置 */
    gap: 20px; /* バナー間の間隔 */
    margin: 30px auto; /* 上下の余白 */
    text-align: center;
    align-items: center; /* 垂直方向にも中央寄せ */
}

/* バナーの画像スタイル */
.banner {
    display: flex;
    justify-content: center; /* 子要素（画像）を中央に配置 */
    width: 100%; /* バナー全体を親要素に対して100%に */
}

.banner img {
    max-width: 90%; /* コンテナの幅に合わせて90% */
    height: auto; /* 高さを自動調整 */
    margin-left: auto; /* 左右のマージンを自動調整 */
    margin-right: auto; /* 左右のマージンを自動調整 */
    display: block; /* ブロック要素として表示（中央寄せのため） */
}



/* リンク画像にホバー効果を追加 */
a img:hover {
    filter: brightness(1.2); /* 画像を明るくする */
    transition: filter 0.3s ease; /* なめらかに変化 */
}


/* コラムセクション */
.column {
    text-align: center;
}

.column p {
    text-align: left;
    margin: 0;
    padding: 0 30px; /* 左右のパディングを追加 */
}

.column h3 {
    text-align: left;
    margin: 20px;
    padding-bottom: 5px;
    width: calc(100% - 40px);
    border-bottom: 2px solid #24a3d2;
}

.column-image {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 0 auto;
}

.read-more-btn {
    display: inline-block;
    width: 80%;
    padding: 10px;
    font-size: 16px;
    color: white;
    background-color: #24a3d2;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    line-height: 30px;
    transition: filter 0.3s ease; /* なめらかに変化 */
}

.read-more-btn:hover {
    filter: brightness(1.2); /* 明るくする */
    color: white; /* ホバー時も文字色を白に固定 */
}

/* h3のスタイル */
h3 {
    text-align: left;
    margin: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #24a3d2;
    width: calc(100% - 60px); /* 例として60pxの余白を引いた幅 */
    box-sizing: border-box; /* パディングとボーダーを含めた幅を設定 */
}

/* pタグのスタイル */
p {
    margin-left: 30px;
    padding-right: 30px;
}

/* Fontawesomeの設定 */
.fa-user,
.fa-bell,
.fa-book {
    font-size: 30px;
    margin-right: 10px;
}

.fa-user,
.fa-book {
    color: #24a3d2;
}

.fa-bell {
    color: #FFD700;
}

/* 全体のスタイルリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
}

.banner, .promo-banner, .promo-banner img {
    width: 100% !important;
    height: auto !important;
}

/* 1023px以下 */
@media screen and (max-width: 1023px) {
    /* 必要ならばここにコードを書く */
}

/* パソコンでは2カラムレイアウトに */
@media screen and (min-width: 834px) {
    .banners {
        flex-direction: row; /* 横並びにする */
        justify-content: center; /* バナーを中央に揃える */
    }

    .banner {
        flex: 0 1 calc(50% - 40px); /* 各バナーを2カラムの半分の幅に */
        margin: 10px; /* バナー間の余白 */
    }
}

/* モバイルデバイスでは1カラムレイアウトに */
@media screen and (max-width: 833px) {
    .banners {
        flex-direction: column; /* 縦並びにする */
        align-items: center; /* 中央に寄せる */
    }

    .banner {
        flex: 1 1 auto; /* 自動でサイズ調整 */
        margin: 10px 0; /* 上下の余白 */
        width: 100%; /* 幅を100%に設定 */
        display: flex;
        justify-content: center; /* バナー自体を中央寄せ */
    }
}

/* 480px以下 */
@media screen and (max-width: 480px) {
    .login-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        width: calc(45% - 10px);
        max-width: calc(90% - 20px);
        box-sizing: border-box;
    }

    #header .site-name-text {
        font-size: 25px;
        line-height: 1.2;
        text-align: center;
    }

    main.main, div.sidebar {
        padding: 0px 16px;
        margin: 12px 0;
        border-width: 0;
    }

    .promo-banner, .banners {
        flex-direction: column; /* 縦並びにする */
    }

    .banner {
        flex: 1 1 auto; /* 自動でサイズ調整 */
    }
}
