/*
Theme Name: Astra Child
Template: astra
Version: 2.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; color: #333; background: #f5f7fa; line-height: 1.8; }

#ast-desktop-header, #ast-mobile-header, .ast-above-header, .ast-below-header,
.site-header, .ast-desktop-header-content, .ast-mobile-header-content,
header.site-header, .main-header-bar, .ast-primary-header,
footer.site-footer-wrap, .ast-footer-overlay, .ast-small-footer,
.site-below-footer-wrap, .ast-footer-copyright, #colophon { display: none !important; }

.site-hdr { background: rgba(21,42,78,0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; }
.hdr-inner { max-width: 980px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.hdr-logo { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0.05em; }
.hdr-logo small { display: block; font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }
.hdr-cta { background: #C9A84C; color: #1F3864; padding: 8px 20px; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; transition: opacity 0.2s; }
.hdr-cta:hover { opacity: 0.85; }

.site-subnav { background: rgba(21,42,78,0.97); border-top: 1px solid rgba(201,168,76,0.2); }
.subnav-inner { max-width: 980px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 0; }
.subnav-inner a { color: #fff; text-decoration: none; font-size: 13px; padding: 10px 16px; transition: background 0.2s; white-space: nowrap; }
.subnav-inner a:hover { background: rgba(255,255,255,0.08); }
.subnav-home { display: flex; align-items: center; padding: 10px 12px !important; }
.subnav-apply { color: #C9A84C !important; font-weight: 700; margin-left: auto; }

.site-main { max-width: 980px; margin: 0 auto; padding: 40px 20px; background: #fff; min-height: 60vh; }
.ast-container { max-width: 100%; padding: 0; }
#primary { width: 100%; }
.entry-content { padding: 0; }
.ast-article-single { padding: 0; }

.entry-content h2, .site-main h2 { border-left: 4px solid #C9A84C; background: #f0f4ff; padding: 12px 16px; margin: 40px 0 20px; font-size: 20px; font-weight: 700; color: #1F3864; }
.entry-content h3, .site-main h3 { font-size: 17px; font-weight: 700; color: #1F3864; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #e0e4ea; }

.blog .ast-article-post, .archive .ast-article-post { background: #fff; border: 1px solid #e8ecf2; border-radius: 8px; padding: 24px; margin-bottom: 20px; transition: box-shadow 0.2s; }
.blog .ast-article-post:hover, .archive .ast-article-post:hover { box-shadow: 0 4px 16px rgba(31,56,100,0.08); }
.blog .entry-title a, .archive .entry-title a { color: #1F3864; text-decoration: none; font-size: 18px; font-weight: 700; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: #C9A84C; }
.cat-links a { background: #f0f4ff; color: #1F3864; padding: 2px 10px; border-radius: 12px; font-size: 11px; text-decoration: none; }

.single .entry-title { font-size: 24px; font-weight: 700; color: #1F3864; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #C9A84C; }
.single .entry-content p { margin-bottom: 1.6em; line-height: 2; }

.page .entry-title { font-size: 24px; font-weight: 700; color: #1F3864; text-align: center; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid #C9A84C; }

.site-footer { background: #1F3864; color: #fff; text-align: center; padding: 60px 20px 30px; margin-top: 0; display: block !important; }
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-title { font-size: 14px; letter-spacing: 0.15em; color: #C9A84C; margin-bottom: 8px; }
.footer-day1 { font-size: 32px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer-sub { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.footer-buttons { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 700; transition: opacity 0.2s; }
.footer-btn:hover { opacity: 0.85; }
.footer-btn-line { background: #06C755; color: #fff; }
.footer-btn-mail { background: transparent; border: 2px solid #C9A84C; color: #C9A84C; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
  .hdr-inner { padding: 10px 16px; }
  .hdr-logo { font-size: 13px; }
  .hdr-logo small { font-size: 8px; }
  .hdr-cta { padding: 6px 14px; font-size: 11px; }
  .subnav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .subnav-inner a { font-size: 12px; padding: 8px 12px; }
  .site-main { padding: 24px 16px; }
  .footer-day1 { font-size: 24px; }
  .footer-buttons { flex-direction: column; align-items: center; }
}

/* ===== SNSボタン ===== */
.sns-buttons { display: flex !important; justify-content: center !important; gap: 16px; margin: 24px 0 0; flex-wrap: wrap; }
.sns-buttons a { display: inline-flex !important; align-items: center !important; gap: 10px; color: #fff !important; text-decoration: none !important; font-size: 15px; font-weight: 700; padding: 12px 28px; border-radius: 6px; }
.sns-btn-fb { background: #1877F2; }
.sns-btn-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sns-btn-fb:hover, .sns-btn-ig:hover { opacity: 0.85; }

/* ===== アコーディオン ===== */
.acc-item { background: #fff; border-radius: 10px; margin: 16px 0; border: 1px solid #e4e8f0; overflow: hidden; box-shadow: 0 2px 8px rgba(31,56,100,0.04); transition: box-shadow 0.3s; }
.acc-item:hover { box-shadow: 0 4px 20px rgba(31,56,100,0.08); }
.acc-toggle { display: block; padding: 24px 56px 24px 28px; cursor: pointer; position: relative; user-select: none; border-left: 4px solid #C9A84C; }
.acc-toggle::after { content: '+'; position: absolute; right: 24px; top: 24px; font-size: 20px; color: #C9A84C; font-weight: 700; }
.acc-toggle.open::after { content: '-'; }
.acc-toggle.open { background: #fafbfd; }
.acc-toggle h3 { color: #1F3864 !important; margin: 0 0 8px !important; font-size: 18px !important; border: none !important; padding: 0 !important; font-weight: 700 !important; }
.acc-toggle p { margin: 0; color: #666; font-size: 14px; line-height: 1.7; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.acc-body-inner { padding: 28px; background: #fafbfd; border-top: 1px solid #e8ecf2; }
.acc-body-inner p { margin: 12px 0; color: #444; font-size: 14px; line-height: 2; }
.acc-highlight { background: #fff; border: 1px solid #e4e8f0; border-left: 3px solid #C9A84C; border-radius: 6px; padding: 16px 20px; margin: 16px 0; }
.acc-key { color: #1F3864; font-weight: 700; }
.acc-quote { background: #1F3864; color: #fff; border-radius: 6px; padding: 20px 24px; margin: 20px 0; position: relative; }
.acc-quote p { color: #fff !important; }
@media (max-width: 768px) { .acc-toggle { padding: 20px 48px 20px 20px; } .acc-toggle h3 { font-size: 16px !important; } .acc-body-inner { padding: 20px; } }

/* ===== フローテーブル ===== */
.flow-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; border: 1px solid #e4e8f0; border-radius: 8px; overflow: hidden; }
.flow-row td { border-bottom: 1px solid #f0f2f6; }
.flow-row:last-child td { border-bottom: none; }
.flow-num-cell { width: 48px; text-align: center; vertical-align: top; padding: 14px 8px 14px 14px; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; background: #C9A84C; color: #1F3864; border-radius: 50%; font-size: 13px; font-weight: 700; }
.flow-text-cell { padding: 14px 14px 14px 4px; font-size: 14px; color: #333; line-height: 1.8; vertical-align: top; }
.flow-text-cell strong { color: #1F3864; }
.flow-arrow-cell { text-align: center; color: #C9A84C; font-size: 14px; padding: 2px 0; border-bottom: none !important; }

/* ===== 固定ページのWordPressタイトル重複防止 ===== */
.page-id-37 .entry-title,
.page-id-36 .entry-title {
  display: none !important;
}

/* ===== ブログレイアウト ===== */
.blog-layout { display: flex !important; flex-direction: row !important; gap: 32px; max-width: 980px; margin: 0 auto; padding: 40px 20px; align-items: flex-start; }
.blog-content { flex: 1; min-width: 0; background: #fff; padding: 32px; border-radius: 8px; }
.blog-article-title { font-size: 24px; font-weight: 700; color: #1F3864; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #C9A84C; }
.blog-article-content p { margin-bottom: 1.6em; line-height: 2; color: #333; }
.blog-article-content h2 { border-left: 4px solid #C9A84C; background: #f0f4ff; padding: 12px 16px; margin: 40px 0 20px; font-size: 20px; font-weight: 700; color: #1F3864; }
.blog-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e8ecf2; }
.blog-nav a { color: #1F3864; text-decoration: none; font-size: 14px; font-weight: 500; }
.blog-nav a:hover { color: #C9A84C; }

/* ===== サイドバー ===== */
.blog-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 100px; }
.sidebar-cat { background: #fff; border: 1px solid #e4e8f0; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.sidebar-title { font-size: 14px !important; font-weight: 700 !important; color: #1F3864 !important; margin: 0 0 12px !important; padding: 0 0 8px !important; border-bottom: 2px solid #C9A84C !important; border-left: none !important; background: none !important; }
.sidebar-posts { list-style: none; padding: 0; margin: 0; }
.sidebar-posts li { padding: 0; margin: 0; border-bottom: 1px solid #f0f2f6; }
.sidebar-posts li:last-child { border-bottom: none; }
.sidebar-posts li a { display: block; padding: 8px 4px; color: #555; text-decoration: none; font-size: 13px; line-height: 1.5; }
.sidebar-posts li a:hover { color: #C9A84C; }
.sidebar-posts li.current a { color: #C9A84C; font-weight: 700; }

body.blog .site-main, body.single .site-main { max-width: 100%; padding: 0; background: #f5f7fa; }

@media (max-width: 768px) {
  .blog-layout { flex-direction: column; }
  .blog-sidebar { width: 100%; }
  .blog-content { padding: 20px; }
}

body.home .site-main { max-width: 100% !important; padding: 0 !important; background: #f5f7fa !important; }

/* ===== フッターバグ修正 ===== */
.ast-footer-overlay, .site-footer-wrap, .ast-small-footer,
.site-below-footer-wrap, .ast-footer-copyright, #colophon,
.ast-above-footer, footer.entry-footer, .post-navigation,
.ast-single-post-order { display: none !important; }
body.blog .site-main .ast-article-post,
body.single .site-main .ast-article-post {
  background: transparent; border: none; padding: 0; margin: 0; box-shadow: none;
}

/* ===== ブログ スマホ表示修正 ===== */
@media (max-width: 768px) {
  .blog-layout {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .blog-content {
    width: 100% !important;
    padding: 16px !important;
  }
  .blog-sidebar {
    width: 100% !important;
    position: static !important;
  }
}
