/*
Theme Name: Shiken Nittei Navi
Theme URI: https://example.com/
Author: Shiken Nittei Navi
Author URI: https://example.com/
Description: 資格・検定・試験の日程情報を整理するブログ/情報サイト向け WordPress テーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shiken-navi
*/

:root {
  --secondary: #1960a3;
  --surface-container-lowest: #ffffff;
  --on-primary-fixed: #001b3c;
  --secondary-fixed: #d3e4ff;
  --on-secondary-fixed-variant: #004881;
  --on-background: #181c1e;
  --surface-bright: #f7fafc;
  --inverse-primary: #adc7f7;
  --surface-tint: #455f88;
  --primary-container: #1a365d;
  --secondary-container: #7db6ff;
  --surface-variant: #e0e3e5;
  --primary-fixed: #d6e3ff;
  --on-primary-fixed-variant: #2d476f;
  --surface: #f7fafc;
  --on-primary-container: #86a0cd;
  --on-error: #ffffff;
  --primary-fixed-dim: #adc7f7;
  --on-surface-variant: #43474e;
  --on-surface: #181c1e;
  --surface-container-highest: #e0e3e5;
  --inverse-on-surface: #eef1f3;
  --tertiary-fixed-dim: #77d6d3;
  --surface-container-high: #e5e9eb;
  --on-secondary-fixed: #001c38;
  --on-primary: #ffffff;
  --tertiary-fixed: #94f2f0;
  --surface-dim: #d7dadc;
  --on-secondary: #ffffff;
  --error: #ba1a1a;
  --primary: #002045;
  --outline: #74777f;
  --surface-container: #ebeef0;
  --background: #f7fafc;
  --surface-container-low: #f1f4f6;
  --inverse-surface: #2d3133;
  --outline-variant: #c4c6cf;
  --on-secondary-container: #00477f;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
}

