@charset "utf-8";

/*----------------------------------------------------------------
CSS Variables (カラーパレット・余白の統一)
----------------------------------------------------------------*/
:root {
  /* カラーパレット */
  --color-primary: #005da0;
  --color-text: #333;
  --color-bg-main: lemonchiffon;
  --color-bg-white: #fff;
  --color-border: #e5e5e5;
  --color-link: #6696be;
  --color-link-hover: #95b3cd;
  --color-red: #dd0000;
  --color-gray: #666;

  /* 余白 */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --spacing-xxl: 50px;

  /* フォントサイズ */
  --font-size-base: 1em;
  --font-size-sm: 0.9em;
  --font-size-lg: 1.2em;
  --font-size-xl: 1.5em;
  --font-size-xxl: 2em;

  /* レイアウト幅 */
  --container-max: 1200px;
  --container-tablet: 768px;
  --container-mobile: 100%;
}

/*----------------------------------------------------------------
Header (モバイルファースト - 固定ヘッダー)
----------------------------------------------------------------*/
header {
  width: 100%;
  padding: 0;
  z-index: 10000;
  background: var(--color-bg-white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.6em;
  line-height: 1.3;
  border-bottom: 2px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 青い帯（h1）をスタイリッシュに表示 */
header h1 {
  padding: var(--spacing-sm) 2%;
  text-align: center;
  color: var(--color-bg-white);
  background: linear-gradient(135deg, #005da0 0%, #0081d5 100%);
  font-size: 0.7em;
  line-height: 1.3;
  margin: 0;
  display: block;
  font-weight: 500;
}

header p {
  margin-bottom: 0;
}

/* hgroupをflexコンテナに（ロゴとメニューを横並び） */
hgroup {
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  position: relative;
  background-color: var(--color-bg-white);
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 10001;
}

/* itemleftはロゴのみ */
header .itemleft {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 1;
}

/* ロゴをコンパクトに */
header .logo {
  font-size: 1em;
  margin: 0;
  padding: 0;
  max-width: 180px;
  height: auto;
}

header .logo img {
  width: 100%;
  height: auto;
  display: block;
}

header .logo a {
  color: var(--color-text);
  display: block;
  line-height: 0;
}

/* 住所は非表示（スペース節約） */
header .address {
  display: none;
}

/* 営業時間は非表示 */
header .info {
  display: none;
}

/* ヘッダーレスポンスは非表示 */
#headerResponse {
  display: none;
}

/* ナビゲーション（モバイル：ロゴと同じ高さ） */
#global-nav {
  position: relative;
  margin: 0;
  height: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 2;
}

#menu {
  display: none;
}

/* Slicknavメニューボタン */
.slicknav_menu {
  display: block;
  margin: 0;
}

.slicknav_btn {
  margin: 0;
}

/* スマホメニューをスクロールなしで表示 */
.slicknav_nav {
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
}

.slicknav_nav a {
  font-size: 0.65em;
  padding: 0.3em 0.6em;
  line-height: 1.2;
  display: block;
}

.slicknav_nav li {
  border-bottom: 1px solid #e5e5e5;
  margin: 0;
}

.slicknav_menu {
  padding: 0;
}

/* アコーディオンメニューのスタイル */
.slicknav_nav .slicknav_parent > a {
  font-weight: bold;
  background: #f0f0f0;
}

.slicknav_nav ul ul a {
  padding-left: 2em;
  font-size: 0.95em;
  background: #fafafa;
}

.slicknav_arrow {
  float: right;
}

/* コンテンツがヘッダーに隠れないようにパディング追加 */
body {
  padding-top: 70px; /* 薄いヘッダーの高さ分 */
}

