/* /css/style.css */

/* Google Fontsの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;700&display=swap');

/* --- 全体設定 --- */
:root {
  --primary-color: #00a86b; /* メインカラー（例：緑） */
  --secondary-color: #f4f4f4; /* 背景色など */
  --text-color: #333;
  --white-color: #fff;
  --header-height: 80px;
}

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--white-color);
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ヘッダー --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    height: var(--header-height);
    background-color: #ffffffb0;
    /* border-bottom: 1px solid #eee; */

    /* 追従ヘッダーのための設定 */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo a {
  font-weight: bold;
  color: var(--text-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 50px;
}

.header-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav li {
  margin-left: 50px;
}

.header-nav a {
  font-size: 14px;
  color: var(--text-color);
  font-weight: Medium;
}

.header-right .btn {
    height: var(--header-height);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
}

/* --- メインコンテンツ --- */
main {
  /* ヘッダーがstickyになったため、mainのpadding-topは不要に */
  padding-bottom: 40px;
  min-height: calc(100vh - var(--header-height) - 140px); /* ヘッダーとフッターの高さを引く */
}

.page-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}

/* --- フッター --- */
.footer {
  background-color: #00947C;
  color: var(--white-color);
  padding: 30px 0;
}

.footer .container {
  max-width: 1000px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  padding: 0;
  text-align: center;
  list-style: none;
}

.footer-nav li {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
  margin: 0 15px;
}

.footer-nav a {
  color: var(--white-color);
}

.copyright {
  font-size: 14px;
  text-align: center;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #00947C;
  color: var(--white-color);
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

.btn-secondary {
  background-color: transparent;
  color: #00947C;
  border: 2px solid #00947C;
}
.btn-secondary:hover {
  background-color: #00d0ad;
  color: var(--white-color);
}


/* --- フォーム --- */
.contact-preface {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #E5F0EE;
    padding: 40px;
    border-radius: 8px;
}

.contact-form .address-group {
    display: flex;
    justify-content: flex-start; /* 左寄せに変更 */
    gap: 10px;
    margin-bottom: 10px;
}
.contact-form .zip-group {
    flex: 0 0 300px; /* 幅を300pxに固定 */
}
.contact-form .pref-group {
    flex: 0 0 200px; /* 幅を200pxに固定 */
}
.contact-form .address-field {
    margin-bottom: 10px;
}
.contact-form .address-field:last-child {
    margin-bottom: 0;
}

.privacy-policy-container {
    margin-top: 40px;
}

.privacy-policy-box {
    height: 240px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 0 0 20px 0;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.privacy-policy-box p {
    margin: 0 0 1em 0;
}

.privacy-agreement {
    text-align: center;
}
.privacy-agreement input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box; /* paddingを含めた幅計算に */
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

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

/* --- トップページ固有のスタイル --- */
/* ヒーローセクション */
.hero {
    width: 100%;
    padding: 40px 0px;
    box-sizing: border-box;
}

.hero-container {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    max-width: 1920px;
    margin: 0 auto;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 960px;
    width: 100%;
    height: 100%;
    padding-top: 40px;
}

.hero-title {
    background-color: #006856;
    font-size: 3.4rem;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
    padding-left: 100px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-description {
    font-size: 1.4rem;
    line-height: 2;
    padding-left: 100px;
    max-width: 740px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 960px;
    height: auto;
    border-radius: 0px;
}

/* 共通セクション */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subheader {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #006856; /* テーマカラーに合わせたアクセント色 */
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-bottom: 0px;
    border-bottom: 2px solid #006856;
    display: inline-block;
    line-height: 1.2;
}

.section {
    padding: 200px 20px;
}

.section-title {
    font-size: 30px;
    margin: 0;
    line-height: 1.5;
    color: #006856;
}

/* ABOUTセクションの3つの特徴 */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}


.feature-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #006856;
    text-align: center;
}

.feature-description {
    margin: 0;
}

/* SERVICEセクション */
.service-section {
    background-color: #f9f9f9; /* 背景色を少し変えて区別 */
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 60px; /* 各サービス間の余白 */
}

.service-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* 偶数番目のアイテムはレイアウトを反転 */
/* .service-item:nth-child(even) {
    flex-direction: row-reverse;
} */

.service-image {
    flex: 1;
    max-width: 50%;
}

.service-content {
    flex: 1;
    max-width: 50%;
}

.service-content-subheader {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    color: #006856;
    margin: 0px;
}

.service-content-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #006856;
}

.service-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

/* CTAセクション */
.cta-section {
    padding-top: 0; /* 上のセクションとの余白を調整 */
}

.cta-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 160px 0 0 0;
    border-radius: 8px;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    line-height: 1.6;
    color: #006856;
    margin: 0 0 20px 0;
}