body {
  background: var(--background);
  color: var(--on-background);
  font-family: "Noto Sans JP", sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.material-symbols-outlined.fill-icon {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.container-navi {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container-navi {
    padding-inline: 32px;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
}

.ambient-shadow {
  box-shadow: 0 2px 8px 0 rgba(26, 54, 93, 0.05);
}

/* Fallbacks for Tailwind CDN custom tokens. */
.bg-primary {
  background-color: var(--primary);
}

.bg-primary-container {
  background-color: var(--primary-container);
}

.bg-primary-container\/10 {
  background-color: rgba(26, 54, 93, 0.1);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-secondary-container {
  background-color: var(--secondary-container);
}

.bg-surface {
  background-color: var(--surface);
}

.bg-surface-container {
  background-color: var(--surface-container);
}

.bg-surface-container-low {
  background-color: var(--surface-container-low);
}

.bg-surface-container-lowest {
  background-color: var(--surface-container-lowest);
}

.bg-surface-bright {
  background-color: var(--surface-bright);
}

.bg-surface-variant {
  background-color: var(--surface-variant);
}

.bg-error-container {
  background-color: var(--error-container);
}

.text-primary {
  color: var(--primary);
}

.text-primary-container {
  color: var(--primary-container);
}

.text-primary-fixed-dim {
  color: var(--primary-fixed-dim);
}

.text-secondary {
  color: var(--secondary);
}

.text-on-primary {
  color: var(--on-primary);
}

.text-on-secondary {
  color: var(--on-secondary);
}

.text-on-secondary-container {
  color: var(--on-secondary-container);
}

.text-on-surface {
  color: var(--on-surface);
}

.text-on-surface-variant {
  color: var(--on-surface-variant);
}

.text-on-background {
  color: var(--on-background);
}

.text-on-error-container {
  color: var(--on-error-container);
}

.text-outline {
  color: var(--outline);
}

.text-outline-variant {
  color: var(--outline-variant);
}

.text-error {
  color: var(--error);
}

.border-primary {
  border-color: var(--primary);
}

.border-primary\/30 {
  border-color: rgba(0, 32, 69, 0.3);
}

.border-outline {
  border-color: var(--outline);
}

.border-outline-variant {
  border-color: var(--outline-variant);
}

.border-outline-variant\/30 {
  border-color: rgba(196, 198, 207, 0.3);
}

.border-outline-variant\/50 {
  border-color: rgba(196, 198, 207, 0.5);
}

.font-display-lg,
.font-display-lg-mobile,
.font-headline-md,
.font-body-lg,
.font-body-md,
.font-title-sm,
.font-label-md {
  font-family: "Noto Sans JP", sans-serif;
}

.font-data-mono {
  font-family: "JetBrains Mono", monospace;
}

.text-display-lg {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.text-display-lg-mobile {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.text-headline-md {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.text-body-lg {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

.text-body-md {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.text-title-sm {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.text-label-md {
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

.text-data-mono {
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

.max-w-container-max {
  max-width: 1200px;
}

.px-margin-mobile {
  padding-left: 16px;
  padding-right: 16px;
}

.px-margin-desktop {
  padding-left: 32px;
  padding-right: 32px;
}

.gap-gutter {
  gap: 24px;
}

.gap-base {
  gap: 8px;
}

.rounded-DEFAULT {
  border-radius: 0.125rem;
}

.hover\:bg-surface-container:hover {
  background-color: var(--surface-container);
}

.hover\:bg-surface-container-low:hover {
  background-color: var(--surface-container-low);
}

.hover\:bg-surface-bright:hover {
  background-color: var(--surface-bright);
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.hover\:text-secondary:hover {
  color: var(--secondary);
}

.hover\:text-on-primary:hover {
  color: var(--on-primary);
}

footer,
footer a,
footer span,
footer div,
footer nav {
  color: #ffffff;
}

footer a {
  opacity: 0.9;
}

footer a:hover {
  opacity: 1;
}

.focus\:border-primary:focus,
.focus-within\:border-secondary-container:focus-within {
  border-color: var(--secondary-container);
}

@media (min-width: 768px) {
  .md\:px-margin-desktop {
    padding-left: 32px;
    padding-right: 32px;
  }

  .md\:text-display-lg {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
  }

  .md\:font-display-lg {
    font-family: "Noto Sans JP", sans-serif;
  }
}

.entry-content {
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
  color: var(--primary-container);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content h2 {
  font-size: 1.5rem;
  border-left: 4px solid var(--secondary);
  padding-left: 0.75rem;
}

.entry-content h3 {
  font-size: 1.2rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table {
  margin-bottom: 1rem;
}

.entry-content a {
  color: var(--secondary);
  text-decoration: underline;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--outline-variant);
  padding: 0.75rem;
  text-align: left;
}

.entry-content th {
  background: var(--surface-container-low);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.exam-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.exam-table-wrap::after {
  content: "横にスクロールできます";
  display: none;
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  min-width: 760px;
  table-layout: auto;
}

.exam-schedule-table th:nth-child(1),
.exam-schedule-table td:nth-child(1) {
  width: 14%;
}

.exam-schedule-table th:nth-child(2),
.exam-schedule-table td:nth-child(2) {
  width: 28%;
}

.exam-schedule-table th:nth-child(3),
.exam-schedule-table td:nth-child(3) {
  width: 16%;
}

.exam-schedule-table th:nth-child(4),
.exam-schedule-table td:nth-child(4) {
  width: 30%;
}

.exam-schedule-table th:nth-child(5),
.exam-schedule-table td:nth-child(5) {
  width: 12%;
}

.exam-fee-table,
.exam-result-table,
.exam-cbt-table {
  min-width: 520px;
}

.exam-table th {
  background: #00335f;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 14px;
  border: 1px solid #d6dee8;
  text-align: left;
  white-space: nowrap;
}

.exam-table td {
  padding: 12px 14px;
  border: 1px solid #d6dee8;
  vertical-align: top;
  line-height: 1.7;
  color: var(--on-surface);
  word-break: keep-all;
}

.exam-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.exam-table td:last-child,
.exam-table th:last-child {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .exam-table-wrap::after {
    display: block;
  }

  .exam-table {
    min-width: 760px;
  }
}

/* Contact Form 7: prevent mobile overflow. */
.wpcf7,
.wpcf7 form {
  width: 100%;
  max-width: 100%;
}

.wpcf7 label {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.6;
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  display: inline-block;
  max-width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  background: #0b3768;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.9;
}

.page-content,
.entry-content,
.single-content,
.site-main,
.main-content {
  max-width: 100%;
  overflow-x: hidden;
}

.entry-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: #0b3768;
  font-size: 20px;
  font-weight: 700;
}

.entry-content p {
  line-height: 1.9;
}

.entry-content ul,
.entry-content ol {
  margin-top: 12px;
  margin-bottom: 18px;
  padding-left: 24px;
  line-height: 1.9;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

@media screen and (max-width: 768px) {
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 textarea {
    font-size: 16px;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
    text-align: center;
  }

  .page .content-card,
  .page-card,
  .entry-content {
    width: auto;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }
}