/*----------------------------------------------------------------
タブレット以上 (768px~)
----------------------------------------------------------------*/
@media screen and (min-width: 768px) {
  /* PC・タブレットではヘッダーを固定しない */
  header {
    position: relative;
    font-size: 0.75em;
    padding: 0;
    background: var(--color-bg-white);
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  /* hgroupをリセット */
  hgroup {
    display: block !important;
    flex-wrap: nowrap !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: var(--color-bg-white);
  }

  /* h1を表示に戻す */
  header h1 {
    position: static;
    width: auto;
    height: auto;
    padding: var(--spacing-sm) 2%;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    text-align: center;
    color: var(--color-bg-white);
    background: linear-gradient(135deg, #005da0 0%, #0081d5 100%);
    font-size: 1em;
    font-weight: 500;
    line-height: 1.3;
  }

  body {
    padding-top: 0; /* パディングをリセット */
  }

  /* Flexboxでレイアウト */
  header .itemleft {
    display: flex;
    align-items: center;
    max-width: 35%;
    margin-left: 1%;
    width: auto;
    flex-direction: row;
    padding: 0;
    order: 0;
    float: left;
  }

  header .logo {
    font-size: 1em;
    margin: 8px 0;
    padding: 0;
    max-width: 94%;
    height: auto;
  }

  header .address {
    display: block !important;
    clear: both;
    float: left;
    text-align: left;
    margin: 0 0 1em 1%;
    font-size: 1em;
    padding: 0;
    width: auto;
  }

  header .info {
    display: inline-block !important;
    float: none;
    clear: none;
    margin: 0 0 1em 1em;
    width: auto;
  }

  /* ヘッダーレスポンスを表示 */
  #headerResponse {
    display: flex;
  }

  /* ヘッダーレスポンス */
  #headerResponse {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 64%;
    position: relative;
    margin: 18px 0 var(--spacing-sm);
  }

  #headerResponse ul {
    display: flex;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
  }

  #headerResponse ul li {
    margin: 0;
    list-style: none;
  }

  #headerResponse ul li.tel {
    max-width: 59%;
  }

  #headerResponse ul li.cal {
    max-width: 38%;
  }

  #headerResponse p {
    margin: var(--spacing-sm) 2% 0 0;
    text-align: right;
  }

  /* ナビゲーション */
  #global-nav {
    clear: both;
    position: relative;
    font-size: 1em;
    display: block;
    order: 0;
    flex: none;
    flex-shrink: 1;
    z-index: 9999;
  }

  #menu {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-sm);
    border-top: 1px solid #e0e0e0;
    justify-content: center;
    gap: 3px 6px;
    background: var(--color-bg-white);
    position: relative;
    z-index: 9999;
    overflow: visible;
  }

  #menu li {
    list-style: none;
    flex-shrink: 0;
    height: auto;
    min-height: 32px;
    padding: 0;
    margin: 0;
    font-weight: bold;
    background: linear-gradient(135deg, #fffaf0 0%, #fff8e7 100%);
    border: 1px solid #e8d5b7;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
  }

  #menu li:hover {
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(212,175,55,0.15);
    cursor: pointer;
  }

  #menu li.current {
    background: linear-gradient(135deg, #005da0 0%, #0081d5 100%);
    border-color: #004a7c;
    box-shadow: 0 2px 3px rgba(0,93,160,0.2);
  }

  #menu li a {
    color: #461b0c;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    padding: 4px 8px;
    transition: all 0.3s ease;
    white-space: normal;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    min-height: 32px;
  }

  #menu li.current a {
    color: var(--color-bg-white);
  }

  #menu li a:hover {
    color: #005da0;
  }

  #menu li.current a:hover {
    color: var(--color-bg-white);
  }

  .slicknav_menu {
    display: none;
  }
}

/*----------------------------------------------------------------
PC (1024px~)
----------------------------------------------------------------*/
@media screen and (min-width: 1024px) {
  hgroup {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) !important;
    overflow: hidden;
  }

  header h1 {
    padding: var(--spacing-sm) 0;
    text-align: center;
    background: linear-gradient(135deg, #005da0 0%, #0081d5 100%);
    max-width: 100%;
    margin: 0 auto;
    color: var(--color-bg-white);
    font-weight: 500;
    line-height: 1.3;
  }

  header .itemleft {
    max-width: 100%;
    margin-left: 0;
    float: left;
    width: 50%;
    display: block;
  }

  header .logo {
    max-width: 280px;
    height: auto;
    margin: 8px 0 8px;
    display: block;
  }

  header .address {
    display: inline-block !important;
    margin: 0 2em 0 0;
    text-align: left;
    clear: both;
    line-height: 1.6;
    vertical-align: top;
    float: left;
    width: auto;
  }

  header .info {
    display: inline-block !important;
    margin: 0;
    text-align: left;
    line-height: 1.6;
    vertical-align: top;
    float: left;
    width: auto;
  }

  #headerResponse {
    width: 48%;
    float: right;
    margin: 8px 0 var(--spacing-sm);
    justify-content: flex-end;
  }

  #headerResponse ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-sm);
  }

  #headerResponse ul li.tel {
    margin: 0;
    max-width: 280px;
  }

  #headerResponse ul li.cal {
    margin: 0;
    max-width: 180px;
  }

  #headerResponse p {
    text-align: right;
  }
}

