/* 基本設定 */
:root {
  --color-primary: #e6507f;
  --color-primary-hover: #cf3d6c;
  --color-bg-pink: #fbf0f3;
  --color-text: #333;
  --color-yellow: #fff7cc;
  --color-border: #ccc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "LINE Seed JP","Noto Sans JP",sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

h2, h3, h4, strong, em, .cta {
  font-weight: 700;
}

em {
  font-style: normal;
  color: var(--color-primary);
}

.container {
  width: 80%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* キービジュアル */
.hero {
  position: relative;
  background: var(--color-bg-pink);
}

.hero-photo {
  display: block;
}

.hero-photo img {
  display: block;
  width: 100%;
}

.hero-logo {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 239px;
}

.hero-copy {
  position: absolute;
  left: 8%;
  top: 18.4%;
  width: 42.25%;
}

/* ポイント見出し・カード */
.points {
  background: var(--color-bg-pink);
  padding: 18px 0 80px;
}

.points-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.point {
  position: relative;
  background: #fff;
  box-shadow: 0 3px 12px rgba(80, 35, 50, 0.045);
  border-radius: 20px;
  padding: 40px 100px;
  margin-bottom: 40px;
}

.point:last-child {
  margin-bottom: 0;
}

.point-intro {
  text-align: center;
}

.point h3 {
  font-size: 44px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.point p {
  font-size: 20px;
  line-height: 1.8;
}

.point-number {
  position: absolute;
  width: 100px;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
}

.point-icon {
  position: absolute;
  width: 160px;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
}

.point-one {
  min-height: 224px;
}

.point-two {
  padding-top: 36px;
  padding-bottom: 48px;
}

.point-two .point-intro {
  max-width: 700px;
  margin: auto;
}

.point-two h3 {
  margin-bottom: 34px;
}

/* 検定料表 */
.fees {
  border-collapse: collapse;
  background: var(--color-yellow);
  width: 600px;
  max-width: 100%;
  margin: 0 auto 28px;
}

.fees th, .fees td {
  padding: 6px 30px;
  border-bottom: 2px solid white;
  font-size: 20px;
}

.fees th {
  text-align: left;
  font-weight: 400;
}

.fees td {
  text-align: right;
  color: var(--color-primary);
  font-weight: 700;
}

.fees strong {
  font-size: 34px;
}

/* CTA・矢印 */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 600px;
  max-width: 100%;
  min-height: 80px;
  margin: auto;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background-color 180ms ease;
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  color: var(--color-primary);
  font-size: 20px;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}

.arrow img {
  display: block;
  width: 55%;
  height: auto;
  flex-shrink: 0;
}

.cta:focus-visible {
  background-color: var(--color-primary-hover);
  outline: 2px solid var(--color-primary-hover);
  outline-offset: 4px;
}

.cta:active {
  background-color: var(--color-primary-hover);
}

.cta .arrow {
  overflow: hidden;
}

/* 特待生制度・表 */
.point-three {
  padding-top: 40px;
  padding-bottom: 40px;
}

.point-three-subtitle {
  display: block;
  font-size: 0.681818em;
}

.point-three > .point-number {
  top: 60px;
  transform: none;
}

.point-three > .point-icon {
  top: 40px;
  transform: none;
}

.scholarship {
  margin-top: 65px;
}

.dates {
  margin: 0 0 42px;
  font-size: 16px;
}

.dates > div {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid #ddd;
  padding: 14px 20px;
  gap: 0;
}

.dates dt {
  font-weight: 700;
}

.dates dd {
  margin: 0;
}

.scholarship h4 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scholarship-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
  table-layout: fixed;
}

.scholarship-table th, .scholarship-table td {
  border: 1px solid var(--color-border);
  padding: 4px 14px;
  text-align: left;
}

.scholarship-table thead {
  background: #fff0e3;
}

.scholarship-table thead th {
  font-size: 18px;
}

.scholarship-table tbody th {
  font-weight: 400;
}

.faculty {
  width: 24.2%;
}

.term {
  width: 8.5%;
}

.point .table-note {
  font-size: 14px;
  text-align: left;
  margin-top: 14px;
  line-height: 1.6;
}

.scroll-hint {
  display: none;
}

.scholarship-cta {
  margin-top: 50px;
}

.scholarship-table .rank-note {
  font-size: 0.75em;
  white-space: nowrap;
}

.scholarship-table .exemption {
  color: var(--color-primary);
  font-weight: 700;
}

.scholarship-table .rank-wide {
  white-space: nowrap;
  padding-right: 4px;
  font-size: 0.9em;
}

/* 共通テストプラス方式 */
.plus {
  background: var(--color-bg-pink);
  border-radius: 20px;
  padding: 60px 40px;
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: center;
}

.plus-kicker {
  display: inline-block;
  position: relative;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.plus-kicker:before, .plus-kicker:after {
  content: "";
  position: absolute;
  top: -6px;
  width: 2px;
  height: 48px;
  background: currentColor;
}

.plus-kicker:before {
  left: -26px;
  transform: rotate(-27deg);
}

.plus-kicker:after {
  right: -26px;
  transform: rotate(27deg);
}

.plus h2 {
  font-size: 32px;
  line-height: 1.5;
  color: var(--color-primary);
}

.plus-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 50px;
}

.plus-description {
  font-size: 22px;
  line-height: 2;
  flex: 1;
}

.plus-description strong {
  font-size: 25px;
}

.plus-fees {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  flex: 0 0 62%;
}

.base-fee {
  background: var(--color-yellow);
  border-radius: 10px;
  padding: 18px 20px;
  flex: 1;
  font-size: 23px;
}

.base-fee > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  line-height: 1.4;
}

