* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f7f7f7;
    overflow: hidden;
    scrollbar-gutter: stable;
    background: url('images/Hero_section.jpg') center top/cover no-repeat;
    background-attachment: fixed;
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f7f7f7;
    overflow: hidden;
    scrollbar-gutter: stable;
    background: url('images/Hero_section.jpg') center top/cover no-repeat;
    background-attachment: fixed;
}
body.no-scroll {
    touch-action: none; 
    -webkit-overflow-scrolling: none;
    overflow: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}



/* -------------------
メインコンテンツ (ヘッダーの固定に対応)
------------------ */
.main-content {
    padding-top: 100px; 
}
.section-title {
    font-size: 40px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.2em;
}


/* -------------------
ヘッダー (半透明黒固定)
------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    background-color: rgba(0, 0, 0, 0.5); 
    color: #fff;
    height: 100px;
    padding: 0 50px;
}
.header__logo {
    display: flex;
    align-items: center;
}
.logo-box {
    width: 30px; 
    height: 30px; 
    margin-right: 10px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    line-height: 1;
}
.logo-text--main {
    font-weight: 400;
    letter-spacing: 0.1em;
}
.logo-text--sub {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.2em;
}
.header__nav {
    font-size: 14px;
    margin-left: auto;
}
.header__nav_sub {
    font-size: 14px;
    margin: 0 auto;
}
.nav-list {
    display: flex;
    gap: 40px;
    font-weight: 300;
}
.nav-item a:hover {
    color: #ccc;
}
.header__utility-group {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    z-index: 1000;
    margin-left: 30px;
}
.utility-link {
    font-size: 20px;
    transition: color 0.3s;
    white-space: nowrap; 
    display: flex;
    align-items: center;
}
.utility-link:hover {
    color: #ccc;
}
.utility-text {
    display: none !important;
}
.utility-link--social {
    font-size: 24px; 
}
.utility-link--social:hover {
    color: #f09433; 
}
.utility-link--phone:hover,
.utility-link--email:hover {
    color: #ADD8E6; 
}
.utility-link--social:has(.fa-x-twitter):hover {
    color: #ADD8E6;
}


/* -------------------
   ヒーローセクション
   ------------------- */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-section__content {
    padding: 0 80px 80px 80px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); 
    height: 200px;
    position: relative; 
    z-index: 3; 
    width: 100%;
    max-width: 1000px;
    align-items: center;
    justify-content: center;
    text-align: center;
    
}

.hero-section__title,
.hero-section__text {
    position: absolute;
    width: 100%;
    left: 0;
    margin: 0;
    transform: translate(0%, -50%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-section__title {
    font-family: 'Shippori Mincho B1', 'serif';
    font-size: 60px;
    font-weight: 500; 
    line-height: 1.5;
    margin-bottom: 20px;
    left: 0;
    top: 0;
    position: absolute;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease, transform 0.5s ease;
}

.hero-section__text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 2;
    opacity: 0;
    transform: translate(-150%, -50%);
    transition: opacity 2s ease-out 2s, transform 1s ease-out 0.4s;

}

.is-hidden {
    opacity: 0 !important;
    transform: translate(0%, -100%) !important;
}


.hero-section__title.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, -150%) !important;
}