/*----------------------------------------------------------------
ヘッドライン・メインビジュアル
----------------------------------------------------------------*/
#headline {
  width: 100%;
  padding: 0;
  margin: 0;
  padding-top: 52px;
  text-align: center;
  position: relative;
  background: url(../images/main_bg.jpg) no-repeat center center;
  background-size: cover;
  min-height: 300px;
  z-index: 1;
}

#headline #headcopy {
  margin: 0;
  padding: 0;
}

#headline #headcopy p {
  margin-bottom: 0.5em;
}

#headline #headcopy p.subpage {
  padding: 1em 2% 0;
}

#headline #headcopy p.bottom {
  margin: 0;
  padding: 1em;
  background: var(--color-primary);
}

#headline #headcopy .arrow,
#read .arrow {
  width: 40px;
}

#read {
  width: 94%;
  margin: 1em auto 0;
  text-align: left;
}

#read ul {
  margin: 2em auto;
}

@media screen and (min-width: 768px) {
  #headline {
    background: url(../images/main_bg.jpg) no-repeat center center;
    background-size: cover;
    min-height: 400px;
    padding-top: 55px;
    z-index: 1;
  }

  #headline #headcopy .arrow,
  #read .arrow {
    width: 60px;
  }
}

@media screen and (min-width: 1024px) {
  #headline {
    background: url(../images/main_bg.jpg) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    min-height: 600px;
  }

  #headline #headcopy p {
    text-align: center;
    position: relative;
    margin-bottom: 1em;
  }

  #headline #headcopy p.subpage {
    padding: 1.5em 0 0;
  }

  #read {
    max-width: 1000px;
    margin: var(--spacing-xl) auto 80px;
    text-align: center;
  }

  #read .bnr {
    margin: 70px auto;
  }
}

@media screen and (min-width: 1600px) {
  #headline {
    min-height: 700px;
  }
}

/*----------------------------------------------------------------
コンテンツエリア
----------------------------------------------------------------*/
#contents {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#privacy {
  padding-top: 100px;
}

#main {
  width: 100%;
}

#main #postscript {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

section,
section1 {
  width: 92%;
  margin: 0 auto;
}

#contents .readcopy {
  font-size: 22px;
  padding-bottom: var(--spacing-md);
}

@media screen and (min-width: 1024px) {
  .inner {
    max-width: 780px;
    margin: 0 auto;
  }

  #main {
    margin: 0 auto;
  }

  section {
    max-width: 780px;
    margin: var(--spacing-lg) auto;
    background: var(--color-bg-white);
    padding: var(--spacing-xl) var(--spacing-lg);
    font-size: 1em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
  }

  section1 {
    max-width: 780px;
    margin: var(--spacing-lg) auto;
    background: transparent;
    padding: var(--spacing-xl) var(--spacing-lg);
    font-size: 1em;
  }
}

/*----------------------------------------------------------------
固定要素（電話・LINE・ページトップ）
----------------------------------------------------------------*/
/* モバイル固定コンタクト（スマホのみ表示） */
#fixed_contact {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 74px;
  text-align: center;
  padding: 12px 0 12px;
  background: rgba(248, 246, 243, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#fixed_contact p {
  font-size: 11px;
  margin: 0;
  line-height: 1.2;
}

#fixed_contact .tel {
  font-size: 1.5em;
  color: #ff9f00;
  line-height: 1.2;
  font-weight: bold;
}

#fixed_contact .tel span {
  padding: 0;
  font-size: 1.5em;
}

#fixed_contact .tel a {
  color: #ff9f00;
  text-decoration: none;
  display: block;
}

#fixed_contact .telimg {
  flex: 0 0 72%;
  text-align: center;
  padding: 0 1%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fixed_contact .telimg a {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#fixed_contact .telimg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#fixed_contact .btn {
  flex: 0 0 26%;
  text-align: center;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fixed_contact .btn a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fixed_contact .btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ページトップボタン */
#pagetop {
  position: fixed;
  bottom: 70px;
  right: var(--spacing-sm);
  text-align: right;
  padding: 5px 0;
  z-index: 1000;
  display: none;
  cursor: pointer;
}

