/*common*/
*{
    font-size: 16px;
}

body {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

/* スクロール固定 */
body.menu-open { overflow: hidden; }


br.pc{
    display: block;
}

br.sp{
    display: none;
}


.inner {
    width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 1em;
    text-align: center;
}

h3 {
 font-size: 22px;
 font-weight: 700;
}

P {
 font-size: 16px;
 line-height: 1.5;
}

a {
    opacity: 1;transition: 0.3s;
}

a:hover {
    opacity: 0.5;/* background: #000; */
}

/* header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  font-family: "Noto Sans JP", sans-serif;
  position: relative;
  z-index: 1000;
   position: relative;           /* 既存 */
  z-index: 10000;               /* ← ヘッダー層を最前面グループに */
}

.header-img { max-width: 300px; }
.header-img img { width: 100%; display:block; }

.header-main {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px; /* margin-rightの代替（整列しやすく） */
}

.header-main a {
  text-align: right;
  font-weight: 500;
  font-size: 1.3rem;
  text-decoration: none;
  color: #111;
}
.header-main a:focus-visible { outline: 2px solid #005fcc; outline-offset: 3px; }

/* ハンバーガーボタン（PCでは非表示） */
.hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
   position: relative;
  z-index: 10002;               /* ← ナビより上（クリック可能に） */
}
.hamburger:focus-visible { outline: 2px solid #005fcc; outline-offset: 3px; }
.hamburger__bar {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #111;
  transition: transform .25s ease, opacity .2s ease;
}


/* top */

#top img {
    width: 100%;
}

/* about */

#about {
 background: #f1d3bf;
 padding: 80px 0px;
}

.about-box {
    display:flex;
    flex-wrap: wrap;
    gap:50px;
}

.about-box h2 {
    text-align: left;
}

.about-box-text {
    margin: auto;
    width: calc(65% - 50px);
}


.about-box-btn a {
    background: #fff;
    width: calc(50% - 10px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
     text-decoration: none;
     padding:20px 0;
    font-size: 20px;
}

.about-box-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0px;
    width: 35%;
}

/* flow */

#flow {
    padding: 80px 0px;
}

.flow-box {
    display:flex;
    margin-bottom: 50px;
    gap:20px;
    align-items: center;
}

.flow-box img {
    width: 70%;
    height: auto;
}

.flow-box-text {
    width: calc(85% - 50px);
}

.flow-box-text-detail {
    background: #f1d3bf;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
}

.flow-box:last-child {
    margin: 0;
}

/* cost */

#cost {
    background: #f1d3bf;
    padding: 80px 0px;
}

.cost-box {
     display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    justify-content: center;
    margin: 50px 0px;
}

.cost-p {
    text-align: center;
}
.cost-box-graph {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: calc(50% - 10px);
}

.cost-table {
  width: 100%;
  border-collapse: collapse; 
  border: 1px solid #000; 
  margin: 20px 0px;
}

.cost-table th,
.cost-table td {
  border: 2px solid #000; 
  padding: 12px;
  text-align: center; 
}

.cost-table th {
  font-weight: normal; 
}

thead {
  background: #f2c4a9;
}

tbody {
    background: #fff;
}
/* past */

#past {
    padding: 80px 0px;
}

.past-box {
    text-align: center;
     text-align: center;
}

.past-box-img {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.past-box-img img {
    width: calc(25% - 38px);
}

/* q-a */

#q-a {
    background: #f2f2f2;
    padding: 80px 0px;
}

details:not(:last-child) {
  margin-bottom: 20px;
}

/**
 * list-style: none; ←デフォルト三角削除
 * cursor: pointer; ←カーソルをポインターに
 * Flexboxでアイコンを右側に配置
**/
details summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  background: #ec6833;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/**
 * Chrome用のデフォルト三角削除
**/
details summary::-webkit-details-marker {
  display: none;
}

/**
 * Font Awesomeのプラスアイコンを右側に使用
**/
details summary::after {
  content: '\f067';
  font-family: "Font Awesome 6 Free"; /* 念のためフォントファミリーを指定 */
  font-weight: 900; /* Font Awesome 6ではウェイト指定が必要 */
  margin-left: 20px;
}

