/* ===== 共通設定 ===== */
: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のロゴはue.svgに含まれる想定。スマホでは別画像を表示 */
.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%;
}

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

.media-description p {
  margin: 0 0 26px;
}

.media-description p:last-child {
  margin-bottom: 0;
}

/* ===== バリアフリーマップ ===== */
.barrier-map-area {
  width: 100%;
  max-width: 800px;
  margin: 65px auto 0;
}

.barrier-map-title {
  margin: 0 0 26px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

.barrier-map {
  display: block;
  width: 100%;
  height: 560px;
  border: 1px solid #d9dfe0;
  background: #fff;
}

.barrier-map-button {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 13px 28px;
  border: 2px solid var(--teal-deep);
  border-radius: 6px;
  background: #fff;
  color: var(--teal-deep);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  transition: background .2s, color .2s;
}

.barrier-map-button:hover {
  background: var(--teal-deep);
  color: #fff;
}

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

.barrier-map-note {
  margin: 12px 0 0;
  color: #777;
  font-size: .78rem;
  text-align: center;
}

/* ===== 下の模様・SNS・コピーライト ===== */
.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;
}

.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 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;
  }

  .barrier-map {
    height: 480px;
  }
}

/* ===== スマートフォン ===== */
@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;
  }

  .media-description {
    font-size: .89rem;
    line-height: 1.95;
  }

  .media-description p {
    margin-bottom: 22px;
  }

  .barrier-map-area {
    margin-top: 45px;
  }

  .barrier-map-title {
    margin-bottom: 20px;
    font-size: 1.15rem;
  }

  /* スマホでも地図を消さずに表示する */
  .barrier-map {
    display: block;
    width: 100%;
    height: 380px;
  }

  .barrier-map-button {
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
    padding: 14px 15px;
  }

  .barrier-map-note {
    font-size: .75rem;
    line-height: 1.8;
  }

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

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

  .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;
  }

  .barrier-map {
    height: 340px;
  }

  .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;
  }

}
