/* ====================================================
   styles.css  —  Custom Design for FP Static Site
   Author: [Your Name]
   Description: Basic styling + responsive tweaks
   ==================================================== */

/* --------- Base --------- */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --gray-bg: #f1f1f1;
    --border-radius: 0.5rem;
}

* {
    box-sizing: border-box;
    /*outline: 1px solid red;*/
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    background-position:  left top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-attachment: fixed;
    height: auto;
}

#top-content {
    background-image: url(../img/top/top_background.png);
}

#lower-content {
    background-image: url(../img/common/background.png);
}

h1, h2, h3 {
    font-weight: 600;
}

.site-header {
    width: auto;
    height: 150px;
    background-image: url("../img/common/menu_background.png");
    background-size: cover;
}





/* スマホ 
@media (max-width: 575.98px) {
  .site-header .logo img {
    max-width: 100px;
  }
}
*/






/* --------- Header --------- */
header h1 {
    font-size: 1.4rem;
}

.sp-nav {
  display: none; /* PCメニュー非表示 */
}

.menu-toggle{
  display: none; /* PCメニュー非表示 */
}

/* li のスタイル調整 */
.site-header .header-menu {
    display: flex;        /* 横並び */
    align-items: center;  /* 上下中央揃え */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* li 内のリンクも上下中央に */
.site-header .header-menu li a {
    display: flex;
    align-items: center;
    height: 100%;       /* 必要に応じて */
    text-decoration: none;
    padding: 0.5rem 1rem;
}
header nav a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

header nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

header nav li {
    list-style: none;
}

.header-menu a {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.header-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 2px;
    background-color: #87CEEB;
    transition: transform 0.3s ease;
}

.header-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.header-menu .right-menu-start {
    margin-left: 2rem;
    margin-right: 0;
}

.header-menu .last-menu {
    margin-left: 0;
    margin-right: 0;
}

/* ご予約・お問い合わせ 共通デザイン */
.header-menu .menu-reserve a,
.header-menu .menu-contact a {
    display: flex;
    align-items: center;
    gap: 8px;          /* アイコンとの間隔 */
    padding: 8px 20px;
    border: 2px solid #444;
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
    font-size: smaller;
    text-decoration: none !important;
}
.header-menu li.menu-reserve > a,
.header-menu li.menu-reserve > a:hover,
.header-menu li.menu-contact > a,
.header-menu li.menu-contact > a:hover {
    text-decoration: none !important;
}

/* 個別アイコン */
.header-menu .menu-reserve a::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url('../img/common/icon_reserve.png') no-repeat center;
    background-size: contain;
}

.header-menu .menu-contact a::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url('../img/common/icon_contact') no-repeat center;
    background-size: contain;
}

#toTopBtn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* お問い合わせページのみ位置を変える */
body:has(#contact) #toTopBtn {
  bottom: 80px;
}
body:has(#contact) #floating-video {
  bottom: 176px;
}
#floating-video { z-index: 9998; }
#toTopBtn       { z-index: 9999; }
.grecaptcha-badge { z-index: 999; }
@media (max-width: 768px) {

}

#toTopBtn.show {
    opacity: 1;
    display: show;
}

#toTopBtnImg {
    width: 30px;
    height: 100%;
    cursor: pointer;
}

/* --------- Main Visual --------- */
.main-video {
    padding: 40px 20px;
    text-align: center;
}

.main-video h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
    margin-bottom: 0.5rem;
}

.main-video p {
    font-size: 1.1rem;
    color: var(--secondary);
}

/* --------- Sections --------- */
.section {
    padding: 60px 0;
}

.about {
    background: var(--gray-bg);
}
/* --------- Links & Buttons --------- */
a {
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* -------------お客様の声--------------*/

#client .card-container {
  padding: 20px;
}


.mb-6 {
  margin-bottom: 5rem !important;
}


/* --- お客様の声（Voice）カード 外枠をサービス内容に合わせる --- */
#client .client-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 24px;
  max-width: 330px;
  width: 330px;
  text-align: center;
  box-shadow: 0 0 4px 8px rgb(179, 207, 255),
              inset 0 0 3px 3px #B3E5FC; /* やさしい光の枠 */
}

/* ===== お客様の声（相談カード） ===== */
.client-card {
  position: relative;
  border-radius: 0.75rem;
  background-color: #fff;
  max-width: 300px;
  height: 400px;
  z-index: 0; /* 擬似要素より前に出す */
  overflow: hidden;
  padding: 20px 15px 40px; /* 下に余白を確保 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}



/* 外側に光 */
.client-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -15px;
  right: -15px;
  bottom: -10px;
  border-radius: 1rem;
  box-shadow: 0 0 20px 25px #DBF1FD;
  z-index: -1;
}

.client-photo {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
}

.client-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #EDF4FF;
  border-radius: 50%;
}

.client-comment {
  margin-top: 150px; /* 写真の高さ分をずらす */
  text-align: center;
}

.client-card .card-days {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.8rem;
  color: #888;
}


