
/*
Theme Name: sokorate
Theme URI: https://sokorate.example.com
Author: Your Name
Author URI: https://example.com
Description: ソコラテ スポーツコミュニティプレイス カスタムテーマ
Version: 1.0.0
License: Private
Text Domain: sokorate
*/

/*
 * WordPressテーマとして認識させるための必須ファイルです。
 * 実際のスタイルは以下のファイルに分けて管理してください:
 *
 *   /css/soco-header.css  ← ヘッダー・ドロワーのスタイル（静的PHPと共有）
 *
 * このファイルにはWordPress固有の
 * （お知らせ一覧・詳細、お問合せ、スケジュール）用スタイルのみ記述します。
 */

/* ============================================================
   共通レイアウト
   ============================================================ */
.soco-main {
    min-height: 60vh;
}

.soco-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.soco-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 32px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a4a8c;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ============================================================
   パンくずリスト
   ============================================================ */
.news-breadcrumb {
    padding: 12px 20px;
    font-size: 12px;
    color: #888;
    font-family: 'Noto Sans JP', sans-serif;
    max-width: 640px;
    margin: 0 auto;
    box-sizing: border-box;
}
.news-breadcrumb a {
    color: #888;
    text-decoration: none;
}
.news-breadcrumb a:hover { color: #4a4a8c; }
.news-breadcrumb span { margin: 0 2px; }

/* ============================================================
   おしらせ一覧メイン
   ============================================================ */
.news-main {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 30px;
    box-sizing: border-box;
    background: #fff;
    min-height: 60vh;
}

/* 見出し */
.news-heading {
    text-align: center;
    padding: 32px 20px 24px;
    position: relative;
    overflow: hidden;
}
.news-heading-en {
    font-size: 13px;
    color: #5a9a6a;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0 0 4px;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    z-index: 1;
}
.news-heading-ja {
    font-size: clamp(26px, 7vw, 36px);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    z-index: 1;
}

/* 記事リスト */
.news-list-wrap {
    padding: 0 20px;
}
.news-list {
    list-style: none;
    margin: 4vh 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.news-item {
    border-bottom: 1px solid #e0e0e0;
}
.news-item:last-child {
    border-bottom: 1px solid #e0e0e0;
}
.news-link {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    color: inherit;
}
.news-link:hover .news-title { color: #4a4a8c; }

/* メタ */
.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.news-date {
    font-size: 13px;
    color: #888;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}

/* カテゴリーバッジ */
.news-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
    color: #fff;
    background: #888;
}
/* カテゴリーバッジ複数対応 */
.news-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.news-cat--event { background: #aaa58c; }
.news-cat--info  { background: #4a4a8c; }

/* タイトル */
.news-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.5;
    font-family: 'Noto Sans JP', sans-serif;
}

.news-not-found {
    color: #888;
    text-align: center;
    padding: 40px 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ============================================================
   ページネーション
   ============================================================ */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.news-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background 0.15s, color 0.15s;
}
.news-page-btn:hover {
    background: #f0f0f0;
}
.news-page-current {
    background: #558c4b;;
    color: #fff;
    border-radius: 50%;
}
.news-page-prev,
.news-page-next {
    font-size: 18px;
    color: #4a4a8c;
}

/* ============================================================
   お知らせ詳細（single.php）
   ============================================================ */
.single-article {
    padding: 16px 0 40px;
}

/* タイトル */
.single-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0 0 16px;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 日付・カテゴリー */
.single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

/* 本文 */
.single-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    font-family: 'Noto Sans JP', sans-serif;
    padding-bottom: 40px;
}
.single-content p   { margin-bottom: 1.5em; }
.single-content h2  { font-size: 20px; font-weight: 700; margin: 2em 0 1em; color: #1a1a2e; }
.single-content h3  { font-size: 17px; font-weight: 700; margin: 1.8em 0 0.8em; color: #1a1a2e; }
.single-content img { max-width: 100%; height: auto; border-radius: 4px; }
.single-content a   { color: #4a4a8c; text-decoration: underline; }
.single-content ul,
.single-content ol  { padding-left: 1.5em; margin-bottom: 1.5em; }
.single-content li  { margin-bottom: 0.5em; }

/* 前後の記事ナビ */
.single-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}
.single-post-nav-prev,
.single-post-nav-next {
    flex: 1;
}
.single-post-nav-next {
    text-align: right;
}
.single-post-nav a {
    font-size: 12px;
    color: #1a1a2e;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: color 0.15s;
}
.single-post-nav a:hover { color: #4a4a8c; }

.single-nav-arrow {
    font-size: 16px;
    color: #4a4a8c;
}

/* 一覧へ戻るボタン */
.single-back {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}
.single-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: #5a9a6a;
    color: #fff;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 12px 35px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
.single-back-btn:hover { background: #4a8a5a; }
.single-back-btn span  { font-size: 18px; }

/* Enjoy SOKORATE イラスト */
.single-enjoy {
    text-align: right;
    padding: 51px 0 0;
}
.single-enjoy-img {
    display: inline-block;
    width: 150px;
    height: auto;
}
/* 見出し背景イラスト */
.news-heading {
    position: relative;
    overflow: hidden;
}
.news-heading-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}
.news-heading-bg-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.news-heading-en,
.news-heading-ja {
    position: relative;
    z-index: 1;
}

/* 記事リンクの矢印 */
.news-link {
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-arrow {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 14px;
    color: #888;
}

/* Enjoy SOKORATE イラスト */
.news-enjoy {
    text-align: right;
    padding: 20px 20px 0;
}

.news-enjoy-img {
    width: 160px;
    height: auto;
    display: inline-block;
}
/* ============================================================
   お問い合わせページ
   ============================================================ */
.contact-main {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 60px;
    box-sizing: border-box;
    background: #fff;
    min-height: 60vh;
}

/* 見出し */
.contact-heading {
    text-align: center;
    padding: 32px 20px 24px;
    position: relative;
    overflow: hidden;
}
.contact-heading-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}
.contact-heading-bg-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.contact-heading-en {
    font-size: 13px;
    color: #5a9a6a;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0 0 4px;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    z-index: 1;
}
.contact-heading-ja {
    font-size: clamp(26px, 7vw, 36px);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    z-index: 1;
}
/* 電話セクション */
.contact-tel-section {
    border-top: 1px solid #e0e0e0;
    border-bottom: none;
    padding: 24px 20px;
    margin: 0 0 40px;
}
.contact-tel-inner {
    display: flex;
    flex-direction: column;   /* ← 縦積みに変更 */
    align-items: center;      /* ← 中央寄せ */
    gap: 112px;
    position: relative;
}
.contact-tel-left {
    flex-shrink: 0;
    text-align: center;       /* ← 中央寄せ */
}
.contact-tel-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.7;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;       /* ← 中央寄せ */
}
.contact-tel-right {
    flex: 1;
    margin-left: 0;           /* ← 横並び時のmarginを解除 */
    text-align: center;       /* ← 中央寄せ */
    width: 100%;
}
.contact-tel-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #5a9a6a;
    text-decoration: none;
    letter-spacing: 0.02em;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.2;
    text-align: center;       /* ← 中央寄せ */
}
.contact-tel-time {
    font-size: 16px;
    color: #000;
    margin-top: 9px;
    font-family: 'Noto Sans JP', sans-serif;
    text-indent: 0;           /* ← インデント解除 */
    text-align: center;       /* ← 中央寄せ */
}
.contact-tel-illust {
    position: static;         /* ← absoluteを解除 */
    text-align: right;
    width: 100%;
}
.contact-tel-illust-img {
    width: 120px;
    height: auto;
    margin-top: 0;
}
/*スケジュールカレンダー　スマホ*/
@media (max-width: 768px) {

  /* セルを小さくコンパクトに */
  .tribe-events-calendar td,
  .tribe-events-calendar th {
    padding: 2px 1px;
    font-size: 10px;
  }

  /* イベント名を省略表示 */
  .tribe-event-url {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }

}

/* PC版（769px以上）は横並びに戻す */
@media (min-width: 769px) {
    .contact-tel-section {
    border-bottom: 1px solid #e0e0e0;
    }
    .contact-tel-inner {
        flex-direction: row;
        align-items: center;
    }
    .contact-tel-left {
        text-align: left;
    }
    .contact-tel-label {
        text-align: left;
    }
    .contact-tel-right {
        margin-left: 35px;
        text-align: left;
    }
    .contact-tel-num {
        text-align: left;
    }
    .contact-tel-time {
        text-align: left;
        text-indent: 4px;
    }
    .contact-tel-illust {
        position: absolute;
        top: 103px;
        left: 86%;
        width: auto;
    }
}


/* フォームセクション */
.contact-form-section {
    padding: 0 20px;
}
.contact-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 2px;
    border-bottom: 3px solid #5a9a6a;
    font-family: 'Noto Sans JP', sans-serif;
    width: 250px;
    margin: 10% auto 8%;
}
.contact-form-desc {
    font-size: 16px;
    color: #000;
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: 'Noto Sans JP', sans-serif;
}
.contact-required-note {
    font-size: 13px;
    color: #e00;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}
.contact-required-note span {
    font-size: 16px;
    color: #e00;
}

/* CF7 フォームラップ */
.contact-form-wrap {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 24px 20px;
}

/* CF7 ラベル */
.wpcf7-form .contact-field {
    margin-bottom: 20px;
}
.wpcf7-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    font-family: 'Noto Sans JP', sans-serif;
}
.wpcf7-form .required-mark {
    color: #e00;
    margin-left: 2px;
}

/* Enjoy イラスト */
.contact-enjoy {
    text-align: right;
    padding: 40px 20px 0;
}
.contact-enjoy-img {
    width: 160px;
    height: auto;
    display: inline-block;
}
/* ===========================
   お問い合わせフォーム　入力項目
=========================== */
.contact-form-wrap {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 40px;
    margin-top: 24px;
}

.cf7-form-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cf7-row {
    display: flex;
    gap: 24px;
}

.cf7-row-2col .cf7-field {
    flex: 1;
}

.cf7-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.cf7-field label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.02em;
}

.cf7-required {
    color: #e00;
    margin-left: 2px;
}

/* インプット共通 */
.cf7-form-inner input[type="text"],
.cf7-form-inner input[type="email"],
.cf7-form-inner input[type="tel"],
.cf7-form-inner textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    appearance: none;
}

.cf7-form-inner textarea {
    height: 160px;
    resize: vertical;
}

/* 送信ボタン */
.cf7-submit-wrap {
    display: flex;
    justify-content: center;
    margin: 4% auto 8%;
}

.cf7-form-inner input[type="submit"] {
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 60px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 200px;
}

.cf7-form-inner input[type="submit"]:hover {
    background: #3a6347;
}
.wpcf7-spinner {
     margin: 0;
}
.pc-only{
    display: block;
}


/* SP対応 */
@media (max-width: 767px) {
    .contact-tel-section {
        border-top: none;
    }
    .contact-form-wrap {
        padding: 24px 16px;
    }

    .cf7-row-2col {
        flex-direction: column;
        gap: 20px;
    }
    .pc-only{
        display: none;
    }
    .contact-tel-label {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    }
    .contact-tel-left {
    border-top: 1px solid #c5c5c5;
    border-bottom: 1px solid #c5c5c5;
    width: 90vw;
    padding: 5%;
    margin-bottom: 2vh;
    }
    .contact-tel-time {
    font-size: 14px;
    }
    .cf7-form-inner input[type="submit"] {
    margin: auto 15vw;
    }
    .contact-tel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    }
    .contact-tel-illust-img {
        margin-top: 50px;
    }

}
/* ============================================================
   PC版（769px以上）お問い合わせ
   ============================================================ */
