/* 
Theme Name: 遺品整理のさんぷる
Author: PonzU
Description: 遺品整理サービス用のLPテーマ（スマホメイン）
Version: 1.0
*/

/* ベース設定 */
html {
  font-size: 16px;
  font-family: "M PLUS 1p", "Noto Sans JP", sans-serif;
  background-color: #fffefc;
  color: #473607;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.8;
  text-align: center;
  overflow-x: hidden;
  width: 100%;
}

/*アイコンフォントを水平ラインに合わせる*/
.material-icons {
  vertical-align: -5px;
}

a {
  color: #473607;
  text-decoration: none;
}

a:visited {
  color: #473607;
}

a:hover {
  text-decoration: underline;
}

/* ヘッダー */
header {
  top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  max-width: 100vw;
  /*ヘッダー固定*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #fffefc; /* 背景は必須（透明だと下が透けちゃう） */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 影つけて浮かせ感 */
}

.site-header {
  padding: 2px;
  height: 3.5rem;
}

.logo img {
  height: 60px;
  margin-top: 10px;
  width: auto;
}

.logo a {
  margin: 0;
  padding: 0 0 0 5px;
} 

/* ハンバーガーメニュー */
header .logo {
  font-weight: bold;
  font-size: 1rem;
}

header nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.hamburger {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute; /*親要素の絶対値として指定*/
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  z-index: 100;
  border-radius: 3px;
}

.hamburger span {
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 3.7rem;
  right: 1px;
  width: 50%;
  height: 25rem;
  background: #fffefc;
  padding: 1rem 2rem 1rem 1rem;
  border: 1px solid #ccc;
  z-index: 998;
} 

.nav-menu a {
  font-size: 18px;
}

.nav-menu.active {
  display: block;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-bottom: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
}

/*メニュー外クリックで閉じる用*/
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 90; /* nav-menu より下、hamburger より上 */
}

.menu-overlay.active {
  display: block;
}


/* メインビジュアル */
.main-visual {
  position: relative;
  text-align: center;
  padding: 0;
  margin: 0;
  margin-top: 60px; /* ヘッダーの高さと同じくらいにしてね */
}

.main-visual-img {
  width: 100%;
  height: auto;
}

/*
.catch {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
/*/

/*さんぷるについて*/
.about {
  background: linear-gradient(to bottom, #f0f8f4, #c5ee7a);
  padding: 60px 20px;
}

.logo2-img {
  height: 70px;
  margin-top: 10px;
  width: auto;
}

.parts1-img {
  height: 200px;
  width: auto;
}

.parts2-img {
  height: 140px;
  width: auto;
}

.parts4-img {
  height: 175px;
  width: auto;
  margin-top: 10px;
}


/*料金案内*/
.price-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fffefc;
  font-size: 14px;
}

.price-table th,
.price-table td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: center;
}

.price-table th {
  background: #f0f0f0;
  font-weight: bold;
}


.price h2 {
  margin: 1rem;
  text-align: left;
}

/*対応エリア*/

.area {
  margin: 1rem;
  text-align:left;

}

.area-block {
  margin-bottom: 2rem;
}

.area-block h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.area-block p {
  line-height: 1.6;
  font-size: 13px;
}

/*作業実績*/
.works {
  margin: 1rem;
  text-align: left;
  background: #fffefc;
  border-radius: 6px;
  padding: 1rem;
}

.works-list { 
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

/* 端末幅に応じて段数を可変にしたいなら↓（必要なければ消してOK） */
@media (max-width: 1024px){
  .works-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px){
  .works-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .works-list{ grid-template-columns: 1fr; }
}

/* Safariでhiddenアイテムを確実に非表示 */
[hidden]{ display:none !important; }

/* 作業実績カードスタイル */

.works-card {
  background: #fffefc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}

.works-card:hover {
  transform: translateY(-4px);
}

.works-card img {
  width: 100%;
  height: auto;
  display: block;
}

.works-card .card-body {
  padding: 1rem;
}

.works-card .card-title {
  font-weight: bold;
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #2e7d32; /* match section heading color for consistency */
}

.works-card .card-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/*作業実績詳細ページ*/
.single-works .post-thumbnail img {
  width: 50%;
  border-radius: 6px;
  height: auto;
  display: block;
  margin: 50px auto;
}

.det-title {
  font-size: 1.2rem;
}

/*もっとみるボタン*/
#moreBtn {
  background-color: #2e7d32;
  color: #FFF;
  font-size: 1rem;
}

/*お客様の声*/
.voice {
  margin: 1rem;
  text-align: left;
}

/* お客様の声全体も優しい黄緑系の背景にしたい場合は下記を有効化 */
/*
.voice {
  background: #e6f4e6;
  border-radius: 6px;
  padding: 2rem 1rem;
}
*/

/* お客様の声カードスタイル */
#voiceList {
  margin-bottom: 40px;;
}

.voice-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  background: #e6f4e6; /* 優しい黄緑系の背景色 */
  padding: 1rem;
  border-radius: 6px;
}

.voice-card {
  background: #fffefc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.2s;
}

.voice-card:hover {
  transform: translateY(-4px);
}

.voice-card .voice-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.voice-card .voice-area {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.voice-card .voice-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/*お客様の声もっとみるボタン*/
#voiceMoreBtn {
  background-color: #2e7d32;
  color: #fff;
  font-size: 1rem;

}

/*お客様の声詳細ページ設定*/
.single-voice ,.single-works {
  margin: 0 auto;
  padding-top: 50px;
}

.det-title {
  font-size: 1.2rem;
}

.voice-text {
  padding: 0 15% 0 15%;
}

/*よくあるご質問*/
.faq {
  margin: 1rem;
  text-align: left;
}

.faq-item {
  margin-bottom: 1.5rem;
}
.faq-question {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.faq-answer {
  line-height: 1.6;
  display: none;
}

.faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1;
  padding: 0;
}


/* セクション共通 */
section {
  padding: 2rem 1rem;
  text-align: center;
}

section h2 {
  font-size: 1.2rem;
  color: #2e7d32;
  border-left: 4px solid #80c683;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}



/* 料金一覧 */
.price-table {
  background: #fffefc;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* フッター */
footer {
  text-align: center;
  padding: 1rem;
  background: #3a6027;
  color: #fffefc;
  font-size: 0.8rem;
}

/*PC切り替え*/
.main-pc img {
  display: none;
}

.main-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/*PC用*/
@media (min-width: 1190px) {
  /*コンテンツマージン指定*/
  .price, .area, .works, .voice, .faq {
    margin: 0 15% 0 15%;
  }

  /*グローバルナビメニュー*/
  #nav-menu {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
  }

  #nav-menu ul {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    list-style: none;
    margin: 0px 100px;
    padding: 0;
  }

  #nav-menu li {
    margin: 0;
    border-left: 1px solid #777;
    padding-left: 0rem;
    
  }

  #nav-menu li a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0rem 0;
  }

  .hamburger, 
  .menu-overlay {
    display: none;
  }
}


/*作業実績スマホ画面２カラム*/
@media (max-width: 767px) {
  .works-list {
    grid-template-columns: repeat(2, 1fr);
  }
}