.hero-section__text.is-visible {
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* -------------------
会社概要セクション (ABOUT)
------------------- */
.about-section {
    min-height: 900px; 
    height: auto; 
    padding: 100px 20px;
    background-color: rgba(229, 229, 229, 0.9); 
}
    

.about-section__content {
    display: flex;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section__image-container {
    flex-shrink: 0;
    width: 500px; 
    height: 333px; 
    background: url('images/TAKAKIhousing.jpg') center center/cover no-repeat;
}

.about-section__info {
    flex-grow: 1;
    font-size: 14px;
}

.about-section__company-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* --- ABOUTセクションの修正 --- */
.about-section__container {
    display: flex;
    flex-wrap: wrap;       
    gap: 40px;             
    align-items: center;   
    justify-content: center;
    width: 100%;
    max-width: 1200px;    
    margin: 0 auto;
}

/* 画像部分 */
.about-section__image {
    flex: 1 1 400px; 
    min-width: 300px;    
    width: 100%;
}

.about-section__image img {
    width: 100%;      
    height: auto;     
    display: block;     
    object-fit: cover;
}
.about-section__text {
    flex: 1 1 400px;
    width: 100%;
}
.company-details {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 5px 10px;
    margin-bottom: 20px;
}
.company-details dt {
    font-weight: 500;
}
.company-details dd {
    font-weight: 300;
}
.company-licence {
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.8;
}
.company-services__title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}
.service-list {
    list-style: none;
    padding-left: 0;
    font-weight: 300;
    line-height: 1.8;
}



/* -------------------
サービスセクション (SERVICE)
------------------- */
.service-section {
    background: url('images/Service_section.jpg') center center/cover no-repeat;
    background-color: #333; 
    background-attachment: scroll; 
    
    height: 100dvh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-section__overlay {
    background-color: rgba(0, 0, 0, 0.3); 
    padding: 50px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-section__title {
    color: #fff;
    margin-bottom: 30px;
}

.service-section__intro {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
}

.service-list--main {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.5;
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------
実績セクション (ACHIEVEMENTS)
------------------- */
.achievements-section {
    background-color: white;
    padding: 100px 80px;
    color: #666;
    min-height: 900px; 
    height: auto; 
    display: flex; 
    flex-direction: column;
    align-items: center;
}

.achievements-section__title {
    color: #333; 
    margin-bottom: 30px; 
}

.achievement-contents {
    max-width: 1400px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 30px; 
    width: 100%;
}
.achievement-card {
    background-color: #e5e5e5;
    max-height: 250px; 
    height: 250px; 
    width: 200px;
    transition: all 0.5s ease-in-out; 
    overflow: hidden; 
    opacity: 1;
    visibility: visible;
}
.achievement-card.hidden-card {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    visibility: hidden; 
    transition: all 0.5s ease-in-out, margin 0s 0.5s, padding 0s 0.5s, visibility 0s 0.5s; 
}
.show-more-button {
    background: none;
    border: none; 
    border-radius: 0;
    font-size: 0; 
    color: #333;
    cursor: pointer;
    padding: 0; 
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0; 
}
.show-more-button:hover {
    background-color: transparent; 
}
.toggle-icon {
    width: 30px; 
    height: 30px;
    transition: transform 0.3s;
}
.rotate {
    transform: rotate(180deg);
}

/* -------------------
採用セクション (RECRUIT)
------------------- */
.recruit-section {
    background: url('images/Recruit_section.jpg') center center/cover no-repeat;
    background-color: #666; 
    background-attachment: scroll; 
    
    height: 900px; 
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 80px;
}

.recruit-section__title {
    color: #fff;
    margin-bottom: 20px;
}

.recruit-section__intro {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 50px;
}

.recruit-section__cards {
    display: flex;
    gap: 40px;
}

.recruit-card {
    width: 300px; 
    height: 300px; 
    background-color: rgba(255, 255, 255, 0.4); 
    border-radius: 8px;
}
.recruit-card h4 {
    font-weight: normal;
    font-size: 30px;
    padding: 20px 0px;
}
.recruit-card li {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.5;
    margin: 0 auto;
    list-style: none;
}

/* -------------------
   お問い合わせセクション (CONTACT)
   ------------------- */
.contact-section {
    background-color: white;
    height: 900px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding-top: 50px; 
}

.contact-section__title {
    color: #666;
    margin-top: 0; 
    margin-bottom: 30px; 
}

.contact-section__form-container {
    width: 500px; 
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input,
.form-textarea {
    border: 1px solid #999; 
    width: 100%;
    padding: 15px;
    background-color: #fff;
    font-size: 16px;
    font-family: inherit;
    font-weight: 300;
}

.form-textarea {
    min-height: 150px; 
    resize: vertical;
}

.submit-button {
    padding: 15px 30px;
    background-color: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    align-self: center; 
    width: 150px; 
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

.submit-button:hover {
    background-color: #ccc;
    color: navy;
}

/* -------------------
   フッター
   ------------------- */
.footer {
    background-color: #f6f6f6;
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid #e0e0e0;
}

.footer__nav {
    flex-basis: 200px; 
    font-weight: 300;
}


.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 16px;
    color: #333;
}

.footer-nav-list a:hover {
    color: #999; 
}

.footer__info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    text-align: right;
}

.footer__logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #000;
}


.footer-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 10px;
    font-size: 14px;
    font-weight: 300;
}

.footer-details dt {
    font-weight: 500;
    text-align: right;
}

.footer-details dd {
    font-weight: 300;
    text-align: left;
}


/* -------------------
   トップへ戻るボタン (常に固定表示)
   ------------------- */
.back-to-top {
    /* 画面下端に固定 */
    position: fixed;
    bottom: 30px; /* 下からの距離 */
    right: 30px; /* 右からの距離 */
    z-index: 999; /* 最前面に表示 */
    
    /* スタイル */
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 円形に */
    background-color: rgba(0, 0, 0, 0.7); /* 半透明の黒 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, opacity 0.3s;
    
    opacity: 0.8; 
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1;
}

/* -------------------
   ハンバーガーアイコン
   ------------------- */
.hamburger {
    display: none;
}


@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header__right-items {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 5px;
    }
    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #ffffff !important;
        border-radius: 2px;
        transition: all 0.3s;
    }
}


/* ===================================
   ハンバーガーアイコン (バッテン) アニメーション
   =================================== */

.hamburger {
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg); 
}

