@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700&family=Oswald:wght@400;500;700&family=Jost:wght@400;500&family=Libre+Baskerville&display=swap");

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  color: #1e1e1e;
  line-height: 1.7;
  font-size: 1.4rem;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===== Variables ===== */
:root {
  --base-color: #1e1e1e;
  --main-color: #1e1e1e;
  --sub-color: #787878;
  --en-font: "Libre Baskerville", serif;
  --num-font: "Oswald", sans-serif;
  --grid-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cline x1='0' y1='0' x2='72' y2='0' stroke='%23dcdcdc' stroke-dasharray='2,4'/%3E%3Cline x1='0' y1='0' x2='0' y2='72' stroke='%23dcdcdc' stroke-dasharray='2,4'/%3E%3Crect x='-3' y='-3' width='6' height='6' fill='%23cfcfcf' transform='rotate(45)'/%3E%3C/svg%3E");
}

/* ===== 方眼紙背景 ===== */
/* background-attachment: fixed でビューポート基準に固定し、
   ヘッダーとコンテンツの方眼目地を継ぎ目なく連続させる */
.grid-bg {
  background-color: #fff;
  background-image: var(--grid-bg);
  background-size: 72px 72px;
  background-attachment: fixed;
}

body {
  background-color: #fff;
  background-image: var(--grid-bg);
  background-size: 72px 72px;
  background-attachment: fixed;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  background-color: #fff;
  background-image: var(--grid-bg);
  background-size: 72px 72px;
  background-attachment: fixed;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 24px;
}

.header-logo img {
  height: 64px;
  width: auto;
}

.header-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-row--top {
  padding: 12px 24px 4px;
}

.header-row--bottom {
  padding: 4px 24px 12px;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--base-color);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 9px 28px;
  border-radius: 4px;
  white-space: nowrap;
}

.header-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8em;
}

.header-nav a {
  font-size: 1.4rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.6;
}

.header-nav .separator {
  color: #ccc;
  font-size: 1.4rem;
}

/* ドロワーボタン：ヘッダー右端に2段分の高さで表示される黒い正方形 */
.drawer-trigger {
  flex-shrink: 0;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--base-color);
}

.drawer-trigger span {
  display: block;
  width: 32px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.drawer-trigger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.drawer-trigger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.drawer-trigger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Drawer Menu ===== */
.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1100;
  width: min(320px, 84vw);
  height: 100%;
  background-color: var(--base-color);
  color: #fff;
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.drawer-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 32px;
  height: 32px;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
}

.drawer-menu ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.drawer-menu ul li a {
  display: block;
  padding: 16px 4px;
  font-size: 1.5rem;
  color: #fff;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ===== Main ===== */
.main-content {
  min-height: 50vh;
}

/* ===== Footer ===== */
.footer-top {
  padding: 64px 5% 56px;
}

/* NOTE 注意書き */
.footer-notice {
  background-color: rgba(230, 230, 230, 0.55);
  padding: 32px clamp(20px, 4vw, 56px);
  margin-bottom: 64px;
}

.notice-label {
  display: inline-block;
  background-color: var(--base-color);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 20px;
  margin-bottom: 16px;
}

.notice-list li {
  font-size: 1.2rem;
  color: #444;
  position: relative;
  padding-left: 1.4em;
}

.notice-list li::before {
  content: "※";
  position: absolute;
  left: 0;
}

/* タグライン */
.footer-tagline {
  font-family: var(--en-font);
  font-size: clamp(2.2rem, 4vw, 4rem);
  text-align: left;
  padding: 24px 0;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 48px;
}

/* メインメッセージ + アクションボックス */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-message h2 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-message p {
  font-size: 1.3rem;
  color: #1e1e1e;
}

.footer-action-boxes {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.footer-action-boxes img {
  width: 220px;
  display: block;
}

/* ダーク部分 */
.footer-bottom {
  background-color: var(--base-color);
  color: #fff;
  padding: 32px 5% 24px;
}

.footer-policy-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 0;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.footer-policy-nav li:not(:last-child)::after {
  content: "｜";
  margin: 0 0.8em;
  color: #666;
}

.footer-policy-nav a:hover {
  opacity: 0.7;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 220px;
}

.footer-org p {
  font-size: 1.2rem;
  color: #ccc;
}

.footer-org .org-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-org p + p {
  margin-top: 2px;
}

.footer-org p:nth-child(4) {
  margin-top: 16px;
}

.footer-copyright {
  font-family: "Jost", "Zen Kaku Gothic New", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-align: left;
}

/* ===== フローティングナビ（移行先サービスへの導線：全ページ共通） =====
   common.js が全ページの <body> 末尾に自動挿入する。
   PC：画面右下に縦並びで固定／スマホ：画面下部にバーとして固定（下のレスポンシブ参照）。 */
.float-nav {
  position: fixed;
  right: 8px;
  bottom: 24px;
  z-index: 900; /* ヘッダー(1000)・ドロワー(1100)より背面、本文より前面 */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background-color: var(--base-color);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s, transform 0.2s;
}

.float-nav-item:hover {
  opacity: 0.9;
  transform: translateX(-3px);
}

.float-nav-icon {
  display: flex;
  flex-shrink: 0;
}

.float-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.float-nav-text {
  white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-row--top {
    padding: 16px 16px;
  }

  .header-row--bottom {
    display: none;
  }

  .header-logo {
    padding: 0 16px;
  }

  .header-logo img {
    height: 32px;
  }

  .header-contact-btn {
    padding: 7px 18px;
    font-size: 1.1rem;
  }

  .drawer-trigger {
    width: 64px;
  }

  .drawer-trigger span {
    width: 24px;
  }

  .footer-tagline {
    font-size: 2rem;
  }

  .footer-main {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-action-boxes {
    justify-content: center;
  }

  .footer-action-boxes img {
    width: 45%;
    max-width: 220px;
  }

  .footer-info {
    flex-direction: column;
  }

  /* フローティングナビ：スマホは画面下部に固定したバー（3等分） */
  .float-nav {
    right: 0;
    left: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  }

  .float-nav-item {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 9px 4px;
    font-size: 1rem;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
  }

  .float-nav-item:last-child {
    border-right: none;
  }

  .float-nav-item:hover {
    transform: none;
  }

  .float-nav-icon svg {
    width: 20px;
    height: 20px;
  }

  /* 固定バーが最下部のコンテンツ（コピーライト等）を隠さないよう余白を確保 */
  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .header-nav ul {
    justify-content: center;
  }

  .footer-action-boxes {
    flex-direction: column;
    align-items: center;
  }

  .footer-action-boxes img {
    width: 100%;
    max-width: 280px;
  }
}