.cta-description {
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.18em;
    margin: 0 0 20px 0;
    text-align: left;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* 下層ページのCTA */
.cta-section-sub {
    text-align: center;
    padding: 80px 20px;
}

.cta-sub-title {
    font-size: 24px;
    line-height: 1.8;
    color: #006856;
    margin: 0 0 30px 0;
}

.cta-sub-button .btn {
    padding: 15px 60px;
}

/* --- 車両紹介ページ用 --- */
.vehicle-anchor-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 140px auto;
    max-width: 500px; /* ボタン全体の最大幅を制限 */
}

.vehicle-anchor-nav .btn {
    flex: 1; /* ボタンが均等に幅を分け合うようにする */
}

/* 下層ページのヘッダーセクション用 */
.page-header-section {
    padding-top: 100px;
    padding-bottom: 100px; /* 下のコンテンツとの余白も調整 */
}

.vehicle-detail {
    margin-bottom: 100px;
}

.vehicle-detail:last-child {
    margin-bottom: 0;
}

.vehicle-detail-title {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    color: #006856;
    letter-spacing: 0.1em;
}

.vehicle-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.vehicle-images img {
    border-radius: 0px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.vehicle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vehicle-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.vehicle-card:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.vehicle-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.vehicle-card-content {
  padding: 20px;
}

.vehicle-card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.vehicle-card-spec {
  margin: 0;
  color: #666;
}

/* --- サンクスページ用 --- */
.thanks-message {
  text-align: center;
  padding: 80px 0;
  background-color: var(--secondary-color);
  border-radius: 4px;
}

.thanks-tel {
    max-width: 400px;
    margin: 20px auto;
}

.thanks-tel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #00947c;
    background-color: #fff;
    color: #00947c;
    border-radius: 5px;
}

.tel-number {
    font-weight: bold;
    font-size: 18px;
}

.reception-time {
    font-size: 12px;
    margin-top: 4px;
}
/* --- レンタルページ用 --- */
.rental-content {
  text-align: center;
  padding: 80px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}


/* SP（768px以下）で表示する改行 */
.br-pc {
    display: inline;
}

.br-sp {
    display: none;
}

.br-small{
    display: none;
}

/*-------------------------------------------
 ハンバーガーメニュー
-------------------------------------------*/
.hamburger-btn {
    display: none; /* デフォルトでは非表示 */
    position: relative;
    width: 60px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101; /* メニューより手前に */
}

.hamburger-btn span {
    display: block;
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: #006856;
    transition: all 0.3s;
}

.hamburger-btn span:nth-child(1) {
    top: 10px;
}

.hamburger-btn span:nth-child(2) {
    top: 19px;
}

.hamburger-btn span:nth-child(3) {
    top: 28px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #006856;
    background: none;
    border: none;
    cursor: pointer;
}

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

.mobile-menu-nav li {
    margin: 20px 0;
}

.mobile-menu-nav a {
    font-size: 4vw;
    color: #006856;
    text-decoration: none;
    font-weight: bold;
}


/* --- レスポンシブ設定 --- */

