/*
Theme Name: Plant Reuse
Theme URI: https://example.com
Author: あなたの名前
Description: 植物買取サイト用オリジナルテーマ
Version: 1.3
*/

/* ====== リセット & ベース ====== */

/*
Theme Name: Plant Reuse
Theme URI: http://example.com/
Author: あなたの名前
Author URI: http://example.com/
Description: 植物買取サイト用のオリジナルテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plantreuse
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "ヒラギノ角ゴ ProN", "メイリオ", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====== タイポグラフィ ====== */
h1,
h2,
h3 {
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 1.8rem;
    color: #2e7d32;
    border-left: 6px solid #06C755;
    padding-left: 10px;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* ====== ヘッダー ====== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.cta-buttons .btn {
    margin-left: 10px;
}

/* ====== ナビゲーション（PC用） ====== */
.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav .nav-list li a {
    color: #333;
    font-weight: bold;
    transition: 0.3s;
}

.main-nav .nav-list li a:hover {
    color: #06C755;
}

/* ====== ボタン共通 ====== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-line {
    background: #06C755;
    color: #fff;
}

.btn-tel {
    background: #1976d2;
    color: #fff;
}

.btn-main {
    background: #06C755;
    color: #fff;
}

/* ====== Heroスライダー ====== */
.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    /* PC/スマホ共通で比率維持 */
}

.hero-slider .slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    flex: 1 0 100%;
    background-size: cover;
    background-position: center;
    height: 100%;
    background-color: #f2f2f2;
    /* 読み込み中の背景 */
}

.hero-buttons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* ====== 環境への問い ====== */
.environment {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.environment h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* ====== サービス訴求 ====== */
.service {
    padding: 60px 20px;
    text-align: center;
}

.service p {
    margin-bottom: 15px;
}

/* ====== 買取の流れ ====== */
.flow {
    padding: 60px 20px;
    background: #f9f9f9;
}

.flow h2 {
    text-align: center;
    margin-bottom: 30px;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    gap: 20px;
}

.flow-steps li {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.flow-steps li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.flow-steps li img {
    width: 64px;
    height: auto;
    margin-bottom: 15px;
}

.flow-steps li span {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
}

/* ====== 再利用ストーリー ====== */
.reuse {
    padding: 60px 20px;
    text-align: center;
}

/* ====== フッター ====== */
.site-footer {
    background: #2e2e2e;
    color: #eee;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer address {
    font-style: normal;
}

.site-footer a {
    color: #06C755;
}

/* ====== ハンバーガーメニュー ====== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ====== オーバーレイ ====== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* ====== スマホ時のナビ ====== */
@media screen and (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 60px;
        right: -260px;
        width: 250px;
        background: #fff;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1000;
        padding: 20px;
        height: auto;
        opacity: 0;
    }

    .main-nav.active {
        right: 0;
        opacity: 1;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav .nav-list li {
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 0.5s ease forwards;
    }

    .main-nav .nav-list li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .main-nav .nav-list li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .main-nav .nav-list li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .main-nav .nav-list li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .main-nav .nav-list li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .hamburger {
        display: flex;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .catchcopy {
        font-size: 1.6rem;
    }
}

/* ====== アニメーション定義 ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== メニュー開閉時のスクロール制御 ====== */
body.menu-open {
    overflow: hidden;
}


/* ====== 買取実績一覧（トップページ用） ====== */
.works {
    padding: 60px 20px;
    background: #fff;
}

.works h2 {
    text-align: center;
    margin-bottom: 30px;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.work-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-thumb img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.work-title {
    font-size: 1.2rem;
    margin: 10px 0;
}

.work-excerpt {
    font-size: 0.9rem;
    color: #666;
}

.works-more {
    text-align: center;
    margin-top: 20px;
}

/* ====== 買取実績アーカイブ ====== */
.works-archive {
    padding: 60px 20px;
}

.archive-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #2e7d32;
}

.works-archive .works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.works-archive .work-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.works-archive .work-item:hover {
    transform: translateY(-5px);
}

.works-archive .work-thumb img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.works-archive .work-title {
    font-size: 1.2rem;
    margin: 10px 0;
}

.works-archive .work-excerpt {
    font-size: 0.9rem;
    color: #666;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #eee;
    border-radius: 4px;
}

.pagination .current {
    background: #06C755;
    color: #fff;
}

/* ====== 買取実績 詳細ページ ====== */
.work-detail {
    padding: 60px 20px;
}

.work-detail .work-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.work-detail .work-thumb {
    margin-bottom: 20px;
}

.work-detail .work-content {
    font-size: 1rem;
    line-height: 1.8;
}

.work-meta {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.95rem;
}

.work-meta p {
    margin: 5px 0;
}

.work-meta strong {
    color: #2e7d32;
}

.back-to-archive {
    margin-top: 30px;
    text-align: center;
}

/* ====== 関連実績 ====== */
.related-works {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-works h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #2e7d32;
}

.related-works .works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-works .work-item {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.related-works .work-item:hover {
    transform: translateY(-5px);
}

.related-works .work-thumb img {
    border-radius: 8px;
}

/* ====== お問い合わせフォーム（買取依頼対応） ====== */
.wpcf7 {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wpcf7 label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="file"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.wpcf7 textarea {
    min-height: 150px;
}

.wpcf7 input[type="submit"] {
    background: #06C755;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


/* ====== ブログレイアウト ====== */
.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* メイン */
.blog-main {
    background: #fff;
}

/* サイドバー */
.blog-sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-left: 4px solid #06C755;
    padding-left: 8px;
}

.blog-sidebar ul {
    list-style: none;
    padding: 0;
}

.blog-sidebar li {
    margin-bottom: 10px;
}

.blog-sidebar a {
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

.blog-sidebar a:hover {
    color: #06C755;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
        margin-bottom: 30px;
    }
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}
.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider .swiper-pagination {
  bottom: 20px !important;
}
.hero-buttons {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}


/* ホバー効果付き */

.hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}
.hero-slider .swiper {
  width: 100%;
  height: 100%;
}
.hero-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-slider .swiper-slide:hover img {
  transform: scale(1.05);
}
.hero-slider .swiper-pagination {
  bottom: 20px !important;
}
.hero-buttons {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

/* ===== スライダー調整 ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;        /* デスクトップ（1025px以上） */
  overflow: hidden;
}

.hero-slider .swiper {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 縦横比を保って切り抜き */
  transition: transform 0.5s ease;
}

.hero-slider .swiper-slide:hover img {
  transform: scale(1.05); /* ホバーで拡大 */
}

.hero-slider .swiper-pagination {
  bottom: 20px !important; /* デフォルト位置 */
}

/* ===== レスポンシブ調整 ===== */

/* タブレット（768px〜1024px） */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .hero-slider {
    height: 50vh; /* タブレットは50% */
  }
}

/* スマホ（〜768px） */
@media screen and (max-width: 768px) {
  .hero-slider {
    height: 40vh; /* スマホは40% */
  }

  /* ページネーションを小さめに＆下に詰める */
  .hero-slider .swiper-pagination {
    bottom: 10px !important;
  }

  .hero-slider .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 2px !important;
  }
}