.mobile-nav {
    display: block !important;
    position: fixed;
    top: 0;  
    right: -100%;  
    width: 80%;   
    height: 100vh;  
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;  
    padding: 100px 40px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    will-change: right;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

.mobile-nav-list a {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
}

.mobile-nav-list a:hover {
    color: #ccc;
}

.mobile-nav.active {
    right: 0; 
    visibility: visible;
}


.hero-section__title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}


.hero-section__text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}


.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}


.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .about-section {
        padding: 60px 40px;
    }
    
    .about-section__container {
        flex-direction: column;
        text-align: center;  
    }

    .about-section__image {
        max-width: 600px;
        margin: 0 auto 30px;
    }
}


/* ===================================
   レスポンシブ対応 (Media Queries)
   =================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    .main-content {
        padding-top: 60px;
    }
    .header {
        height: 60px;
        padding: 0 20px;
        justify-content: flex-start;
    }
    .hamburger {
        display: flex;
        margin-right: 20px;
    }
    .header__nav {
        display: none;
    }
    .header__utility-group {
        margin-left: auto;
        gap: 15px; 
        z-index: 1001; 
    }
    .utility-link {
        font-size: 14px; 
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .utility-link i {
        font-size: 20px; 
    }
    .utility-link .utility-text {
        display: none !important;
    }
    .mobile-nav {
        top: 60px;
    }
    .hero-section {
        height: 100dvh;
        background: transparent; 
    }
    .hero-section__content {
        padding: 0 20px 40px 20px;
    }
    .hero-section__title {
        font-size: 36px;
        line-height: 1.4;
    }
    .about-section {
        padding: 60px 20px;
        height: auto; 
        background-color: transparent !important;
        background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.9));
    }
    .about-section__content {
        flex-direction: column;
        gap: 30px;
    }
    .about-section__image-container {
        width: 100%;
        height: 200px; 
    }
    .company-details {
        grid-template-columns: 70px 1fr;
    }
    .service-section {
        height: 100dvh;
        font-size: auto;
        padding: 60px 20px;
    }
    .service-section li {
        font-size: clamp(13px, 1.5vw, 16px);
    }
    .service-section__title,
    .about-section__title {
        font-size: clamp(24px, 4vw, 40px);
        text-wrap: balance;
    }
    .achievements-section {
        padding: 60px 20px;
        height: auto;  
        min-height: 100dvh;
    }
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    .recruit-section {
        height: 100dvh;
        padding: 60px 20px;
    }
    
    .recruit-section__cards {
        flex-direction: column;
        gap: 30px;
    }
    
    .recruit-card {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .contact-section {
        height: 100dvh;
        padding: 60px 20px;
    }
    
    .contact-section__form-container {
        width: 100%;
    }
    
    .footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 20px;
    }

    .footer__nav {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .footer__info {
        width: 100%;
        margin-left: 0;
        text-align: left; 
    }


    .footer-details {

        display: block !important; 
        grid-template-columns: none !important;
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .footer-details dt {
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        font-weight: bold;
    }

    .footer-details dd {
        width: 100% !important;
        text-align: left !important; 
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
        line-height: 1.4;
    }
    

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    body {
        background-size: auto 100vh;
        background-position: center top;
        background-repeat: no-repeat;
    }
}


/* -------------------
   下層ページ共通設定 (CONTACT用)
   ------------------- */

