@charset "utf-8";

/* ページ内リンクの移動を滑らかに */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  @media screen and (max-width: 767px) {
    scroll-padding-top: 56px;
  }
}
/* ------------------
 グローバル変数
------------------ */
:root {
  /* 色 */
  --main-color: #124496;
  --sub-color: #2D72E6;
  --var-color: #000;

  /* 文字サイズ */
  --font-40: 4rem;
  --font-32: 3.2rem;
  --font-24: 2.4rem;
  --font-18: 1.8rem;
  --basic-txt: 1.6rem;

  /* 行間 */
  --letter-20: 2px;
  --letter-16: 1.6px;
  --letter-12: 1.2px;

  /* 余白 */
  --space-65: 65px;
  --space-45: 45px;
  --space-30: 30px;
}
@media screen and (max-width: 767px) {
  :root {
    /* 文字サイズ */
    --font-40: 2.4rem;
    --font-32: 2.2rem;
    --font-24: 1.8rem;
    --font-18: 1.6rem;
    --basic-txt: 1.5rem;

    /* 行間 */
    --letter-20: 1px;
    --letter-16: 0.8px;
    --letter-12: 0.6px;

    /* 余白 */
    --space-65: 40px;
    --space-45: 30px;
    --space-30: 20px;
  }
}

body {
  position: relative;
  font-family: 'Noto Sans JP','Helvetica Neue',Arial,'Hiragino Kaku Gothic ProN','Hiragino Sans',Meiryo,sans-serif;
  font-size: var(--basic-txt);
  line-height: 1.8;
  padding-top: 80px;
  @media screen and (max-width: 1279px) {
    width: 1280px;
  }
  @media screen and (max-width: 767px) {
    width: 100%;
    padding-top: 56px;
  }
}

/* ------------------
 共通パーツ
------------------ */
.sp_block {display: none;}

section {position: relative;}
:where(a) {
  color: var(--var-color);
  &:hover {
    opacity: 0.8;
  }
}

/* レイアウト */
.cmn_container {
  position: relative;
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-65) 0;
}

/* ------------------
 テキスト
------------------ */
.paragraph {
  margin-bottom: var(--space-45);
}
.sentence:not(:last-child) {
  margin-bottom: var(--space-30);
}
.pb_1 {
  padding-bottom: 1em;
}
.center_txt {
  text-align: center;
  img {
    margin: auto;
  }
}
.right_txt {
  text-align: right;
  img {
    margin: auto;
    margin-right: 0;
  }
}
.bold_txt {
  font-weight: bold;
}
.indent_txt {
  padding-left: 1em;
  text-indent: -1em;
}
.blue_txt {color: var(--main-color);}

/* 見出し */
.cmn_heading {
  font-size: var(--font-40);
  letter-spacing: var(--letter-20);
  color: #fff;
  &.blue_color {color: var(--main-color);}
  &.round {
    font-size: var(--font-32);
    letter-spacing: var(--letter-16);
    border-radius: 100px;
    background: var(--main-color);
    width: 100%;
    padding: 0.5em;
    text-align: center;
    margin-bottom: var(--space-30);
  }
}