#pagetop a img {
  vertical-align: bottom;
  width: 50px;
}

/* PC用固定LINE */
#fixed_line_pc {
  display: none;
}

@media screen and (min-width: 768px) {
  /* タブレット・PCでは固定コンタクトを非表示 */
  #fixed_contact {
    display: none;
  }

  #fixed_line_pc {
    z-index: 100;
    display: block;
    position: fixed;
    bottom: 110px;
    right: 0;
    width: 70px;
    opacity: 0.9;
  }

  #pagetop {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  #pagetop a img {
    width: 70px;
  }
}

@media screen and (min-width: 1024px) {
  #fixed_line_pc {
    bottom: auto;
    top: var(--spacing-xl);
    right: 0;
    width: auto;
    opacity: 1;
  }

  #pagetop {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
  }
}

/*----------------------------------------------------------------
レスポンス（お問い合わせボタン）
----------------------------------------------------------------*/
.response {
  text-align: center;
  margin: var(--spacing-lg) 0;
}

.response p {
  text-align: center;
}

.response .contact-btn {
  width: 100%;
  text-align: center;
  margin: 15px auto 0;
  border-radius: 10px;
  font-weight: bold;
}

.contact-btn a {
  width: 90%;
  margin: 0 auto;
  padding: 5% 1%;
  display: block;
  text-decoration: none;
  color: var(--color-bg-white);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.contact-btn a:hover {
  color: var(--color-bg-white);
}

.contact-btn:hover {
  opacity: 0.8;
}

.response .contact-btn.tel {
  background: #fa9038;
  border-bottom: 6px solid #cb6919;
}

.contact-btn.tel span {
  display: inline-block;
}

.contact-btn.tel .telnum {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 2em;
  color: #ff0;
  background: url(../images/common/icon_tel03.png) no-repeat left center;
  background-size: 36px;
  padding: 0 0 0 40px;
  text-decoration: none;
}

.contact-btn.tel .sm {
  font-size: 0.9em;
  line-height: 1.5;
}

.contact-btn.line {
  background: #00b900;
  border-bottom: 6px solid #009d00;
}

@media screen and (min-width: 1024px) {
  .response {
    font-size: 1.3em;
  }

  .response .contact-btn {
    max-width: 720px;
    margin: var(--spacing-md) auto 0;
  }

  .response .contact-btn .sp {
    display: none;
  }

  .contact-btn a {
    padding: 4% 1%;
  }

  .contact-btn.tel .telnum {
    background-size: 44px;
    padding: 0 0 0 52px;
    font-size: 2.5em;
  }
}

/*----------------------------------------------------------------
フッター
----------------------------------------------------------------*/
footer {
  text-align: center;
  padding: 0;
  margin: var(--spacing-xl) 0 0;
  background: #fff;
  border-top: 8px solid #005da0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

#footerinfo {
  margin-bottom: 0;
  padding-bottom: 0.3em;
}

#footerinfo p {
  margin: 0.2em 0;
}

#footerinfo .mb-md {
  margin-bottom: 0.3em;
}

footer p {
  margin: 0.2em 0;
  color: #444;
  text-align: center;
  padding: 0 2%;
  font-size: 0.75em;
  line-height: 1.4;
}

footer > p:first-of-type {
  padding-top: 0.3em;
}

footer > p:last-of-type {
  padding-bottom: 100px;
}

footer p a {
  color: #444;
  transition: color 0.3s ease;
}

footer p a:hover {
  color: #005da0;
  text-decoration: none;
}

footer .copy {
  margin: 0.3em 0 0;
  font-size: 0.7em;
}

.footertel {
  display: block;
}

@media screen and (min-width: 768px) {
  footer {
    margin: 80px 0 0;
    border-top-width: 10px;
  }

  footer p {
    font-size: 0.8em;
    margin: 0.3em 0;
  }

  footer p:first-of-type {
    padding-top: 1.2em;
  }

  footer > p:last-of-type {
    padding-bottom: 1em;
  }

  footer .copy {
    font-size: 0.75em;
  }

  .footertel {
    display: none;
  }
}

