/* ===== 基本設定 ===== */
:root {
  --teal: #69c3c0;
  --teal-deep: #2eaaa5;
  --black: #1b1c1d;
  --page-bg: #f7f8f8;
  --footer-icon: #1f2022;
  --footer-muted: #6f7276;
}

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

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

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

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

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

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

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

/* スマホ用のロゴはPCでは非表示 */
.contact-mobile-logo {
  display: none;
}

/* ===== タイトル・本文 ===== */
.contact-title {
  text-align: center;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  letter-spacing: .12em;
  font-weight: 700;
  margin: 0 0 75px;
}

.contact-section {
  margin-bottom: 0;
}

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

.media-description {
  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;
}

.contact-note {
  font-size: .84rem;
  color: #555;
}

/* ===== 下の装飾 ===== */
.footer-decoration {
  width: 100%;
  aspect-ratio: 1743 / 360;
  background-image: url("images/sita.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
}

/* ===== フッター ===== */
footer {
  background: var(--page-bg);
  text-align: center;
  padding: 36px 20px 42px;
}

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

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

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

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

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

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

/* みたぬき：画像を直接表示（透過PNG対応） */
.tanuki-image {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-copy {
  margin: 0;
  font-size: .95rem;
  color: var(--footer-muted);
  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-wrapper::before {
    width: 100%;
    height: auto;
    aspect-ratio: 1743 / 360;
    background-size: 100% 100%;
    background-position: center top;
  }

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

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

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

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

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

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

  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: 9px;
    line-height: 1.7;
  }
}

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

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

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