﻿@charset "utf-8";

/* 余計なはみ出し防止 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: sans-serif;
  scroll-behavior: smooth;
}


.jost-<uniquifier> {
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/* メインエリア情報 */
main {
  max-width:800px; 
  margin:0 auto;
  padding:20px;
  text-align: center;
}

/* フッター情報 */
footer { 
  padding:20px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 999;
}

.logo {
  font-family: "Jost", sans-serif !important;
  font-weight: bold;
  font-size: 1.5rem;
}


/* --- PC時（デフォルト） --- */
.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav ul li a {
  color: white;
  text-decoration: none;
}

/* ハンバーガーはPCでは非表示 */
.hamburger {
  display: none;
  position: relative;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.4s ease;
}

/* --- ×印に変化（左右対称）--- */
/* 初期位置：3本線 */
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 9px;
}
.hamburger span:nth-child(3) {
  top: 18px;
}

/* 変形後：× */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px; /* 中央に寄せる */
}
.hamburger.active span:nth-child(2) {
  opacity: 0; /* 真ん中を消す */
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px; /* 中央に寄せる */
}

/* --- スマホ時 --- */
@media (max-width: 768px) {
  /* ヘッダー内でナビを重ねる */
  .header { position: fixed; }
  /* ナビを非表示にしてドロワー風に */
  .nav {
    position: absolute;
    top: 60px;  /* ヘッダー高さに合わせる */
    right: 0;
    background: rgba(0,0,0,0.6);/* ← 60%透過 */
    width: 220px;
    overflow: hidden;

     /* アニメーション用の初期値 */
    max-height: 0;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }



  .nav.active {
    max-height: 500px; /* メニュー高さに応じて調整 */
    opacity: 1;
  }
  .nav ul {
    flex-direction: column;
    gap: 14px;
    padding: 16px 0;
  }

  .hamburger {
    display: flex;
  }
  /* メニューが開いているときに下の要素をタップさせない（任意） */
  .nav.active { pointer-events: auto; }
}




/* スライドショー */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease;
  pointer-events: none; /* ← ここがポイント */
  z-index: 0;
}

.slide.active {
  opacity: 1;
  pointer-events: auto; /* アクティブだけクリック許可 */
  z-index: 2;            /* 他のスライドより前面に */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキスト共通 */
.slide-text {
  position: absolute;
  top: 50%;
  color: #f1f1f1;
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  max-width: 50%;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: auto; /* 念のため */
  z-index: 3;
}

.slide.active .slide-text {
  opacity: 1;
}

/* スライドショーテキスト位置 */
.slide-text.center {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.slide-text.right {
  right: 5%;
  transform: translateY(-50%);
  text-align: center;
}

.slide-text.left {
  left: 5%;
  transform: translateY(-50%);
  text-align: center;
}

/* --- スマホ時のスライドショーテキスト調整 --- */
@media (max-width: 768px) {
  .slide-text {
    transform: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直中央 */
    align-items: center;     /* 水平中央 */
    text-align: center;
    font-size: 1.1rem; /* ← 小さめの文字 */
    padding: 1rem;
    max-width: 100%; /* 横幅制限解除 */

  }
}





/* プロフィール */
.profile-wrapper { max-width:800px; margin:0 auto; padding:20px; }
.profile { display:flex; align-items:flex-start; gap:20px; margin-bottom:40px; border-bottom:1px solid #ccc; padding-bottom:20px; }
@media(max-width:768px) { .profile { flex-direction:column; align-items:center; } }
.profile-photo img { width:300px; border-radius:8px; }
.profile-text { text-align:left; flex:1; }
.profile-text h3 { margin-top:0; font-size:1.2rem; }
.profile-text p { margin:0.5em 0; line-height:1.6; }


/* マップ */
.map { width:100%; max-width:600px; margin:1em auto; }
.map iframe { width:100%; aspect-ratio:4/3; border:0; }



/* FAQ */
/* 全体 */
.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.faq h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  text-align: center;
}
.faq-category h3 {
  font-size: 1.4em;
  margin: 1em 0;
  border-left: 4px solid #0073e6;
  padding-left: 0.5em;
}

/* カードデザイン */
.faq-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 1em;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* 質問部分 */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1em;
  font-size: 1em;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* 回答部分（スムーズ開閉用） */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1em;
  color: #555;
  line-height: 1.6;
  text-align: left;
  border-top: 1px solid #eee;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-card.active .faq-answer {
  max-height: 200px; /* 回答の高さに応じて調整 */
  padding: 1em;
}

/* Q / A アイコン */
.faq-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.faq-icon.q {
  background: #0073e6; /* 青 */
}
.faq-icon.a {
  background: #ff6666; /* 赤 */
  margin-right: 8px;
}

/* ▼▽切り替えアイコン */
.faq-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cccccc;
  font-size: 1.1em;
  color: #fff;
  flex-shrink: 0;
  margin-left: auto;
}
.arrow {
  display: inline-block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* 開いた時に△っぽく（▽を180度回転させる） */
.faq-card.active .arrow {
  transform: rotate(180deg);
}


/* CTAボタン */
.cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff6600;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
  position: relative;
  cursor: pointer;
}
.cta-btn:hover {
  background: #e65c00;
}

/* サービス比較表 */
.service-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
}
.service-table th, .service-table td {
  border: 1px solid #ccc;
  padding: 12px;
}
.service-table th {
  background: #0073e6;
  color: #fff;
}

/* 実績ギャラリー */
.works-gallery {
      display: inline-block;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.works-gallery img {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 問い合わせフォーム */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form input, .contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact-form button {
  cursor: pointer;
}


/* 固定ヘッダー分だけアンカーのスクロール位置を下げる（高さはヘッダーに合わせて調整） */
#contact {
  scroll-margin-top: 80px; /* ヘッダー高 約60pxなら 70〜90px あたりが安心 */
}




