@charset "UTF-8";

/* =========================================================
   2026年度 夏期講習ページ
   summer-course.html 専用CSS
   ========================================================= */

:root {
  --text: #333333;
  --subtext: #666666;
  --border: #c8c8c8;
  --light-border: #e2e2e2;
  --background: #eeeeee;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --accent: #8b1f2d;
  --accent-dark: #65151f;
  --heading: #5f5f5f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #cccccc url("file/base/back.gif") repeat;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN",
    Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

button,
input {
  font: inherit;
}

/* =========================================================
   全体レイアウト
   ========================================================= */

.site-wrap {
  width: 850px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--paper);
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header a,
.site-header img {
  display: block;
  width: 100%;
}

.site-body {
  display: grid;
  grid-template-columns: 161px minmax(0, 689px);
  align-items: stretch;
}

/* =========================================================
   左サイドメニュー
   ========================================================= */

.side-menu {
  width: 161px;
  min-height: 100%;
  background: #efefef url("file/base/menu_back.jpg") repeat-y;
}

.side-menu__home {
  display: block;
  width: 161px;
  margin: 0;
  padding: 0;
}

.side-menu__home img {
  display: block;
  width: 161px;
}

.side-menu__group {
  margin: 0;
  padding: 0;
}

.side-menu__group h2 {
  width: 161px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.side-menu__group h2 img {
  display: block;
  width: 161px;
}

.side-menu__links {
  width: 161px;
  padding: 5px 8px 9px;
  background: #ffffff url("file/base/menu_page_back.jpg") repeat-y;
}

.side-menu__links a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 2px;
  color: #444444;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.45;
}

.side-menu__links a img {
  width: auto;
  max-width: 13px;
  flex: 0 0 auto;
}

.side-menu__links a:hover,
.side-menu__links a.is-current {
  color: var(--accent);
  text-decoration: underline;
}

.side-menu__links a.is-current {
  font-weight: 700;
}

/* =========================================================
   メインエリア
   ========================================================= */

.main-area {
  width: 100%;
  min-width: 0;
  background: #ffffff;
}

.main-inner {
  width: 100%;
  padding: 24px 34px 32px;
}

.page-heading {
  margin: 0 0 24px;
  padding: 24px 26px;
  border-top: 5px solid var(--heading);
  border-bottom: 1px solid var(--border);
  background: var(--soft);
}

.page-heading p,
.page-heading h1,
.page-heading span {
  margin: 0;
}

.page-heading p {
  color: var(--subtext);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.page-heading h1 {
  margin-top: 5px;
  color: #333333;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.page-heading span {
  display: block;
  margin-top: 6px;
  color: var(--subtext);
  font-size: 14px;
}

.lead {
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid var(--light-border);
  background: #ffffff;
}

.lead p {
  margin: 0;
}

.lead p + p {
  margin-top: 10px;
}

/* =========================================================
   共通セクション
   ========================================================= */

.content-section {
  margin-top: 36px;
}

.content-section > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 9px;
  border-bottom: 2px solid var(--heading);
  color: #333333;
  font-size: 21px;
  line-height: 1.4;
}

.content-section > h2 > span {
  display: inline-flex;
  width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--heading);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
}

/* 講習期間 */

.term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.term-list > div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--soft);
}

.term-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 15px;
}

.term-list p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.notes {
  margin: 13px 0 0;
  padding: 13px 18px 13px 36px;
  border-left: 4px solid var(--accent);
  background: #fafafa;
}

.notes li + li {
  margin-top: 3px;
}

/* 受講費用 */

.fee-table {
  border-top: 1px solid var(--border);
}

.fee-row {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.fee-row:nth-child(even) {
  background: var(--soft);
}

.fee-row > div {
  min-width: 0;
}

.fee-row > div > strong {
  display: block;
  font-size: 16px;
}

.fee-row > div > small {
  display: block;
  margin-top: 2px;
  color: var(--subtext);
}

.fee-row > p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--accent-dark);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.fee-row > p small {
  font-size: 12px;
  font-weight: 400;
}

.benefit {
  margin: 13px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.benefit strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
}

/* 表 */

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.basic-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.basic-table th,
.basic-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.basic-table thead th {
  color: #ffffff;
  background: var(--heading);
  font-size: 13px;
}

.basic-table tbody th {
  width: 26%;
  background: var(--soft);
}

.basic-table td:last-child {
  white-space: nowrap;
}

