/* 学部教育の特色 固有CSS (パターンA: #contentInner / パターンB: #feature) */

/* ---------- パターンA: 既存の下層ページ形式 ---------- */
#contentInner .wrapper .photo {
  text-align: center;
}

@media (min-width: 1025px) {
  #contentInner .wrapper .photo {
    width: 400px;
    margin-left: 30px;
    float: right;
  }
}

@media (max-width: 1024px) {
  #contentInner .wrapper .photo {
    margin-bottom: 20px;
  }
}

#contentInner .wrapper .photo img {
  width: 100%;
  height: auto;
}

#contentInner .wrapper h2 {
  font-weight: 600;
  line-height: 1.4em;
  margin-bottom: 1.5em;
  color: #00AAAE;
}

#contentInner .wrapper h2 span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 0.3em;
}

@media (min-width: 1025px) {
  #contentInner .wrapper h2 {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  #contentInner .wrapper h2 {
    font-size: 19px;
  }
}

#contentInner .wrapper h3 {
  font-weight: 600;
  line-height: 1.4em;
  margin-bottom: 0.8em;
  padding-left: 0.6em;
  border-left: solid 4px #00AAAE;
}

@media (min-width: 1025px) {
  #contentInner .wrapper h3 {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {
  #contentInner .wrapper h3 {
    font-size: 16px;
  }
}

#contentInner .wrapper p {
  margin-bottom: 2em;
}

@media (min-width: 1025px) {
  #contentInner .wrapper p {
    font-size: 14px;
    line-height: 2.2em;
  }
}

@media (max-width: 1024px) {
  #contentInner .wrapper p {
    font-size: 13px;
    line-height: 1.8em;
  }
}

/* ---------- パターンB: トップページと同じ緑背景の2カラム ---------- */
#feature {
  color: #fff;
  background-color: #00AAAE;
  display: flex;
  line-height: 1.6em;
  margin-bottom: 60px;
}

@media (min-width: 1025px) {
  #feature {
    height: 860px;
  }
}

@media (max-width: 1024px) {
  #feature {
    flex-direction: column;
  }
}

@media (min-width: 1025px) {
  #feature .flex {
    width: 50%;
  }
}

#feature .flex:nth-of-type(1) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  #feature .flex:nth-of-type(1) {
    order: 2;
  }
}

@media (min-width: 1025px) {
  #feature .flex:nth-of-type(1) .box {
    width: 530px;
    padding: 0px 40px;
  }
}

@media (max-width: 1024px) {
  #feature .flex:nth-of-type(1) .box {
    padding: 40px 20px;
  }
}

#feature .flex:nth-of-type(1) h2 span {
  border-bottom: solid 2px #fff;
}

@media (min-width: 1025px) {
  #feature .flex:nth-of-type(1) h2 span {
    display: inline-block;
    font-size: 20px;
    letter-spacing: 0.2em;
    padding-bottom: 10px;
    margin-bottom: 30px;
  }
}

@media (max-width: 1024px) {
  #feature .flex:nth-of-type(1) h2 span {
    display: inline-block;
    font-size: 16px;
    letter-spacing: 0.1em;
    padding-bottom: 5px;
    margin: 0px auto 20px auto;
  }
}

@media (min-width: 1025px) {
  #feature .flex:nth-of-type(1) h2 {
    font-size: 26px;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
  }
}

@media (max-width: 1024px) {
  #feature .flex:nth-of-type(1) h2 {
    text-align: center;
    font-size: 19px;
    letter-spacing: 0;
    margin-bottom: 30px;
  }
}

@media (min-width: 1025px) {
  #feature .flex:nth-of-type(1) h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

@media (max-width: 1024px) {
  #feature .flex:nth-of-type(1) h3 {
    font-size: 17px;
    margin-bottom: 20px;
  }
}

#feature .flex:nth-of-type(1) p {
  font-size: 14px;
}

@media (min-width: 1025px) {
  #feature .flex:nth-of-type(1) p {
    margin-bottom: 60px;
  }
}

@media (max-width: 1024px) {
  #feature .flex:nth-of-type(1) p {
    margin-bottom: 40px;
  }
}

#feature .flex:nth-of-type(2) {
  background-image: url("feature.jpg");
  background-size: cover;
  background-position: center center;
}

@media (max-width: 1024px) {
  #feature .flex:nth-of-type(2) {
    order: 1;
    height: 473px;
  }
}

/* ---------- NEW(new.html): 高校生向け ポップ×ビビッド ---------- */
.feature-new {
  --fn-navy: #12235B;
  --fn-teal: #00AAAE;
  --fn-yellow: #FFE600;
  --fn-coral: #FF5A5F;
  --fn-cream: #FFFBEA;
}

.feature-new #content {
  overflow-x: hidden;
  color: var(--fn-navy);
}

.feature-new .fn-sp {
  display: none;
}

.feature-new ul,
.feature-new li {
  list-style: none;
}

