
/* ===== 共通設定 ===== */

:root {
  --teal: #69c3c0;
  --teal-deep: #2eaaa5;
  --black: #1b1c1d;
  --page-bg: #f7f8f8;
  --footer-icon: #1f2022;
  --footer-muted: #6f7276;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--page-bg);
  color: var(--black);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== ページ全体・上の模様 ===== */

.contact-wrapper {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  padding: clamp(115px, 21vw, 310px) 24px 70px;
  background: var(--page-bg);
}

.contact-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  aspect-ratio: 1743 / 360;
  background: url("images/ue.svg") center top / 100% 100% no-repeat;
  pointer-events: none;
}

/* ===== 本文エリア ===== */

.contact-wrappernonaka {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* PCではスマホ用ロゴを非表示 */

.contact-mobile-logo {
  display: none;
}

/* ===== ページタイトル ===== */

.contact-title {
  margin: 0 0 75px;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
}

/* ===== セクション見出し ===== */

.contact-section-title {
  max-width: 500px;
  margin: 0 auto 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--teal);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
        margin-top: -5%;
      margin-bottom: 5%;
}


/* ===== 相互リンク本文 ===== */

.link-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  font-size: .98rem;
  line-height: 2.1;
}

/* 冒頭の説明 */

.link-intro {
  margin: 0 0 40px;
}

/* ===== 大学祭ごとの項目 ===== */

.link-item {
  margin: 0 0 38px;
}

.link-item:last-child {
  margin-bottom: 0;
}

/* 大学祭名 */

.link-heading {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .035em;
}

/* リンクのデザイン */

.link-heading a {
  display: inline;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .2s;
}

.link-heading a:hover {
  color: var(--teal-deep);
}

.link-heading a:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 5px;
}

/* 外部リンクの矢印 */

.external-icon {
  display: inline-block;
  margin-left: 5px;
  font-size: .9em;
  color: var(--teal-deep);
  text-decoration: none;
}

/* 開催日程 */

.link-date {
  margin: 0;
  font-size: .95rem;
  color: #555;
  line-height: 1.9;
}

/* ===== 下の模様 ===== */

.footer-decoration {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1743 / 360;
  background: url("images/sita.svg") center bottom / 100% 100% no-repeat;
}

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

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  padding: 36px 20px 42px;
  background: var(--page-bg);
  text-align: center;
}

.footer-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== SNSアイコン ===== */

.footer-sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-bottom: 26px;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--footer-icon);
  transition: transform .2s, opacity .2s;
}

.footer-sns a:hover {
  transform: translateY(-2px);
  opacity: .8;
}

.footer-sns a:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 4px;
}

.footer-sns i {
  font-size: 2.55rem;
  line-height: 1;
}

/* ===== みたぬき ===== */

.tanuki-image {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ===== コピーライト ===== */

.footer-copy {
  margin: 0;
  color: var(--footer-muted);
  font-size: .95rem;
  letter-spacing: .04em;
}

/* ===== タブレット ===== */

@media (max-width: 960px) {

  .contact-wrapper {
    padding: clamp(105px, 22vw, 205px) 26px 60px;
  }

  .contact-wrappernonaka {
    max-width: 740px;
  }

}

/* ===== スマートフォン ===== */

@media (max-width: 600px) {

  /* 全体 */

  .contact-wrapper {
    padding: 110px 18px 48px;
  }

  /* 左上ロゴ */

  .contact-mobile-logo {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 130px;
    max-width: 65vw;
    height: auto;
    padding: 24px 18px 20px 12px;
    background: var(--page-bg);
  }

  /* ページタイトル */

  .contact-title {
    margin-bottom: 50px;
    font-size: 1.8rem;
  }

  /* セクション見出し */

  .contact-section-title {
    margin-bottom: 24px;
    font-size: 1.25rem;
  }

  /* 本文 */

  .link-content {
    font-size: .89rem;
    line-height: 1.95;
  }

  .link-intro {
    margin-bottom: 32px;
  }

  /* 大学祭一覧 */

  .link-item {
    margin-bottom: 32px;
  }

  .link-heading {
    font-size: 1.02rem;
    margin-bottom: 8px;
  }

  .link-date {
    font-size: .85rem;
    line-height: 1.8;
  }

  /* 下の模様 */

  .footer-decoration {
    aspect-ratio: 1743 / 420;
  }

  /* フッター */

  .site-footer {
    padding: 28px 16px 34px;
  }

  /* SNS */

  .footer-sns {
    gap: 22px;
    margin-bottom: 20px;
  }

  .footer-sns a {
    width: 46px;
    height: 46px;
  }

  .footer-sns i {
    font-size: 2.1rem;
  }

  /* みたぬき */

  .tanuki-image {
    width: 38px;
    height: 38px;
  }

  /* コピーライト */

  .footer-copy {
    font-size: .82rem;
    line-height: 1.7;
  }

}

/* ===== 小さいスマートフォン ===== */

@media (max-width: 360px) {

  .contact-wrapper {
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-title {
    font-size: 1.6rem;
  }

  .link-heading {
    font-size: .98rem;
  }

  .footer-sns {
    gap: 16px;
  }

}
/* ===== PCの左上ロゴ位置調整 ===== */

@media (min-width:601px) {

  /* 背景画像に含まれる元のロゴを隠す */
  .contact-wrapper::after {
    content:"";
    display:block;
    position:absolute;
    top:0;
    left:0;
    width:250px;
    height:125px;
    background:#f7f8f8;
    z-index:1;
    pointer-events:none;
  }

  /* ロゴを右にずらして表示 */
  .contact-mobile-logo {
    display:block;
    position:absolute;
    top:30px;
    left:45px;
    width:190px;
    max-width:none;
    height:auto;
    padding:0;
    background:transparent;
    z-index:2;
  }

}

/* ===== h1省略後の位置調整 ===== */

/* PC */
@media (min-width:961px) {
  .contact-wrapper {
    padding-top:clamp(210px,22vw,310px);
  }
}

/* タブレット */
@media (min-width:601px) and (max-width:960px) {
  .contact-wrapper {
    padding-top:clamp(170px,23vw,220px);
  }
}

/* スマートフォン */
@media (max-width:600px) {
  .contact-wrapper {
    padding-top:145px;
  }

  .contact-section-title {
    margin-bottom:28px;
  }
}

/* 小さいスマートフォン */
@media (max-width:360px) {
  .contact-wrapper {
    padding-top:130px;
  }
}