/*
Theme Name: Central Forest Theme
Author: Your Name
Description: A custom theme for Central Forest.
Version: 1.0
*/

/*
================================================================================
1.  基本設定 (Variables, Reset, Base, Common)
================================================================================
*/
:root {
    --color-orange: #E8632C;
    --color-dark-green: #2B5A5C;
    --color-light-green: #68B4A2;
    --color-design-green: #37a34a;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: #333;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, dl {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main-content {
    padding-top: 4.375rem;
}

section {
  padding: 3.75rem 0;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.section-title-bracket {
    color: #317576;
}

.text-green {
  color: var(--color-design-green);
  font-weight: bold;
}


/*
================================================================================
2.  ヘッダー (Header)
================================================================================
*/
.site-header {
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
    padding: 0.625rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a {
    display: flex;
    align-items: center;
}

.site-branding img {
    height: 2.5rem;
    margin-right: 0.9375rem;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
}
.main-title {
    font-family: var(--font-sans);
    font-size: 1.0rem;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}
.sub-title {
    font-size: 0.875rem;
    color: #4d4d4d;
    font-weight: 600;
    padding-top: 0.3125rem;
}

.header-nav .btn {
  font-family: var(--font-serif);
  display: inline-block;
  padding: 0.625rem 1.5625rem;
  border-radius: 3.125rem;
  color: #fff;
  font-weight: 500;
  margin-left: 0.625rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.header-nav .btn-orange {
    background: linear-gradient(to right, #F37F38, #E8632C);
}

.header-nav .btn-green {
    background: linear-gradient(to right, #418E84, #2B5A5C);
}

/*
================================================================================
3.  各セクション (Sections)
================================================================================
*/

/* 3-1. メインビジュアル (Hero) */
.hero {
    background-image: url('../images/common/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 7.5rem 0;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo-box {
    padding: 1.25rem;
    display: inline-block;
    margin-bottom: 1.875rem;
}

.hero-logo-box img {
  height: 7.5rem;
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  margin-bottom: 0.625rem;
  font-weight: normal;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
}

/* 3-2. 特徴 (Features) */
.features {
    padding: 3.125rem 0;
    background-color: #f7f7f7;
}

.features .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.feature-item {
    position: relative;
    flex: 1;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    height: 60%;
    transform: translateY(-50%);
    border-right: 0.0625rem solid #ccc;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
}

.feature-subtitle {
  font-size: 1.125rem;
  margin-top: 0.3125rem;
  font-weight: bold;
  color: #084560;
}

/* 3-3. ストーリー開始 (Story Start) */
.story-start {
  padding: 3.75rem 0;
}

.story-start .container {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 0.9375rem;
}

.story-start h2, .story-start h3 {
  display: inline-block;
  background: linear-gradient(to right, #2c6f72, #68b4a2);
  color: #fff;
  padding: 0.2em 0.5em;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  margin: 0;
}


/* 3-4. 教育環境 (Education) */
.education-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.education-map {
    flex: 1;
}

.education-text {
    flex: 1;
}
.education-text .section-subtitle {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  color: #084560;
}

/* 3-5. お客様のご希望 (Wishes) */
.wishes {
    background-color: #F8FBF8;
}

.wishes-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
}

.wishes-description {
    text-align: center;
    margin: 1.25rem 0 2.5rem;
}

.wishes-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.wishes-image {
    flex: 1;
}

.wishes-list {
    flex: 1;
}

.wishes-list ul li {
  background-color: #fff;
  padding: 0.9375rem 1.25rem;
  border-radius: 3.125rem;
  margin-bottom: 0.9375rem;
  border: 0.0625rem solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #000;
}

.wishes-list ul li::before {
    display: none;
}

.wishes-list .checkmark-icon {
    width: 1.75rem;
    height: 1.75rem;
    fill: var(--color-design-green);
    flex-shrink: 0;
}

.wishes-solution {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    font-weight: bold;
}


/* 3-6. 周辺環境 (Environment) */
.environment {
    background-color: #FEFBF6;
    text-align: center;
}

.environment-description {
    margin: 1.25rem 0 2.5rem;
}

.amenities-grid {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 1.25rem;
}

.amenity-card {
    flex: 1;
    padding: 1.25rem;
    border-radius: 1.25rem;
}

.amenity-card h4 {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
  color: #fff;
  background-color: rgba(0,0,0,0.3);
  padding: 0.625rem;
  border-radius: 0.625rem;
}

.amenity-card ul li {
    margin-bottom: 0.625rem;
}

.amenity-card.shopping { background-color: #FBEBCD; }
.amenity-card.public { background-color: #D3EAF0; }
.amenity-card.park { background-color: #DAEFD9; }

/* 3-7. プロモーション動画 (Promotion) */
.promotion {
    padding: 3.75rem 0;
    background-color: #F8FBF8;
}
.promo-video-placeholder {
    background-color: #EAEAEA;
    text-align: center;
    padding: 5rem 0;
    font-size: 1.25rem;
    color: #666;
}
.promo-video-placeholder p:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.625rem;
}

/* 3-8. 未来・コミュニティ (Future) */
.future-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.future-text {
    flex: 1;
}
.future-text p {
    margin-top: 1.25rem;
}
.future-image {
    flex: 1;
}
.future-image img {
    border-radius: 0.625rem;
}

/* 3-9. 区画・価格 (Site Plan) */
.site-plan {
    background-image: linear-gradient(135deg, #084560 0%, #317576 100%);
    color: #fff;
    text-align: center;
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}
.site-plan .container {
    padding-top: 0;
    padding-bottom: 0;
}
.site-plan-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5625rem;
}
.site-plan-header img {
    height: 5rem;
}
.site-plan-header h2 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
}

.site-plan-info-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.plan-item {
    text-align: center;
}
.plan-title { flex: 1.2; }
.price-info { flex: 1; }
.area-info { flex: 1.2; }

.plan-title h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
}
.plan-title h3 span {
    font-size: 4.5rem;
    font-weight: 500;
    margin: 0 0.3125rem;
}
.price-info p {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 300;
}
.price-info span {
    font-size: 4.5rem;
    font-weight: 500;
    margin: 0 0.3125rem;
}

.area-info {
  text-align: center;
  margin-top: -1.875rem;
}

.area-info p {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.5;
    font-weight: 300;
}
.area-info .tsubo {
    font-size: 1rem;
}

.site-plan-map {
    width: 100%;
    margin-bottom: 1.25rem;
}
.site-plan-map img {
    width: 100%;
}

.map-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.site-plan-map a {
    display: block;
    transition: opacity 0.3s ease;
}
.site-plan-map a:hover {
    opacity: 0.8;
    cursor: zoom-in;
}


/* 3-10. よくあるご質問 (FAQ) */
.faq-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.faq-item {
    border-bottom: 0.0625rem solid #e0e0e0;
    padding: 1.25rem 0;
}
.faq-item:first-of-type {
    border-top: 0.0625rem solid #e0e0e0;
}
.faq-item dt {
    font-weight: bold;
    font-size: 1.125rem;
    padding-left: 1.875rem;
    position: relative;
}
.faq-item dt::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--color-light-green);
}
.faq-item dd {
    margin-top: 0.625rem;
    padding-left: 1.875rem;
    position: relative;
}
.faq-item dd::before {
    content: 'A.';
    position: absolute;
    left: 0;
}

/* 3-11. お問い合わせ (Final CTA) */
.final-cta {
    background: linear-gradient(to right, #2c6f72, #68b4a2);
    color: #fff;
    text-align: center;
}
.final-cta h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
}
.final-cta h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    margin: 0.9375rem 0;
    font-weight: 500;
}
.final-cta > .container > p {
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-buttons .btn {
    padding: 0.9375rem 2.5rem;
    border-radius: 3.125rem;
    font-weight: bold;
    font-size: 1.125rem;
    display: inline-block;
    transition: opacity 0.3s;
}
.btn-white-outline {
    background-color: #fff;
    color: #FF0D0D;
    border: 0.125rem solid transparent;
}
.btn-white-solid {
    background-color: #fff;
    color: var(--color-dark-green);
    border: 0.125rem solid transparent;
}
.cta-buttons .btn:hover {
    opacity: 0.8;
}


.phone-contact {
    background-color: #fff;
    color: #333;
    padding: 1.875rem;
    border-radius: 1.25rem;
    max-width: 37.5rem;
    margin: 0 auto;
}
.phone-contact-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-dark-green);
}
.phone-number-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9375rem;
    margin: 0.625rem 0;
}
.phone-number-box img {
  height: 2.5rem;
  padding-top: 0.3125rem;
}
.phone-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-dark-green);
}
.reception-time {
    font-size: 0.875rem;
}