.sub-page {
    background: #f7f7f7 !important;
}

.page-header {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.page-header__title {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: 0.1em;
    font-weight: 300;
    color: black;
}

.page-header__subtitle {
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-top: 10px;
    color: black;
}

.contact-page-content {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-input,
form-textarea {
    border: 1px solid #999;
    border-radius: 5px;
}

.form-group label span {
    color: #d9534f;
    font-size: 12px;
    margin-left: 5px;
}


@media (max-width: 768px) {
    .page-header {
        height: 200px;
    }
    .contact-page-content {
        margin-bottom: 60px;
    }
}

.section-footer-button {
    text-align: center;
    margin-top: 50px;
}


.section-footer-button .submit-button {
    display: inline-block;
    width: auto;
    min-width: 280px;
    padding: 0 40px;
    text-decoration: none;
    line-height: 50px;
}

@media (max-width: 768px) {
    .section-footer-button {
        margin-top: 30px;
    }
    .section-footer-button .submit-button {
        width: 100%;
        min-width: unset;
    }
}















/* -------------------
   お知らせセクション (NEWS)
   ------------------- */
.news-section {
    background-color: white;
    height: 600px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding-top: 50px; 
}

.news-section__title {
    color: #666;
    margin-top: 0; 
    margin-bottom: 30px; 
}

.news-section__content-wrapper {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-self: center;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 30px;
}

.news-item {
    border-bottom: 1px solid #999; 
    width: 100%;
    padding: 24px;
    background-color: #fff;
    font-size: 16px;
    font-family: inherit;
    font-weight: 300;
    display: flex;
}

.news-category{
    margin: 0 16px;
    padding: 4px 8px;
    background-color: #aaa;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    width: 150px; 
    transition: background-color 0.3s, color 0.3s;
    border-radius: 3px;
}
.news-btn {
    padding: 15px 30px;
    background-color: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: 150px; 
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    text-align: center;
    align-self: flex-end;
}

.news-btn:hover {
    background-color: #ccc;
    color: navy;
}

body.no-scroll {
    touch-action: none; 
    -webkit-overflow-scrolling: none;
    overflow: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}



/* -------------------
メインコンテンツ (ヘッダーの固定に対応)
------------------ */
.main-content {
    padding-top: 100px; 
}
.section-title {
    font-size: 40px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.2em;
}


/* -------------------
ヘッダー (半透明黒固定)
------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    background-color: rgba(0, 0, 0, 0.5); 
    color: #fff;
    height: 100px;
    padding: 0 50px;
}
.header__logo {
    display: flex;
    align-items: center;
}
.logo-box {
    width: 30px; 
    height: 30px; 
    margin-right: 10px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    line-height: 1;
}
.logo-text--main {
    font-weight: 400;
    letter-spacing: 0.1em;
}
.logo-text--sub {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.2em;
}
.header__nav {
    font-size: 14px;
    margin-left: auto;
}
.nav-list {
    display: flex;
    gap: 40px;
    font-weight: 300;
}
.nav-item a:hover {
    color: #ccc;
}
.header__utility-group {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    z-index: 1000;
    margin-left: 30px;
}
.utility-link {
    font-size: 20px;
    transition: color 0.3s;
    white-space: nowrap; 
    display: flex;
    align-items: center;
}
.utility-link:hover {
    color: #ccc;
}
.utility-text {
    display: none !important;
}
.utility-link--social {
    font-size: 24px; 
}
.utility-link--social:hover {
    color: #f09433; 
}
.utility-link--phone:hover,
.utility-link--email:hover {
    color: #ADD8E6; 
}
.utility-link--social:has(.fa-x-twitter):hover {
    color: #ADD8E6;
}


/* -------------------
   ヒーローセクション
   ------------------- */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-section__content {
    padding: 0 80px 80px 80px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); 
    height: 200px;
    position: relative; 
    z-index: 3; 
    width: 100%;
    max-width: 1000px;
    align-items: center;
    justify-content: center;
    text-align: center;
    
}

.hero-section__title,
.hero-section__text {
    position: absolute;
    width: 100%;
    left: 0;
    margin: 0;
    transform: translate(0%, -50%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-section__title {
    font-family: 'Shippori Mincho B1', 'serif';
    font-size: 60px;
    font-weight: 500; 
    line-height: 1.5;
    margin-bottom: 20px;
    left: 0;
    top: 0;
    position: absolute;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease, transform 0.5s ease;
}

.hero-section__text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 2;
    opacity: 0;
    transform: translate(-150%, -50%);
    transition: opacity 2s ease-out 2s, transform 1s ease-out 0.4s;

}

.is-hidden {
    opacity: 0 !important;
    transform: translate(0%, -100%) !important;
}


.hero-section__title.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, -150%) !important;
}

