/*
Theme Name: nextreform
Theme URI: 
Description: GeneratePress Child Theme for nextreform
Author: sahara
Author URI: 
Template: generatepress  
Version: 1.0
*/

/*キャッチコピーなど強調したい部分*/
.catch-copy {
    font-family: var(--heading-font);
    font-weight: 700;
}

/*施工事例や料金など数字を含む部分 */
.price, .case-study {
    font-family: var(--body-font);
    font-weight: 500;
}


img, video{
    max-width: 100%;
    height: auto;
}

 iframe {
    max-width: 100%;
    height: 100%;
}

.font-point{
color:#b45309;
}

.site-main {
     margin: 0 !important;
}

.site-content {
  display: block !important;
}

.grid-container {
  max-width: none !important;
}

.site-content .content-area {
    width: 100% !important;
}




/* タイトル */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 35px;
    color: #333;
}

.section-title2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 35px;
    color: #333;
}

.section-title3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 35px;
    color: #333;
    padding-top:60px;
}

.sp-br,.sp-br2 {
    display: none;
}

/* ヘッダー */
.site-header {
  padding: 10px 0;
}


.fixed-company-name {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate3d(0, -50%, 0); /* GPUアクセラレーション有効化 */
    z-index: 5;
    padding: 10px 20px;
    line-height: 1.8;
    min-width: 300px;
    min-height: 150px; /* テキストの高さを事前に確保 */
}

.fixed-company-name p {
    font-size: 2.5rem;
    color: #330B00;
    font-weight: bold;
    margin-bottom: 1em;
    font-family: "游明朝体 Medium", YuMincho Medium, serif;
}

.next-reform-logo2 {
    max-width: 500px; 
    margin:10px 50px 10px 0;
}

/* 親要素に位置の基準を設定 */
.hero-section {
    position: relative;
    width: 100%;
    height: 800px;  /* デフォルト値 */
}

/* スライダーのコンテナに対して */
.n2-section-smartslider {
    height: 100% !important; /* スライダープラグインの設定を上書き */
    width: 100% !important;
}

/* メイン */

/* 悩み */
.top-troubles {
    position: relative;
    background: #e5dbd6; 
    padding: 40px 0 85px;
}
.troubles-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 50px;
    margin-top: 40px;
    align-items: center;
}
.house-image {
    flex: 1;
}
.troubles-list {
    flex: 1;
}
.trouble-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border-bottom: 1px solid #f2e9e4; 
}
.trouble-item:last-child {
    border-bottom: none; 
}
.trouble-icon {
    width: 120px;
    margin-right: 60px;
}
.trouble-icon img {
    width: 100%;
    height: auto;
}

.wave-bottom svg {
    width: 100%;
    height: 100%;
}
.arrow-down {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounceArrow 2s infinite;
}
@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.trouble-content h3 {
    font-size: 25px;
    margin-bottom: 20px;
    color: #333;
}

.trouble-content p {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
    margin:0;
}

.wave-bottom svg {
    width: 100%;
    height: 100%;
}


/* 解決策 */
.site-main > .top-solution {
    margin-bottom: 0 !important;
}

.top-solution {
    position: relative;
    background: #fff;
    color: #333;
    padding-top: 120px;
    margin-top: -60px;
}

