/*
Theme Name: Lightning Child Sample
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/


/* ==========================================
   基本設定
   ========================================== */

body {
    font-size: 16px !important;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

/* ==========================================
   ヘッダー
   ========================================== */

/* ヘッダーの背景色 */
.site-header {
    background-color: #ffffff;
}

/* ヘッダーのナビテキスト */
.global-nav-name {
    font-size: 16px !important;
    color: #185fa5;
}

/* ==========================================
   ページタイトル・記事タイトル
   ========================================== */

/* ページタイトル */
.page-header-title {
    font-size: 32px;
}

/* お知らせ個別：記事タイトル */
.single-info .entry-title {
    font-weight: 400;
}

/* ==========================================
   フッター
   ========================================== */

/* フッターの背景色・レイアウト */
.site-footer {
    height: 300px;
    background-color: #185FA5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
}

/* フッターのテキスト */
.site-footer-copyright p,
.site-footer-copyright p a {
    font-size: 16px !important;
    color: #ffffff;
}

/* ==========================================
   画像・動画ボタン
   ========================================== */
/* 共通ラッパー */
.img-btn-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* 画像ボタン */
.img-btn {
    text-decoration: none;
    outline: none;
}

.img-btn:hover img {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

/* 動画 */
.video-wrap {
    box-sizing: border-box;
}

/* aspect-ratio非対応ブラウザ向けフォールバック */
@supports not (aspect-ratio: 16/9) {
    .video-inner {
        position: relative;
        padding-top: 56.25%;
        height: 0;
    }
}

.video-inner iframe,
.video-inner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* メディア横並び */
.media-row-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   余白の全リセット
   ========================================== */

/* ヘッダー下マージン（トップページのみ） */
.home #site-header {
    margin-bottom: 0 !important;
}

/* コンテンツエリア上下余白（トップページ） */
.home .site-body,
.home .site-body-container,
.home .main-section,
.home .entry,
.home .entry-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Lightningテーマのデフォルト下マージンを上書き */
.main-section--margin-bottom--on {
    margin-bottom: 0 !important;
}

/* ショートコード前後に自動生成されるpタグ・brタグを非表示 */
.home .entry-body > p,
.home .entry-body > br {
    display: none !important;
}

/* 空のサブセクションを非表示 */
.sub-section:empty {
    display: none;
}

/* 固定ページでの上余白リセット */
.page-template-default .info-list-wrap,
.page-template-default .info-list,
.page-template-default .faq-list-wrap,
.page-template-default .faq-list {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home .info-list-wrap,
.home .faq-list-wrap {
    padding-top: 2rem !important;
}

/* ==========================================
   ヒーローセクション
   ========================================== */

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

/* タブレット（768px以下） */
@media (max-width: 768px) {
    .hero {
        height: 350px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    .hero {
        height: 220px;
    }
    .hero-content h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    .hero-btn {
        margin-top: 0.8rem;
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   お知らせ一覧ページセクション ＆ お知らせ一覧ページ
   ========================================== */

/* 背景色を全幅にし、中央に配置する設定 */
.info-list-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding: 2rem 0;
    box-sizing: border-box;
}

/* info-list-wrap内ではmarginをリセット */
.info-list-wrap .info-list {
    margin-top: 0;
    margin-bottom: 0;
}

.info-list {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* 見出し */
.info-list-heading {
    font-size: 20px;
    font-weight: 500;
    color: #185fa5;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    text-align: center;
}

/* 各アイテム */
.info-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e8f0f8;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.info-list-item:first-child {
    border-top: 1px solid #e8f0f8;
}

.info-list-item:hover {
    opacity: 0.7;
}

/* 日付 */
.info-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding-right: 1.2rem;
    border-right: 2px solid #b0ddef;
    flex-shrink: 0;
	align-self: stretch;
}

.info-list-date__year {
    font-size: 12px;
    color: #1A5FA8;
}

.info-list-date__day {
    font-size: 22px;
    font-weight: 500;
    color: #178abd;
    line-height: 1.2;
}

/* タイトル・抜粋 */
.info-list-body {
    flex: 1;
}

.info-list-title {
    font-size: 15px;
    font-weight: 500;
    color: #185fa5;
    margin-bottom: 0.3rem;
}

.info-list-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 一覧へリンク */
.info-list-more {
    text-align: right;
    margin-top: 1rem;
}

.info-list-more a {
    font-size: 13px;
    color: #185fa5;
    text-decoration: none;
    border-bottom: 1px solid #185fa5;
    padding-bottom: 2px;
}

.info-list-more a:hover {
    opacity: 0.7;
}

/* ページネーション */
.info-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.info-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    color: #185fa5;
    border: 1px solid #185fa5;
    transition: all 0.2s;
}

.info-pagination__item:hover {
    background: #185fa5;
    color: #fff;
}

.info-pagination__item--current {
    background: #185fa5;
    color: #fff;
    border: 1px solid #185fa5;
}

/* ==========================================
   お知らせ個別ページ
   ========================================== */

.info-single {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* タイトル */
.info-single-title {
    font-size: 22px;
    font-weight: 500;
    color: #185fa5;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* 日付 */
.info-single-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 1rem;
}

/* 区切り線 */
.info-single-divider {
    border: none;
    border-top: 1px solid #e8f0f8;
    margin-bottom: 2rem;
}

/* 本文 */
.info-single-body {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 3rem;
}

.info-single-body p {
    margin-bottom: 1.2rem;
}

.info-single-body img {
    max-width: 100%;
    height: auto;
}

/* 前後ナビゲーション */
.info-single-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8f0f8;
}

.info-single-nav__prev,
.info-single-nav__next {
    flex: 1;
    font-size: 13px;
}

.info-single-nav__prev {
    text-align: left;
}

.info-single-nav__next {
    text-align: right;
}

.info-single-nav__prev a,
.info-single-nav__next a {
    color: #185fa5;
    text-decoration: none;
    line-height: 1.6;
}

.info-single-nav__prev a:hover,
.info-single-nav__next a:hover {
    opacity: 0.7;
}

/* 一覧へボタン */
.info-single-nav__list a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid #185fa5;
    border-radius: 4px;
    color: #185fa5;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.info-single-nav__list a:hover {
    background: #185fa5;
    color: #fff;
}

/* ==========================================
   よくあるご質問一覧セクション & よくあるご質問一覧ページ
   ========================================== */

/* 背景色を全幅にし、中央に配置する設定 */
.faq-list-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 2rem 0;
    box-sizing: border-box;
}

/* トップページのfaq-list-wrapのみ薄いブルー背景 */
.home .faq-list-wrap {
    background: #e6f1fb;
}

/* faq-list-wrap内ではmarginをリセット */
.faq-list-wrap .faq-list {
    margin-top: 0;
    margin-bottom: 0;
}

/* コンテンツは中央800px */
.faq-list {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* 見出し */
.faq-list-heading {
    font-size: 20px;
    font-weight: 500;
    color: #185fa5;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    text-align: center;
}

/* リスト全体 */
.faq-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各アイテム */
.faq-list-item {
    border-bottom: 1px solid #c5ddf5;
}

.faq-list-item:first-child {
    border-top: 1px solid #c5ddf5;
}

/* リンク */
.faq-list-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, opacity 0.2s;
}

.faq-list-link:hover {
    opacity: 0.7;
    background-color: rgba(24, 95, 165, 0.04);
}

/* Q アイコン */
.faq-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #185fa5;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* タイトル */
.faq-list-title {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* 一覧へリンク */
.faq-list-more {
    text-align: right;
    margin-top: 1rem;
}

.faq-list-more a {
    font-size: 13px;
    color: #185fa5;
    text-decoration: none;
    border-bottom: 1px solid #185fa5;
    padding-bottom: 2px;
}

.faq-list-more a:hover {
    opacity: 0.7;
}

/* ページネーション */
.faq-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.faq-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    color: #185fa5;
    border: 1px solid #185fa5;
    transition: all 0.2s;
}

.faq-pagination__item:hover {
    background: #185fa5;
    color: #fff;
}

.faq-pagination__item--current {
    background: #185fa5;
    color: #fff;
    border: 1px solid #185fa5;
}

/* ==========================================
   よくあるご質問個別ページ
   ========================================== */

.faq-single {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Q：質問部分 */
.faq-single-question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.faq-single-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding-top: 4px;
}

/* A：回答部分（カード） */
.faq-single-answer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #e6f1fb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.faq-single-body {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.faq-single-body p {
    margin: 0;
}

/* Q・A アイコン */
.faq-single-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-single-icon--q {
    background-color: #185fa5;
    color: #fff;
}

.faq-single-icon--a {
    background-color: #fff;
    color: #185fa5;
    border: 2px solid #185fa5;
}

/* 一覧へ戻るボタン */
.faq-single-nav {
    text-align: center;
    margin-top: 1rem;
}

.faq-single-back {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1px solid #185fa5;
    border-radius: 4px;
    color: #185fa5;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.faq-single-back:hover {
    background: #185fa5;
    color: #fff;
}