.hero-section__text.is-visible {
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* -------------------
会社概要セクション (ABOUT)
------------------- */
.about-section {
    min-height: 900px; 
    height: auto; 
    padding: 100px 20px;
    background-color: rgba(229, 229, 229, 0.9); 
}
    

.about-section__content {
    display: flex;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section__image-container {
    flex-shrink: 0;
    width: 500px; 
    height: 333px; 
    background: url('images/TAKAKIhousing.jpg') center center/cover no-repeat;
}

.about-section__info {
    flex-grow: 1;
    font-size: 14px;
}

.about-section__company-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* --- ABOUTセクションの修正 --- */
.about-section__container {
    display: flex;
    flex-wrap: wrap;       
    gap: 40px;             
    align-items: center;   
    justify-content: center;
    width: 100%;
    max-width: 1200px;    
    margin: 0 auto;
}

/* 画像部分 */
.about-section__image {
    flex: 1 1 400px; 
    min-width: 300px;    
    width: 100%;
}

.about-section__image img {
    width: 100%;      
    height: auto;     
    display: block;     
    object-fit: cover;
}
.about-section__text {
    flex: 1 1 400px;
    width: 100%;
}
.company-details {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 5px 10px;
    margin-bottom: 20px;
}
.company-details dt {
    font-weight: 500;
}
.company-details dd {
    font-weight: 300;
}
.company-licence {
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.8;
}
.company-services__title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}
.service-list {
    list-style: none;
    padding-left: 0;
    font-weight: 300;
    line-height: 1.8;
}



/* -------------------
サービスセクション (SERVICE)
------------------- */
.service-section {
    background: url('images/Service_section.jpg') center center/cover no-repeat;
    background-color: #333; 
    background-attachment: scroll; 
    
    height: 100dvh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-section__overlay {
    background-color: rgba(0, 0, 0, 0.3); 
    padding: 50px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-section__title {
    color: #fff;
    margin-bottom: 30px;
}

.service-section__intro {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
}

.service-list--main {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.5;
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------
実績セクション (ACHIEVEMENTS)
------------------- */
.achievements-section {
    background-color: white;
    padding: 100px 80px;
    color: #666;
    min-height: 900px; 
    height: auto; 
    display: flex; 
    flex-direction: column;
    align-items: center;
}

.achievements-section__title {
    color: #333; 
    margin-bottom: 30px; 
}

.achievement-contents {
    max-width: 1400px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 30px; 
    width: 100%;
}
.achievement-card {
    background-color: #e5e5e5;
    max-height: 250px; 
    height: 250px; 
    width: 200px;
    transition: all 0.5s ease-in-out; 
    overflow: hidden; 
    opacity: 1;
    visibility: visible;
}
.achievement-card.hidden-card {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    visibility: hidden; 
    transition: all 0.5s ease-in-out, margin 0s 0.5s, padding 0s 0.5s, visibility 0s 0.5s; 
}
.show-more-button {
    background: none;
    border: none; 
    border-radius: 0;
    font-size: 0; 
    color: #333;
    cursor: pointer;
    padding: 0; 
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0; 
}
.show-more-button:hover {
    background-color: transparent; 
}
.toggle-icon {
    width: 30px; 
    height: 30px;
    transition: transform 0.3s;
}
.rotate {
    transform: rotate(180deg);
}

/* -------------------
採用セクション (RECRUIT)
------------------- */
.recruit-section {
    background: url('images/Recruit_section.jpg') center center/cover no-repeat;
    background-color: #666; 
    background-attachment: scroll; 
    
    height: 900px; 
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 80px;
}

.recruit-section__title {
    color: #fff;
    margin-bottom: 20px;
}

.recruit-section__intro {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 50px;
}

.recruit-section__cards {
    display: flex;
    gap: 40px;
}

.recruit-card {
    width: 300px; 
    height: 300px; 
    background-color: rgba(255, 255, 255, 0.4); 
    border-radius: 8px;
}
.recruit-card h4 {
    font-weight: normal;
    font-size: 30px;
    padding: 20px 0px;
}
.recruit-card li {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.5;
    margin: 0 auto;
    list-style: none;
}

/* -------------------
   お問い合わせセクション (CONTACT)
   ------------------- */
.contact-section {
    background-color: white;
    height: 900px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding-top: 50px; 
}

.contact-section__title {
    color: #666;
    margin-top: 0; 
    margin-bottom: 30px; 
}

.contact-section__form-container {
    width: 500px; 
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input,
.form-textarea {
    border: 1px solid #999; 
    width: 100%;
    padding: 15px;
    background-color: #fff;
    font-size: 16px;
    font-family: inherit;
    font-weight: 300;
}

.form-textarea {
    min-height: 150px; 
    resize: vertical;
}

.submit-button {
    padding: 15px 30px;
    background-color: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    align-self: center; 
    width: 150px; 
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

.submit-button:hover {
    background-color: #ccc;
    color: navy;
}

/* -------------------
   フッター
   ------------------- */
.footer {
    background-color: #f6f6f6;
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid #e0e0e0;
}

.footer__nav {
    flex-basis: 200px; 
    font-weight: 300;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 16px;
    color: #333;
}

.footer-nav-list a:hover {
    color: #999; 
}

.footer__info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    text-align: right;
}

.footer__logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #000;
}

.footer-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 10px;
    font-size: 14px;
    font-weight: 300;
}

.footer-details dt {
    font-weight: 500;
    text-align: right;
}

.footer-details dd {
    font-weight: 300;
    text-align: left;
}


/* -------------------
   トップへ戻るボタン (常に固定表示)
   ------------------- */
.back-to-top {
    /* 画面下端に固定 */
    position: fixed;
    bottom: 30px; /* 下からの距離 */
    right: 30px; /* 右からの距離 */
    z-index: 999; /* 最前面に表示 */
    
    /* スタイル */
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 円形に */
    background-color: rgba(0, 0, 0, 0.7); /* 半透明の黒 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, opacity 0.3s;
    
    opacity: 0.8; 
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1;
}

/* -------------------
   ハンバーガーアイコン
   ------------------- */
.hamburger {
    display: none;
}


@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header__right-items {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 5px;
    }
    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #ffffff !important;
        border-radius: 2px;
        transition: all 0.3s;
    }
}


/* ===================================
   ハンバーガーアイコン (バッテン) アニメーション
   =================================== */

.hamburger {
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg); 
}

.mobile-nav {
    display: block !important;
    position: fixed;
    top: 0;  
    right: -100%;  
    width: 80%;   
    height: 100vh;  
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;  
    padding: 100px 40px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    will-change: right;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

.mobile-nav-list a {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
}

.mobile-nav-list a:hover {
    color: #ccc;
}

.mobile-nav.active {
    right: 0; 
    visibility: visible;
}


.hero-section__title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}


.hero-section__text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}