/*----------------------------------------------------------------
YouTubeリンクボタンスタイル
----------------------------------------------------------------*/
.youtube-link-box {
  text-align: center;
  margin: 2em auto;
  padding: 1em;
}

.youtube-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
  border: 2px solid #fff;
}

.youtube-icon {
  font-size: 1.5em;
  line-height: 1;
}

.youtube-text {
  line-height: 1.4;
}

.youtube-btn:hover {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
  color: #fff;
}

@media screen and (min-width: 768px) {
  .youtube-btn {
    font-size: 1.2em;
    padding: 20px 40px;
  }
}

@media screen and (min-width: 1024px) {
  .youtube-btn {
    font-size: 1.3em;
    padding: 22px 48px;
  }
}

/*----------------------------------------------------------------
表スタイル（table01）
----------------------------------------------------------------*/
.table01 {
  width: 100%;
  border-collapse: collapse;
  margin: 2em auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.table01 th {
  background: linear-gradient(135deg, #005da0 0%, #0081d5 100%);
  color: #fff;
  padding: 1em;
  font-weight: bold;
  text-align: left;
  vertical-align: middle;
  font-size: 1em;
  border-bottom: 2px solid #004a7c;
}

.table01 th.br {
  background: linear-gradient(135deg, #fa9038 0%, #ff9f00 100%);
  border-bottom: 2px solid #d97a2e;
}

.table01 td {
  padding: 1.2em 1em;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.table01 tr:last-child td {
  border-bottom: none;
}

.table01 ul.list01 {
  margin: 0;
  padding: 0;
  list-style: none;
}

.table01 ul.list01 li {
  padding: 0.5em 0 0.5em 1.5em;
  position: relative;
  line-height: 1.6;
}

.table01 ul.list01 li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #005da0;
  font-weight: bold;
}

.em7 {
  background: linear-gradient(transparent 60%, #ffff00 60%);
  font-weight: bold;
  color: #dd0000;
  font-size: 1.1em;
  padding: 0 0.2em;
}

@media screen and (min-width: 768px) {
  .table01 th {
    font-size: 1.1em;
    padding: 1.2em;
  }

  .table01 td {
    padding: 1.5em 1.2em;
  }

  .table01 ul.list01 li {
    font-size: 1em;
  }
}

@media screen and (min-width: 1024px) {
  .table01 {
    max-width: 900px;
  }

  .table01 th {
    font-size: 1.15em;
    padding: 1.5em;
  }

  .table01 td {
    padding: 1.8em 1.5em;
  }
}

/*----------------------------------------------------------------
タブスタイル
----------------------------------------------------------------*/
.tabs {
  width: auto;
  margin: auto;
  flex-wrap: wrap;
  display: flex;
}

.tab_class {
  width: calc(100%/2);
  height: 65px;
  background-color: #eee;
  line-height: 20px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  border-bottom: none;
  padding: 5px;
}

.tab_class:hover {
  background-color: #f5f5f5;
}

input[name="tab_name"] {
  display: none;
}

input:checked + .tab_class {
  background-color: #005da0;
  color: #fff;
}

.content_class {
  display: none;
  width: 100%;
  border: 3px solid #118dce;
  padding: 30px 10px;
  background: #fff;
}

input:checked + .tab_class + .content_class {
  display: block;
}

@media screen and (min-width: 768px) {
  .tab_class {
    width: calc(100%/4);
    font-size: 15px;
    height: 70px;
    padding: 8px;
  }

  .content_class {
    padding: 40px 30px;
  }
}

@media screen and (min-width: 1024px) {
  .tab_class {
    width: calc(100%/4);
    font-size: 16px;
    height: 75px;
    padding: 10px;
  }

  .content_class {
    padding: 50px 40px;
  }
}

/*----------------------------------------------------------------
FAQ（よくある質問）スタイル
----------------------------------------------------------------*/
dl.faq {
  margin: 0;
  padding: 0;
  text-align: left;
}

dl.faq dt {
  font-weight: bold;
  font-size: 1.05em;
  margin: 2em 0 0 0;
  padding: 1em 1.2em 1em 4.5em;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(135deg, #005da0 0%, #0081d5 100%);
  border-radius: 8px 8px 0 0;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

dl.faq dt::before {
  content: "Q";
  position: absolute;
  left: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #fff;
  font-size: 1em;
  background: rgba(255,255,255,0.25);
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

dl.faq dd {
  margin: 0 0 1.5em 0;
  padding: 1.2em 1.2em 1.2em 4.5em;
  line-height: 1.8;
  color: #444;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
  position: relative;
  border: 1px solid #e0e0e0;
  border-top: none;
  min-height: 3em;
  display: flex;
  align-items: center;
}

dl.faq dd::before {
  content: "A";
  position: absolute;
  left: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #fff;
  font-size: 1em;
  background: linear-gradient(135deg, #fa9038 0%, #ff9f00 100%);
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(250,144,56,0.4), 0 2px 4px rgba(250,144,56,0.3);
}

@media screen and (min-width: 768px) {
  dl.faq dt {
    font-size: 1.1em;
    padding: 1.2em 1.5em 1.2em 5.5em;
  }

  dl.faq dt::before {
    left: 1em;
    font-size: 1.1em;
    width: 2.8em;
    height: 2.8em;
  }

  dl.faq dd {
    padding: 1.5em 1.5em 1.5em 5.5em;
    min-height: 3.5em;
  }

  dl.faq dd::before {
    left: 1em;
    font-size: 1.1em;
    width: 2.8em;
    height: 2.8em;
  }
}

@media screen and (min-width: 1024px) {
  dl.faq dt {
    font-size: 1.15em;
    padding: 1.3em 2em 1.3em 6em;
    transition: all 0.3s ease;
  }

  dl.faq dt:hover {
    box-shadow: 0 4px 12px rgba(0,93,160,0.2);
    transform: translateY(-2px);
  }

  dl.faq dt::before {
    left: 1.2em;
    font-size: 1.2em;
    width: 3em;
    height: 3em;
  }

  dl.faq dd {
    padding: 1.8em 2em 1.8em 6em;
    line-height: 2;
    min-height: 4em;
  }

  dl.faq dd::before {
    left: 1.2em;
    font-size: 1.2em;
    width: 3em;
    height: 3em;
  }
}

/*----------------------------------------------------------------
ボックススタイル（最後にセクションなど）
----------------------------------------------------------------*/
.box05 {
  margin: 2em 0;
  padding: 1.5em;
  border: 4px solid #82a493;
  border-radius: 16px;
  background: #fff;
  overflow: auto;
}

.box05::after {
  content: "";
  display: block;
  clear: both;
}

/* 画像の配置 */
img.alignright {
  display: block;
  margin: 0 auto 1.5em auto;
  max-width: 100%;
  height: auto;
}

img.shadow {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
}

@media screen and (min-width: 768px) {
  .box05 {
    padding: 2em;
  }

  img.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 250px;
  }
}

@media screen and (min-width: 1024px) {
  .box05 {
    margin: 3em 0;
    padding: 3em;
  }

  img.alignright {
    max-width: 300px;
    margin: 0 0 1.5em 2em;
  }
}

/*----------------------------------------------------------------
営業時間テーブル（eigyotable）
----------------------------------------------------------------*/
table.eigyotable {
  width: 100%;
  text-align: center;
  margin: 2em auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.9em;
}

table.eigyotable th {
  background: #e6e6e6;
  color: #555;
  padding: 0.8em 0.3em;
  font-weight: bold;
  border: 1px solid #d0d0d0;
  font-size: 0.95em;
}

table.eigyotable th:first-child {
  background: #e6e6e6;
}

table.eigyotable td {
  padding: 1em 0.5em;
  background: #fffae7;
  border: 1px solid #e8e8e8;
  color: #333;
}

table.eigyotable td.em3 {
  background: #fff8e1;
  font-weight: bold;
  color: #005da0;
}

@media screen and (min-width: 768px) {
  table.eigyotable {
    font-size: 1em;
  }

  table.eigyotable th {
    padding: 1em 0.5em;
    font-size: 1em;
  }

  table.eigyotable td {
    padding: 1.2em 0.8em;
  }
}

@media screen and (min-width: 1024px) {
  table.eigyotable {
    max-width: 900px;
  }

  table.eigyotable th {
    padding: 1.2em 1em;
    font-size: 1.05em;
  }

  table.eigyotable td {
    padding: 1.5em 1em;
  }
}