.caption {
  margin: 7px 0 0;
  color: var(--subtext);
  font-size: 12px;
}

/* 指導内容 */

.guidance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.guidance-list dl {
  margin: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.guidance-list dt {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 700;
}

.guidance-list dd {
  margin: 0;
  color: #555555;
  font-size: 13px;
}

/* 合格実績 */

.plain-box {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--soft);
  line-height: 2;
}

/* 講師 */

.instructor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.instructor__title {
  display: flex;
  width: 76px;
  height: 50px;
  flex: 0 0 76px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #ffffff;
  background: var(--heading);
  font-size: 13px;
  font-weight: 700;
}

.instructor h3 {
  margin: 0 0 3px;
  font-size: 20px;
}

.instructor div p {
  margin: 0;
  color: #555555;
}

/* お申込み */

.contact-box {
  margin-top: 42px;
  padding: 26px;
  border: 2px solid var(--heading);
  background: var(--soft);
  text-align: center;
}

.contact-box__en {
  margin: 0;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.contact-box h2 {
  margin: 5px 0 10px;
  font-size: 23px;
}

.contact-box > p:not(.contact-box__en) {
  max-width: 540px;
  margin: 0 auto;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 500px;
  margin: 18px auto 0;
}

.contact-links a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--heading);
  color: #ffffff;
  background: var(--heading);
  text-decoration: none;
  font-weight: 700;
}

.contact-links a:first-child {
  background: var(--accent-dark);
}

.contact-links a:hover {
  opacity: 0.82;
}

/* =========================================================
   申込書
   ========================================================= */

.print-form {
  margin-top: 44px;
  padding: 22px;
  border: 2px solid #555555;
  background: #ffffff;
}

.print-form__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding-bottom: 11px;
  border-bottom: 3px double #555555;
}

.print-form__head p,
.print-form__head h2 {
  margin: 0;
}

.print-form__head p {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.print-form__head h2 {
  font-size: 21px;
}

.print-form__head button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  color: #ffffff;
  background: var(--heading);
  cursor: pointer;
}

.applicant-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30mm;
  align-items: start;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #888888;
  border-left: 1px solid #888888;
}