@media (min-width: 769px) {
    .contact-main {
        max-width: 1080px;
    }
    .contact-heading {
        padding: 48px 40px 32px;
    }
    .contact-tel-section {
        padding: 32px 40px;
        margin: 70px 0 48px;
    }
    .contact-tel-label {
        font-size: 25px;
    }
    .contact-tel-num {
        font-size: 36px;
    }
    .contact-tel-illust-img {
        width: 120px;
    }
    .contact-form-section {
        padding: 0 0;
    }


    /* PC版：2カラムレイアウト */
    .wpcf7-form .contact-row-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contact-enjoy {
        padding: 120px 0px 0;
    }
    .contact-enjoy-img {
        width: 200px;
    }
}

/* PC版 */
@media (min-width: 769px) {
    .news-main {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
        padding: 0 0 33px;
        box-sizing: border-box;
        background: #fff;
        min-height: auto;
    }
    .single-title {
        font-size: 26px;
    }
    .single-content {
        font-size: 16px;
    }
    .single-post-nav a {
    font-size: 16px;
    }
    /* Enjoy SOKORATE イラスト */
    .single-enjoy {
        text-align: right;
        padding: 90px 0 0;
    }
    .single-enjoy-img {
        width: 180px;
        height: auto;
    }
    .single-back-btn {
        font-size: 18px;
    }
    .news-enjoy {
        padding: 100px 0px 0;
    }
    .news-enjoy-img {
        width: 200px;
    }
}



/* ============================================================
   スケジュールカレンダー（schedule.php）
   ============================================================ */
.schedule-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
翻訳　language
============================================================ */
li.honyaku_list {
    margin-bottom: 1em;
}
/* ============================================================
   PC版（769px以上）
   ============================================================ */
@media (min-width: 769px) {
    .sp-only{
        display: none;
    }
    .news-main {
        max-width: 1080px;
    }
    .news-list-wrap {
        padding: 0 40px;
    }
    .news-heading {
        padding: 48px 40px 32px;
    }
    .news-breadcrumb {
        max-width: 900px;
        padding: 16px 40px;
    }
    .news-title {
        font-size: 16px;
    }
    .news-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 24px 0;
    }
    .news-meta {
        flex-shrink: 0;
        margin-bottom: 0;
        min-width: 170px;
    }
}

/* ============================================================
   レスポンシブ調整（スマホ）
   ============================================================ */
@media (max-width: 599px) {
    .soco-page-title {
        font-size: 20px;
    }
    .news-single-title {
        font-size: 18px;
    }
}
```