.base-fee > div + div {
  border-top: 1px solid #d6cfaf;
  margin-top: 12px;
  padding-top: 12px;
}

.base-fee small {
  display: block;
  text-align: right;
  font-size: 18px;
}

.plus-sign {
  font-size: 60px;
  color: #999;
  font-weight: 700;
  line-height: 1;
}



.extra-fee {
  flex: 1.18;
  min-width: 0;
  border: 1px solid #e6a2b7;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.extra-fee-heading {
  background: var(--color-bg-pink);
  border-bottom: 1px solid #e6a2b7;
  padding: 14px 6px;
  font-size: clamp(9px, 1.25vw, 20px);
  line-height: 1.4;
  white-space: nowrap;
}

.extra-fee-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 6px 16px;
  color: var(--color-primary);
  font-weight: 700;
}

.extra-fee-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: clamp(16px, 2vw, 32px);
  line-height: 1.2;
  white-space: nowrap;
}

.extra-fee-price strong {
  font-size: clamp(26px, 3.5vw, 56px);
}

.extra-fee-label {
  font-weight: 400;
  align-self: center;
  background: #eda8be;
  color: #fff;
  padding: 2px 8px;
  font-size: clamp(9px, 1.125vw, 18px);
}

.extra-fee-suffix {
  font-size: .7em;
}

.extra-fee-note {
  margin-top: 4px;
  font-size: clamp(9px, 1.25vw, 20px);
  line-height: 1.5;
  white-space: nowrap;
}
/* フッター */
footer {
  border-top: 4px solid var(--color-primary);
  padding: 60px 20px 55px;
  text-align: center;
}

footer img {
  width: 239px;
}

footer small {
  display: block;
  font-size: 10px;
  margin-top: 30px;
}

/* 改行の切り替え */
.sp-break {
  display: none;
}

