@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/* ジェミニ用 */
/* CTA全体の囲い */
.izumi-cta-section {
    margin: 3em 0;
    padding: 25px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    clear: both;
}

/* ヘッダー部分 */
.izumi-cta-header {
    text-align: center;
    margin-bottom: 30px;
}

/* 目次に出さないメインタイトル */
.izumi-cta-main-title {
    display: block;
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.4;
}

.izumi-cta-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* 各カテゴリーカード */
.izumi-cta-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 目次に出さないカテゴリータイトル */
.izumi-cta-category-title {
    display: block;
    margin: 0 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #3b82f6;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: bold;
}

/* テーブルスタイル */
.izumi-cta-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    margin: 0 !important;
}
.izumi-cta-table tr {
    border-bottom: 1px solid #f1f5f9 !important;
}
.izumi-cta-table tr:last-child {
    border-bottom: none !important;
}
.izumi-cta-table td {
    padding: 12px 10px !important;
    vertical-align: middle !important;
    background: transparent !important;
    border: none !important;
}

/* 左側：説明文 */
.target-desc {
    font-size: 0.9rem;
    color: #475569;
    width: 60%;
    line-height: 1.5;
    text-align: left;
}
.target-desc small {
    display: block;
    color: #94a3b8;
    margin-top: 4px;
    font-size: 0.8rem;
}

/* 右側：リンクボタン（ここを修正） */
.link-cell {
    text-align: right;
    width: 40%;
}
.link-cell a {
    display: inline-flex; /* inline-blockから変更 */
    align-items: center;
    justify-content: center;
    width: 160px; /* ボタンの横幅を固定して統一 */
    height: 44px; /* 高さも揃えるとより綺麗です */
    background-color: #3b82f6;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    box-sizing: border-box;
}
.link-cell a:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

/* デイトラ用グリッド */
.school-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.school-links-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background-color: #f1f5f9;
    color: #1e293b !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}
.school-links-grid a:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}
.school-footer {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 15px;
    text-align: center;
}

/* モバイル（スマホ）対応の最適化 */
@media (max-width: 600px) {
    .izumi-cta-section {
        padding: 15px;
    }
    .izumi-cta-table td {
        display: block;
        width: 100% !important;
        text-align: center;
        padding: 10px 0 !important;
    }
    .target-desc {
        margin-bottom: 5px;
    }
    .link-cell {
        text-align: center;
    }
    .link-cell a {
        width: 100%; /* スマホでは画面幅いっぱいに */
        max-width: 300px;
    }
    .school-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}