* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #123d60;
    background: #fff
}

a {
    text-decoration: none;
    color: inherit;
}
a.blue {color: #2868df;}

.container {
    width: min(1080px, calc(100% - 48px));
    margin: auto
}

.site-header {
    height: 72px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 15px rgba(0, 40, 80, .08)
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 30px
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #103e62;
    white-space: nowrap
}

.logo strong {
    font-size: 20px;
    letter-spacing: .05em
}

.logo small {
    display: block;
    font-size: 8px;
    color: #6e8799
}

.logo-mark {
    font-size: 34px;
    font-weight: 800;
    color: #087cc5;
    transform: rotate(-15deg);
    display: inline-block
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 700
}

.nav a {
    padding: 26px 0;
    position: relative
}

.nav a.active:after {
    content: "";
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #087cc5
}

.header-tel {
    margin-left: auto;
    min-width: 165px;
    background: #087cc5;
    color: #fff;
    border-radius: 28px;
    padding: 8px 18px;
    text-align: center;
    display: grid;
    grid-template-columns: 25px 1fr
}

.header-tel span {
    grid-row: span 2;
    font-size: 18px;
    align-self: center
}

.header-tel b {
    font-size: 14px
}

.header-tel small {
    font-size: 9px
}

.menu-btn {
    display: none;
    border: 0;
    background: none
}

.hero {
    height: 410px;
    position: relative;
    overflow: hidden
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url("../images/hero.jpg") center/cover no-repeat
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .78) 35%, rgba(255, 255, 255, 0) 67%)
}

.hero-content {
    position: relative;
    padding-top: 52px
}

.eyebrow {
    font-weight: 800;
    font-size: 17px;
    margin: 0 0 5px
}

.hero h1 {
    font-size: 42px;
    letter-spacing: .08em;
    margin: 0 0 12px;
    color: #0c3b60
}

.lead {
    font-size: 16px;
    line-height: 1.65;
    font-weight: 700
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    padding: 13px 30px;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid #0783ca
}

.btn-primary {
    background: #0783ca;
    color: #fff
}

.btn-white {
    background: #fff;
    color: #087cc5
}
.btn-big {
    display: block;
    width: 90%;
    padding: 15px;
    max-width: 500px;
    border-radius: 30px;
    background-color: #0783ca;
    border: 2px solid #fff;
    margin: 20px auto;
    text-align: center;
    text-decoration: none;
    color:#fff;
    font-size: 18px;
}

.badges {
    display: flex;
    gap: 12px
}

.badge {
    width: 105px;
    height: 76px;
    border: 2px solid #d9aa3e;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0870ae
}

.badge b {
    font-size: 17px
}

.badge span {
    font-size: 9px;
    text-align: center;
    font-weight: 700
}

.section {
    padding: 45px 0;
}

.section-blue {
    background: #f0f9fe;
    padding: 38px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 22px
}

.section-head h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: .05em
}

.section-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    color: #087cc5
}

.section-head>a {
    font-size: 11px;
    color: #087cc5;
    font-weight: 800
}

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

.reason-card {
    background: #fff;
    border: 1px solid #dcecf5;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 3px 12px rgba(25, 80, 110, .08);
    position: relative
}

.reason-card .icon {
    width: 38px;
    height: 38px;
    border: 3px solid #0783ca;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    color: #0783ca;
    float: left;
    margin-right: 12px
}

.reason-card h3 {
    font-size: 16px;
    margin: 5px 0
}

.reason-card p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 12px;
    color: #527084
}

.reason-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    clear: both
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.photo-card,
.case-card {
    background: #fff;
    border: 1px solid #57a1cc;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 70, 100, .07);
    position: relative
}

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

.photo-card div {
    padding: 10px 13px;
    position: relative
}

.photo-card h3 {
    font-size: 16px;
    margin: 0 0 4px
}

.photo-card p {
    font-size: 13px;
    color: #60798b;
    margin: 0
}

.photo-card b,
.case-card>b {
    position: absolute;
    right: 12px;
    bottom: 11px;
    color: #0783ca;
    font-size: 20px
}

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

.case-card img {
    width: 100%;
    height: 145px;
    object-fit: cover
}

.case-card h3 {
    font-size: 13px;
    margin: 10px 15px 3px
}

