@charset "UTF-8";
@import url("grid.css");

:root {
  /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
  --base-color: #000;
  --link-color: #666;
  --linkhover-color: #999;
  --back-color: #f7f7f7;
  --border-color: #ccc;
  --white-color: #fff;
}

/* スマホでの横スクロール防止 */
html {
  overflow-x: hidden;
  scroll-behavior: smooth; /* スムーススクロールを追加 */
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  /*高さ自動*/
}

a {
  display: block;
  color: var(--link-color);
  text-decoration-line: none;
}

a:hover {
  color: var(--linkhover-color);
}

/* 固定ヘッダー用のbody設定 */
body {
  padding-top: 140px;
  /* ヘッダーの高さに合わせて調整 */
}

/* ヘッダータグ自体の設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 軽い影を追加してヘッダーを強調 */
}

/*ヘッダー
-------------------------------------*/
.header {
  display: flex;
  flex-direction: row;
  padding: 2rem 0 0 0;
  justify-content: center;
}

.header-box {
  margin-left: auto;
  margin-top: 10px;
}

/* デスクトップ版でのロゴとボタンサイズ */
.logo-img {
  width: 400px; /* PCでは大きく表示 */
  height: auto;
}

.contact-button {
  padding: 1.5rem 2rem;
  border: 2px solid var(--base-color);
  font-size: 1.2rem;
  font-weight: bold;
}

/* 大画面PC対応 (1025px以上)
----------------------------------------------------------------*/
@media screen and (min-width: 1025px) {
  .logo-img {
    width: 700px; /* 大画面では更に大きく */
    height: auto;
  }

  .contact-button {
    padding: 2rem 3rem;
    font-size: 1.4rem;
    font-weight: bold;
  }
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  list-style: none;
  margin: 1rem 0 0 0;
}

nav li {
  flex: 1 0 auto;
}

nav li a {
  text-decoration: none;
  text-align: center;
  width: 100%;
}

nav a:hover {
  background-color: var(--back-color);
}

nav a {
  padding: 0.5rem;
}


/*メイン画像
-------------------------------------*/
.mainimg {
  margin-top: 70px; /* 固定ヘッダーの高さ分だけ下げる */
}
.mainimg img {
  width: 100vw;
}

/*アニメーション追加*/
.fade-zoom {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeZoomIn 2.0s ease-out forwards;
}

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*メインコンテンツ
-------------------------------------*/
main {
  margin: 2rem 0 0 0;
}

section {
  margin: 2rem 0;
  padding: 1rem 0;
  position: relative;
}

/* アンカーリンク用のオフセット */
section::before {
  content: '';
  display: block;
  height: 200px; /* 固定ヘッダー分のオフセット */
  margin-top: -200px;
  visibility: hidden;
  pointer-events: none;
}

.gray-back {
  background-color: var(--back-color);
}

