@charset "UTF-8";
/* --- 1. 基本設定（ボックスモデルとスクロール） --- */
*, *::before, *::after
{
  box-sizing: border-box; /* パディングとボーダーを幅に含める */
}
/* スムーズスクロール（ページ内リンク用） */
html
{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* iOSの横向き時の文字サイズ自動変化を防止 */
}
/* --- 余白のリセット --- */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote
{
  margin: 0;
  padding: 0;
}
/* --- 要素ごとの使いやすさ向上 --- */
body
{
  min-height: 100vh;      /* 常に画面の高さ分を確保 */
  line-height: 1.7; 
  overflow-wrap: break-word; /* 長い英単語を折り返す */
  -webkit-font-smoothing: antialiased; /* 文字を綺麗に見せる */
}
/* リストの黒丸を消す */
li
{
  list-style: none;
}
/* リンクのデフォルトスタイルをリセット */
a
{
  text-decoration: none;
  color: inherit; /* 親の文字色を引き継ぐ */
}
/* 画像を扱いやすくする */
img, picture, svg, video, canvas
{
  display: block;        /* 下にできる謎の隙間を消す */
  max-width: 100%;       /* 親要素からはみ出さない */
  height: auto;          /* 比率を維持 */
}
/* ボタンや入力フォームを整える */
button, input, select, textarea
{
  font: inherit; 
}
button
{
  cursor: pointer; 
  background: none;
  border: none;
  padding: 0;
}
/* テーブルをデザインしやすくする */
table
{
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
html
{
  /* ブラウザ標準の16pxを10px相当（62.5%）にする */
  font-size: 62.5%;
}
body
{
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1.6rem;
  background: #FFF;
  color: #333;
  letter-spacing: 0.05em;
  /* アンチエイリアスを有効にして文字を綺麗に見せる */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img
{
  display: inline-block;
  vertical-align: middle;
  -ms-interpolation-mode: bicubic;
  border-style: none;
}
/* 見出し用の調整 */
h1, h2, h3
{
  line-height: 1.3;    
  letter-spacing: 0.02em; /* 本文よりは詰め気味 */
}
/*
picture img {
  width: 100%;
  height: auto;
  display: block;
}
*/
.l-wrap {
  padding: 0 20px;
}
@media (min-width: 1200px) {
    .l-wrap {
  padding: 0;
}
}
/* グリッドのコンテナ */
.l-container
{
  display: grid;
  gap: 20px; /* 余白（Gutter）の指定 */
  grid-template-columns: repeat(12, 1fr); /* 12カラム制 */
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
/* カラムの基本設定 */
.l-cell
{
  grid-column: span 12; /* デフォルトは全幅 */
}

/* レスポンシブ用のクラス例 */
@media (min-width: 768px) {
.l-col-md-6
{
  grid-column: span 6;
} /* 2カラム */
.l-col-md-4
{
  grid-column: span 4;
} /* 3カラム */
}
 @media (min-width: 1025px) {
.l-col-lg-4
{
  grid-column: span 4;
}
.l-col-lg-3
{
  grid-column: span 3;
} /* 4カラム */
}
.flex-container
{
  display: flex;
  flex-wrap: wrap;
  margin: -10px; /* 外側の余白を打ち消す */
}
.flex-cell
{
  padding: 10px;
  box-sizing: border-box;
  flex: 0 0 100%; /* 基本は100%幅 */
}
/* 50%幅の指定 */
.small-6
{
  flex: 0 0 50%;
}
/* 33.3%幅の指定 */
.small-4
{
  flex: 0 0 33.3333%;
}
/* 上下中央揃え */
.align-middle
{
  align-items: center;
}
/* 左右中央揃え */
.align-center
{
  justify-content: center;
}
/* すべての汎用改行クラスを一旦消す */
.u-br-sp, .u-br-tab, .u-br-pc
{
  display: none;
}

/* スマホ用: 767px以下 */
@media screen and (max-width: 767px) {
.u-br-sp
{
  display: inline;
}
}

/* タブレット用: 768px〜1025px */
@media screen and (min-width: 768px) and (max-width: 1025px) {
.u-br-tab
{
  display: inline;
}
}

/* PC用: 1026px以上 */
@media screen and (min-width: 1026px) {
.u-br-pc
{
  display: inline;
}
}
/* ==========================================================================
   Header
   ========================================================================== */
.p-header__container
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
.p-header__container
{
  padding: 10px 0;
}
}
.p-header__logo
{
  position: relative;
  z-index: 1200;
}


@media screen and (max-width: 767px) {
.p-header__logo img
{
  display: block;
 height: calc(39px * 0.7);
  width: auto;
}
.p-header__mobile-controls
{
  display: flex; 
  align-items: center;
  gap: 10px; 
  cursor: pointer;
  position: relative;
  z-index: 1100;      /* メニュー本体(1000)より高い数値にする */
}
/* Menuテキストのスタイル */
.p-header__menu-label
{
  font-size: 1.4rem;
  line-height: 1;         /* 高さをボタンと合わせやすくする */
  color: #333;
}
/* --- ハンバーガーボタンの基本 (三本線) --- */
.p-header__menu-trigger
{
  position: relative;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
}
.p-header__menu-trigger span
{
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}
.p-header__menu-trigger span:nth-child(1)
{
  top: 0;
}
.p-header__menu-trigger span:nth-child(2)
{
  top: 10px;
}
.p-header__menu-trigger span:nth-child(3)
{
  top: 20px;
}
/* --- ボタンがアクティブになった時 --- */
.p-header__menu-trigger.is-active span:nth-child(1)
{
  transform: translateY(10px) rotate(45deg);
}
.p-header__menu-trigger.is-active span:nth-child(2)
{
  opacity: 0;
}
.p-header__menu-trigger.is-active span:nth-child(3)
{
  transform: translateY(-10px) rotate(-45deg);
}
.p-header__menu-trigger.is-active span
{
  background-color: #333;
}
.p-header__menu-trigger.is-active + .p-header__menu-label
{
  color: #333;
}
.is-active-parent .p-header__menu-label
{ 
  color: #333;
}
.p-header
{
  position: relative; /* スクロールで流れる */
  width: 100%;
  height: 45px;      /* 高さを固定 */
  background-color: #fff;
  z-index: 1100;
}
.p-header__container
{
  position: relative;
  z-index: 1200;    /* ナビより絶対的に上にする */
  background-color: #fff;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-header__mobile-controls
{
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1200;
}
.p-header__nav
{
  display: none;
  position: fixed;
  top: 45px;
  left: 0;
  width: 100%;
  height: calc(100vh - 45px);
  background: rgba(255, 255, 255, 0.95);
  /*background: rgba(0, 0, 0, 0.95);*/
  z-index: 1000;
  padding: 50px 50px 20px;
  transform: translateY(-110%);
  visibility: hidden;
  /* スマホ時のみ、開閉両方のためのアニメーションを設定 */
  transition: transform 0.6s ease-in-out, visibility 0.6s;
}
.p-header__nav.is-open
{
  display: block;
  transform: translateY(0);
  visibility: visible;
}
.p-header__nav .p-header__menu-list
{
  display: flex;
  flex-direction: column;
  align-items: stretch;    /* 子要素を横幅いっぱいに広げる */
  gap: 0;                 /* 枠線をつける場合は gap より padding/margin が制御しやすい */
  list-style: none;
  padding: 0;
  width: 100%;            /* 念のため幅100%を指定 */
}
.p-header__nav .p-header__menu-list li
{
  display: block;
  width: 100%;
  border-bottom: 1px solid #999;
  text-align: center;
}
/* タップ範囲を広げるための設定 */
.p-header__nav .p-header__menu-list li a
{
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #333;
  width: 100%;
}
.p-header__nav .p-header__menu-list li:first-child
{
  border-top: 1px solid #999;
}
}
@media screen and (min-width: 768px) {
.p-header
{
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 80px;
  z-index: 9999;
  display: flex;
  justify-content: space-between; /* ロゴとメニューを両端に */
  align-items: center;
  padding: 0 20px;
  background: #fff;
  border-radius: 0;
  transition: all 0.3s ease;
  box-shadow: none; /* 最初は影なし */
}
.p-header__container
{
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  background-color: transparent; /* スマホ用の背景色を消す */
}
/* --- スクロールした時のスタイル --- */
.p-header.is-scrolled
{
  top: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.p-header__logo img
{
 height: calc(39px * 0.8);
}
.p-header__mobile-controls
{
  display: none !important;
}
.p-header__nav
{
  display: flex !important;
  position: static !important; /* 強制的に戻す */
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  background: none !important;
  padding: 0;
}
.p-header__nav .p-header__menu-list
{
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;                     
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.p-header__nav .p-header__menu-list li a
{
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.6rem;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
}
/* 下線の土台 */
.p-header__nav .p-header__menu-list li a::after
{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #0069ba;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}
/* マウスオーバー時に線を伸ばす */
.p-header__nav .p-header__menu-list li a:hover::after
{
  transform: scaleX(1);
}
}
@media screen and (min-width: 768px) and (max-width: 1100px) {
.p-header__nav .u-br-tab
{
  display: inline;
}
}
@media screen and (min-width: 1025px) {
.p-header__logo img
{
 height: calc(39px * 1);
}
.p-header__nav .p-header__menu-list
{
  gap: 30px;
}
/**/
.p-header__nav .p-header__menu-list li a
{
  font-size: inherit;
}
}
/* これがbodyについている間は、すべての要素のアニメーションを強制停止する */
.resize-animation-stopper *
{
  transition: none !important;
  animation: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.p-footer
{
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
  padding-top: 40px;
  padding-bottom: 20px;
  background-color: #FFF;
}
/* 内側の要素を並べる箱 */
.p-footer__container
{
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  gap: 30px;
}
/* ロゴ */
.p-footer__logo
{
  text-align: left;
}
.p-footer__logo img
{
  max-width: 164px;
  height: auto;
}
/* ナビゲーション */
.p-footer__nav
{
  display: flex;
  flex-direction: column; /* リストを上下に並べる */
  gap: 20px;
}
.p-footer__nav-list
{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* 折り返しを許可 */
  gap: 10px 30px;
}
.p-footer__nav-item
{
  display: flex;
  align-items: center;
}
.p-footer__nav-item a
{
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.p-footer__nav-list:nth-of-type(2) .p-footer__nav-item a
{
  font-size: 12px;
}
.p-footer__nav-item a:hover
{
  color: #548eba;
}
/* コピーライト */
.p-footer__copyright
{
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

/* PC版のレイアウト */
@media (min-width: 768px) {
.p-footer__container
{
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.p-footer__nav
{
  text-align: right;
  align-items: flex-end;
}
.p-footer__nav-list
{
  gap: 50px;
}
/* 2番目のリストの調整 */
.p-footer__nav-list:nth-of-type(2)
{
  margin-top: 10px;
}

/* コピーライトを下に配置し左寄せ */
.p-footer__copyright
{
  width: 100%;
  text-align: left;
  border-top: none;
  padding-top: 40px;
}
}


/* ==========================================================================
   ブラウザ右端ボタン
   ========================================================================== */
.l-fixed-nav
{
  position: fixed;
  /* right: 0; を書き換え。iPhoneの画面端の干渉を防ぐ */
  right: env(safe-area-inset-right, 0);
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px; 
  /* ボタンが外側に逃げないようにする */
  align-items: flex-end;
  backface-visibility: hidden; /* 描画を安定 */
  -webkit-font-smoothing: subpixel-antialiased; /* ボタンだけは設定を変える */
}
/* ボタン共通スタイル */
.c-fixed-btn
{
  display: inline-flex; 
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 20px 10px;
  border-radius: 8px 0 0 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
  /* 縦書きのボタンが潰れないように最小幅を確保 */
  min-width: 1em;
}
/* 縦書きテキスト */
.c-fixed-btn__text
{
  writing-mode: vertical-rl;
  /* iOS Safariで縦書きの高さ（幅）計算がズレるのを防ぐ */
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
/* 個別カラー */
.c-fixed-btn--first
{
  background-color: #282828;
}
.c-fixed-btn--contact
{
  background-color: #282828;
}
.c-fixed-btn--tel {
  background-color: #fd7308;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%); 
  transition: all 0.4s ease;
}
.c-fixed-btn--tel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ホバー時の動き */
.c-fixed-btn:hover
{
  transform: translateX(-10px);
}
.c-fixed-btn--first:hover
{
  background-color: #282828;
}
.c-fixed-btn--contact:hover
{
  background-color: #282828;
}
@media screen and (max-width: 768px) {
.l-fixed-nav
{
  top: 30%;
}
.c-fixed-btn
{
  padding: 12px 8px;
}
.c-fixed-btn__text
{
  font-size: 11px;
}
}




/* =================================================
  タブレット・PC用スタイル (768px以上)
================================================= */
@media screen and (min-width: 768px) {
/* iPad 縦持ち以上のデバイス向け */
}

/* =================================================
  大型PC用スタイル (1025px または 1200px以上)
================================================= */
@media screen and (min-width: 1200px) {
/* デスクトップPC向け。max-width: 1200pxのコンテナなどを制御 */
}
