body {
    margin: 0;
    font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: #222;
}

.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)),
        url("../images/hero.webp") no-repeat center right;

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* iPhone 12 Pro付近だけ調整 */
@media (min-width: 361px) and (max-width: 391px) {
    .hero-subtitle {
        font-size: 14px;
        white-space: nowrap;
    }
}

.hero h1 {
    font-size: 52px;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 20px;
}

.hero-line {
    display: block;
}

.hero-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero {
        min-height: 520px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-text {
        font-size: 16px;
    }
}

.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(4px);
    box-shadow: none !important;
    padding: 24px 0;
}

.navbar-brand,
.nav-link {
    color: white !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.navbar-brand {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-left: 20px;
}

.nav-item {
    margin-left: 20px;
}

.navbar-nav {
    gap: 18px;
}

.nav-link {
    font-size: 15px;
}

.hero .btn {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
}

.services {
    padding: 100px 0;
    background-color: #f7f7f7;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-label {
    margin-bottom: 8px;
    color: #d69e00;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading h2 {
    margin-bottom: 18px;
    font-size: 40px;
    font-weight: 700;
}

.section-heading p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.8;
}

.service-card {
    padding: 36px 30px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.service-icon {
    margin-bottom: 20px;
    font-size: 46px;
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 700;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

.service-card ul {
    margin: 22px 0 0;
    padding-left: 20px;
}

.service-card li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .services {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 30px 24px;
    }
}

.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.about-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    text-align: center;
}

.about-card h3 {
    margin-bottom: 15px;
}

.about-card:hover {
    transform: translateY(-5px);
    transition: .3s;
}

.icon {
    font-size: 42px;
}

.company {
    padding: 100px 0;
    background-color: #ffffff;
}

.company-heading {
    margin-bottom: 50px;
}

.company-label {
    margin-bottom: 8px;
    color: #d69e00;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.company-heading h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
}

.company-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-top: 3px solid #222;
    border-bottom: 3px solid #222;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 22px 28px;
    border-bottom: 1px solid #dcdcdc;
    text-align: left;
    vertical-align: middle;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 240px;
    background-color: #f5f5f5;
    color: #444;
    font-weight: 700;
}

.company-table td {
    color: #444;
    line-height: 1.8;
}

.company-table a {
    color: #b97800;
    text-decoration: none;
}

.company-table a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .company {
        padding: 70px 0;
    }

    .company-heading h2 {
        font-size: 32px;
    }

    .company-table-wrap {
        border-top-width: 2px;
        border-bottom-width: 2px;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 14px 18px;
    }

    .company-table th {
        border-bottom: none;
    }

    .company-table td {
        padding-top: 10px;
        padding-bottom: 20px;
    }

}

.company-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.company-table-wrap {
    max-width: none;
    margin: 0;
}

.company-map {
    min-height: 100%;
}

.company-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    min-height: 0;
    border: 0;
    border-radius: 10px;
}

.company-photo {
    display: block;
    width: 100%;
    height: 420px;
    margin-top: 15px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .company-layout {
        grid-template-columns: 1fr;
    }

    .company-map iframe {
        min-height: 380px;
    }
}

.contact {
    padding: 100px 0;
    background: #f5f5f5;
}

.contact-heading {
    margin-bottom: 40px;
}

.contact-label {
    margin-bottom: 8px;
    color: #c99a45;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.contact-heading h2 {
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: 700;
}

.contact-heading p {
    margin: 0;
    color: #222;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    min-height: 64px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.contact-phone {
    background: #222;
    color: #fff;
}

.contact-mail {
    background: #ffc107;
    color: #222;
}

.contact-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact {
        padding: 120px 0 85px;
        background: #f5f5f5;
    }

    .contact-heading h2 {
        font-size: 32px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 320px;
    }
}

.footer {
    padding: 25px 20px;
    background: #222;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.3;
}

.footer-info p {
    margin-bottom: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
}

.footer-nav a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #ffc107;
}

.footer-copy {
    margin: 25px 0 0;
    color: #aaa;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 768px) {
    .footer {
        padding: 35px 0 20px;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-info {
        flex: 1;
    }

    .footer-info p {
        line-height: 1.8;
        margin: 4px 0;
        margin-bottom: 12px;
        white-space: normal;
    }

    .footer-nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-left: 30px;
    }

    .footer-nav a {
        display: block;
        padding: 4px 0;
    }

    .footer-hours {
        margin-top: 18px;
        line-height: 1.8;
    }

    .about-grid {
        gap: 12px;
    }

    .about-card {
        padding: 18px 8px;
        min-height: 180px;
    }

    .about-card h3 {
        font-size: 20px;
        white-space: nowrap;
        margin-bottom: 12px;
    }

    .about-card p {
        font-size: 15px;
        line-height: 1.8;
        margin: 0;
    }

}