/**
 * アコーディオンがオープン時はマイナスアイコンに変更
**/
details[open] summary::after {
  content: '\f068';
}

details[open] {
  border: 4px solid #ec6833; 
}

details p {
  margin: 0;
  padding: 20px;
  font-size: 1.5rem;
}

/* access */

#access {
    padding: 80px 0px;
}

.access-box {
    display:flex;
    gap:50px;
}

.access-box-gmap {
    width: calc(50% - 25px);
}

.access-box-gmap iframe {
    width: 100%;
    height: 100%;
}
.access-box-text {
    font-weight: 500;
    width: calc(50% - 25px);
}


.access-box-text-detail {
    margin-bottom: 40px;
}

.access-box-text-detail:last-child {
    margin-bottom: 0;
}

.access-box-text-detail p {
    font-size: 1.5rem;
}

/* footer */

footer {
    background: #ec6833;
    padding: 60px 60px;
    width: 100%;
}

.footer-text-box {
  text-align: center;
  color: #fff;
}

@media screen and (max-width: 1200px){

.inner {
    width: 100%;
    padding: 0 30px;
}

.about-box {
    align-items: center;
    justify-content: center;
}

.about-box-text {
    width: auto;
    max-width: calc(65% - 50px);
    margin: 0;
}

.access-box-text-detail p {
    font-size: 1.2rem;
}

}

/* 1000px以下でモバイルUIに切替 */
@media (max-width: 1000px) {
  header { padding: 12px 16px; 
}

  /* ボタン表示、ナビはドロワー化 */
  .hamburger { display: inline-block; }

  /* ドロワー（右スライドイン） */
  .header-main {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 360px);
    padding: 80px 20px 24px;
    background: #fff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transform: translateX(100%);
    transition: transform .28s ease;
    justify-content: flex-start;
    z-index: 1001;       /* ← オーバーレイより上に表示 */
  }

  /* オーバーレイ */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 999; /* ドロワーの下、headerの上 */
  }

  /* 開いた状態 */
  .header-main.is-open {
    transform: translateX(0);
    box-shadow: -12px 0 30px rgba(0,0,0,.08);
}

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 1000;       /* ← ナビより下に配置 */
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .menu-overlay.is-show {
    opacity: 1;
    pointer-events: auto; /* 表示時のみクリック可 */
  }

  /* ハンバーガー → × アニメーション */
  .hamburger.is-open .hamburger__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.is-open .hamburger__bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-open .hamburger__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* モバイルのリンク見やすさ */
  .header-main a {
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    border-radius: 8px;
  }
  .header-main a:hover { background: #f5f7fa; }

    /* 閉じるボタン */
  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
  }
  .nav-close:hover {
    opacity: 0.6;
  }

    /* 任意：閉じるボタンスタイル */
  .nav-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; font-size: 1.2rem; color: #333; cursor: pointer;
  }
}

@media screen and (max-width: 768px){
*{
    font-size: 14px;
}

h2 {
    font-size: 26px;
}

h3 {
 font-size: 18px;
}

P {
 font-size: 14px;
}

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

.about-box-btn {
    width: 100%;
}

.about-box-text {
    width: 100%;
    max-width: unset;
    text-align: center;
}

.about-box h2 {
    text-align: center;
}

.about-box-btn img {
    width: 30px;
}

.flow-box {
    display: flex;
    flex-direction: column;
}

.flow-box h3 {
    text-align: center;
}

.flow-box img {width: 150px;}

.flow-box-img {
    width: 100%;
    text-align: center;
}

.flow-box-text-detail {
    padding: 15px;
}

.flow-box-text {
    width: 100%;
    padding: 0 20px;
}

.cost-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cost-box-graph {
    width: 100%;
    margin: 0;
}

.past-box-img {
    flex-wrap: wrap;
}

.past-box-img img {
    width: calc(50% - 25px);
}

details summary {
    height: 2em;
    box-sizing: content-box;
}

.inner {}

.access-box {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 25px;
}

.access-box-text {
    width: 100%;
}

.access-box-gmap {
    width: 100%;
    height: 330px;
}

.access-box-text-detail {
    margin-bottom: 20px;
}

}

@media screen and (max-width: 500px) {
br.pc{
    display: none;
}

br.sp{
    display: block;
}
}