@charset "utf-8";
/* CSS Document */

body {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  color: #1e1e1e;
  overflow-x: hidden;
  width: 100%;
  /*background-color: #f8f5ed;*/
}

h1 {font-family: minion-pro-caption, serif;
font-weight: 600;
font-style: normal;}

h3 {font-family: minion-pro-caption, serif;
font-weight: 400;
font-style: normal;
}

.container {
  max-width: 100%;
  /*max-width: 1100px;*/
  margin: 0 auto;
  padding: 0 15px;
}

/* 全画面共通：グローバルナビを背景に重ねる */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
}

/* ヘッダー内レイアウト（PC用最大幅） */
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  height: 40px;
}

.global-nav {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* グローバルナビ項目（PC & SP） */
.global-nav a {
  color: #ffffff;
  font-family: minion-pro-caption, serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-left: 20px;
}

/* グローバルナビ内の「企業サイト」ボタン */
.external-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* ← 文字とアイコンの間隔 */
  background-color: #1e1e1e;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 0;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s ease;
  pointer-events: auto;
}

/* アイコンサイズ調整 */
.external-btn .corporate-icon {
  height: 16px;
  width: auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ↓↓↓ スマホナビボタン開始 ↓↓↓ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@500&display=swap');

.menu-toggle {
  display: none;
  position: fixed;
  top: 0px;
  right: 0px;
  z-index: 2001;
  width: 60px;
  height: 60px;
  cursor: pointer;
}
.menu-toggle img {
  width: 60px;
  height: 60px;
}


/* オーバーレイメニュー（アニメーション付き） */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f8f5ed; /* ← 完全不透明に修正 */
  z-index: 2000;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 769px) {
  .overlay-menu {
    display: none !important;
  }
}

.overlay-menu.active {
  max-height: 100vh;
  opacity: 1;
}

/* ロゴ */
.overlay-menu .logo {
  position: absolute;
  top: 10px;
  left: 15px;
  height: 40px;
}

/* ナビゲーション全体 */
.overlay-nav {
  width: 100%;
  margin-top: 80px;
  font-family: minion-pro-caption, serif;
  font-weight: 600;
  font-style: normal;
}

/* メニューリスト */
.overlay-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.overlay-nav li {
  border-bottom: 1px solid #e8e0d6;
  padding: 10px 12px;
  text-align: center;
}

.overlay-nav a {
  color: #1e1e1e;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  font-weight: 700;
  letter-spacing: 0.08em; /* ← 英字の間隔をやや広げる */
}

.overlay-nav a span {
  display: block;
  font-size: 16px; /* 約12pt */
  margin-top: 0;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
}

/* 企業サイトボタン */
.button-corpo a {
    background: #313131;
    border-radius: 0;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 180px;
    padding: 15px 25px;
	margin: 20px auto;
    color: #ffffff;
    transition: 0.3s ease-in-out;
	font-size: 16px;
    font-weight: 500;
}

/* アイコンサイズ調整 */
.button-corpo .corporate-icon {
  height: 16px;
  width: auto;
}


/* モバイルポリシーリンク：ハンバーガーメニュー内用 */
.mobile-policy-links {
  list-style: none;
  padding: 16px 20px 40px;
  margin: 0;
  border-top: 1px solid #e8e0d6;
}

.mobile-policy-links li {
  margin-bottom: 12px;
}

.mobile-policy-links a {
  color: #1e1e1e;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-policy-links .link-icon {
  width: 12px;
  height: auto;
}

/* 表示切り替え */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: block;
  }

  /* フッターから非表示にする */
  .footer-links {
    display: none !important;
  }
}



@media (max-width: 768px) {
  .global-nav,
  .external-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}
/* ↑↑↑ スマホナビボタン終了 ↑↑↑ */


/* フェードイン共通 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-visual {
  position: relative;
  height: 750px;
  background: url('../images/main-visual.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 2s ease-in;
}

.main-visual.visible {
  opacity: 1;
}

.main-visual h1 {
  color: #ffffff;
  font-size: 4.2em; /* ← ほんの少し拡大 */
  letter-spacing: 0.08em; /* ← 少し詰める */
  margin-bottom: 0.5em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}
.main-visual h2 {
  color: #ffffff;
  font-size: 1.6em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.14em;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.5);
  margin-top: -16px; /* ← さらに上にずらす */
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.8s;
}
/* デフォルト（PC）ではスマホ用を非表示 */
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}
/* 文字全体を少し上へ */
.overlay {
  padding-top: 40px; /* ← 元より少し上に寄せる */
}
.content-block {
  text-align: center;
  padding: 80px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
  transition-delay: var(--delay, 0s);
}

.content-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-block h3 {
  text-align: center;
  font-size: 1.2em;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.content-block h1 {
  font-size: 3em; 
  margin-top: 0em;
  margin-bottom: 0.3em;
  letter-spacing: 0.04em; /* ← 少し間隔を広げる */
  text-align: center; /* ← 中央揃え維持 */
  line-height: 99%;
}
.content-block h2 {
  font-size: 1.2em;
  margin-top: 0;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.14em;
}

/*
.site-footer {
  text-align: center;
  padding: 20px 0;
  background-color: #fff;
}
*/

#page-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 10px 18px 14px 18px;
  font-size: 18px;
  background-color: #313131;
  color: #fff;
  border: none;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  cursor: pointer;
  z-index: 1000;
}

#page-top.show {
  opacity: 1;
  visibility: visible;
}

.site-footer {
  background-color: #ffffff;
  padding: 40px 20px 0;
  text-align: center;
  font-family: 'Zen Old Mincho', serif;
  color: #1e1e1e;
}

.footer-logo {
  width: 160px;
  margin: 0 auto 24px;
  display: block;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-nav li {
  position: relative;
}

.footer-nav li:not(:last-child)::after {
  content: "｜";
  margin-left: 12px;
  color: #ccc;
}

.footer-nav a {
  color: #1e1e1e;
  font-size: 14px;
  text-decoration: none;
}

.footer-bottom {
  background-color: #f8f5ed;
  padding: 16px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* 個人情報リンク群 */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.footer-links a {
  color: #1e1e1e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-links .divider {
  color: #999;
}

/* アイコン画像 */
.link-icon {
  width: 12px;
  height: auto;
}

/* コピーライト */
.footer-copy {
  font-size: 12px;
  white-space: nowrap;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
	
  .footer-nav {
    display: none !important;
  }

  .footer-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-nav li::after {
    content: none;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* スマホで切り替え（768px未満） */
@media (max-width: 768px) {
  .site-header,
  .global-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-nav a {
    margin: 10px 0 0;
  }

  .main-visual h1 {
    font-size: 3.5em; /* ← 少し拡大 */
    letter-spacing: 0.06em; /* ← やや詰める */
	line-height: 1.2em;
    white-space: pre-line; /* ← テキスト内改行を有効に */
  }

  .main-visual h2 {
    font-size: 1.5em;
    white-space: pre-line; /* ← 改行対応 */
    margin-top: -10px;
  }
  .overlay {
    padding-top: 30px; /* 上寄せ調整 */
  }
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }

  .sp-only h1,
  .sp-only h2 {
    white-space: pre-line;
  }
}