.top-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #e5dbd6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0C300 0 300 60 600 60C900 60 900 0 1200 0V60H0Z' fill='white'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* --- メインコピー --- */
.main-copy {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

/* --- タイトルとテキスト --- */
.features-title {
    font-size: 2.0rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.features-title2 {
    font-size: 2.0rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.features-title::after {
  content: "";
  display: block;
  width: 95px;
  height: 5px;
  margin: 3.5rem auto 0;
  background: linear-gradient(
    to right,
    #8B4513 0%,     /* ダークブラウン（シャドウ部分） */
    #B87333 25%,    /* コッパー */
    #D2936C 50%,    /* ライトブロンズ */
    #E6BE8A 75%,    /* シャンパンゴールド */
    #DAA987 100%    /* ローズゴールド */
  );
  /* 光沢効果 */
  box-shadow: 0 0 2px rgba(184, 115, 51, 0.3);
}

/* --- フッターテキスト --- */
.contact-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.service-overview {
  max-width: 530px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid transparent;
}

.overview-box {
  padding: 2rem;
  margin-bottom: 2rem;
  background: #FFFFFF;
  font-size: 1.5rem
}



/* 強み*/
.hero-message {
        max-width: 72rem;
        margin: 0 auto;
        padding: 1rem 1rem;
        text-align: center;
    }

    .hero-message h2 {
        font-size: 2.25rem;
        font-weight: bold;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-message .accent {
        color: #b45309;
        background: linear-gradient(transparent 70%, #fde68a 70%);
        padding: 0 0.2em;
    }

    .hero-message p {
        font-size: 1.25rem;
        color: #374151;
        line-height: 2;
    }


.strengths-section {
    background-color:#e5dbd6;
    width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
　padding: 120px 0; 
}

.strengths-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}


.strength-box {
    flex: 1;
    background: #fff;
    padding: 30px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-radius: 5px;
}

.strength-icon {
    text-align: center;
    margin-bottom: 20px;
}

.strength-icon img {
    width: 70%; /* または必要なサイズ */
    height: auto;
    display: block;
    margin: 0 auto;
}

.strength-content h3 {
    font-size: 23px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.strength-content p {
    font-size: 16px;
    line-height: 1.6;
}

.inner-container {
    max-width: 1200px;
    margin:0  auto;
    padding: 60px 20px;
}



/* ステップ */
.top-step {
    max-width: 1200px;
    background:#fff;
    margin: 0 auto;
    padding: 40px 20px;
}

.top-step__title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    font-weight: bold;
    color: #333;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.step-card__number {
    background: #333366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 25px;
}

.step-card__content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.step-card__text {
    flex: 1;
}

.step-card__title {
    font-size: 20px;
    font-weight: bold;
    color: #333366;
    margin-bottom: 15px;
}

.step-card__description {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.step-card__note {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.step-card__image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.step-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contract-notice {
    text-align: center;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 80%;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 1.1em;
}



/* コンタクト */
.site-main > .top-contact {
    margin-bottom: 0 !important;
}

.top-contact{
  background-color: #1B365C;
  padding: 40px 0;
}

.top-contact__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.top-contact__header {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.top-contact__price-circle {
  background: white;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.top-contact__price-label {
  font-size: 10px;
  color: #333;
}

.top-contact__price-amount {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.top-contact__title {
  color: white;
  font-size: 24px;
  margin: 0;
}

.top-contact__buttons {
    display: flex;
    gap: 20px;  /* 横並びのための間隔 */
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.top-contact__button {
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
    flex: 1;  /* 均等な幅で配置 */
    max-width: 380px;  /* ボタンの最大幅を設定 */
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.top-contact__button--tel {
  background-color: white;
  color: #2B517C;
  border-color: #2B517C;
}

.top-contact__button--tel:hover {
    transform: scale(0.95); /* 少し小さくする */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  color: #2B517C;
}

.top-contact__button--line {
  background-color: #00B900;
  color: white;
  border-color: #00B900;
}

.top-contact__button--line:hover {
    transform: scale(0.95); /* 少し小さくする */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  color: #fff;
}

.top-contact__button-text {
  font-weight: bold;
  font-size: 20px;
}

.top-contact__hours {
  font-size: 12px;
  margin-top: 5px;
  color: currentColor;
}



/* リフォームメニュー */
.reform-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reform-menu-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.reform-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}


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

.item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.service-menu {
    grid-column: span 2;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 50px;
}

.service-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.service-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #444;
}

.service-menu i {
    color: #666;
    width: 20px;
}

.service-menu img {
    width: 24px;  /* または必要なサイズ */
    height: auto;
    vertical-align: middle;
    margin-right: 10px;  /* テキストとの間隔 */
}




/* ライトボックス */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    padding: 20px;
}
#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    margin: auto;
    display: block;
}
#lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 16px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    padding: 10px;
    transition: opacity 0.3s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}
.lightbox-close {
    top: -40px;
    right: 0;
    font-size: 36px;
}
.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}



.menu-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}









/* フッター */
.site-footer {
    background: #e5dbd6;
    color: #333;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: minmax(300px, 1.5fr) minmax(250px, 1.0fr);
    gap: 3rem;
    align-items: start;
}

.company-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

address {
    font-style: normal;
    line-height: 1.8;
}

.business-hours {
    margin-top: 2rem;
}

.business-hours h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: normal;
}

.business-hours p {
    line-height: 1.8;
}

.note {
    margin-top: 0.5rem;
    font-size: 1.0rem;
    color: #333;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(27, 54, 92, 0.1);
}

.company-info img{
max-width:350px;
}

.inside-header {
    padding: 0px 25px !important;
}


















/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .hero-section {
        height: 512px;
    }
}


@media (max-width: 1024px) {
    .fixed-company-name {
        top: 50%;
        left: 5%;
    }
    
    .fixed-company-name p {
        font-size: 1.8rem; /* PCと携帯の中間サイズ */
    }
    
    .next-reform-logo {
        bottom: -50px; /* はみ出し量をタブレット用に調整 */
        left: 3%;
    }


}


@media (max-width: 768px) {
.menu-toggle .mobile-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        padding-right: 10px;
        cursor: pointer;
        z-index: 100;
    }

.main-nav{
        background:#fff;
        width: 100%; 
}   



    .phone-button, .contact-button {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 10px;
    }

.strengths-container {
        flex-direction: column;
    }

.strength-box {
    margin: 5px 20px;
}

 .fixed-company-name {
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 8px 16px;
    }
    
    .fixed-company-name p {
        font-size: 1.5rem;
        margin-bottom: 0.1em;
    }
    
 .troubles-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        position: relative;
    }
    .house-image {
        position: absolute;
        bottom: -20px;
        right: 50px;
        width: 170px;
        margin: 0;
    }
    .troubles-list {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
.trouble-icon {
    width: 100px;
    margin-right: 20px;
}
    .trouble-item {
        margin-bottom: 0;
    }
    .trouble-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .trouble-content p {
        font-size: 14px;
    }


    .hero-section {
        height: 350px;
    }


.hero-message h2 {
    font-size: 1.8rem;
}

.hero-message p {
    font-size: 1.05rem;
}

  .solution-features {
        flex-direction: column;
        gap: 30px;
    }

    .solution-title {
        font-size: 24px;
    }
    
    .wave-bottom {
        height: 10px;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .features-title {
        font-size: 1.8rem;
    }

 .features-title::after {
    width: 72px;  /* モバイル時の線の長さ */
  }

    .features-text {
        font-size: 0.95rem;
    }

.next-reform-logo2 {
    max-width: 400px; /* サイズ調整 */
    margin:10px 50px 10px 0;
}

    ::-webkit-scrollbar {
        display: none; /* スクロールバーを非表示にする */
    }

    body {
        -ms-overflow-style: none; /* IE用 */
        scrollbar-width: none;    /* Firefox用 */
    }

.overview-box {
  margin:0 auto;
  font-size: 1.2rem;
}
  
 .top-contact {
    padding: 30px 0;
  }

    .top-contact__buttons {
        flex-direction: column;
    }

    .top-contact__button {
        max-width: none;
    }
  
  .top-contact__button-text {
    font-size: 18px;
  }

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

    .sp-br {
        display: block;
    }

.section-title {
    line-height: 1.8; /* 行間を調整 */
}


    .top-step {
        padding: 40px 15px;
    }

    .step-container {
        padding: 0 10px;
    }

    .step-number {
        width: 60px;
        height: 60px;
    }

    .step-number span {
        font-size: 14px;
    }

    .step-content h3 {
        font-size: 20px;
    }

    .step-content p {
        font-size: 16px;
    }

    .step-connector {
        margin-left: 29px;
        height: 60px;
    }

    .contract-checkpoint {
        padding: 15px 20px;
        max-width: 320px;
    }

    .contract-checkpoint p {
        font-size: 16px;
    }

.service-overview {
        max-width: 430px;
        font-size: 1.0rem;
}

    .step-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .step-card__number {
        margin: 0 auto 20px;
    }
    
    .step-card__content {
        flex-direction: column;
        text-align: center;
    }

    .step-card__image {
        width: 100%;
        margin-top: 20px;
        order: 2;
    }

.strength-icon img {
    width: 40%; /* または必要なサイズ */
}


  .reform-menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .service-menu {
        grid-column: 1 / -1;
    }
    
    .service-menu ul {
        grid-template-columns: 1fr;
    }


/* 画像ホバー時のカーソル変更 */
.menu-item {
    cursor: pointer;
}


       .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .map-container {
        margin: 0 auto;
        max-width: 500px;
        order: 2;
    }
    .business-hours {
        margin-top: 1.5rem;
    }

.company-info img{
max-width:250px;
}

.menu-toggle{
font-size:20px !important;

}
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 44px; /* タップ領域を44px×44pxに設定（Apple推奨サイズ） */
        height: 44px;
        background-color: rgba(0, 0, 0, 0.5); /* タップ領域を視覚化 */
        border-radius: 50%; /* 円形のボタン */
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        padding: 0;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-next {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* スワイプ操作のための領域確保 */
    .lightbox-content {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
}


@media screen and (max-width: 480px) {
    .troubles-container {
        position: relative;  /* 追加 */
        min-height: 300px;  /* 追加：画像分の空間確保 */
    }
    
    .troubles-list {
        grid-template-columns: 1fr;
    }
    
    .house-image {
        width: 80px;
        right: -10px;
        bottom: 0;  /* 追加：位置を固定 */
    }
    
    .trouble-icon {
        width: 60px;
        height: auto;  /* 追加：アスペクト比維持 */
        margin-right: 20px;
    }
    
    .top-troubles {
        padding: 0 0 85px;
        position: relative;  /* 追加 */
    }
    
    .wave-bottom {
        height: 0px;
    }
    
    .next-reform-logo2 {
        max-width: 350px;  /* サイズ調整 */
        margin: 10px auto 10px;
    }
    
    .top-contact__header {
        gap: 10px;
    }
    
    .top-contact__title {
        font-size: 20px;
    }
    
    .fixed-company-name {
        top: 50%;
    }
    
    .sp-br2 {
        display: block;
    }
    
    .service-menu img {
        width: 22px;  /* または必要なサイズ */
    }
    
    .site-logo {
        width: 200px !important;
    }


}