/* ==================== */
/* リセット & 基本設定 */
/* ==================== */

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

:root {
    /* カラーパレット - 暖色系でシンプル・洗練 */
    --primary-color: #FF8C42;      /* 温かみのあるオレンジ */
    --secondary-color: #D35400;    /* 濃いオレンジ(アクセント) */
    --accent-light: #FFB88C;       /* 薄いオレンジ */
    --text-dark: #2C3E50;
    --text-light: #5D6D7E;
    --bg-light: #FFF8F3;           /* ベージュ系背景 */
    --bg-white: #FFFFFF;
    --border-color: #F0E5DC;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --secondary-color-dark: #B84A00;
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --floating-call-mobile-height: 0px;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ==================== */
/* ヘッダー */
/* ==================== */

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-primary {
    margin-left: auto;
}


.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== */
/* ヒーローセクション */
/* ==================== */

.hero {
    position: relative;
    background-color: var(--bg-light);
    padding-top: 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    opacity: 1;
    transform: translateY(0);
}

.js .hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .hero-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-highlight {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--secondary-color);
    font-weight: bold;
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    border: 2px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    box-shadow: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-hours {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* ==================== */
/* ボタン */
/* ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-toll-free {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.3;
    padding: 0.6rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    box-shadow: none;
}

.btn-toll-free:hover {
    background-color: var(--bg-white);
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

.free-dial-logo {
    height: auto;
    max-height: 28px;
    width: auto;
    display: block;
}

.free-dial-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.phone-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.btn-phone {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    font-size: 1.2rem;
    border: none;
    box-shadow: none;
}

.btn-phone:hover {
    background-color: var(--bg-white);
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

.btn-phone .phone-icon {
    width: 18px;
    height: 18px;
}

/* ==================== */
/* サービスセクション */
/* ==================== */

.main-services {
    background-color: var(--bg-light);
    padding: 2rem 0 0;
}

.main-services-header {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    padding: 0 1.5rem;
}

.main-services .section-title {
    color: var(--text-dark);
}

.main-services > section {
    margin-bottom: 0;
}

.main-services > section:last-of-type {
    margin-bottom: 0;
}

.moving-service {
    padding: 0;
    background-color: var(--bg-white);
}

.moving-service-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 500px;
}

.moving-service-image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
}

.moving-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.moving-service-content {
    background-color: var(--bg-light);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 500px;
    overflow-y: auto;
}

.moving-service-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: bold;
}

.moving-service-text p {
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.moving-service-text p:last-child {
    margin-bottom: 0;
}

.services {
    padding: 5rem 2rem;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}

.service-description {
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
}

/* ==================== */
/* 不用品回収セクション */
/* ==================== */

.waste-collection {
    padding: 0;
    background-color: var(--bg-white);
    border-top: 3px solid var(--border-color);
}

.waste-collection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "content images";
    min-height: 600px;
}

.waste-collection-left {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-area: images;
}

.waste-collection-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: left;
}

.waste-collection-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.waste-collection-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.waste-collection-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 1024px) {
    .waste-collection-images {
        align-items: center;
    }

    .waste-collection-image {
        width: min(320px, 100%);
        max-width: 320px;
        align-self: center;
        aspect-ratio: 4 / 3;
    }
}

.waste-collection-content {
    background-color: var(--bg-light);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-area: content;
}

.waste-collection-text p {
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.recycle-note {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.waste-collection-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.waste-collection-list li {
    background-color: var(--bg-white);
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 2.5rem;
}

.waste-collection-list li::before {
    content: "●";
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ==================== */
/* 遺品整理についてセクション */
/* ==================== */

.estate-settlement {
    padding: 0;
    background-color: var(--bg-white);
    border-top: 3px solid var(--border-color);
}

.estate-settlement-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 500px;
}

.estate-settlement-image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
}

.estate-settlement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.estate-settlement-content {
    background-color: var(--bg-light);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 500px;
    overflow-y: auto;
}

.estate-settlement-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.estate-settlement-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.estate-settlement-text p:last-child {
    margin-bottom: 0;
}

/* ==================== */
/* 見出し用フル幅白背景バンド */
/* ==================== */

.section-heading-band {
    position: relative;
    margin: 0; /* 上下の余白は内側のpaddingで管理 */
}

.section-heading-band::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;            /* ラッパーの高さに追従 */
    background: var(--bg-white);
    box-shadow: 0 0 0 100vmax var(--bg-white);
    clip-path: inset(0 -100vmax);
    z-index: 0;
}

.section-heading-band > .section-title,
.section-heading-band > .container {
    position: relative;
    z-index: 1;           /* バンドの上に見出し */
}

.section-heading-band > .section-title {
    margin: 0;
    padding: 1.25rem 0;   /* バンドの縦幅 */
}