.case-card p {
    font-size: 10px;
    color: #688293;
    margin: 0 15px 14px
}

.flow {
    background: #fff
}

.flow-grid {
    display: grid;
    grid-template-columns: 1fr 25px 1fr 25px 1fr 25px 1fr;
    align-items: center
}

.flow-item {
    background: #fff;
    border: 1px solid #dcecf5;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    min-height: 110px;
    position: relative
}

.flow-item>span {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 27px;
    height: 27px;
    background: #0783ca;
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    display: grid;
    place-items: center
}

.flow-item strong {
    font-size: 25px;
    color: #0783ca;
    display: block
}

.flow-item h3 {
    font-size: 16px;
    margin: 2px
}

.flow-item p {
    font-size: 14px;
    color: #718795;
    line-height: 1.5;
    margin: 3px
}

.flow-grid>i {
    text-align: center;
    color: #0783ca;
    font-size: 20px
}

.cta {
    position: relative;
    overflow: hidden;
    color: #123d60
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: url("../images/cta.jpg") center/cover no-repeat;
    opacity: .95
}

.cta-inner {
    position: relative;
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.cta h2 {
    font-size: 23px;
    margin: 2px 0
}

.cta p {
    margin: 0;
    font-weight: 800
}

.cta small {
    font-size: 10px
}

.cta-actions {
    display: flex;
    gap: 10px
}

footer {
    background: #103c61;
    color: #fff;
    padding: 28px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 45px
}

.footer-logo {
    color: #fff
}

.footer-inner nav {
    display: flex;
    gap: 18px;
    font-size: 13px
}

.footer-inner p {
    margin-left: auto;
    font-size: 8px;
    line-height: 1.7;
    color: #b9d1e1
}

.footer-logo strong {
    font-size: 16px
}

@media(max-width:900px) {
    .nav {
        gap: 12px
    }

    .header-tel {
        display: none
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .reason-grid {
        grid-template-columns: 1fr
    }

    .reason-card img {
        height: 130px
    }

    .footer-inner {
        flex-wrap: wrap
    }

    .footer-inner p {
        margin-left: 0
    }

    .hero {
        height: 440px
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .7) 55%, rgba(255, 255, 255, .05))
    }
}

@media(max-width:680px) {
    .container {
        width: min(100% - 28px, 540px)
    }

    .site-header {
        height: 62px
    }

    .nav {
        position: absolute;
        display: none;
        top: 62px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .nav.open {
        display: flex
    }

    .nav a {
        padding: 14px;
        border-bottom: 1px solid #edf3f6
    }

    .menu-btn {
        display: flex;
        margin-left: auto;
        flex-direction: column;
        gap: 4px
    }

    .menu-btn i {
        display: block;
        width: 25px;
        height: 2px;
        background: #087cc5
    }

    .hero {
        height: auto;
        padding: 20px 0;
    }

    .hero-image {
        background-position: 65% center
    }

    .hero-content {
        padding-top: 35px
    }

    .hero h1 {
        font-size: 22px
    }

    .lead {
        font-size: 14px
    }

    .hero-actions {
        flex-direction: column;
        width: 250px
    }

    .badges {
        gap: 5px
    }

    .badge {
        width: 90px;
        height: 68px
    }

    .badge b {
        font-size: 14px
    }

    .section {
        padding: 35px 0
    }

    .section-blue {
        padding: 30px 0
    }

    .section-head h2 {
        font-size: 23px
    }

    .service-grid,
    .case-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .photo-card img {
        height: 85px
    }

    .photo-card h3 {
        font-size: 12px
    }

    .photo-card p {
        font-size: 9px
    }

    .case-card img {
        height: 100px
    }

    .case-card h3 {
        font-size: 11px
    }

    .flow-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }

    .flow-grid>i {
        display: none
    }

    .cta-inner {
        padding: 25px 0;
        display: block
    }

    .cta h2 {
        font-size: 19px
    }

    .cta-actions {
        margin-top: 15px;
        flex-direction: column;
        width: 250px
    }

    .footer-inner {
        display: block
    }

    .footer-inner nav {
        margin: 20px 0;
        flex-wrap: wrap
    }

    .footer-inner p {
        font-size: 8px
    }

    .logo strong {
        font-size: 16px
    }

    .logo small {
        display: none
    }
}

