html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.8;
}

a {
  color: #2C7A7B;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.inner {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

/* -------------------------
   メインビジュアル
-------------------------- */
.main-visual {
  position: relative;
  width: min(960px, calc(100% - 32px));
  height: 360px;
  margin: 0 auto 48px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.20), rgba(255,255,255,.20)),
    url('../img/header.png') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-visual h1 {
  margin: 0;
  padding: 16px 32px;
  color: #1f3346;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1.4;
  text-align: center;
  letter-spacing: .04em;
}

.page-title {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 40px;
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.page-title h1 {
  margin: 0;
  color: #1f3346;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.5;
}

/* -------------------------
   本文・フォーム
-------------------------- */
.lead {
  margin: 0 0 32px;
  font-size: 1rem;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  color: #fff;
  background: #df4d4e;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1.4;
}

input[type="text"],
input[type="email"],
textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  display: block;
  width: min(100%, 260px);
  margin: 32px auto 0;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: #4e2a00;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button[type="submit"]:hover {
  opacity: .86;
}

.privacy-note {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
  font-size: .92rem;
}

/* -------------------------
   プライバシーポリシー
-------------------------- */
.policy {
  max-width: 820px;
  padding-bottom: 64px;
}

.policy h2 {
  margin-top: 36px;
  padding-bottom: 8px;
  color: #1f3346;
  border-bottom: 1px solid #eee;
  font-size: 1.2rem;
}

.policy ul {
  padding-left: 1.3em;
}

.enactment-date {
  margin-top: 40px;
  text-align: right;
}

.back-link {
  margin-top: 40px;
  text-align: center;
}

/* -------------------------
   フッター
-------------------------- */
.site-footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
}

#scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #4e2a00;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

#scroll-top.is-show {
  display: block;
}

.sp-only {
  display: none;
}

/* -------------------------
   スマホ
-------------------------- */
@media screen and (max-width: 640px) {
  .main-visual {
    height: 260px;
    margin-bottom: 32px;
  }

  .main-visual h1 {
    padding: 12px 20px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .privacy-note {
    padding: 16px;
  }

  .sp-only {
    display: inline;
  }
}

.footer-links {
  text-align: center;
  padding: 16px 0;
  background: #f8f8f8;
  font-size: 0.85rem;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 12px;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 640px) {
  .footer-links a {
    display: block;
    margin: 8px 0;
  }
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main.content {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

/* -------------------------
   フッター
-------------------------- */
.site-footer {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  background: #24313a;
color: #f7f1df;
  text-align: center;
  font-size: 0.95rem;
}

.footer-nav {
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.footer-nav a {
  display: block;
  padding: 16px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.footer-nav a:last-child {
  border-bottom: none;
}

.footer-nav a:hover {
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

.footer-info {
  padding: 16px 16px;
  color: #fff;
  line-height: 1.5;
}

.footer-info p {
  margin: 0 0 0px;
}

/* 画面下にフッターを寄せる設定 */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main.content {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

/* スマホ */
@media screen and (max-width: 640px) {
  .site-footer {
    width: 100%;
    margin: 0;
    font-size: 0.85rem;
  }

  .footer-nav a {
    padding: 24px 32px;
    font-size: 1rem;
  }

  .footer-info {
    padding: 24px 18px 28px;
  }
}