/* PC共通（768px以上） */
@media (min-width: 768px) {
  /* ポイント見出し・カード */
  .points > .container {
    position: relative;
  }

  .points-title {
    position: absolute;
    bottom: calc(100% + 40px);
    width: 100%;
    height: auto;
    overflow: visible;
    clip-path: none;
    text-align: center;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1;
  }

  .points-title span {
    color: var(--color-primary);
    font-size: clamp(56px, 6.25vw, 100px);
    vertical-align: -8px;
    margin-right: 6px;
  }

  .point-two {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    align-items: center;
    column-gap: 24px;
  }

  .point-two .point-intro {
    width: 100%;
    min-width: 0;
    display: contents;
  }

  .point-two > .point-number, .point-two > .point-icon {
    position: static;
    transform: none;
  }

  .point-two > .point-icon {
    justify-self: end;
    grid-column: 3;
    grid-row: 2;
  }

  .point-two h3 {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: nowrap;
    text-align: center;
  }

  .point-two .fees {
    grid-column: 2;
    grid-row: 2;
  }

  .point-two .cta {
    grid-column: 2;
    grid-row: 3;
  }

  .point-two > .point-number {
    grid-column: 1;
    grid-row: 2;
  }

  /* 特待生制度・表 */
  .scholarship-table {
    font-size: clamp(10px,1vw,16px);
  }

  .scholarship-table th, .scholarship-table td {
    padding: 4px 8px;
  }

  .scholarship-table thead th {
    font-size: clamp(12px,1.125vw,18px);
  }

  /* 共通テストプラス方式 */
  .plus-fees {
    display: grid;
    grid-template-columns: minmax(0, 304fr) auto minmax(0, 358fr);
    align-items: stretch;
    flex-basis: 66%;
    min-width: 0;
  }

  .plus-fees .base-fee {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: clamp(12px, 1.25vw, 20px);
  }

  .plus-fees .base-fee small {
    font-size: clamp(10px, 1vw, 16px);
  }

  .plus-fees .plus-sign {
    align-self: center;
  }


  .base-fee {
    min-width: 0;
  }

  .base-fee > div {
    gap: 10px;
  }

  .base-fee > div > span {
    white-space: nowrap;
  }



  .plus-description {
    min-width: 0;
  }
}

/* PC・タブレット（768〜1300px） */
@media (min-width: 768px) and (max-width: 1300px) {
  /* ポイント見出し・カード */
  .point-two {
    grid-template-columns: 110px minmax(0, 1fr) 110px;
    column-gap: 20px;
  }

  .point {
    padding-left: 45px;
    padding-right: 45px;
  }

  .point-number {
    left: 35px;
    width: 75px;
  }

  .point-icon {
    right: 35px;
    width: 110px;
  }

  .point h3 {
    font-size: 32px;
  }

  .point p {
    font-size: 17px;
  }

  /* 特待生制度・表 */
  .point-three .point-intro {
    margin-inline: 80px;
  }

  .dates > div {
    grid-template-columns: 180px 1fr;
  }

  /* 共通テストプラス方式 */
  .plus {
    padding: 45px 30px;
  }

  .plus h2 {
    font-size: 25px;
  }

  .plus-description, .plus-description strong {
    font-size: 17px;
  }

  .plus-content {
    gap: 20px;
  }

  .base-fee {
    padding: 14px 12px;
  }

  .plus-fees {
    gap: 8px;
    padding: 14px;
  }

  .plus-sign {
    font-size: 40px;
  }
}

