/* Greeting */

.greeting-wrap {
  position: relative;
  display: block;
  max-width: 980px;
  margin: 0 auto;
}

.greeting-wrap::before {
  content: "";
  position: absolute;
  left: 0px;
  bottom: 20px;
  width: 430px;
  height: 430px;
  background: url('../images/greeting_illust.png') no-repeat left bottom;
  background-size: contain;
  opacity: 0.34;
  z-index: 0;
  pointer-events: none;
}

.greeting-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.greeting-wrap::before {
  display: none;
}

.greeting-illust {
  display: none;
}

.greeting-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.greeting-content h4 {
  margin: 0 0 34px;
  color: #111;
  font-size: 34px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.greeting-content p {
  margin: 0 0 24px;
  color: #222;
  font-size: 18px;
  line-height: 1.95;
  letter-spacing: -0.4px;
}

.greeting-sign {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
  text-align: right;
}

.greeting-sign span {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-size: 17px;
}

.greeting-sign strong {
  display: block;
  color: #111;
  font-size: 24px;
  font-weight: 900;
}


.greeting-box {
  max-width: 820px;
  font-size: 19px;
  line-height: 2.05;
  color: #222;
  word-break: keep-all;
}

.greeting-box p {
  margin: 0 0 30px;
}

.greeting-box .lead {
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 34px;
}

@media(max-width:960px) {
  .greeting-wrap {
    max-width: none;
  }

  .greeting-content {
    max-width: none;
  }

  .greeting-content h4 {
    font-size: 28px;
    line-height: 1.45;
  }

  .greeting-content p {
    font-size: 17px;
    line-height: 1.85;
  }
}

@media(max-width:560px) {
  .greeting-content h4 {
    font-size: 23px;
    line-height: 1.5;
    letter-spacing: -1px;
  }

  .greeting-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.85;
  }

  .greeting-sign {
    margin-top: 34px;
    padding-top: 22px;
  }

  .greeting-sign span {
    font-size: 15px;
  }

  .greeting-sign strong {
    font-size: 21px;
  }
}

.intro-quote {
  margin: 50px 0;
  padding: 42px 38px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--sky-light), #fff, var(--pink-light));
  border: 1px solid #f4e8ef;
  box-shadow: 0 18px 45px rgba(255,159,189,.12);
  text-align: center;
  color: #222;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -1px;
}

.history-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 48px 0;
}

.history-highlight div {
  padding: 34px 24px;
  border-radius: 28px;
  background: #fafcff;
  border: 1px solid #eef4f8;
  text-align: center;
}

.history-highlight div:first-child {
  background: var(--sky-light);
}

.history-highlight div:last-child {
  background: var(--pink-light);
}

.history-highlight strong {
  display: block;
  margin-bottom: 10px;
  color: var(--pink-deep);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
}

.history-highlight div:first-child strong {
  color: var(--sky-deep);
}

.history-highlight span {
  display: block;
  color: #555;
  font-weight: 800;
}

.greeting-sign {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.greeting-sign span {
  display: block;
  color: #777;
  margin-bottom: 8px;
}

.greeting-sign strong {
  font-size: 22px;
  font-weight: 900;
}

/* Mobile */
@media(max-width:960px){
  .sub-visual {
    padding: 72px 0 68px;
  }

  .sub-visual h2 {
    font-size: 38px;
  }

  .sub-layout {
    display: block;
    padding: 54px 24px 86px;
  }

  .sub-menu {
    width: 100%;
    margin-bottom: 42px;
  }

  .sub-menu h3 {
    border-radius: 24px 24px 0 0;
  }

  .sub-menu ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-menu li a {
    border-right: 1px solid #f3f3f3;
  }

  .greeting-box {
    max-width: none;
    font-size: 17px;
    line-height: 1.9;
  }

  .intro-quote {
    font-size: 25px;
    padding: 34px 24px;
  }
}

@media(max-width:560px){
  .sub-visual {
    padding: 56px 0;
  }

  .sub-visual h2 {
    font-size: 32px;
  }

  .sub-visual p {
    font-size: 16px;
  }

  .sub-layout {
    padding: 42px 18px 70px;
  }

  .sub-menu ul {
    grid-template-columns: 1fr;
  }

  .sub-title h3 {
    font-size: 32px;
  }

  .history-highlight {
    grid-template-columns: 1fr;
  }

  .history-highlight strong {
    font-size: 40px;
  }

  .intro-quote {
    font-size: 22px;
  }
}

/* 기관 연혁 */
.history-section {
  word-break: keep-all;
}

.history-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.history-tabs button {
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-weight: 900;
  cursor: pointer;
  transition: .2s;
}

.history-tabs button:hover {
  background: var(--sky-light);
  color: var(--sky-deep);
}

.history-tabs button.active {
  background: linear-gradient(135deg, var(--sky), var(--pink));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(255,159,189,.18);
}

.history-panel {
  display: none;
}

.history-panel.active {
  display: block;
}

.history-head {
  margin-bottom: 28px;
  padding: 38px 42px;
  border-radius: 34px;
  background: linear-gradient(120deg, var(--sky-light), #fff, var(--pink-light));
  border: 1px solid #f4eef3;
}

.history-head span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--pink-deep);
  font-size: 18px;
  font-weight: 900;
}

