@charset "UTF-8";
/* ==========================================
   File: common.css
   Description: 全ページ共通の基本設定・ヘッダー・フッター・機能
   ========================================== */

/* --- 1. リセット & 基本設定 --- */
ol,
ul {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
img,
p {
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  font-family: YuGothic, "Yu Gothic", sans-serif;
  padding: 0;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  transition: font-size 0.3s ease;
}

/* リンク */
a {
  text-decoration: none;
  color: royalblue;
  transition: 0.2s;
}
a:hover {
  color: lightblue;
}
a img:hover {
  filter: brightness(120%);
  transition: 0.2s;
}

/* フォント指定 */
h1,
h2,
h3,
h4 {
  font-family: "Kulim Park", "M PLUS 1p", sans-serif;
}

/* --- 2. ヘッダー設定（青背景バージョン） --- */
header {
  position: sticky;
  z-index: 20000;
  top: 0;
  height: 70px;
  /* メインカラーの青（少し透過） */
  background: rgba(0, 90, 181, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 90, 181, 0.2);
}
header .header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
header h1 {
  font-size: 180%;
  line-height: 70px;
  display: flex;
  align-items: center;
}
/* 【修正】ロゴが見やすいように白背景を敷く */
header h1 a {
  display: inline-block;
  background-color: #fff; /* 白背景 */
  padding: 5px 20px; /* 余白 */
  border-radius: 50px; /* 丸くする */
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽く影をつける */
  color: #333;
}
header h1 img {
  max-height: 40px; /* 白枠に収まるように少し小さく */
  width: auto;
  vertical-align: middle;
  filter: none !important; /* 色反転を解除して元の色を表示 */
}

/* PC用メニュー */
header ul#navmenu {
  display: flex;
  margin: 0;
}
header ul#navmenu li {
  height: 70px;
  padding: 0 20px;
}
header ul#navmenu li a {
  display: block;
  height: 100%;
  line-height: 70px;
  color: #fff; /* メニュー文字は白 */
  position: relative;
  font-weight: 500;
}
/* PCのみ：ホバー時の黄色い線 */
@media screen and (min-width: 768px) {
  header ul#navmenu li a:after {
    position: absolute;
    bottom: 15px;
    left: 0;
    content: "";
    width: 100%;
    height: 4px;
    background: #ffd700;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform 0.3s;
    border-radius: 2px;
  }
  header ul#navmenu li a:hover:after {
    transform: scale(1, 1);
  }
}

/* --- 3. スマホメニュー（ハンバーガー・全画面） --- */
p#menubtn {
  display: none;
}

@media screen and (max-width: 767px) {
  header {
    height: 60px;
    background: rgba(0, 90, 181, 0.95);
  }
  header h1 {
    font-size: 150%;
    line-height: 60px;
  }
  /* スマホ版でもロゴを白背景で見やすく */
  header h1 a {
    padding: 4px 15px;
  }
  header h1 img {
    max-height: 30px;
  }

  /* ハンバーガーボタン */
  p#menubtn {
    display: block;
    position: fixed;
    top: 5px;
    right: 15px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 21001;
    color: #fff; /* アイコンは白 */
  }

  /* 全画面メニュー */
  header ul#navmenu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* 背景を青にして、白い×ボタンが見えるようにする */
    background: #005ab5;
    z-index: 21000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    padding-top: 80px;
    padding-bottom: 50px;
    text-align: center;
    overflow-y: auto;
  }
  header ul#navmenu.checked {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  header ul#navmenu li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  }
  header ul#navmenu li a {
    display: block;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff; /* 文字は白 */
  }

  /* 「お問い合わせ」ボタン（スマホ用） */
  .nav-contact a {
    /* 白背景に青文字で目立たせる */
    background: #fff !important;
    color: #005ab5 !important;
    width: 80%;
    max-width: 300px;
    margin: 40px auto 20px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    height: 54px !important;
    line-height: normal !important;
  }
}

/* --- 4. フッター --- */
footer {
  /* 青系グラデーション背景 */
  background: linear-gradient(to right, #005ab5, #0078d7);
  color: white;
  margin-top: 80px;
  padding: 40px 0;
  border-top: 5px solid #f29f05;
}

/* 【修正】フッター内のリンク文字（あさひ工房など）を強制的に白にする */
footer a {
  color: #fff !important;
}

/* SNSアイコンの設定 */
.footer-sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
.sns-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}
.sns-link:hover {
  background-color: #fff;
  color: #005ab5; /* ホバー時は青にして目立たせる */
  transform: translateY(-3px);
}
.sns-link.instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: #fff;
}

/* --- 5. アクセシビリティ & ローディング --- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f29f05 !important;
  outline-offset: 2px !important;
  z-index: 99999;
  position: relative;
}

/* 2. お問い合わせフォーム（入力欄）は「黒」にする */
/* クリック時もTab移動時も、入力欄は黒になります */
.form-control:focus {
  border-color: #333 !important; /* 枠線を黒（濃いグレー）に */
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1) !important; /* 薄い黒の影 */
  outline: none !important; /* オレンジの太枠が出ないようにする */
}

/* 文字サイズ変更機能（.font-largeがついた時の挙動） */
body.font-large {
  font-size: 120% !important;
}
body.font-large h1,
body.font-large h2,
body.font-large p {
  line-height: 1.6 !important;
}

/* --- 表示サポートパネル（完全修正版） --- */

/* 1. パネル本体 */
#access-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 160px;
  background: #fff;
  border: 2px solid #465daa;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9000;
  font-family: "Yu Gothic", sans-serif;
  overflow: hidden;
  display: block;
}

/* 2. パネルヘッダー */
.access-header {
  background: #465daa;
  color: #fff;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

/* 3. パネル中身 */
.access-body {
  padding: 10px;
}

/* 4. ラベル */
.access-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #465daa;
}

/* 5. 閉じるボタン（×） */
#access-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 200;
}
#access-close-btn:hover {
  color: #ffcccc;
}

/* 6. 再表示アイコン（閉じた後に出る丸いボタン） */
#access-open-btn {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: #465daa;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}
#access-open-btn:hover {
  transform: scale(1.1);
  background: #364a8a;
}

/* 7. 切り替えボタンのグループ（横並び強制修正済み） */
.access-btn-group {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  border: 1px solid #ccc !important;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #f0f0f0;
  margin-bottom: 10px;
}

/* ボタン単体の設定 */
.access-btn {
  flex: 1 1 auto !important;
  width: 50% !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border: none !important;
  background: #f0f0f0;
  color: #333 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 30px !important;
  font-size: 12px !important;
  cursor: pointer;
  border-right: 1px solid #ccc !important;
}
.access-btn:last-child {
  border-right: none !important;
}
.access-btn.active {
  background: #465daa !important;
  color: #fff !important;
}