/* --- お客様の声（Voice）カード 外枠をサービス内容に合わせる --- */
#client .jisseki-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 24px;
  max-width: 330px;
  text-align: center;
  box-shadow: 0 0 4px 8px rgb(255, 190, 190),
              inset 0 0 3px 3px rgb(249, 202, 215); /* やさしい光の枠 */
}

/* Swiperのレイアウト制御 */
/*
.container .static-layout .swiper-wrapper {
  max-width: 100%;
}
.static-layout .swiper-slide {
  width: auto; 
}
*/

/* static-layout = 3件以下なら Swiper を完全停止 */
.static-layout .swiper-wrapper {
  transform: none !important; /* Swiperのtransformを無効化 */
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;

  display: flex !important;
  flex-direction: column !important;  /* ★縦並び */
  align-items: center !important;     /* ★中央寄せ */  
}

.static-layout .swiper-slide {
  width: 100%;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .static-layout .swiper-wrapper {
    flex-direction: row !important;   /* 横並び */
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
  }

  .static-layout .swiper-slide {
    width: calc(50% - 20px);
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .static-layout .swiper-slide {
    width: calc(33.333% - 20px);
  }
}

/* 矢印・ドットを消す */
.static-layout .swiper-button-next,
.static-layout .swiper-button-prev,
.static-layout .swiper-pagination {
  display: none !important;
}










/* ===== 実績カード（赤系の光） ===== */
.jisseki-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 24px;
  max-width: 330px;
  height: 150px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  z-index: 0; /* 擬似要素より前に出す */
}

/* 外側に赤系の光を出す */
.jisseki-card::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 1rem;
  box-shadow: 0 0 20px 25px #FFB3A3; /* 柔らかい赤系の光 */
  z-index: -1;
}


/* ===== Swiper用の共通調整 ===== */
#client .card-container {
  padding: 20px 0;
}

#client .swiper-slide {
  display: flex;
  justify-content: center; /* カードを中央寄せ */
}

.container .swiper-container {
  width: 100%;
  margin: 0 auto;
  padding: 35px 0;
}


.container .swiper-slide {
  width: auto;
  max-width: 100%;
}
.swiper-button-next, .swiper-button-prev { color: #333; }
.swiper-pagination-bullet { background: #87CEEB; }


/* ===== お知らせ　======= */
#news .news-card {
 position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 24px;
  max-width: 330px;
  height: 300px;
  text-align: center;
  z-index: 0; /* 擬似要素より前に出す */
  overflow: hidden;
  box-shadow: 0 0 4px 8px rgb(179, 207, 255),
              inset 0 0 3px 3px #B3E5FC; /* やさしい光の枠 */
  list-style: none;
}
#news .news-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -15px;
  right: -15px;
  bottom: -10px;
  border-radius: 1rem;
  box-shadow: 0 0 20px 25px #DBF1FD;
  z-index: -1;
}

#news .news-list {
  display: grid;
  gap: 20px;
  padding-left: 0; /* ul のデフォルト余白を削除 */
  grid-template-columns: repeat(3, 1fr); /* 3列 */
}


#news .myphoto {
  text-align: center;
  margin-left: 50px;
  /* height:100% は使わない */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* ←さらに確実に下揃え */
}

#news .myphoto img {
  max-width: 100%; 
  width: 85%!important;
  display: block;
  margin: 0 auto 10px auto;
}
#news .news-wrap {
  display: flex;
  flex-direction: column;
}

#news .news-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #007bff;
  border-radius: 6px;
  text-decoration: none;
  /*color: #007bff;*/
  font-size: 0.9rem;
  transition: 0.2s;
  border: 1px solid #666;
  color: #007bff;
}

#news .news-btn:hover {
  background-color: rgb(179, 207, 255);
  color: #000;
}

#news div.row {
  padding-top: 35px;
}

@media (min-width: 768px) {
  /* PCでは横並び */
  #news .col {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  #news .news_img {
    margin-top: auto;
  }  
}

@media (max-width: 768px) {
  /* スマホでは縦並び */
  #news .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* スマホでは画像を消す */
  #news .news_img img {
    display: none;
  }

  /* news-area と news_img の余白調整 */
  #news .news_img {
    margin: 0;
    width: 100%;
    display: block;
    /*    
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    */
  }

  /* news-card を縦並びに */
  #news .news-area {
    margin-left: auto;
    margin-right: auto;
  }
  #news .news-area ul{
    display: block;
    width: 100%;
    padding-left: 0;    
  }
  #news .news-card {
    display: block;
    width: 100%;
    height: 60%;
    margin-bottom: 2rem;
  }

  /* 各 li が詰まらないように余白調整（任意） */
  #news .news-card li p{
    line-height: 1.2rem;
  }  
}


/* -------------border--------------*/
.color-line img {
    height: 1em;
    width: 100%;
    border: none;
}

.short-line img {
    height: 1em;
    width: 55%;
}

