/*common.css 共通部分のCSS設定*/

/* ==========================================================================
  Page Top Button / ページトップへ戻るボタン
  Block: .pagetop
  ========================================================================== */
.pagetop {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 900;
  width: 50px;
  height: 50px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagetop img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 769px) {
  .pagetop {
    width: 60px;
    height: 60px;
  }
}

/* ==========================================================================
  Header / ヘッダー
  Block: .header
  ========================================================================== */

.header {
  width: 100%;
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

/* --- Logo --- */
.header__logo img {
  width: auto;
  height: 28px;
  display: block;
}

/* --- Group (Nav + Button + Hamburger) --- */
.header__group {
  display: flex;
  align-items: center;
}

/* --- Contact Button --- */
.header__button {
  display: inline-block;
  padding: 8px 10px;
  background-color: var(--white);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: 19px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.3s, color 0.3s;
}

/* --- Hamburger Button --- */
.header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--main-color);
  border: none;
  border-radius: 50%;
  margin-left: 15px;
  cursor: pointer;
  position: relative;
  z-index: 3000;
}

.header__hamburger span,
.header__hamburger span::before,
.header__hamburger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  transition: all 0.3s;
}

.header__hamburger span::before {
  top: -6px;
}

.header__hamburger span::after {
  bottom: -6px;
}

/* ==========================================================================
  SP Menu (1023px以下のみ)
  ========================================================================== */
@media (max-width: 1023px) {

  /* PC用ナビを隠す */
  .header__nav {
    display: none;
  }

  .sp-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh; /* 旧ブラウザ用 */
    height: 100dvh; /* 常に画面内に収める */
    background: url(../img/common/header_background_sp.jpg) no-repeat center / cover;
    border-radius: 20px 0 0 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all .5s cubic-bezier(.4, .4, 0, 1);
  }

  .sp-menu.is-open {
    right: 0;
    opacity: 1;
    visibility: visible;
    transition: all .4s cubic-bezier(.4, .4, 0, 1);
  }

  .sp-menu__inner {
    height: 100%;
    padding: 10px 40px 30px;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  /* 閉じるボタン */
  .sp-menu__close {
    position: absolute;
    right: 10px;
    width: 38px;
    height: 38px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
  }

  .sp-menu__close span::before,
  .sp-menu__close span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--main-color);
  }

  .sp-menu__close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .sp-menu__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* 画像・パーツ */
  .sp-menu__image {
    text-align: center;
    margin: 80px 0 30px; 
  }

  .sp-menu__image img {
    width: 85%;
    height: auto;
  }

  .sp-menu__list {
    margin-bottom: 50px;
    list-style: none;
    padding: 0;
  }

  .sp-menu__list li {
    border-bottom: 1px solid rgba(48, 82, 165, 0.3);
  }

  .sp-menu__list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: var(--main-color);
  }

  .sp-menu__list a::after {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none' stroke='%233052A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l8 6-8 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
  }

  .sp-menu__contact {
    text-align: center;
    margin-bottom: 10px;
  }

  .sp-menu__tel,
  .sp-menu__fax {
    display: inline-block;
    font-size: 20px;
    color: var(--main-color);
    margin-bottom: 20px;
    width: auto;
    letter-spacing: 2.4px;
    border-bottom: 1px var(--main-color) solid;
  }

  .sp-menu__tel span,
  .sp-menu__fax span {
    font-size: 14px;
    margin-right: 10px;
  }

  .sp-menu__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--main-color);
    color: #fff;
    padding: 14px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
  }

  .sp-menu__btn img {
    width: 20px;
  }

  .sp-menu__sns {
    text-align: center;
    margin-top: 40px;
  }

  .sp-menu__sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
  }

  .sp-menu__sns img {
    width: 20px;
  }

}

/* ==========================================================================
  Desktop Design (1024px以上)
  ========================================================================== */
@media (min-width: 1024px) {
  .header__inner {
    height: 30px;
    padding: 16px 30px;
  }

  .header__nav {
    display: block; /* デスクトップでは確実に表示 */
    margin-right: 30px;
  }

  .header__list {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
  }

  .header__link {
    text-decoration: none;
    color: var(--main-color);
    font-size: 15px;
    transition: color 0.3s;
    letter-spacing: 1.8px;
  }

  .header__link:hover {
    color: var(--main-color);
  }

  .header__button:hover {
    background-color: var(--main-color);
    color: var(--white);
    opacity: 1;
  }

  .header__hamburger {
    display: none;
  }

  /* SPメニューはPCで絶対に出さない */
  .sp-menu {
    display: none;
  }
}

/* ==========================================================================
  Media Queries (Desktop / 1024px以上)
  ========================================================================== */
@media (min-width: 1024px) {
  .header__inner {
    height: 30px;
    padding: 16px 30px;
  }

  /* ナビゲーションを表示 */
  .header__nav {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    opacity: 1;
    visibility: visible;
    transition: none;
    display: block;
    margin-right: 30px;
  }

  .header__list {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
  }

  .header__link {
    text-decoration: none;
    color: var(--main-color);
    font-size: 15px;
    transition: color 0.3s;
    letter-spacing: 1.8px;
  }

  .header__link:hover {
    color: var(--main-color);
  }

  .header__button:hover {
    background-color: var(--main-color);
    color: var(--white);
    opacity: 1;
  }

  .header__hamburger {
    display: none;
  }
}

/* ==========================================================================
  共通ボタン
  Block: .button
  ========================================================================== */