/* ------------------
 header
------------------ */
.header {
  position: fixed;
  top: 0;
  background: #fff;
	width: 100%;
	margin: auto;
	padding: 20px 5%;
	display: flex;
  justify-content: space-between;
	align-items: center;
  z-index: 999;
  @media screen and (max-width: 767px) {
    height: 56px;
    padding: 15px;
    padding-right: 64px;
  }
}
.hd_logo {
  display: flex;
  align-items: center;
  gap: 20px;
  @media screen and (max-width: 767px) {
    gap: 8px;
    img[src="common/img/hd_logo.svg"] {
      width: 100%;
      max-width: 200px;
    }
  }
}
.hd_logo--label {
  border-radius: 200px;
  background: var(--main-color);
  color: #fff;
  font-weight: bold;
  font-size: var(--basic-txt);
  padding: 0 1em;
  text-align: center;
  @media screen and (max-width: 767px) {
    min-width: 80px;
    font-size: min(1.2rem, 4vw);
    padding: 4px 10px;
    line-height: 1.5;
  }
}
.pc_nav {
	display: flex;
	align-items: center;
	gap: 20px;
}
.pc_nav--item {
  a {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-weight: bold;
    font-size: var(--basic-txt);
  }
  a img {
    position: relative;
    top: 2px;
  }
}
/* スマホメニュー非表示 */
.spNav_btn,.spNav_panel {display: none;}
@media screen and (max-width: 767px) {
  /* ボタン */
  .spNav_btn {
    display: block;position: absolute; width: 56px;height: 56px;background: var(--main-color);top:0;right: 0;transition: all 0.5s;z-index: 100;
    span {position: absolute;display: block;height: 2px;background: #fff;margin: auto;}
    
    /* 閉じた状態 */
    &[aria-pressed="false"] span {width: 30px;transition: all 0.5s;}
    &[aria-pressed="false"] span:nth-child(1) {top: 18px;left: 0;right: 0;}
    &[aria-pressed="false"] span:nth-child(2) {top: 50%;left: 0;right: 0; transform: translateY(-50%);}
    &[aria-pressed="false"] span:nth-child(3) {bottom: 18px;left: 0;right: 0;}
    
    /* 開いた状態 */
    &[aria-pressed="true"] span {width: 30px;transition: all 0.5s;}
    &[aria-pressed="true"] span:nth-child(1) {top: 50%;transform: translateY(-1.5px) rotate(45deg);left: 13px;}
    &[aria-pressed="true"] span:nth-child(2) {display: none;}
    &[aria-pressed="true"] span:nth-child(3) {bottom: 50%;transform: translateY(1.5px) rotate(-45deg);left: 13px;}
  }

  /* メニューパネル */
  .spNav_panel {
    display: block;
    height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    right: 0;
    transition: all 0.5s;
    background: var(--main-color);
    box-shadow: -8px 0px 8px -1px rgba(0, 0, 0, 0.2);
    overflow: auto;
    z-index: 99;
    
    /* パネルが閉じている状態 */
    &[aria-hidden="true"] {
      visibility: hidden;
      pointer-events: none;
      transform: translateX(100%);
    }

    /* パネルが開いている状態 */
    &[aria-hidden="false"] {
      visibility: visible;
      transform: translateX(0);
    }
  }

  /* メニューパネル内の項目 */
  .spNav_list {
    width: 100%;
    padding: 56px 0 0;
    font-size: 1.5rem;
  }
  .spNav_list--item {
    border-bottom: 1px solid #fff;
    a {
      display: block;
      padding: 12px 20px;
      color: #fff;
    }
  }
  /* bodyをタッチ不可に */
  #onbody {position: absolute;height: 100%;width: 100%; top: 0;left: 0;background: rgba(0, 0, 0, 0.6);z-index: 98;overflow: hidden;pointer-events: none;}
  body:has(#onbody[aria-hidden="true"]) {height: 100%; overflow: hidden;}
}


/* お問い合わせ箇所 */
.cont_inner {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 128px 0;
  @media screen and (max-width: 767px) {
    padding: 72px 0;
  }
}
p:has(.cont_link) {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.cont_link {
  background: var(--sub-color);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em;
  color: #fff;
  font-weight: bold;
  font-size: var(--font-32);
  letter-spacing: var(--letter-16);
  @media screen and (max-width: 767px) {
    padding-inline: 1em;
    font-size: min(2.2rem, 4.6vw);
    img[src="common/img/cont_icon.webp"] {width: 24px;}
    img[src="common/img/cont_arrow.webp"] {width: 20px;}
  }
}
.deco_fig {
  width: 100%;
  height: 400px;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  @media screen and (max-width: 767px) {
    height: 280px;
  }
}
/* ------------------
footer
------------------ */
.ft_inner {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-45) 0 var(--space-65);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  @media screen and (max-width: 767px) {
    flex-direction: column;
    gap: 1em;
  }
}
.ft_address address {
  margin-bottom: 1em;
}
.ft_link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 240px;
  border: 2px solid var(--main-color);
  border-radius: 30px;
  color: var(--main-color);
  text-align: center;
  font-weight: bold;
  padding: 0.5em 1em;
}
@media screen and (max-width: 767px) {
  p:has(.ft_link) {text-align: center;}
}
.copyright {
  width: 100%;
  padding: 0.5em 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--main-color);
  color: #fff;
  letter-spacing: 0.04em;
}

/* ------------------
Backtop
------------------ */
#backtop {
  position: fixed;
  display: block;
  width: 50px;
  height: 50px;
  right: 3%;
  bottom: 50px;
  border-radius: 50%;
  background: var(--var-color);
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
  z-index: -10;
  &::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateY(-25%) rotate(-45deg);
    top: 50%;
    left: 0;
    right: 0;
    margin: auto;
  }
  &.active {
    opacity: 1;
    visibility: visible;
    z-index: 99;
  }
}


@media screen and (min-width: 768px) {
/* PCの場合はtelリンクを無効 */
  a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
  }
}

/* ------------------
 レスポンシブ対応
------------------ */
@media screen and (max-width: 767px) {
	/* スマホのみ表示する要素を表示、PCのみ表示する要素を非表示 */
  .sp_block {display: block;}
  .pc_block, .pc_nav {display: none;}
}

/* 印刷用設定 */
@media print {
  body {
    width:1280px;
    zoom: 0.68;
    -webkit-print-color-adjust: exact;
  }
  .header {
    position: absolute;
  }
}
@page {
  size: A4;
  margin: 5px;
}
