@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Tokumin&display=swap');
/**
 * CSS変数の定義
 */
:root {
  /* カラー変数 */
  --primary-bg-color: #DCEBF2;
  --primary-text-color: #000;
  --secondary-color: #36A3D6;
  --secondary-color-rgb: 54, 163, 214;
  --highlight-color: #FFB714;
  --border-color: #707070;
  --border-color2 : #BEBEBE;
  --hover-color: #A7A7A7;
  --btn-bg-color: #000;
  --btn-text-color: #fff;
  --color-black: #000000;
  --color-black-rgb: 0, 0, 0;
  --color-light-blue: rgb(198, 220, 230);
  --color-light-blue-rgb: 198, 220, 230;
  --color-white: #ffffff;
  --color-gray: #f2f2f2;
  --color-blue2: #A1CCE0;
  --color-white-rgb: 255, 255, 255;
  --shadow-color: 153, 153, 153;
  --font-family-primary : 'Noto Sans JP', sans-serif;
  
  /* スペーシング変数 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* トランジション */
  --transition-duration: 0.3s;
  --transition-timing: ease;
  
  /* コンテナサイズ */
  --container-max-width: 1280px;
  --container-padding: 0 15px;
  
  /* ボーダーラディウス */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 15px;
  --border-radius-full: 9999px;
}

/**
 * ベーススタイル
 */
html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased; /* Safari, Chrome */
  -moz-osx-font-smoothing: grayscale;  /* Firefox */
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-family-primary);
  background-color: var(--primary-bg-color);
  margin: 0;
  padding: 0;
  font-size: var(--font-size-md);
  font-weight: 400;
  font-style: normal;
  color: var(--primary-text-color);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;

  line-height: 1.6;
  letter-spacing: 0.03em;
}

/**
 * リンクスタイル
 */
a {
  text-decoration: none;
  color: var(--primary-text-color);
  transition: color var(--transition-duration) var(--transition-timing);
}

a:hover {
  color: var(--hover-color);
}

/**
 * 画像スタイル
 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid #fff;                 /* 白いフチ（フレーム） */
  box-sizing: border-box;                 /* 枠含めてサイズ調整 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* ほんのり影で立体感 */
  border-radius: 4px;                     /* お好みで角丸（なしでもOK） */
}

/**
 * リストスタイル
 */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/**
 * レイアウトユーティリティ
 */
 .wrapper {
  margin : 0 auto;
  padding : 0;
  width: 100%;
  position: relative;
  z-index: auto;
}
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-around {
  justify-content: space-around;
}

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

/* ===============================
   共通スタイル（カラムベース）
================================ */
[class*="flex-"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.flex-2column > * {
  flex: 1 1 calc((100% - 50px) / 2);
}

.flex-3column > * {
  flex: 1 1 calc((100% - 100px) / 3);
}

.flex-4column > * {
  flex: 1 1 calc((100% - 150px) / 4);
}
/* 共通のgapクラス */
.flex-gap-75 {
  gap: 75px;
}
/* 3カラム構造（gap75px版） */
.flex-3column-wide > * {
  flex: 1;
  max-width: calc((100% - 150px) / 3); /* gap75px × (3-1) = 150px */
}

/* gapだけ上書き */
.flex-3column-wide {
  gap: 75px;
}
/* ===============================
   リバーシブル（左右反転）
================================ */
.reverse {
  flex-direction: row-reverse;
}


/**
 * 表示・非表示
 */
.pc {
  display: block!important;
}

.sp {
  display: none!important;
}

/**
 * テキスト配置
 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}
/**
 * DL
 */
 dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

dl dt,
dl dd {
    margin: 0;
    padding: 10px 30px;
    text-align: left;
    box-sizing: border-box;
}

dl dt {
    flex: 0 0 30%;
    background-color: var(--primary-bg-color);
}

dl dd {
    flex: 0 0 70%;
}
/**
 * マージン・パディングユーティリティ
 */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mt-100 { margin-top : 100px; }
.mt-50 { margin-top : 50px; }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.mb-50 { margin-bottom: 50px; }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }
.p-100-0 {
  padding : 100px 0;
}
.p-50-0 { padding : 50px 0; }

/**
 * ボタンスタイル
 */
.btn {
  max-width: 300px;
  display: block;
  background-color: var(--btn-bg-color);
  color: var(--btn-text-color);
  border: none;
  border-radius: 50vh;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  padding: 0.7em 2em;
  margin : 5px auto;
}

.btn:hover {
  filter: brightness(1.2); /* 1.0 が元の明るさ、1.2で少し明るく */
}

.btn-primary {
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: var(--highlight-color);
}
a.btn.right {
  margin : 0;
  margin-left : auto;
}
.btn::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><rect style="fill:none;" width="48" height="48"/><path style="fill:none;stroke:rgb(255,255,255);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;" d="M16.5,37.23l17-12.71c0.276-0.212,0.328-0.607,0.117-0.883c-0.034-0.044-0.073-0.083-0.117-0.117l-17-12.71"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.btn_wide {
  max-width: 400px;
}
.btn:hover {
  opacity: 0.6;
}
/* ------------------------------------------------
 * メールフォーム送信ボタン
 * ------------------------------------------------ */
.mailform_btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 0.7em 0;
  outline: none;
  position: relative;
  border: 1px solid var(--primary-text-color);
  color: var(--primary-text-color);
  background-color: transparent;
  transition: color 0.5s ease;
  margin-top : auto;
}