.section-heading-band > .container > .section-title {
    margin: 0;
    padding: 1.25rem 0;   /* バンドの縦幅 */
}

/* 余白の微調整（任意） */
.section-heading-band + * { /* バンド直後の要素との間隔 */
    margin-top: 0;
}

/* その他サービスセクション：見出しとグリッドの間にマージン */
.section-heading-band + .services-grid {
    margin-top: 3rem;
}

/* ==================== */
/* 会社情報セクション */
/* ==================== */

.company {
    padding: 5rem 2rem;
    background-color: var(--bg-light);
}

.company .section-title {
    color: var(--text-dark);
}

.company-grid {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.company-info {
    background-color: var(--bg-white);
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 560px;
    width: 100%;
}

.company-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: bold;
}

.info-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.info-label {
    display: block;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.info-value {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}


/* ==================== */
/* フッター */
/* ==================== */

.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info {
    flex: 1;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-address,
.footer-phone {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

.footer-phone a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--bg-white);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* ==================== */
/* フローティング通話ボタン */
/* ==================== */

.floating-call-container {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.floating-call-btn {
    display: flex;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.9rem 1.3rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-direction: row;
    min-width: 140px;
    justify-content: center;
}

.floating-call-btn:hover {
    background-color: var(--secondary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.floating-call-btn-phone {
    background-color: var(--primary-color);
}

.floating-call-btn-phone:hover {
    background-color: var(--secondary-color);
}

.floating-call-btn .phone-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.floating-call-label {
    font-size: 1rem;
    opacity: 1;
    line-height: 1.2;
}

/* ==================== */
/* アニメーション */
/* ==================== */

.fade-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-target.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== */
/* レスポンシブデザイン */
/* ==================== */

@media (max-width: 960px) {
    :root {
        --floating-call-mobile-height: 72px;
    }

    /* ヘッダー */
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-primary {
        width: 100%;
        margin-left: 0;
    }

    .nav-primary .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .js .nav-primary {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
        border-radius: 12px;
        padding: 0.5rem 0;
        z-index: 1000;
        width: auto;
        margin-left: 0;
    }

    .js .nav-primary.active {
        display: block;
    }

    .js .mobile-menu-toggle {
        display: flex;
    }

    .js .nav-primary .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .js .nav-primary .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .js .nav-primary .nav-list li:last-child .nav-link {
        border-bottom: none;
    }

    .js .nav-primary .nav-link:hover {
        background-color: var(--bg-light);
    }

    /* ヒーロー */
    .hero {
        padding: 1rem 1rem 2rem;
        min-height: 500px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-highlight {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* セクション */
    .services,
    .company {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-heading-band > .section-title {
        padding: 1rem 0;   /* モバイルで縦幅を少し詰める */
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .moving-service-container {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .moving-service-image {
        max-height: none;
    }

    .moving-service-content {
        padding: 2rem 1.5rem;
        max-height: none;
        overflow-y: visible;
    }

    /* 会社情報 */
    .company-grid {
        gap: 2rem;
    }

    /* 不用品回収 */
    .waste-collection-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "images"
            "content";
    }

    .waste-collection-left {
        padding: 2rem 1.5rem;
    }

    .waste-collection-content {
        padding: 2rem 1.5rem;
    }

    /* 遺品整理 */
    .estate-settlement-container {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .estate-settlement-image {
        max-height: none;
    }

    .estate-settlement-content {
        padding: 2rem 1.5rem;
        max-height: none;
        overflow-y: visible;
    }

    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer {
        padding-bottom: calc(1.5rem + var(--floating-call-mobile-height) + env(safe-area-inset-bottom));
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* フローティング通話ボタン */
    .floating-call-container {
        display: flex;
        flex-direction: row;
        bottom: 0;
        left: 0;
        right: 0;
        align-items: stretch;
        gap: 0;
        width: 100%;
        min-height: var(--floating-call-mobile-height);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .floating-call-btn {
        flex: 1;
        border-radius: 0;
        min-width: 0;
        padding: 1rem 0.5rem;
        justify-content: center;
    }

    .floating-call-btn-phone {
        border-top-left-radius: 0;
        border-bottom-right-radius: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    .floating-call-btn:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .waste-collection-left {
        padding: 1.5rem 1rem;
    }

    .waste-collection-images {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .waste-collection-image {
        border-radius: 0;
        box-shadow: none;
        display: block;
        aspect-ratio: auto;
    }

    .waste-collection-image:first-child {
        grid-column: 1 / -1;
    }

    .waste-collection-image img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-heading-band > .section-title {
        padding: 0.8rem 0;   /* より小さい画面では更に詰める */
    }

    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .company-info {
        padding: 1.5rem;
    }
}