.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}


.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .about-section {
        padding: 60px 40px;
    }
    
    .about-section__container {
        flex-direction: column;
        text-align: center;  
    }

    .about-section__image {
        max-width: 600px;
        margin: 0 auto 30px;
    }
}


/* ===================================
   レスポンシブ対応 (Media Queries)
   =================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    .main-content {
        padding-top: 60px;
    }
    .header {
        height: 60px;
        padding: 0 20px;
        justify-content: flex-start;
    }
    .hamburger {
        display: flex;
        margin-right: 20px;
    }
    .header__nav {
        display: none;
    }
    .header__utility-group {
        margin-left: auto;
        gap: 15px; 
        z-index: 1001; 
    }
    .utility-link {
        font-size: 14px; 
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .utility-link i {
        font-size: 20px; 
    }
    .utility-link .utility-text {
        display: none !important;
    }
    .mobile-nav {
        top: 60px;
    }
    .hero-section {
        height: 100dvh;
        background: transparent; 
    }
    .hero-section__content {
        padding: 0 20px 40px 20px;
    }
    .hero-section__title {
        font-size: 36px;
        line-height: 1.4;
    }
    .about-section {
        padding: 60px 20px;
        height: auto; 
        background-color: transparent !important;
        background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.9));
    }
    .about-section__content {
        flex-direction: column;
        gap: 30px;
    }
    .about-section__image-container {
        width: 100%;
        height: 200px; 
    }
    .company-details {
        grid-template-columns: 70px 1fr;
    }
    .service-section {
        height: 100dvh;
        font-size: auto;
        padding: 60px 20px;
    }
    .service-section li {
        font-size: clamp(13px, 1.5vw, 16px);
    }
    .service-section__title,
    .about-section__title {
        font-size: clamp(24px, 4vw, 40px);
        text-wrap: balance;
    }
    .achievements-section {
        padding: 60px 20px;
        height: auto;  
        min-height: 100dvh;
    }
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    .recruit-section {
        height: 100dvh;
        padding: 60px 20px;
    }
    
    .recruit-section__cards {
        flex-direction: column;
        gap: 30px;
    }
    
    .recruit-card {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .contact-section {
        height: 100dvh;
        padding: 60px 20px;
    }
    
    .contact-section__form-container {
        width: 100%;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
    }
    
    .footer-details {
        display: grid;
        grid-template-columns: 100px 1fr; 
        gap: 5px 10px;
        font-size: 14px;
        max-width: 300px; 
        margin: 0 auto;
    }
    
    .footer-details dt {
        text-align: right; 
        font-weight: 500;
    }
    .footer-details dd {
        text-align: left; 
        font-weight: 300;
    }
    

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    body {
        background-size: auto 100vh;
        background-position: center top;
        background-repeat: no-repeat;
    }
}

/* -------------------
   トピックセクション (TOPIC)
   ------------------- */