.form-field {
  min-height: 58px;
  padding: 7px 9px;
  border-right: 1px solid #888888;
  border-bottom: 1px solid #888888;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field span,
.choice-field span {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.form-field small,
.choice-field small {
  display: block;
  margin-top: 16px;
  color: #555555;
}

/* 顔写真貼付欄：縦4cm × 横3cm */

.photo-field {
  display: flex;
  width: 30mm;
  height: 40mm;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4mm 2mm;
  border: 1px solid #555555;
  background: #ffffff;
  text-align: center;
}

.photo-field span {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.photo-field small {
  display: block;
  margin-top: 8px;
  color: #555555;
  font-size: 9px;
  line-height: 1.5;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid #888888;
  border-left: 1px solid #888888;
}

.choice-field {
  min-height: 72px;
  padding: 7px 9px;
  border-right: 1px solid #888888;
  border-bottom: 1px solid #888888;
}

.date-choice-title {
  margin: 19px 0 8px;
  font-size: 15px;
}

.date-choice-title small {
  color: var(--subtext);
  font-size: 11px;
  font-weight: 400;
}

.date-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #999999;
  border-left: 1px solid #999999;
}

.date-choice-grid label {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-right: 1px solid #999999;
  border-bottom: 1px solid #999999;
  font-size: 11px;
}

.date-choice-grid input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
}

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

.page-footer {
  margin-top: 28px;
  padding: 13px 10px;
  border-top: 1px solid var(--border);
  color: var(--subtext);
  text-align: center;
  font-size: 10px;
}

/* =========================================================
   タブレット・スマートフォン
   ========================================================= */

@media (max-width: 720px) {
  body {
    background: #ffffff;
  }

  .site-wrap {
    width: 100%;
  }

  .site-body {
    display: block;
  }

  .side-menu {
    display: none;
  }

  .main-inner {
    padding: 16px 14px 28px;
  }

  .page-heading {
    padding: 20px 18px;
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .term-list,
  .guidance-list,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .fee-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .fee-row > p {
    font-size: 21px;
  }

  .instructor {
    align-items: flex-start;
  }

  .print-form {
    padding: 14px;
  }

  .print-form__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .applicant-info {
    grid-template-columns: 1fr;
  }

  .photo-field {
    justify-self: end;
  }

  .form-grid,
  .choice-grid,
  .date-choice-grid {
    grid-template-columns: 1fr;
  }

  .form-field--wide {
    grid-column: auto;
  }
}

/* =========================================================
   印刷
   ========================================================= */

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body {
    background: #ffffff;
    font-size: 9pt;
    line-height: 1.45;
  }

  .site-wrap {
    width: 100%;
  }

  .site-header,
  .side-menu,
  .main-inner > :not(.print-form),
  .page-footer,
  .print-form__head button {
    display: none !important;
  }

  .site-body {
    display: block;
  }

  .main-area,
  .main-inner {
    width: 100%;
    padding: 0;
  }

  .print-form {
    margin: 0;
    padding: 4mm;
    border: 1px solid #000000;
  }

  .print-form__head {
    margin-bottom: 3mm;
    padding-bottom: 2mm;
  }

  .print-form__head h2 {
    font-size: 16pt;
  }

  .applicant-info {
    grid-template-columns: minmax(0, 1fr) 30mm;
    gap: 3mm;
  }

  .photo-field {
    width: 30mm;
    height: 40mm;
    padding: 3mm 1.5mm;
  }

  .form-field {
    min-height: 12mm;
    padding: 1.5mm 2mm;
  }

  .form-field small,
  .choice-field small {
    margin-top: 3mm;
  }

  .choice-grid {
    margin-top: 3mm;
  }

  .choice-field {
    min-height: 14mm;
    padding: 1.5mm 2mm;
  }

  .date-choice-title {
    margin: 3mm 0 1.5mm;
  }

  .date-choice-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .date-choice-grid label {
    min-height: 7.5mm;
    padding: 1mm 1.5mm;
    font-size: 7.5pt;
  }
}


/* =========================================================
   左サイドメニュー
   既存ページと同じ table 構造・画像サイズをそのまま使用
   ========================================================= */

.legacy-side-menu {
  width: 161px;
  min-width: 161px;
  max-width: 161px;
  overflow: visible;
  background: #ffffff url("file/base/menu_back.jpg") repeat-y;
  font-family: "ＭＳ Ｐゴシック", Osaka, sans-serif;
  font-size: 13px;
  line-height: normal;
}

.legacy-side-menu table {
  margin: 0;
  border-spacing: 0;
}

.legacy-side-menu td {
  padding: 0;
}

.legacy-side-menu img {
  max-width: none;
  height: auto;
}

.legacy-side-menu > table {
  width: 161px;
}

.legacy-side-menu a {
  color: #666666;
  text-decoration: underline;
  white-space: nowrap;
}

.legacy-side-menu a:visited {
  color: #990000;
}

.legacy-side-menu a:hover,
.legacy-side-menu a.is-current {
  color: #003399;
}

.legacy-side-menu a.is-current {
  font-weight: 700;
}

@media (max-width: 720px) {
  .legacy-side-menu {
    display: none;
  }
}


/* =========================================================
   左サイドメニュー最終調整
   既存ページの画像位置を維持し、夏期講習リンクの見切れを防止
   ========================================================= */

.legacy-side-menu {
  overflow: hidden;
}

.legacy-side-menu > table {
  width: 161px !important;
  max-width: 161px !important;
  table-layout: fixed;
}

.legacy-side-menu > table > tbody > tr > td {
  width: 161px !important;
  max-width: 161px !important;
  overflow: hidden;
}

.legacy-side-menu > table > tbody > tr > td > table {
  width: 161px !important;
  max-width: 161px !important;
  table-layout: fixed;
}

.legacy-side-menu > table > tbody > tr > td > table td:first-child {
  width: 51px;
  min-width: 51px;
  max-width: 51px;
}

.legacy-side-menu > table > tbody > tr > td > table td:last-child {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  overflow: hidden;
  white-space: nowrap;
}

.legacy-side-menu img {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: middle;
}

.legacy-side-menu font[size="-1"] {
  font-size: 12px;
  line-height: 1;
}

.legacy-side-menu a.is-current,
.legacy-side-menu a.is-current:link,
.legacy-side-menu a.is-current:visited {
  color: #990000;
  font-weight: 700;
}

.legacy-side-menu a.is-current:hover,
.legacy-side-menu a.is-current:focus {
  color: #003399;
}

.legacy-side-menu a.is-current font {
  font-size: 11px;
  letter-spacing: -0.15px;
}