/* Hero */
.feature-new .fn-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--fn-teal) 0%, #1E5BFF 100%);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding: 80px 20px 150px;
}

.feature-new .fn-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.feature-new .fn-blob--a {
  width: 420px;
  height: 420px;
  right: -100px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, var(--fn-yellow), #FFB800);
  animation: fn-float 8s ease-in-out infinite;
}

.feature-new .fn-blob--b {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: 30px;
  background: radial-gradient(circle at 70% 30%, #FF8FA0, var(--fn-coral));
  animation: fn-float 10s ease-in-out infinite reverse;
}

.feature-new .fn-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-new .fn-eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--fn-navy);
  color: var(--fn-yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.feature-new .fn-title {
  margin: 0 0 28px;
  color: #fff;
  text-align: left;
  font-weight: 900;
  font-size: clamp(34px, 8.5vw, 110px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 4px 4px 0 rgba(18, 35, 91, 0.35);
}

.feature-new .fn-title__line {
  display: block;
}

.feature-new .fn-title em {
  display: inline-block;
  padding: 0 0.12em;
  background: var(--fn-yellow);
  color: var(--fn-navy);
  font-style: normal;
  text-shadow: none;
  box-shadow: 6px 6px 0 var(--fn-navy);
  transform: rotate(-2deg);
}

.feature-new .fn-lead {
  max-width: 720px;
  margin: 0 0 44px;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.9;
}

.feature-new .fn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 16px;
  padding: 0;
}

.feature-new .fn-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  margin: 0;
  padding: 0;
  border: 4px solid var(--fn-navy);
  border-radius: 50%;
  background: #fff;
  color: var(--fn-navy);
  box-shadow: 6px 6px 0 var(--fn-navy);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-6deg);
  animation: fn-pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.feature-new .fn-badge small {
  margin-top: 4px;
  font-size: 18px;
}

.feature-new .fn-badge:nth-child(2) {
  background: var(--fn-yellow);
  transform: rotate(4deg);
  animation-delay: 0.15s;
}

.feature-new .fn-badge:nth-child(3) {
  background: var(--fn-coral);
  color: #fff;
  transform: rotate(-3deg);
  animation-delay: 0.3s;
}

.feature-new .fn-note {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

/* Marquee */
.feature-new .fn-marquee {
  position: relative;
  z-index: 2;
  margin: -56px -20px 0;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 4px solid var(--fn-navy);
  border-bottom: 4px solid var(--fn-navy);
  background: var(--fn-yellow);
  color: var(--fn-navy);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-2deg);
}

.feature-new .fn-marquee__track {
  display: inline-flex;
  animation: fn-marquee 22s linear infinite;
}

.feature-new .fn-marquee__track span {
  flex: none;
}

/* Sections */
.feature-new .fn-sec {
  position: relative;
  padding: 110px 20px 100px;
  background: var(--fn-cream);
}

.feature-new .fn-sec--02 {
  background: #fff;
}

.feature-new .fn-sec__inner {
  display: flex;
  align-items: center;
  gap: 70px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-new .fn-sec__inner--col {
  flex-direction: column;
  align-items: stretch;
  gap: 56px;
}

.feature-new .fn-text {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.feature-new .fn-text--center {
  text-align: center;
}

.feature-new .fn-num {
  position: absolute;
  top: -80px;
  left: -10px;
  z-index: 0;
  margin: 0;
  color: transparent;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.55;
  -webkit-text-stroke: 3px var(--fn-teal);
}

.feature-new .fn-text--center .fn-num {
  left: 50%;
  transform: translateX(-50%);
}

.feature-new .fn-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--fn-coral);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

.feature-new .fn-h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fn-navy);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.25;
}

.feature-new .fn-p {
  position: relative;
  z-index: 1;
  margin: 0 0 1em;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
}

.feature-new .fn-text--center .fn-p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Photo */
.feature-new .fn-photo {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.feature-new .fn-photo::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -20px;
  bottom: -20px;
  left: 20px;
  border: 4px solid var(--fn-navy);
  border-radius: 28px;
  background: var(--fn-yellow);
  transform: rotate(3deg);
}

.feature-new .fn-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--fn-navy);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--fn-coral);
  transform: rotate(-2deg);
}

.feature-new .fn-sticker {
  position: absolute;
  top: -26px;
  right: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 4px solid var(--fn-navy);
  border-radius: 50%;
  background: var(--fn-teal);
  color: #fff;
  box-shadow: 4px 4px 0 var(--fn-navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transform: rotate(12deg);
}

/* Department cards */
.feature-new .fn-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
}

.feature-new .fn-card {
  margin: 0;
  padding: 0;
  background: none;
}

.feature-new .fn-card--coral {
  --fn-cardbg: var(--fn-coral);
}

.feature-new .fn-card--yellow {
  --fn-cardbg: var(--fn-yellow);
}

.feature-new .fn-card--teal {
  --fn-cardbg: var(--fn-teal);
}

