@charset "utf-8";

/* ===================================
   一般入試
   =================================== */
.ttl_sub {
  border-bottom: 1px solid #000;
  padding-bottom: 0.3125rem;
  margin: 1.25rem 0 0;
}
.l-contents-detail h4 {
  margin-bottom: calc(var(--spacing) * 8);
}
.pri-wrap {
  margin-bottom: calc(var(--spacing) * 10);
}
.contWrap {
  padding: 0 calc(var(--spacing) * 10);
}
.list-ind {
  line-height: 2;
}
.table-td.box02 {
  min-width: 6.5625rem;
  background-color: #f5e6f5 !important;
  border: 1px solid #fff;
}
.tablepress thead th {
  background-color: #f5e6f5;
}
.tablepress thead th {
  background-color: #f5e6f5;
}
.table-th[class*="box0"],
.tablepress tbody th {
  background-color: #ceb2ce !important;
}

/* 項目ヘッダーのスタイル */
.item-header {
  color: #000;
  padding: 0.5rem 0;
  font-weight: 500;
}

/* 項目コンテンツのスタイル */
.item-content {
  padding: 0 1rem;
  line-height: 1.75;
}

/* タイトル下のボーダー */
.title-border {
  border-bottom: 2px solid #a3a3a3;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* 写真規定ボックス */
.photo-rules-box {
  background-color: white;
  padding: 1rem;
  margin-top: 1rem;
}

/* 下線強調 */
.txt_underline {
  border-bottom: 1px solid #000;
  display: inline;
}

.important-underline {
  font-weight: 500;
  border-bottom: 1px solid #ef4444;
}

/* ttl_h スタイル */
.ttl_h {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.btn_printbox {
  transition: all;
}
.btn_printbox:hover {
  opacity: 0.7;
}
/* mapbox */
.mapbox {
  margin-top: 2rem;
}

.mapbox img {
  max-width: 100%;
  height: auto;
}

/* cap (小さいテキスト) */
.cap {
  font-size: 0.8125rem;
}
.cap_yen {
  margin: 0;
  text-align: right;
}

/* レスポンシブ用 */
.sp-only {
  display: none;
}

@media (max-width: 640px) {
  .sp-only {
    display: inline;
  }
}

@media screen and (max-width: 768px) {
  .l-contents-detail h4 {
    margin: calc(60 * (100vw / 780)) auto calc(50 * (100vw / 780)) !important;
  }
  .contWrap {
    padding: 0;
  }
  .m-anchor li a {
    white-space: normal;
  }
  .tablepress thead th,
  .tablepress tbody th,
  .tablepress tbody td {
    padding: 0.625rem !important;
  }
  .sp-table_cap {
    margin-bottom: 0.9375rem;
    display: block;
  }
  .photo-rules-box {
    padding: 0;
  }
  .c-btn-pdf::before {
    width: calc(40 * (100vw / 780));
    height: calc(40 * (100vw / 780));
    right: calc(70 * (100vw / 780));
  }
}

.scroll-hint {
  position: absolute;
  top: 50%;
  right: 20px; /* 右側に配置 */
  transform: translateY(-50%);
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none; /* クリックを透過 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.scroll-hint--show {
  opacity: 1;
  visibility: visible;
  animation: scroll-hint-animation 1.5s infinite ease;
}
@keyframes scroll-hint-animation {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(10px); /* 右方向に動く */
  }
}

/* 印刷用のスタイル */
@media print {
  /* 印刷時に表紙ページを表示 */
  .m-btn.m-btn__l{
    display: none !important;
  }
  .ttl_h{
    margin-top: 1.5rem;
    margin-bottom: .625rem;
  }
  .no-print {
    display: none !important;
  }
  .pri-wrap.tobira {
    display: block !important;
    page-break-after: always !important;
    page-break-before: auto !important;
  }
  .l-contents-detail h4 {
    font-size: 18px;
    margin: 2.5rem 0 1.875rem !important;
    line-height: 1.5;
    padding-left: 2.1875rem;
  }
  .l-contents-detail h4::before {
    width: 1.25rem;
    top: calc(14 * (100vw / 780));
  }
  .c-btn {
    width: 100%;
    height: calc(80 * (100vw / 780));
    font-size: calc(20 * (100vw / 780));
  }
  .c-btn-pdf::before {
    width: 1.25rem;
    height: 1.25rem;
  }
  .c-btn::after {
    width: calc(27 * (100vw / 780));
    right: calc(18 * (100vw / 780));
  }
  .l-contents-detail li {
    line-height: 1.5;
  }
  .photo-rules-box {
    padding: 0 1rem;
  }
  .l-contents-side {
    display: none;
  }
  .other_listBox.space-y-6 {
    :where(& > :not(:last-child)) {
      margin-block-start: calc(
        calc(var(--spacing) * 3) * var(--tw-space-y-reverse)
      );
      margin-block-end: calc(
        calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse))
      );
    }
  }

  .enterBox-line02 {
    height: 240mm;
    padding: 80px 30px;
  }

  .yearBox {
    font-size: 30pt;
    margin-bottom: 80px;
  }

  .yearBox .nameBox {
    font-size: 24pt;
    margin-bottom: 30px;
  }

  .yearBox .nameBox2 {
    font-size: 22pt;
    margin-bottom: 20px;
  }

  .logo {
    width: 250px;
  }

  body {
    width: 200mm;
    margin: 0 auto;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    line-height: 1.5em;
    font-size: 10pt;
    background-color: #fff;
  }
  .l-contents .l-contents-inner {
    padding: 0;
  }
  .l-contents .l-contents-inner,
  .l-contents {
    box-shadow: none;
  }
  .l-contents .l-contents__mainL {
    background-color: #fff;
    padding: 0;
  }
  .l-contents .l-contents__wrap {
    margin-top: 0;
  }
  .l-contents .l-contents-inner table td {
    padding: 5px;
  }
  header,
  footer,
  .l-topicpath,
  h3,
  .page-anc.menu-top,
  .page-bottom-bg {
    display: none;
  }
  .pri-wrap {
    box-sizing: border-box;
    padding-top: 20px;
    page-break-before: always;
  }
  .l-contents-detail .pri-wrap > h4 {
    margin-top: 0 !important;
  }

  /* 表紙の後は必ず改ページ */
  .pri-wrap.tobira {
    page-break-after: always !important;
    page-break-before: auto !important;
  }

  /* 目次を含む最初のセクションは改ページしない */
  .pri-wrap:nth-of-type(2) {
    page-break-before: auto;
  }

  /* 目次と最初のh4の間で改ページ */
  .page-anc {
    page-break-after: auto;
  }
  /* .pri-wrap.mb-10 {
    margin-bottom: 1.875rem !important;
  } */

  .contWrap,
  .page-anc li {
    font-size: 10pt;
  }

  .mapbox {
    width: 100%;
  }

  #table-ip-exam03 td,
  #table-ip-exam04 td,
  #table-ip-exam05 td,
  #table-ip-exam06 td,
  #table-ip-exam07 td {
    padding: 5px;
  }

  .cont07 .other_listBox {
    margin-bottom: 10px;
  }

  .l-contents .l-contents-inner h4:after {
    border: none;
  }

  .btn_printbox {
    display: none;
  }

  .l-contents
    .l-contents-inner
    #table-ip-exam02
    .table-ip-head
    table
    td.line16 {
    line-height: 3.75em;
  }
  .scrollable-content table {
    min-width: auto !important;
  }

  /* 非表示箇所 */
  header,
  .header-margin-top {
    display: none !important;
  }
  .contWrap {
    padding: 0 1.875rem !important;
  }

  /* 見出しの後に改ページが入らないように */
  h4 {
    page-break-after: avoid;
  }

  /* 小さいテーブルは分断されないように */
  .table-exam-sc table {
    width: 100%;
    page-break-inside: auto;
  }

  /* 小さいコンテンツブロックのみ分断を避ける */
  .other_listBox {
    page-break-inside: auto;
  }

  /* スクロールヒントは印刷時に非表示 */
  .scroll-hint {
    display: none !important;
  }

  /* 印刷ボタンは非表示 */
  .btn_printbox {
    display: none;
  }

  /* 「目次へ戻る」ボタンは非表示 */
  .back-to-menu {
    display: none;
  }

  /* テーブルのオーバーフローを解除 */
  .table-exam-sc {
    overflow: visible !important;
  }

  /* 余白の調整 */
  @page {
    margin: 2cm;
  }
  /* テーブルの背景色を確実に表示 */
  .table-td.box02,
  .tablepress thead th,
  .table-th[class*="box0"],
  .tablepress tbody th {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
/* 表紙ページ - 通常は非表示 */
.pri-wrap.tobira {
  display: none;
  padding-top: 0;
}

.enterBox {
  border: 3px solid #7a4d6e;
  border-radius: 20px;
  padding: 10px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.enterBox-line01 {
  border: 1px solid #7a4d6e;
  border-radius: 16px;
  padding: 3px;
}

.enterBox-line02 {
  border: 1px solid #7a4d6e;
  border-radius: 12px;
  padding: 60px 30px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.yearBox {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 3.75rem;
  order: 1;
}

.yearBox .nameBox {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.yearBox .nameBox2 {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.enterArea {
  width: 50%;
  margin: 0 auto;
  background-color: #7a4d6e;
  padding: 1.25rem 0;
  border-radius: 2.5rem;
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  order: 3;
  color: #fff;
}

.logo {
  width: 200px;
  margin: 0 auto 3.75rem;
  order: 2;
}

.logo img {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .m-btn a, .m-btn.m-btn__l, .m-btn.m-btn__s {
    height: 67px;
    font-size: 1rem;
    width: auto;
  }
}