/* --------- Footer --------- */
footer {
    display: flex;
    flex-direction: column;
    height: 850px;/*790px;/*557px;*/
    background-image: url('./../img/common/footer.png');
    background-size: auto;
    background-repeat: repeat-x;
    background-position-x: -100px ;
    background-position-y: bottom;
    position: relative;
}

#contact-row {
    height: auto;
    background-color: #dbf1fdcc;
    border-radius: 1px;
    border-color: #000;
    margin-bottom: 3rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}


#contact-row .yoyaku-btn {
    width: 100%;
    height: 4.5rem;
    line-height: 4.5rem;   /* 高さと同じ値を指定 */
    border-style: solid;
    border-color: #000;
    border-radius: 10px 10px 10px 10px;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
}

#contact-row .yoyaku-btn:hover,
.header-menu .menu-reserve a:hover,
.header-menu .menu-contact a:hover {
    background-color: #DBF1FD;
    text-decoration: none;
}


@media (max-width: 1350px) and (min-width: 1025px){

  .pc-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pc-nav .header-menu {
    gap: clamp(4px, 1vw, 20px) !important;
    min-width: 0;
  }

  .pc-nav .header-menu a {
    font-size: clamp(14px, 1.2vw, 18px);
    white-space: nowrap;
  }

  .site-header .logo img {
    max-width: clamp(140px, 18vw, 200px);
    height: auto;
  }

  .pc-nav .header-menu li a{
    padding-inline: clamp(6px, 1.1vw, 12px) !important;
  }
}





#contact-row .yoyaku-btn img {
    width: 10%;
    min-width: 45px;
}
#contact-row .equal-text {
    margin-left: 0.5rem;
}

@media (max-width: 992px) and (min-width: 576px) {
    #contact-row .yoyaku-btn img {
        width: 7%;
    }
    #contact-row .equal-text {
        font-size: 1rem;
    }
}



.footer a {
    color: var(--secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer nav ul li a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer nav ul li span{
    display: block;
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.9rem;
}
.footer nav ul li.sub a{
    padding-left: 8px ;
}


.footer .container {
    /*
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    */
    height: 100%; /* 親に合わせる */
}

/* J-FLEC部分を表示 */
.jflec-area {
  display: block !important;
}
.jflec {
  display: block !important;
}

/* ▼ スマホ時（768px未満） */
@media (max-width: 767px) {
  #contact-row {
      margin-bottom: 1rem;
  }

  /* 行全体を縦並びに */
  #logo-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 左のロゴを表示（事務所ロゴなど） */
  .logo {
    display: block !important;
  }

  .jflec-area {
    display: block !important;
    height: auto;
  }

  .jflec {
    display: block !important;
    /*margin-top: 1rem;*/
    text-align: center;
  }

  .jflec img {
    max-width: 120px;
    height: auto;
  }

  .jflec p {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    margin-left: 1.5rem;
  }

  .pc-footer {
    display: none !important;
  }

}
/* iPad縦 */
@media (min-width: 768px) and (max-width: 991px) {
  .footer nav ul li a {
    padding: 4px 0;
    font-size: 0.7rem;
  }

  .footer nav ul li span{
      padding: 4px 0;
      font-size: 0.7rem;
  }
  .footer nav ul li.sub a{
      padding-left: 0px ;
  }
  /* 左のロゴを表示（事務所ロゴなど） */
  .logo p {
    font-size: 0.7rem;
  }

  .jflec p {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    margin-left: 1.5rem;
  }
}

/* iPad横〜小さめPC */
@media (min-width: 992px) and (max-width: 1024px) {}





/* --------- Responsive Containers --------- */
@media (max-width: 1401px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 100%;
    }
}

/* --------- Responsive Tweaks --------- */
@media (max-width: 768px) {
    header nav a {
        margin-right: 1rem !important;
    }

    .main-visual {
        padding: 60px 15px;
    }

    .section {
        padding: 40px 0;
    }
}

/* */
@media (max-width: 1310px) {
}
/* スマホ表示 */
/*@media (max-width: 768px) {*/
@media (max-width: 1024px) {
  #top-content{
    height: 100%;
  }
  .pc-nav {
    display: none; /* PCメニュー非表示 */
  }

  .menu-toggle {
    margin-left: auto;
    display: inline-block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    z-index: 1001;
    position: relative;
  }

  .menu-toggle span {
    display: block;
    width: 40px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    border-radius: 2px;
    transition: 0.4s;
  }

  /* メニュー開いた時にクラス付与 */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .sp-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #9FD9F4;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .sp-nav.active {
    display: flex;
  }

  .sp-nav .sp-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .sp-nav .sp-menu li {
    margin: 15px 0;
  }

  .sp-nav .sp-menu li a {
    font-size: 24px;
    text-decoration: none;
    color: #fff; /* 白文字で背景に映えるように */
  }

  .menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    color: #fff; /* 閉じるボタンも白 */
    cursor: pointer;
  }
  .info_sp{
    width: 100%!important;
  }
}

/* スマホ表示 */
@media (max-width: 399px) {
  .menu-toggle {
    padding: 10px;
  }

  .menu-toggle span {
    width: 20px;
  }
}