/* タブレット（768〜1000px） */
@media (min-width: 768px) and (max-width: 1000px) {
  /* ポイント見出し・カード */
  .point-two {
    grid-template-columns: 80px minmax(0, 1fr) 80px;
    column-gap: 16px;
  }

  .point {
    padding-inline: 24px;
  }

  .point-number {
    left: 22px;
    width: 58px;
  }

  .point-icon {
    right: 22px;
    width: 80px;
  }

  .point h3 {
    font-size: 26px;
  }

  .point-one .point-intro {
    margin-inline: 62px;
  }

  .point p {
    font-size: 14px;
  }

  /* CTA・矢印 */
  .cta {
    font-size: 18px;
  }

  /* 特待生制度・表 */
  .dates > div {
    grid-template-columns: 110px 1fr;
    padding-inline: 8px;
  }

  .dates {
    font-size: 13px;
  }
  /* 特待生Bの認定枠：注記まで1行で収まる列幅を確保 */
  .scholarship-table col:nth-child(6) {
    width: 13.5%;
  }

  /* 共通テストプラス方式 */
  .plus {
    padding-inline: 22px;
  }

  .plus-content {
    gap: 12px;
  }

  .plus h2 {
    font-size: 22px;
  }

  .plus-kicker {
    font-size: 21px;
  }

  .plus-description, .plus-description strong {
    font-size: 14px;
  }

  .plus-fees {
    padding: 10px;
    gap: 5px;
    flex-basis: 65%;
  }

  .base-fee {
    padding: 10px 8px;
  }

  .plus-sign {
    font-size: 28px;
  }


}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
  /* 基本設定 */
  .container {
    width: calc(100% - 30px);
    max-width: 540px;
  }

  /* キービジュアル */
  .hero-photo img {
    aspect-ratio: 750/1120;
  }

  .hero-logo {
    left: 6.67%;
    top: 3.75%;
    width: 32%;
  }

  .hero-copy {
    left: 4.93%;
    top: 11.5%;
    width: 90.14%;
  }

  /* ポイント見出し・カード */
  .points-title {
    transform: translateY(-12px);
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    text-align: center;
    font-size: 27px;
    line-height: 1.3;
    padding: 0 0 48px;
  }

  .points {
    padding: 0 0 30px;
  }

  .points-title span {
    font-size: 50px;
    color: var(--color-primary);
    vertical-align: -4px;
    margin-right: 4px;
  }

  .point {
    border-radius: 10px;
    padding: 46px 16px 28px;
    margin-bottom: 64px;
  }

  .point-number, .point-three > .point-number {
    width: 50px;
    left: 50%;
    top: -33px;
    transform: translateX(-50%);
  }

  .point-icon {
    display: none;
  }

  .point h3 {
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 14px;
  }

  .point p {
    font-size: 14px;
    line-height: 1.8;
  }

  .point-one {
    min-height: 172px;
  }

  .point-two {
    padding-top: 46px;
    padding-bottom: 29px;
  }

  .point-two .point-intro {
    max-width: none;
  }

  .point-two h3 {
    margin-bottom: 24px;
  }

  /* 検定料表 */
  .fees {
    margin-bottom: 18px;
    width: 100%;
  }

  .fees th, .fees td {
    padding: 8px 14px;
    font-size: 16px;
    border-bottom-width: 3px;
  }

  .fees strong {
    font-size: 23px;
  }

  /* CTA・矢印 */
  .cta {
    justify-content: space-between;
    text-align: left;
    font-size: 16px;
    min-height: 50px;
    border-radius: 4px;
    padding: 12px 10px;
    gap: 12px;
  }

  .cta .arrow {
    margin-left: auto;
  }

  .arrow {
    width: 20px;
    height: 20px;
    font-size: 15px;
  }

  /* 特待生制度・表 */
  .point-three {
    padding-top: 46px;
    padding-bottom: 30px;
  }

  .point-three h3 {
    font-size: 27px;
    white-space: nowrap;
  }

  .point-three-subtitle {
    font-size: clamp(12px, 4vw, 15px);
  }

  .point-three .point-intro p {
    font-size: 14px;
    white-space: nowrap;
  }

  .scholarship {
    margin-top: 30px;
  }

  .dates {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .dates > div {
    display: block;
    padding: 16px 0;
  }

  .dates > div:first-child {
    padding-top: 0;
  }

  .dates dt {
    margin-bottom: 6px;
  }

  .dates dd {
    line-height: 1.6;
  }

  .scholarship h4 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 14px;
    white-space: nowrap;
  }

  .scholarship-table {
    width: 1080px;
    font-size: 14px;
    min-width: 1080px;
  }

  .scholarship-table th, .scholarship-table td {
    padding: 5px 14px;
  }

  .scholarship-table thead th {
    font-size: 16px;
    height: 30px;
  }

  .scholarship-table .faculty {
    width: 226px;
  }

  .scholarship-table .term {
    width: 80px;
  }

  .table-scroll {
    padding-bottom: 12px;
    scrollbar-color: var(--color-primary) #e4e4e4;
    scrollbar-width: thin;
    border-bottom: 3px solid #e4e4e4;
  }

  .table-scroll::-webkit-scrollbar {
    height: 3px;
  }

  .table-scroll::-webkit-scrollbar-track {
    background: #e4e4e4;
  }

  .table-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
  }

  .point .scroll-hint {
    display: block;
    font-size: 10px;
    margin-top: 6px;
  }

  .point .table-note {
    font-size: 11px;
    text-align: left;
    margin-top: 16px;
    white-space: nowrap;
  }

  .scholarship-cta {
    margin-top: 30px;
    min-height: 65px;
  }

  .table-scroll:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
  }

  /* 共通テストプラス方式 */
  .plus {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 30px 15px;
    border-radius: 8px;
  }

  .plus-kicker {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .plus-kicker:before, .plus-kicker:after {
    height: 26px;
    top: -2px;
    width: 1px;
  }

  .plus-kicker:before {
    left: -12px;
  }

  .plus-kicker:after {
    right: -12px;
  }

  .plus h2 {
    font-size: 23px;
    line-height: 1.35;
  }

  .plus-content {
    display: block;
    margin-top: 25px;
  }

  .plus-description, .plus-description strong {
    line-height: 1.6;
    text-align: center;
    font-size: 14px;
  }

  .plus-fees {
    display: flex;
    flex-direction: column;
    padding: 14px 10px;
    gap: 4px;
    margin-top: 18px;
    border-radius: 5px;
  }

  .base-fee {
    width: 100%;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .base-fee > div + div {
    margin-top: 8px;
    padding-top: 8px;
  }

  .base-fee small {
    font-size: 13px;
  }

  .plus-sign {
    font-size: 35px;
  }



  .extra-fee {
    width: 100%;
    flex: auto;
    border-radius: 5px;
  }

  .extra-fee-heading {
    font-size: clamp(11px, 3.73vw, 14px);
    padding: 10px 4px;
  }

  .extra-fee-price {
    font-size: 24px;
  }

  .extra-fee-price strong {
    font-size: 40px;
  }

  .extra-fee-label {
    font-size: clamp(10px, 3.2vw, 12px);
  }

  .extra-fee-note {
    font-size: clamp(11px, 3.73vw, 14px);
  }
  /* フッター */
  footer {
    border-top-width: 3px;
    padding: 30px 12px;
  }

  footer img {
    width: 120px;
  }

  footer small {
    font-size: 9px;
    margin-top: 18px;
  }

  /* 改行の切り替え */
  .sp-break {
    display: block;
  }

  .pc-break {
    display: none;
  }
}

/* 小型スマートフォン（374px以下） */
@media (max-width: 374px) {
  /* ポイント見出し・カード */
  .point h3, .point-three h3 {
    font-size: 24px;
  }

  /* CTA・矢印 */
  .cta {
    font-size: 14px;
  }

  /* 特待生制度・表 */
  .point-three .point-intro p {
    font-size: 12px;
  }

  .scholarship h4 {
    font-size: 16px;
  }

  .point .table-note {
    font-size: 9px;
  }

  /* 共通テストプラス方式 */
  .plus-kicker {
    font-size: 14px;
  }
}

/* マウス操作時のホバー */
@media (hover: hover) and (pointer: fine) {
  /* CTA・矢印 */
  .cta:hover {
    background-color: var(--color-primary-hover);
  }

  .cta:hover .arrow img {
    animation: cta-arrow-slide 420ms ease-in-out;
  }
}

/* 動きを抑える設定 */
@media (prefers-reduced-motion: reduce) {
  /* CTA・矢印 */
  .cta {
    transition: none;
  }

  .cta:hover .arrow img {
    animation: none;
  }
}

/* 矢印は右へ抜け、左から戻って中央で停止 */
@keyframes cta-arrow-slide {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  45% {
    transform: translateX(160%);
    opacity: 0;
  }

  46% {
    transform: translateX(-160%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