.button__wrapper {
  text-align: center;

}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  height: 50px;
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  transition: opacity 0.3s;
  background-image: url(../img/common/button.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.4px;
  padding: 0 20px;
  box-sizing: border-box;
}

.button:hover,
a:hover {
  opacity: 0.7;
}

/* アイコンがある場合 */
.button__icon {
  width: 23px;
  height: 20px;
  margin-right: 10px;
}

@media (min-width: 769px) {
  .button {
    font-size: 18px;
  }
}

/* ==========================================================================
  title
  ========================================================================== */
.section-header,
.page-header {
  margin-bottom: 30px;
  text-align: center;
}

.page-header {
  margin-bottom: 0;
}

.section-header__title,
.page-header__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--main-color);
  letter-spacing: 3.84px;

}

.section-header__subtitle,
.page-header__subtitle {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--main-color);
  letter-spacing: 2.4px;
}

.section__lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 1.76px;
  color: var(--text-color);
  margin-bottom: 30px;
}

@media (min-width: 769px) {
  .section-header {
    margin-bottom: 40px;
  }

  .section-header__title,
  .page-header__title {
    font-size: 32px;
  }

  .section-header__subtitle,
  .page-header__subtitle {
    font-size: 20px;
  }
}

.heading-line {
  position: relative;
  display: block;
  z-index: 1;
}

.heading-line {
  display: inline;
  /* 背景画像としてラインを指定 */
  background-image: url(../img/common/line_01.png);
  background-repeat: no-repeat;
  /* 位置を文字の下側に合わせる */
  background-position: left bottom 2px; 
  /* サイズ調整：横幅100%、高さは適宜（例: 10px） */
  background-size: 100% 10px;

  /* ★最重要：改行されても各行の端まで背景を描画するプロパティ */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;

  /* 文字と線の重なり具合をパディングで調整 */
  padding-bottom: 4px;
}

.heading-line.blue {
  background-image: url(../img/common/line_02.png);
}

.list-disc {
  position: relative;
}

.list-disc::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  background-color: var(--text-color);
  border-radius: 50%;
}

/* ==========================================================================
  Contact / お問い合わせ
  Block: .contact
   ========================================================================== */

.contact {
  background-color: #fff;
  padding: 60px 0;
  text-align: center;
}

.contact__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Info (TEL/FAX) --- */
.contact__info {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
}

.contact__label {
  display: block;
  font-size: 18px;
  color: var(--main-color);
  margin-bottom: 5px;
  letter-spacing: 0.1em;
}

.contact__number {
  display: inline-block;
  padding: 0 10px;
  font-size: 35px;
  color: var(--text-color) !important;
  text-decoration: none;
  letter-spacing: 4.2px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.contact__number::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url(../img/common/line_02.png);
  background-repeat: no-repeat;
  background-size: 120% 120%;
  background-position: right;
  z-index: -1;
}

.contact__number a {
  color: var(--text-color) !important;
}

@media (min-width: 769px) {
  .contact {
    padding: 80px 0 90px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header__title {
    font-size: 32px;
  }

  .contact__info {
    margin-bottom: 40px;
  }

  .contact__item {
    display: flex;
    align-items: flex-end;
  }

  .contact__label {
    margin-bottom: 8px;
    margin-right: 20px;
    font-size: 18px;
  }
}


/* ==========================================================================
  Footer / フッター
  Block: .footer
   ========================================================================== */

.footer {
  width: 100%;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: 1.8px;
}

/* --- 背景画像があるメインエリア --- */
.footer__main {
  background-image: url(../img/common/bg_footer_sp.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  background-color: #FFFEFA;
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Navigation (SP) --- */
.footer__nav {
  margin-bottom: 30px;
}
.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer__nav-link {
  text-decoration: none;
  color: var(--main-color);
}

/* --- Info Area --- */
.footer__logo {
  margin-bottom: 20px;
  text-align: center;
}
.footer__logo img {
  width: 100px;
  height: auto;
}
.footer__address,
.footer__contact {
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer__contact-group {
  display: flex;
  gap: 20px;
  margin-bottom: 5px;
}
.footer__contact-item {
  display: block;
  margin-bottom: 5px;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
}
.footer__contact-group a {
  color: var(--text-color);
  text-decoration: none;
}

/* --- SNS --- */
.footer__sns-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}
.footer__sns-link img {
  width: 30px;
  margin-right: 8px;
}
.footer__sns {
  margin-top: 20px;
  text-align: center;
}

/* --- 独立したコピーライトエリア (背景画像の外) --- */
.footer__copyright {
  background-color: #FFFEFA;
  padding: 15px 0;
  text-align: center;
}
.footer__copyright small {
  font-size: 12px;
  font-weight: 400;
  color: var(--main-color);
}

@media (max-width: 400px) {
  .footer__inner {
    padding: 0 20px;
  }
}

@media (max-width: 350px) {
  .footer__contact-group {
    flex-wrap: wrap;
    gap: 0;
  }
}

@media (min-width: 769px) {
  .footer__inner {
    text-align: center;
  }
  .footer__main {
    background-image: url(../img/common/bg_footer.png);
  }

  .footer__nav-list {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }

  .footer__logo img {
    width: 120px;
  }

  .footer__address,
  .footer__contact {
    font-size: 15px;
  }

  .footer__contact {
    display: flex;
    justify-content: center;
  }

  .footer__contact-group {
    justify-content: center;
    gap: 0;
  }

  .footer__contact-item {
    display: inline-block;
    margin: 0 15px;
  }

  .footer__copyright {
    padding: 20px 0;
  }
}