.feature-new .fn-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 4px solid var(--fn-navy);
  border-radius: 28px;
  background: var(--fn-cardbg);
  color: var(--fn-navy);
  box-shadow: 8px 8px 0 var(--fn-navy);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-new .fn-card a:hover {
  box-shadow: 12px 12px 0 var(--fn-navy);
  text-decoration: none;
  transform: translate(-4px, -4px);
}

.feature-new .fn-card__img,
.feature-new .fn-card__body,
.feature-new .fn-card__en,
.feature-new .fn-card__ttl {
  display: block;
}

.feature-new .fn-card__img img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 4px solid var(--fn-navy);
}

.feature-new .fn-card__body {
  padding: 20px 22px 24px;
}

.feature-new .fn-card__en {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.feature-new .fn-card__ttl {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}

.feature-new .fn-card__go {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--fn-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.feature-new .fn-card__go::after {
  content: " →";
}

/* T-shape diagram */
.feature-new .fn-t {
  flex: 1 1 0;
  min-width: 0;
  max-width: 460px;
  margin: 0 auto;
}

.feature-new .fn-t__bar,
.feature-new .fn-t__stem {
  border: 4px solid var(--fn-navy);
  box-shadow: 8px 8px 0 var(--fn-navy);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.feature-new .fn-t__bar {
  position: relative;
  z-index: 2;
  padding: 26px 16px;
  border-radius: 20px;
  background: var(--fn-yellow);
}

.feature-new .fn-t__stem {
  width: 46%;
  margin: -4px auto 0;
  padding: 70px 12px;
  border-radius: 0 0 20px 20px;
  background: var(--fn-teal);
  color: #fff;
}

/* Stats */
.feature-new .fn-stats {
  padding: 80px 20px;
  background: var(--fn-navy);
  color: #fff;
}

.feature-new .fn-stats__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.feature-new .fn-stat {
  margin: 0;
  padding: 0;
  background: none;
  text-align: center;
}

.feature-new .fn-stat b {
  display: block;
  color: var(--fn-yellow);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
}

.feature-new .fn-stat span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

/* CTA */
.feature-new .fn-cta {
  padding: 90px 20px;
  background: linear-gradient(135deg, var(--fn-coral), #FF9A3C);
  color: #fff;
  text-align: center;
}

.feature-new .fn-cta__ttl {
  margin: 0 0 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 3px 3px 0 rgba(18, 35, 91, 0.35);
}

.feature-new .fn-cta__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.feature-new .fn-cta__list li {
  margin: 0;
  padding: 0;
  background: none;
}

.feature-new .fn-btn {
  display: inline-block;
  padding: 18px 34px;
  border: 4px solid var(--fn-navy);
  border-radius: 999px;
  color: var(--fn-navy);
  box-shadow: 6px 6px 0 var(--fn-navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-new .fn-btn:hover {
  box-shadow: 9px 9px 0 var(--fn-navy);
  text-decoration: none;
  transform: translate(-3px, -3px);
}

.feature-new .fn-btn--yellow {
  background: var(--fn-yellow);
}

.feature-new .fn-btn--white {
  background: #fff;
}

/* Motion (JS有効時のみ要素を隠す) */
html.fn-js .feature-new .fn-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.fn-js .feature-new .fn-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes fn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(24px); }
}

@keyframes fn-pop {
  from { opacity: 0; transform: scale(0.4) rotate(-24deg); }
}

@keyframes fn-marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-new .fn-blob,
  .feature-new .fn-badge,
  .feature-new .fn-marquee__track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .feature-new .fn-sp {
    display: inline;
  }

  .feature-new .fn-pc {
    display: none;
  }

  .feature-new .fn-hero {
    padding: 56px 20px 120px;
  }

  .feature-new .fn-blob--a {
    width: 260px;
    height: 260px;
    right: -90px;
    top: -80px;
  }

  .feature-new .fn-blob--b {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: 40px;
  }

  .feature-new .fn-badge {
    width: 92px;
    height: 92px;
    font-size: 40px;
  }

  .feature-new .fn-badge small {
    font-size: 14px;
  }

  .feature-new .fn-badges {
    gap: 14px;
  }

  .feature-new .fn-marquee {
    margin-top: -44px;
    font-size: 16px;
  }

  .feature-new .fn-sec {
    padding: 80px 20px 64px;
  }

  .feature-new .fn-sec__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 56px;
  }

  .feature-new .fn-num {
    top: -56px;
    font-size: 96px;
  }

  .feature-new .fn-p {
    font-size: 14px;
    line-height: 1.9;
  }

  .feature-new .fn-photo {
    margin-right: 14px;
  }

  .feature-new .fn-cards {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-new .fn-stats {
    padding: 56px 20px;
  }

  .feature-new .fn-cta {
    padding: 64px 20px;
  }

  .feature-new .fn-btn {
    padding: 16px 26px;
    font-size: 16px;
  }
}