/*  */
/*  */
section {
    clear: both;
    float: none;
}

img{
    max-width: 100%;
    height: auto;
}
.red {
    color: chocolate;
}
.navy {
    color: #0c3b60;
}
.b {font-weight: bold;}

.marker-line {
  background: linear-gradient(transparent 60%, #ffeb3b 60%);
}
/*  */
.center {
    text-align: center;
}
.clear {
    clear: both;
}
/*  */
.box {
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #087cc5;
    padding: 10px;
    border-radius: 10px;
}
.box3 {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid #087cc5;
    padding: 10px;
    border-radius: 10px;
}
.box2 {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    border: 2px solid #fff;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
}
/* 施工事例 */
.price { 
    font-weight: bold;
    color: #087cc5;
    font-size: 16px;
}

/* 横並び */
.narabi {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 80%;
    max-width: 300px;
    gap: 10px;
    margin: 15px auto;
}

@media(min-width:680px) {
    .img-left{
    clear: both;
    overflow: auto;
    margin-top: 30px;
}

.img-left img {
    float: left;
    padding-right: 20px;
}
.img-left::after{
    display: block;
    content: ;
    clear: both;
}

}




/*  */
dl.question dt {
    font-weight: bold;
    margin-top: 15px;
}
dl.question dt::before{
    content: "Q";
    color: #d9aa3e;
    padding-right: 5px;
}
dl.question dd::before{
    content: "A:";
    color: #2868df;
    padding-right: 5px;
}

/*  */
/* 料金表：レスポンシブ対応（淡い水色を基調） */
#content .cost {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #263b46;
  background: #fff;
  border: 1px solid #c7e5ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(61, 137, 164, .08);
}
#content .cost caption {
  caption-side: top;
  padding: 15px 18px;
  color: #164f67;
  background: #dff4fb;
  border: 1px solid #c7e5ef;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
}
#content .cost th,
#content .cost td {
  padding: 13px 15px;
  border-right: 1px solid #d8eaf0;
  border-bottom: 1px solid #d8eaf0;
  vertical-align: middle;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
#content .cost th {
  width: 42%;
  background: #f0faff;
  color: #24576a;
  text-align: left;
  font-weight: 600;
}
#content .cost td {
  background: #fff;
}
#content .cost tr:nth-child(even) td,
#content .cost tr:nth-child(even) th {
  background-color: #f8fcfe;
}
#content .cost tr:last-child th,
#content .cost tr:last-child td {
  border-bottom: 0;
}
#content .cost th:last-child,
#content .cost td:last-child {
  border-right: 0;
}
/* 先頭の「工事内容・料金・備考」行 */
#content .cost:first-of-type tr:first-child th,
#content .cost:first-of-type tr:first-child td {
  background: #bfe8f5;
  color: #164f67;
  font-weight: 700;
}
/* 料金を見つけやすくする */
#content .cost td:nth-of-type(1) {
  font-weight: 700;
  color: #176582;
}
@media (max-width: 640px) {
  #content .cost {
    display: block;
    table-layout: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  #content .cost caption {
    display: block;
    border: 1px solid #c7e5ef;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 1.05rem;
  }
  #content .cost tbody {
    display: block;
  }
  #content .cost tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 0 0 12px;
    border: 1px solid #c7e5ef;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(61, 137, 164, .06);
  }
  #content .cost th,
  #content .cost td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    border-top: 1px solid #e0eef3;
    font-size: .92rem;
  }
  #content .cost th {
    grid-column: 1 / -1;
    background: #eaf8fd;
    border-top: 0;
    font-size: .96rem;
  }
  #content .cost td {
    position: relative;
    padding-top: 27px;
  }
  #content .cost td::before {
    content: attr(data-label);
    position: absolute;
    top: 6px;
    left: 12px;
    color: #66838f;
    font-size: .72rem;
    font-weight: 500;
  }
  #content .cost td:only-of-type {
    grid-column: 1 / -1;
  }
  #content .cost tr:first-child th,
  #content .cost tr:first-child td {
    background: #dff4fb;
  }
  #content .cost:first-of-type tr:first-child {
    display: none;
  }
}