.mailform_btn:hover {
  color: var(--btn-text-color);
}

/* ホバー時の背景アニメーション */
.mailform_btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-text-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: 1;
}

.mailform_btn:hover::before {
  transform: scaleX(1);
}

/* テキストを前面に出す */
.mailform_btn .text {
  position: relative;
  z-index: 2;
}

/* 矢印アイコン */
.mailform_btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><rect style="fill:none;" width="48" height="48"/><path style="fill:none;stroke:rgb(0,0,0);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;" d="M16.5,37.23l17-12.71c0.276-0.212,0.328-0.607,0.117-0.883c-0.034-0.044-0.073-0.083-0.117-0.117l-17-12.71"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 2;
}

/* ホバー時の矢印（白） */
.mailform_btn:hover::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><rect style="fill:none;" width="48" height="48"/><path style="fill:none;stroke:rgb(255,255,255);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;" d="M16.5,37.23l17-12.71c0.276-0.212,0.328-0.607,0.117-0.883c-0.034-0.044-0.073-0.083-0.117-0.117l-17-12.71"/></svg>');
}
/**
 * ページトップボタン
 */
#page-top {
  position: fixed;
  right: 10px;
  bottom: 90px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(150px);
  pointer-events: none;
}

#page-top.UpMove {
  animation: UpAnime 0.5s forwards;
  pointer-events: auto;
}

#page-top.DownMove {
  animation: DownAnime 0.5s forwards;
  pointer-events: none;
}

#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: #34312e;
  border-radius: var(--border-radius-full);
  color: var(--btn-text-color);
  text-transform: uppercase;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-duration);
}

#page-top a:hover {
  background: var(--btn-text-color);
  border: 1px solid #34312e;
  color: #34312e;
}
#page-top a::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22%23fff%22%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4.5%2010.5%2012%203m0%200%207.5%207.5M12%203v18%22%20/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

@keyframes UpAnime {
  from {
    opacity: 0;
    transform: translateY(150px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes DownAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(150px);
  }
}
/**
 * ローディングアニメーション
 */
 .loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-duration) ease, visibility var(--transition-duration) ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-animation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  animation: expandSmoothly 5s ease forwards;
  transform-origin: center;
}

.loading-animation .img {
  width: 350px;
  height: 350px;
  overflow: visible;
}

.loading-animation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius-full);
}

.loading-animation .text {
  font-family: 'Kaisei Tokumin', serif;
  font-size: 2.5rem;
  margin-top: 20px;
  color: #fff;
  letter-spacing: 0.05em;
  text-align: center;
}

@keyframes expandSmoothly {
  0% {
    transform: scale(1);
    border-radius: 50%;
    opacity: 1;
  }
  70% {
    transform: scale(3);
    border-radius: 30%;
    opacity: 1;
  }
  100% {
    transform: scale(4);
    border-radius: 0;
    opacity: 0;
  }
}
/**
 * 最新CSS技術の活用
 */
/* :has()を使った条件付きスタイリング */
.parent:has(.child:hover) {
  background-color: rgba(var(--secondary-color-rgb), 0.1);
}

/* :is()を使ったセレクタグループの簡略化 */
:is(h1, h2, h3, h4, h5, h6) a {
  text-decoration: none;
}

/* :where()を使った低特異性セレクタ */
:where(.btn, .button) {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
}

/**
 * ブラウザ互換性対策
 */
@supports not (selector(:has(*))) {
  /* :has()のフォールバック */
  .child:hover {
    background-color: rgba(var(--secondary-color-rgb), 0.1);
  }
  .child:hover .parent {
    background-color: rgba(var(--secondary-color-rgb), 0.1);
  }
}

.no-data {
  text-align: center;
  color: #666;
  font-size: 1em;
  margin: 40px 0;
}

/* ===============================
   レスポンシブ対応（コンテナのパディング）
================================ */
@container (max-width: 768px) {
  .container-responsive {
    padding: 0 10px;
  }
}

/* ===============================
   レスポンシブ対応（画面幅1280px以下）
================================ */
@media screen and (max-width: 1280px) {
  .container {
    width: 95%;
  }
  .btn {
    margin : 10px auto;
  }
}

/* ===============================
   レスポンシブ対応（画面幅768px以下）
================================ */
@media screen and (max-width: 768px) {
  /* PC/SP切り替え */
  .pc {
    display: none!important;
  }
  .sp {
    display: block!important;
  }

  /* HTMLベースフォントサイズ */
  html {
    font-size: 14px;
  }

  /* 2カラム → 1カラム化 */
  .flex-2column > *,
  .flex-3column > *,
  .flex-4column > * {
    max-width: 100%;
  }

  /* リバース解除（オプション） */
  .reverse {
    flex-direction: column;
  }

  /* 2カラム時のgap修正 */
  .flex-2column,
  .flex-3column {
    flex-direction: column;
    gap: 30px;
  }
  .breadcrumb ul {
    margin-left : 15px;
  }
}

/* ===============================
   レスポンシブ対応（画面幅600px以下）
================================ */
@media screen and (max-width: 600px) {
  /* 必要であればここに追加 */
}

/* ===============================
   レスポンシブ対応（画面幅480px以下）
================================ */
@media screen and (max-width: 480px) {
  /* HTMLベースフォントサイズさらに縮小 */
  html {
    font-size: 12px;
  }
}

/* ===============================
   レスポンシブ対応（画面幅450px以下）
================================ */
@media screen and (max-width: 450px) {
  /* 必要であればここに追加 */
}