.topic-section {
    background-color: #f7f7f7; 
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topic-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    line-height: 0;
}

.topic-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


@media (max-width: 768px) {
    .topic-section {
        padding: 60px 20px;
    }
    .topic-container {
        max-width: 100%;
    }
    .news-item {
        flex: 0 1 100%;
    }
    .topic-container img {
        height: 180px; 
    }
}
/* -------------------
   下層ページ共通設定 (CONTACT用)
   ------------------- */

.sub-page {
    background: #f7f7f7 !important;
}

.page-header {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.page-header__title {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: 0.1em;
    font-weight: 300;
    color: black;
}

.page-header__subtitle {
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-top: 10px;
    color: black;
}

.contact-page-content {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-input,
form-textarea {
    border: 1px solid #999;
    border-radius: 5px;
}

.form-group label span {
    color: #d9534f;
    font-size: 12px;
    margin-left: 5px;
}


@media (max-width: 768px) {
    .page-header {
        height: 200px;
    }
    .contact-page-content {
        margin-bottom: 60px;
    }
}

.section-footer-button {
    text-align: center;
    margin-top: 50px;
}


.section-footer-button .submit-button {
    display: inline-block;
    width: auto;
    min-width: 280px;
    padding: 0 40px;
    text-decoration: none;
    line-height: 50px;
}

@media (max-width: 768px) {
    .section-footer-button {
        margin-top: 30px;
    }
    .section-footer-button .submit-button {
        width: 100%;
        min-width: unset;
    }
}











/* -------------------
   お知らせセクション (NEWS)
   ------------------- */
.news-section {
    background-color: white;
    height: 600px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding-top: 50px; 
}

.news-section__title {
    color: #666;
    margin-top: 0; 
    margin-bottom: 30px; 
}

.news-section__content-wrapper {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-self: center;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 30px;
}

.news-item {
    border-bottom: 1px solid #999; 
    width: 100%;
    padding: 24px;
    background-color: #fff;
    font-size: 16px;
    font-family: inherit;
    font-weight: 300;
    display: flex;
}

.news-category{
    margin: 0 16px;
    padding: 4px 8px;
    background-color: #aaa;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    width: 150px; 
    transition: background-color 0.3s, color 0.3s;
    border-radius: 3px;
}
.news-btn {
    padding: 15px 30px;
    background-color: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: 150px; 
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    text-align: center;
    align-self: flex-end;
}

.news-btn:hover {
    background-color: #ccc;
    color: navy;
}

@media screen and (max-width: 768px) {
    .news-list {
        display: block !important; 
        padding: 0;
        list-style: none;
    }

    .news-item {
        width: 100%;
        margin-bottom: 20px; 
        border-bottom: 1px solid #eee; 
        padding-bottom: 10px;
    }

    .news-item a {
        display: block; 
        text-decoration: none;
        color: inherit;
    }

    .news-date, 
    .news-category {
        display: inline-block; 
        margin-right: 0px; 
        margin-bottom: 8px;  
        font-size: 0.9rem;
    }

    .news-category {
        width: auto !important; 
        flex-grow: 0 !important;
        flex-shrink: 0;
        padding: 2px 10px; 
        display: inline-block; 
        text-align: center;
    }

    .news-title {
        display: block; 
        line-height: 1.5;
    }

    .footer__info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer__logo {
        justify-content: center;
        margin-right: 0;
        margin: 30px 0;
    }

    .footer-details {
        margin: 0 auto;
        display: inline-block;
        text-align: left;
    }

    .footer-details dt,
    .footer-details dd {
        display: inline-block;
    }
}


.privacy-section {
    padding: 160px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
}

.page-title {
    font-family: 'Shippori Mincho B1', serif;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    font-weight: 400;
}

.privacy-content h2 {
    font-size: 1.2rem;
    margin: 40px 0 20px;
    padding-left: 10px;
    border-left: 4px solid #333;
    font-weight: 400;
}

.privacy-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.privacy-footer-info {
    margin-top: 60px;
    padding: 20px;
    background-color: #f9f9f9;
}

.date {
    margin-top: 30px;
    text-align: right;
    font-weight: bold;
}

@media (max-width: 768px) {
    .privacy-section {
        padding-top: 120px;
    }
    .page-title {
        font-size: 1.5rem;
    }
}