.navbar-toggler {
    background-color: #fff;
    border: 1px solid ragba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

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

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero,
    .navbar,
    .hero-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 360px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-card {
        width: 100%;
        min-width: 0;
        padding: 20px 16px;
    }

    .about-card h3 {
        white-space: normal;
        font-size: 19px;
    }

    .about-card p {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 30px 14px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: minmax(0, 1.6fr) minmax(85px, 1fr);
        gap: 18px;
        align-items: start;
    }

    .footer-info {
        min-width: 0;
    }

    .footer-nav {
        min-width: 85px;
        margin-left: 8px;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-nav a {
        font-size: 13px;
        line-height: 1.5;
        white-space: nowrap;
    }

    .footer-info h2 {
        font-size: 23px;
    }

    .footer-info p {
        font-size: 12px;
        line-height: 1.7;
    }

    .footer-copy {
        font-size: 11px;
        white-space: nowrap;
    }
}

/* 文章を濃くして読みやすくする */
.about-text,
.about-card p,
.section-heading p,
.service-card p,
.service-card li,
.company-table td,
.contact-text {
    color: #444;
    font-weight: 500;
}

.about-text,
.section-heading p,
.contact-text {
    line-height: 1.9;
}

.about-card p,
.service-card p,
.service-card li {
    line-height: 1.7;
}

.about-card h3,
.service-card h3 {
    color: #222;
    font-weight: 600;
}

@media (max-width: 360px) {
    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding-top: 60px;
    }
}

/* iPhone向け */
@media (min-width: 390px) and (max-width: 430px) {
    .hero-content {
        padding-top: 30px;
    }
}

/* Galaxy Z Foldなど */
@media (max-width: 360px) {
    .hero-content {
        transform: translateY(10px);
    }
}

/* iPhone SE〜14 Pro Max */
@media (min-width: 361px) and (max-width: 431px) {
    .hero .hero-content {
        position: relative;
        top: 25px;
    }

    .price-item {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== 料金 ===== */

.price {
    padding: 100px 0;
    background: #fff;
}

.price-table {
    max-width: 700px;
    margin: 50px auto 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 25px;

    border-bottom: 1px solid #ddd;
}

.price-item span {
    font-size: 18px;
    font-weight: 500;
}

.price-item strong {
    font-size: 18px;
    color: #d4a017;
}

.price-note {
    text-align: center;
    color: #000000;
    font-size: 14px;
    margin-top: 25px;
}

/* ===== iPhone共通フッター ===== */
@media (max-width: 768px) {
    .footer {
        width: 100%;
        padding: 35px 0 20px;
        overflow: hidden;
    }

    .footer .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .footer-content {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(90px, 0.75fr);
        gap: 12px;
        align-items: start;
        margin: 0;
        box-sizing: border-box;
    }

    .footer-info,
    .footer-nav {
        min-width: 0;
        margin: 0;
    }

    .footer-info h2 {
        font-size: 24px;
        line-height: 1.3;
        white-space: nowrap;
        margin-bottom: 16px;
    }

    .footer-info p {
        font-size: 12px;
        line-height: 1.7;
        margin: 4px 0 10px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
    }

    .footer-nav a {
        display: block;
        font-size: 12px;
        line-height: 1.5;
        padding: 2px 0;
        white-space: normal;
    }

    .footer-copy {
        font-size: 10px;
        text-align: center;
        white-space: nowrap;
    }
}

/* ===== 施工実績 ===== */

.works {
    padding: 100px 0;
    background: #f7f7f7;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.works-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.works-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.works-card-body {
    padding: 24px;
}

.works-category {
    margin-bottom: 8px;
    color: #d69e00;
    font-size: 14px;
    font-weight: 700;
}

.works-card h3 {
    margin-bottom: 10px;
    color: #222;
    font-size: 22px;
}

.works-area {
    margin-bottom: 14px;
    color: #111;
    font-size: 14px;
}

.works-text {
    margin: 0;
    color: #111;
    font-size: 15px;
    line-height: 1.8;
}

/* タブレット */
@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ */
@media (max-width: 768px) {
    .works {
        padding: 70px 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .works-card img {
        height: 200px;
    }

    .works-card-body {
        padding: 20px;
    }

    .works-card h3 {
        font-size: 20px;
    }
}

/* iPad Mini・Surface Duoの画像切れ修正 */
@media (min-width: 500px) and (max-width: 768px) {
    .works-card img {
        height: auto;
        object-fit: contain;
    }
}

/* タブレット表示：施工実績3枚目を中央に配置 */
@media (min-width: 769px) and (max-width: 899px) {
    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .works-card:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 20px) / 2);
        justify-self: center;
    }
}

