/* ==================================================
   Otonacica 共通スタイル
   全ページで読み込むCSS
================================================== */

/* ---------- カラー・基本設定 ---------- */
:root {
  --ink: #292a2b;
  --gold: #a99967;
  --paper: #f8f7f3;
  --line: #d9d5cc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Yu Gothic", sans-serif;
}

img {
  max-width: 100%;
}

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

/* ---------- 共通レイアウト ---------- */
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

.section {
  padding: 26px 0 42px;
}

.heading {
  margin-bottom: 50px;
	 margin-top: 50px;
  text-align: center;
}

.heading h2 {
  margin: 0 0 10px;
  font: 500 30px serif;
  letter-spacing: 0.15em;
}

.heading p {
  margin: 0;
  color: #686868;
  font: 16px serif;
}

/* ---------- 共通ボタン ---------- */
.btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(135deg, #b9ab7c, #958355);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px #0002;
}

.more {
  width: 170px;
  min-height: 38px;
  margin: 15px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #faf9f6;
  font-size: 12px;
}

/* ---------- 共通ヘッダー ---------- */
.header {
  position: relative;
  z-index: 3;
  height: 74px;
  display: flex;
  align-items: center;
}

.sp-logo {
  display: block;
  font: 15px Georgia, serif;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}

.login {
  padding: 12px 19px;
  border: 1px solid #ffffff70;
  border-radius: 3px;
}

.header .btn {
  min-height: 42px;
}

.menu {
  display: none;
}

/* ---------- 共通フッター ---------- */
footer {
  min-height: 102px;
  padding: 21px max(28px, calc((100vw - 700px) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 90px;
  color: #fff;
  background: #1e3442;
}

footer b,
footer small {
  display: block;
}

footer b {
  font: 21px serif;
}

footer small {
  margin-top: 7px;
  font-size: 15px;
  opacity: 0.8;
}

.footer-links {
  width: 100%;
  flex: 0 0 100%;
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}

.footer-links nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.footer-links nav a:hover,
.footer-links nav a:focus-visible {
  color: #fff;
}

.footer-links .copyright {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 1;
}

/* ==================================================
   共通スマートフォン設定（640px以下）
================================================== */
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header {
    height: 64px;
  }

  .sp-logo {
    display: block;
  }

  .menu {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid #ffffff80;
    background: #0002;
  }

  .menu i {
    width: 19px;
    height: 1px;
    background: #fff;
  }

  .header nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--ink);
    background: #fffffff8;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    padding: 13px 5px;
    border-bottom: 1px solid #ddd;
  }

  .header nav .btn {
    margin-top: 12px;
    color: #fff;
  }

  footer {
    padding: 28px 20px;
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  footer .btn {
    width: 100%;
  }

  .footer-links {
    margin-top: 4px;
    padding-top: 20px;
  }

  .footer-links nav {
    gap: 8px 18px;
  }

  .footer-links nav a {
    font-size: 14px;
  }
}