/* Opt-in lower-page styles. Phase 2 home, chrome, and diagnosis remain unchanged. */
.phase3-page {
  --p3-blue: #254999;
  --p3-yellow: #fde574;
  --p3-line: #d8dce5;
  color: #202124;
  font-family: noto-sans-cjk-jp, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.phase3-page *, .phase3-page *::before, .phase3-page *::after { box-sizing: border-box; letter-spacing: 0; }
.phase3-page.postpage, .phase3-page.contactpage {
  max-width: 1000px; margin: 0 auto; padding: 176px 32px 72px;
}
.phase3-page.archivepage { max-width: 1200px; margin: 0 auto; padding: 176px 32px 72px; }
.phase3-page > h2, .phase3-page .casetitle {
  color: var(--p3-blue); font-size: 34px; line-height: 1.5; font-weight: 800;
  margin: 0 0 24px; padding: 0; text-align: left; text-wrap: pretty;
}
.phase3-page .postcontent, .phase3-page .archive-wrapper { margin: 0 auto; }
.phase3-page .case-date, .phase3-page .case-subinfo { color: #606873; font-size: 14px; margin: 0 0 28px; line-height: 1.7; }
.phase3-page .caseimg { display: block; margin: 0 0 40px; text-align: left; }
.phase3-page .caseimg img { width: 100%; height: auto; border-radius: 8px; }
.phase3-page .caseimg span { display: block; font-size: 14px; margin-top: 12px; overflow-wrap: anywhere; }
.phase3-page .case-content { margin: 0; }
.phase3-page .case-content p { font-size: 17px; line-height: 1.95; margin: 0 0 1.5em; }
.phase3-page .case-content h2 { color: var(--p3-blue); font-size: 28px; line-height: 1.5; text-align: left; margin: 48px 0 24px; }
.phase3-page .case-content h3 { color: #202124; font-size: 22px; line-height: 1.6; margin: 36px 0 18px; background: transparent; padding: 0 0 12px; border-bottom: 1px solid #d8dce5; }
.phase3-page .case-content h4 { font-size: 19px; line-height: 1.6; }
.phase3-page .case-content img { max-width: 100%; height: auto; }
.phase3-page .case-content ul, .phase3-page .case-content ol { line-height: 1.95; }
.phase3-page .case-content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 24px 0 32px; }
.phase3-page .case-content th, .phase3-page .case-content td { padding: 14px 16px; min-width: 120px; border: 1px solid var(--p3-line); font-size: 15px; line-height: 1.8; }
.phase3-page .case-content th { background: #f3f5fb; color: var(--p3-blue); }
.phase3-page .article-body { --article-accent: #254999; --article-accent-soft: #f3f5fb; font-size: 17px; }
.phase3-page .article-body h2 { border-color: var(--p3-blue); }
.phase3-page .article-point, .phase3-page .article-related-guide, .phase3-page .article-next-action { border-radius: 8px; box-shadow: none; }
.phase3-page .article-related-guide__title, .phase3-page .article-next-action__title { font-size: 20px; line-height: 1.6; }
.phase3-page .phase3-note { color: #606873; font-size: 13px; line-height: 1.8; margin: 12px 0 0; }
.phase3-page .phase3-cta { margin: 48px 0 0; padding: 28px 0; border-top: 3px solid var(--p3-yellow); border-bottom: 1px solid var(--p3-line); scroll-margin-top: 160px; }
.phase3-page .phase3-cta h2 { font-size: 24px; color: var(--p3-blue); line-height: 1.5; margin: 0 0 12px; padding: 0; border: 0; text-align: left; }
.phase3-page .phase3-cta p { font-size: 15px; line-height: 1.9; margin: 0 0 12px; }
.phase3-page .phase3-cta .phase3-note { font-size: 13px; }
.phase3-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.phase3-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid #202124; border-radius: 20px; color: #202124; background: #fff; font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.6; text-align: center; }
.phase3-button--primary { background: linear-gradient(180deg,#252599,#4ba6fa); color: #fff; border-color: transparent; }
.phase3-button:hover { background: #fde574; color: #202124; }
.phase3-page a:focus-visible, .phase3-page button:focus-visible, .phase3-page input:focus-visible { outline: 3px solid #254999; outline-offset: 3px; }
.phase3-page .phase3-related { margin-top: 48px; }
.phase3-page .phase3-related h2 { font-size: 24px; text-align: left; color: var(--p3-blue); margin: 0 0 24px; }
.phase3-related__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.phase3-related__item { min-width: 0; color: #202124; text-decoration: none; }
.phase3-related__item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.phase3-related__item span { display: block; }.phase3-related__title { font-size: 16px; line-height: 1.7; font-weight: 700; margin-top: 8px; }
.phase3-text-link { display: inline-block; color: #254999; margin-top: 24px; text-decoration: underline; text-underline-offset: 4px; }
.phase3-page .phase3-archive-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--p3-line); }
.phase3-archive-intro p { margin: 0; color: #606873; font-size: 14px; }.phase3-archive-intro a { color: #254999; font-size: 14px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.phase3-page .archive-container { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
.phase3-page .archive-box { padding: 0 0 20px; border-bottom: 1px solid var(--p3-line); min-width: 0; }
.phase3-page .archive-box:hover { background: transparent; opacity: 1; }
.phase3-page .archive-box:hover .archive-boxtitle { text-decoration: underline; color: #254999; }
.phase3-page .archive-box img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.phase3-page .archive-boxtitle { font-size: 18px; line-height: 1.65; text-align: left; color: #202124; padding: 16px 0 8px; }
.phase3-page .archive-date { font-size: 13px; color: #606873; text-align: left; padding: 0; }
.phase3-page .archive-boxtxt { font-size: 14px; line-height: 1.9; }.phase3-page .archive-budget { margin: 8px 0; padding: 8px 0; border: 0; color: #254999; }
.phase3-page .archive-filter { gap: 8px; justify-content: flex-start; margin-bottom: 28px; display: flex; }
.phase3-page .archive-filter-button { padding: 10px 16px; width: auto; min-height: 44px; border-radius: 4px; border: 1px solid #d8dce5; color: #202124; box-shadow: none; }
.phase3-page .archive-filter-button.is-active { background: #fde574; color: #202124; border-color: #202124; }
.phase3-page .pagination .page-numbers { border-color: #d8dce5; border-radius: 4px; min-width: 44px; min-height: 44px; padding: 8px 12px; }
.phase3-page .pagination .page-numbers.current { background: #254999; color: #fff; }
.phase3-service .casedetail { font-size: 17px; line-height: 1.95; }
.phase3-service .casedetail > h3, .phase3-service .casedetail .strength-box h3 { font-size: 25px; line-height: 1.6; color: #254999; margin: 36px 0 20px; background: transparent; padding: 0 0 16px; border-bottom: 3px solid #fde574; }
.phase3-service .casedetail p { margin-bottom: 24px; }
.phase3-service .casedetail img { max-width: 100%; height: auto; border-radius: 8px; }
.phase3-contact .form-entry { max-width: 680px; margin-top: 36px; }.phase3-contact .form-entry .fieldset { margin-bottom: 28px; }
.phase3-contact .form-entry label { font-size: 16px; color: #202124; }.phase3-contact .form-entry .hint { font-size: 13px; }
.phase3-contact .form-entry input[type=text], .phase3-contact .form-entry input[type=email], .phase3-contact .form-entry input[type=tel], .phase3-contact .form-entry input[type=url], .phase3-contact .form-entry textarea, .phase3-contact .form-entry select { border: 1px solid #b8bec9; border-radius: 4px; min-height: 48px; font-family: inherit; }
.phase3-contact .form-entry input.wpcf7-submit { background: linear-gradient(180deg,#252599,#4ba6fa); border-radius: 20px; min-height: 48px; }
@media(max-width:900px) { .phase3-page .archive-container { grid-template-columns: repeat(2,minmax(0,1fr)); }.phase3-page .phase3-archive-intro { display: block; }.phase3-archive-intro a { display: inline-block; margin-top: 12px; white-space: normal; } }
@media(max-width:620px) {
  .phase3-page.postpage, .phase3-page.contactpage, .phase3-page.archivepage { padding: 140px 20px 48px; }
  .phase3-page > h2, .phase3-page .casetitle { font-size: 26px; line-height: 1.55; margin-bottom: 20px; }
  .phase3-page .case-content p, .phase3-page .article-body { font-size: 16px; }
  .phase3-page .case-content h2 { font-size: 24px; margin-top: 36px; }.phase3-page .case-content h3 { font-size: 20px; }
  .phase3-page .caseimg { margin-bottom: 28px; }.phase3-page .archive-container { grid-template-columns: 1fr; gap: 28px; }
  .phase3-page .archive-boxtitle { font-size: 18px; }.phase3-page .phase3-cta { margin-top: 36px; }
  .phase3-page .phase3-cta h2, .phase3-page .phase3-related h2 { font-size: 22px; }
  .phase3-actions { display: grid; grid-template-columns: 1fr; }.phase3-button { width: 100%; }
  .phase3-related__grid { grid-template-columns: 1fr; gap: 24px; }.phase3-related__item { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; }
  .phase3-related__item img { grid-row: 1 / 3; margin: 0; }.phase3-related__item .phase3-note { margin: 0; }.phase3-related__title { font-size: 15px; margin-top: 4px; }
  .phase3-service .casedetail { font-size: 16px; }.phase3-service .casedetail > h3 { font-size: 22px; }
}