/* 横幅が広いタブレットは3列表示 */
@media (min-width: 900px) and (max-width: 1100px) {
    .works-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .works-card:last-child {
        grid-column: auto;
        width: auto;
    }
}

/* ===== よくある質問 ===== */

.faq {
    padding: 100px 0;
    background: #f7f7f7;
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    position: relative;
    padding: 22px 60px 22px 24px;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "＋";
    position: absolute;
    top: 50%;
    right: 24px;
    font-size: 24px;
    font-weight: 400;
    transform: translateY(-50%);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item[open] summary {
    border-bottom: 1px solid #e5e5e5;
}

.faq-answer {
    padding: 20px 24px 24px;
}

.faq-answer p {
    margin: 0;
    color: #222;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.9;
}

/* スマホ */
@media (max-width: 768px) {
    .faq {
        padding: 70px 0;
    }

    .faq-list {
        margin-top: 35px;
    }

    .faq-item summary {
        padding: 18px 50px 18px 18px;
        font-size: 15px;
    }

    .faq-item summary::after {
        right: 18px;
        font-size: 21px;
    }

    .faq-answer {
        padding: 16px 18px 20px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

/* ===== ご依頼の流れ ===== */

.flow {
    padding: 100px 0;
    background: #fff;
}

.flow-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.flow-item {
    position: relative;
    padding: 32px 20px 28px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.flow-number {
    position: absolute;
    top: 14px;
    left: 16px;
    color: #d69e00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.flow-icon {
    margin-bottom: 18px;
    font-size: 36px;
    line-height: 1;
}

.flow-item h3 {
    margin-bottom: 14px;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}

.flow-item p {
    margin: 0;
    color: #222;
    font-size: 14px;
    line-height: 1.8;
}

/* タブレット */
@media (max-width: 992px) {
    .flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
    }

    .flow-item:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 18px) / 2);
        justify-self: center;
    }
}

/* スマホ */
@media (max-width: 576px) {
    .flow {
        padding: 70px 0;
    }

    .flow-list {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 35px;
    }

    .flow-item:last-child {
        grid-column: auto;
        width: 100%;
    }

    .flow-item {
        padding: 28px 20px 24px;
    }

    .flow-icon {
        font-size: 32px;
    }

    .flow-item h3 {
        font-size: 17px;
    }
}

/* ===== タブレット用フッター調整 ===== */
@media (min-width: 769px) and (max-width: 1100px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .footer-info {
        min-width: 0;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 24px;
        align-items: start;
    }

    .footer-nav a {
        display: block;
        padding: 4px 0;
        font-size: 14px;
        line-height: 1.6;
        white-space: normal;
    }

    .footer-copy {
        margin-top: 30px;
        text-align: center;
    }
}

/* ===== 会社概要 タブレット調整 ===== */
@media (min-width: 768px) and (max-width: 1199px) {

    .company-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: stretch;
    }

    /* 左側 */
    .company-info {
        display: flex;
        flex-direction: column;
        height: 100%;
        border-bottom: 1px solid #555;
    }

    /* 右側 */
    .company-map {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 12px;
        height: 100%;
    }

    .company-map iframe,
    .company-photo {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        display: block;
    }
}

/* iPad mini 調整 */
@media (min-width: 768px) and (max-width: 820px) {

    .company-layout {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 15px;
    }
}

/* スマホ〜iPad miniの上部余白調整 */
@media (max-width: 768px) {
    .hero {
        padding-top: 20px;
    }

    .navbar {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

.company-map {
    height: 100%;
}

.company-map iframe {
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .company-layout {
        align-items: stretch;
    }

    .company-map {
        display: flex;
        align-self: stretch;
    }

    .company-map iframe {
        width: 100%;
        height: 100%;
        flex: 1;
    }
}

.hero-break {
    display: block;
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 24px;
        line-height: 1.35;
        width: 100%;
    }

    .hero-line {
        display: block;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 26px;
        line-height: 1.35;
    }

    .hero-subtitle {
        font-size: 13px;
    }
}

/* iPhone 12 Pro付近だけ調整 */
@media (min-width: 361px) and (max-width: 391px) {

    .hero-content {
        width: 100%;
        max-width: none;
        padding-left: 4%;
        padding-right: 4px;
    }

    .hero h1 {
        font-size: 25px;
        line-height: 1.35;
    }

    .hero-line {
        display: block;
    }
}