/* --- laptop -1440px- --- */
@media (max-width: 1440px) {

    /* ヒーローセクション */
    .hero-container {
        max-width: 1440px;
        align-items: center;
    }

    .hero-content {
        max-width: 640px;
        padding-top: 0px;
    }


    .hero-title {
        font-size: 3rem;
        margin-bottom: 20px;
        padding-left: 60px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-description {
        font-size: 1.3rem;
        line-height: 2;
        padding-left: 60px;
    }

}


/* --- laptop-small -1024px- --- */
@media (max-width: 1024px) {
    /* ヘッダー */
    .header-nav li {
        margin-left: 30px;
    }
    .header-right {
        gap: 20px;
    }

    /* ヒーローセクション */
    .hero-container {
        max-width: 1440px;
        gap: 20px;
    }

    .hero-content {
        max-width: 480px;
        padding-top: 0px;
    }


    .hero-title {
        font-size: 2rem;
        padding-left: 30px;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.8;
        padding-left: 30px;
    }

    .container {
        max-width: 1024px;
        margin: 0 auto;
        padding: 0px;
    }

    /* ABOUTセクション */
    .section {
        padding: 100px 20px;
    }

    .about-features {
        gap: 60px;
    }

}


/* --- tablet -768px- --- */
@media (max-width: 768px) {
    /* SP（768px以下）で表示する改行 */
    .br-pc {
        display: none;
    }

    .br-sp {
        display: inline;
    }


    /* ヘッダー */
    .header-nav a {
        font-size: 12px;
    }

    .header-nav li {
        margin-left: 20px;
    }

    .header-right .btn {
        padding: 0 20px;
    }

    /* ヒーローセクション */
    .hero {
        padding: 20px 0px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 768px;
        padding-top: 0px;
    }

    .hero-image img {
        width: 100%;
        max-width: 720px;
        height: auto;
    }

    .hero-title {
        font-size: 5vw;
        margin-top: 0px;
    }

    .hero-description {
        font-size: 1.2rem;
        text-align: left;
        line-height: 1.8;
        padding: 0 20px;
        max-width: 100%;
    }

    /* 共通セクション */
    .section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    /* ABOUTセクションの3つの特徴 */
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* SERVICEセクション */
    .service-item {
        gap: 20px;
    }

    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    .service-image,
    .service-content {
        max-width: 100%;
        padding: 0 80px;
    }
    .service-content-title {
        font-size: 4.8vw;
        margin: -30px 0 0 0;
    }

    .service-content-description{
        font-size: 2.4vw;
    }

    .service-buttons .btn {
        width: 100%;
    }

    /* CTAセクション */
    .cta-content {
        padding: 40px 20px;
    }
    .cta-title {
        font-size: 4.6vw;
    }
    .cta-buttons {
        flex-direction: column;
    }

    /* フッター */
    .footer-content {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .footer-nav li {
        font-size: 12px;
        letter-spacing: 0.06em;
        margin: 0 10px;
    }

    /* 車両紹介ページ */
    .vehicle-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* コンタクトページ */


}

/* --- header -700px- --- */
@media (max-width: 700px) {
     .header-nav,
    .header-right .header-contact-btn {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }
}

/* --- footer -680px- --- */
@media (max-width: 680px) {
    .footer-nav ul {
        flex-direction: column;
    }
}

/* --- form -640px- --- */
@media (max-width: 640px) {
    .contact-form .address-group {
        flex-direction: column;
    }

    .contact-form .zip-group {
        flex: 0 0 40px;
    }

    .contact-form .pref-group {
        flex: 0 0 40px;
    }

    .contact-description{
        font-size:4vw;
        text-align: left;
        margin-bottom: 40px;
    }

    .thanks-tel {
        max-width: 640px;
        margin: 20px auto;
    }

    .tel-number {
        font-size: 6vw;
    }

    .reception-time {
        font-size: 3.4vw;
    }

}


/* --- sp -512px- --- */
@media (max-width: 520px) {
    .hero {
        padding: 20px 10px;
    }

    .hero-image img {
        width: 100%;
        max-width: 512px;
        height: auto;
    }

    .hero-content {
        width: 100%;
        max-width: 512px;
        padding-top: 0px;
    }

    .hero-title {
        font-size: 6vw;
        margin-top: 0px;
        padding-left: 0px;
    }

    .hero-description {
        font-size: 1.2rem;
        padding: 0px;
    }

    .section-title {
        font-size: 5.6vw;
    }

    /* ABOUTセクション */
    .about-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-feature-item{
        padding: 0 40px;
    }

    .feature-title {
        font-size: 5vw;
    }

    .feature-description {
        font-size: 3.4vw;
    }

    /* Serviceセクション */
    .service-image, .service-content {
        padding: 0 20px;
    }

    .service-content-subheader{
        line-height: 1;
    }

    .service-content-title {
        font-size: 5.4vw;
        margin: 0px;
    }

    .service-content-description {
        font-size: 3.4vw;
    }

    .service-buttons {
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
    }

    .service-buttons .btn {
        width: auto;
        max-width: 480px;
    }

    .cta-content {
        padding: 40px 0px;
    }

    .cta-title {
        font-size: 5.4vw;
    }

    .footer-nav ul {
        margin-top: 40px;
    }

    .footer-nav li {
        font-size: 16px;
        letter-spacing: 0.08em;
        margin: 0px;
    }

    /* レンタルページ */
    .rental-content {
        font-size: 4vw;
    }

    /* 車両取扱ページ */
    .vehicle-anchor-nav {
        flex-direction: column;
    }

    .cta-sub-title {
        font-size: 5vw;
    }

    /* コンタクトページ */
    .contact-form {
        max-width: 500px;
        margin: 0 auto;
        background-color: #E5F0EE;
        padding: 40px 20px;
        border-radius: 8px;
    }

    .thanks-message {
        padding: 20px;
    }

    .thanks-descriptiuon{
        font-size: 4vw;
        text-align: left;
    }
    
}

/* --- sp-s,all -425px- --- */
@media (max-width: 425px) {
    .hero {
        padding: 40px 10px;
    }

    .hero-title {
        font-size: 7vw;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero-description {
        font-size: 4.2vw;
    }

    .about-feature-item {
        padding: 0 20px;
    }

    .feature-title {
        font-size: 5.6vw;
    }

    .feature-description {
        font-size: 4.6vw;
    }

    .service-image, .service-content {
        padding: 0px;
    }

    .service-content-title {
        font-size: 5.8vw;
    }

    .service-content-description {
        font-size: 4.4vw;
    }

    .cta-description {
        font-size: 16px;
        line-height: 1.6;
    }

}