/*
================================================================================
4.  フッター (Footer)
================================================================================
*/
.site-footer-bottom {
    padding: 2.5rem 0;
    background-color: #f7f7f7;
}

.site-footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
}
.company-info, .seller-info {
    flex: 1;
}

.footer-container h2 {
  font-size: 1.3125rem;
  font-weight: bold;
  margin-bottom: 0.625rem;
}
.footer-container p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.copyright-footer {
    background-color: #000;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.75rem;
}

/*
================================================================================
5.  アニメーション (Animation)
================================================================================
*/
.js-fadein {
    opacity: 0;
    transform: translateY(3.125rem);
    transition: opacity 0.8s, transform 0.8s;
}
.js-fadein._active {
    opacity: 1;
    transform: translateY(0);
}

/*
================================================================================
6. ページトップボタン (Page Top Button)
================================================================================
*/
.page-top-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    background-color: var(--color-dark-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}

.page-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    background-color: var(--color-light-green);
}

/*
================================================================================
7.  モバイル専用スタイル (Mobile)
================================================================================
*/
.mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    html {
        font-size: 12.8px;
    }

    body {
        padding-bottom: 6.25rem;
    }

    .site-header .main-title {
        display: none;
    }
    .site-header .sub-title {
        font-size: 0.9375rem;
        padding-top: 0;
        line-height: 1.2;
    }
    .header-nav {
        display: none;
    }
    
    .mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(232, 99, 44, 0.9);
        padding: 1.17rem 0;
        text-align: center;
        z-index: 1000;
        box-shadow: 0 -0.156rem 0.39rem rgba(0,0,0,0.1);
    }
    .mobile-cta .btn {
        color: #fff;
        font-family: var(--font-serif);
        font-size: 1.25rem;
        font-weight: 500;
        letter-spacing: 0.1em;
    }
    
    .features .container {
        flex-wrap: wrap;
        gap: 2rem 0;
    }
    .feature-item {
        flex-basis: 50%;
        box-sizing: border-box;
    }
    .feature-item:nth-child(2)::after {
        display: none;
    }
    .feature-item:last-child {
        flex-basis: 100%;
    }
    .feature-item:last-child::after {
        display: none;
    }
    .feature-item:first-child::after {
        display: block;
    }
    
    .education-container,
    .wishes-content,
    .future-container {
        flex-direction: column;
        gap: 2rem;
    }
    .education-map, .wishes-image, .future-image {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        max-width: none;
    }
    .wishes-content {
        flex-direction: column-reverse;
    }
    
    .amenities-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .site-plan-header {
        gap: 1rem;
    }
    .site-plan-header h2 {
        font-size: 2.2rem;
    }

    .page-top-btn {
        bottom: 7.5rem;
    }
}

/*
================================================================================
  Image Caption Style
================================================================================
*/
.image-caption {
    font-size: 0.75rem; /* 12px */
    color: #666;
    text-align: right;
    margin-top: 0.5rem; /* 8px */
}
/*
================================================================================
  レスポンシブ動画 (Responsive Video)
================================================================================
*/
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 2.5rem; /* amenities-gridとの間に余白を追加 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}