.gradient-background {
  background-image: repeating-linear-gradient(135deg,
      #d4f6f9,
      #d4f6f9 10px,
      #edf8f9 10px,
      #edf8f9 20px);
  padding: 20px;
  /* 必要に応じて余白を追加 */
}

.pattern-background {
  background-image: url("../img/renga-back.png");
  background-repeat: repeat;
  /* 繰り返し表示 */
  background-size: auto;
  /* 元のサイズで表示 */
}

/* アニメーション付き画像ボックス -----------------------*/
.anim-box {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.anim-box img {
  width: 100%;
  display: block;
}

.overlay-text {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; /* 横幅を広げる */
  text-align: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  pointer-events: none;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {/*iPad用の表示 (769px～1024px) ----*/
  .overlay-text {
    font-size: 1.2rem;
    width: 90%; /* 幅を大きく */
    top: 80%; /* 位置を少し下げる */
  }
}

/* アニメーション */
.anim-box.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}

.anim-box.fade-up.is-animated {
  animation: fadeInUpSlow 1.2s ease-out forwards;
}

@keyframes fadeInUpSlow {/* ゆっくりとフェードインアップ */
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



/*キャッチコピー
-------------------------------------*/
.catch {
  text-align: center;
}

.catch h2 {
  padding-bottom: 1.2rem;
}

.under {
  border-bottom: 0.4rem solid var(--base-color);
  padding: 0 1rem 1rem 1rem;
}

.center {
  text-align: center;
  margin-bottom: 4rem;
}


/*スライドショー
-------------------------------------*/
.slideshow-container {
  position: relative;
  max-width: 1200px; /* 900px → 1200px に拡大 */
  margin: 3rem auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  /* スマホでのスワイプ安定化 */
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.slide-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* 500px → 600px に拡大 */
}

.slide {
  display: none; /* 基本は非表示 */
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.slide.active {
  display: block; /* アクティブなスライドのみ表示 */
  opacity: 1;
}

.slide-content {
  display: flex;
  justify-content: center; /* 中央配置 */
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem; /* パディングを増やして余白確保 */
}

.slide-content img {
  width: 100%;
  max-width: 1000px; /* 800px → 1000px に拡大 */
  height: auto;
  max-height: 550px; /* 450px → 550px に拡大 */
  object-fit: contain; /* 比率を保ったまま収める */
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide-content img:hover {
  transform: scale(1.02);
}

/* ナビゲーションボタン */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

/* ドットナビゲーション */
.slide-dots {
  text-align: center;
  padding: 20px 0;
  background: white;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 8px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
  background-color: var(--base-color);
  transform: scale(1.2);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .slideshow-container {
    margin: 2rem 1rem;
  }
  
  .slide-wrapper {
    height: 300px; 
  }
  
  .slide-content {
    padding: 1rem; /* モバイルではパディングを小さく */
  }
  
  .slide-content img {
    max-height: 350px; /* 300px → 350px に拡大 */
  }
  
  .slide-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
}

/*塗装工事の流れ
-------------------------------------*/
.flow.row {
  margin-bottom: 1rem;
}

/*フッター
-------------------------------------*/
footer {
  background-color: var(--back-color);
  padding: 5rem 0;
}

footer h4 {
  border-bottom: 3px solid var(--border-color);
}

footer p {
  line-height: 0.5;
}

/*行幅少し狭く*/
footer-img {
  width: 80px !important;
  height: auto !important;
  margin-right: 8px;
  vertical-align: middle;
}

/*お問い合わせ
-------------------------------------*/
.contact-box {
  border: 1px solid var(--border-color);
  text-align: center;
  padding: 2rem 0;
}

.table {
  margin: 4rem 0;
}

.table th {
  width: 800px;
}

/* 幅768px以下の表示----*/
@media screen and (max-width: 768px) {
  .table th {
    width: 50%;
    display: block;
  }

  .table td {
    display: block;
  }
}

@media screen and (min-width: 769px) {
  .table {
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
  }

  .table th,
  .table td {
    width: auto;
  }
}

/*コピーライト
-------------------------------------*/
.copyright {
  text-align: center;
  padding: 1rem 0;
  background-color: var(--base-color);
}

.copyright a {
  color: var(--white-color);
  text-decoration: none;
  display: inline;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
  position: fixed;
  bottom: 15px;
  right: 15px;
}

#pagetop a {
  display: block;
  background-color: var(--base-color);
  color: var(--white-color);
  width: 50px;
  padding: 10px 5px;
  text-align: center;
}

#pagetop a:hover {
  background-color: var(--link-color);
}

/* iPad Air5対応 (769px～1024px)
----------------------------------------------------------------*/
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .logo-img {
    width: 500px; /* iPad Air5では中サイズ */
    height: auto;
  }

  .contact-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .header {
    flex-wrap: nowrap; /* 改行を防止 */
    align-items: center;
  }

  /* iPad Air5でのオーバーレイテキスト調整は上部のメディアクエリで統一 */
}

/* 幅768px以下の表示
----------------------------------------------------------------*/
@media screen and (max-width: 768px) {

  /* モバイル版でのbodyの設定 */
  body {
    padding-top: 80px;
    /* モバイル版ではヘッダーが小さくなるので調整 */
  }

  /* モバイル版でのメイン画像設定 */
  .mainimg {
    margin-top: 50px; /* モバイル版の固定ヘッダー高さに合わせて調整 */
  }

  /* モバイル版でのセクションスクロール調整 */
  section::before {
    height: 120px; /* モバイル版の固定ヘッダー高さ分のオフセット */
    margin-top: -100px;
  }

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    position: relative;
    margin-bottom: 10px;
  }

  /* ロゴ画像の調整(追加）
------------------------------------- */
  .logo-img {
    width: 50vw; /* モバイルではより小さく */
    height: auto;
  }

  /* モバイル版お問い合わせボタン */
  .contact-button {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    border: 2px solid var(--base-color);
  }

  #open,    
  #close {
    background-repeat: no-repeat;
    background-size: contain;
    width: 40px;
    height: 40px;
    border: none;
  }

  #open {
    display: block;
    background-image: url(../img/menubutton.png);
    order: 0;
  }

  #close {
    display: none; /* 初期状態では非表示 */
    background-image: url(../img/button2.png);
    order: 0;
  }

  .header h1 {
    margin: 0 auto;
    order: 1;
  }

  /*ヘッダー
-------------------------------------*/
  .header-box {
    display: block;
    /* スマホでも表示 */
    margin: 0;
    order: 2;
  }

  nav ul {
    flex-direction: column;
  }

  .header li {
    padding-top: 0;
  }

  #navi {
    display: none;
  }

  .contact-button {
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    display: block;
    white-space: nowrap;
    /* テキストの折り返しを防ぐ */
    text-align: center;
    /* テキストを中央揃えに */
    overflow: hidden;
    /* はみ出し防止（必要に応じて） */
    font-size: 7px;
  }



}

@media screen and (min-width: 769px) {
  #open {
    display: none !important;
  }
}

/*申し込みの流れデザイン02（フローチャート）*/
.flow_design01 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow_design01 ul {
  padding: 0;
}

.flow_design01 li {
  list-style-type: none;
}

.flow_design01 dd {
  margin-left: 0;
}

.flow01 > li {
  padding: 40px 10px;;
}

.flow01 > li:not(:last-child) {
  border-bottom: 3px solid #407ef0;
  position: relative;
}

.flow01 > li:not(:last-child)::before,
.flow01 > li:not(:last-child)::after {
  content: "";
  border: solid transparent;
  position: absolute;
  top: 100%;
  left: 15%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.flow01 > li:not(:last-child)::before {
  border-width: 22px;
  border-top-color: #407ef0;
}

.flow01 > li:not(:last-child)::after {
  border-width: 18px;
  border-top-color: #fff;
}

.flow01 > li dl {
  margin: 0;
}

.flow01 > li dl dt {
  font-size: 1.3em;
  font-weight: 600;
  border-bottom: 2px dotted #878787;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  display: flex;
}

.flow01 > li dl dt .icon01 {
  font-size: 0.6em;
  color: #fff;
  background: #407ef0;
  padding: 5px 10px;
  display: inline-block;
  margin-right: 0.5em;
}