.history-head h4 {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -1px;
}

.history-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.history-photo {
  height: 170px;
  border-radius: 26px;
  overflow: hidden;
  background: #fafcff;
  border: 1px solid var(--line);
}

.history-photo.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky-light), var(--pink-light));
}

.history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-timeline {
  position: relative;
  padding-left: 22px;
}

.history-timeline:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--sky), var(--pink));
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.history-item:before {
  content: "";
  position: absolute;
  left: -21px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink);
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--pink-light);
}

.history-item strong {
  color: var(--sky-deep);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.history-item ul {
  margin: 0;
  padding: 0;
}

.history-item li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 16px;
  color: #333;
  font-size: 17px;
  line-height: 1.75;
}

.history-item li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
}

@media(max-width:960px) {
  .history-head {
    padding: 32px 28px;
  }

  .history-head h4 {
    font-size: 25px;
  }

  .history-photo-grid {
    grid-template-columns: 1fr;
  }

  .history-photo {
    height: 210px;
  }

  .history-item {
    grid-template-columns: 88px 1fr;
    gap: 16px;
  }

  .history-item strong {
    font-size: 19px;
  }

  .history-item li {
    font-size: 16px;
  }
}

@media(max-width:560px) {
  .history-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .history-tabs button {
    height: 44px;
    padding: 0 10px;
    font-size: 14px;
  }

  .history-head {
    border-radius: 26px;
  }

  .history-head h4 {
    font-size: 22px;
  }

  .history-timeline {
    padding-left: 18px;
  }

  .history-item {
    display: block;
    padding-bottom: 30px;
  }

  .history-item strong {
    display: block;
    margin-bottom: 8px;
  }

  .history-item:before {
    left: -19px;
  }

  .history-photo {
    height: 180px;
  }
}

.history-photo-card {
  margin: 0;
  padding: 0;
}

.history-photo-card figcaption {
  margin-top: 10px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  letter-spacing: -0.5px;
}

.history-photo {
  height: 170px;
  border-radius: 26px;
  overflow: hidden;
  background: #fafcff;
  border: 1px solid var(--line);
}

.history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media(max-width:960px) {
  .history-photo-card figcaption {
    font-size: 15px;
  }
}

@media(max-width:560px) {
  .history-photo-card figcaption {
    font-size: 14px;
  }
}

.history-photo-card {
  margin: 0;
  padding: 0;
}

.history-photo-card figcaption {
  margin-top: 10px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  letter-spacing: -0.5px;
}

.history-photo-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.history-photo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #fff;
  text-align: center;
}

.history-photo-text span {
  color: #333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.5px;
}

@media(max-width:1200px) {
  .history-photo-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:560px) {
  .history-photo-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

.share-contact{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 26px;border-radius:24px;background:#fafcff;border:1px solid var(--line)}
.share-contact strong{color:var(--pink-deep);font-size:18px}
.share-contact span{font-weight:900}
@media(max-width:560px){
	.share-contact{display:block}
	.share-contact strong{display:block;margin-bottom:8px}
}

.basic-page {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 40px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

@media (max-width: 640px) {
  .basic-page {
    margin: 0 15px 60px;
    padding: 25px 20px;
    border-radius: 14px;
    font-size: 15px;
  }
}