html, body {
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
}
a {
    transition: .4s;
    text-decoration: none;
}
a:hover {
    opacity: .7;
}

/* レイアウトの肝 */
.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap; /* これで2行（ロゴ/電話の下にメニュー）を許容する */
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.sp {
    display: none;
}

.logo {
    flex-shrink: 0;
    padding: 10px 0;
    text-align: center;
    width: 300px;
}
.logo p{
    color: #333;
    font-size: 0.9em;
    margin: 0 0 5px;
}

/* 右上の電話・ボタンを並べる箱 */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-top {
    display: flex;
    align-items: center;
}

.contact-info {
    text-align: center;
    margin-right: 25px;
}

.contact-label {
    font-size: 0.8em;
    margin: 0;
}

.tel-row {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e60012;
}

.tel-row i {
    font-size: 1.2em;
    margin-right: 8px;
}

.tel-number {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.1;
}

.free-call {
    background: #e60012;
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    line-height: 1.2;
    border-radius: 4px;
    margin-left: 8px;
}

.business-hours {
    font-size: 0.8em;
    margin: 0;
}

/* ボタン群 */
.header-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-group {
    text-align: center;
}

.btn-sub-text {
    font-size: 0.65em;
    color: #d16b16;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.3;
}

.btn-sub-text2 {
    font-size: 0.65em;
    margin: 0 0 5px;
    line-height: 1.3;
    text-decoration: underline;
}

.btn-request {
    background: #e67e22;
    color: #fff;
    padding: 5px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 500;
    display: block;
}

.btn-outline {
    display: block;
    border: 2px solid #000;
    color: #000;
    padding: 5px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    width: 80px;
    height: 40px;
    align-content: center;
    font-size: 0.8em;
    background: #fff;
    line-height: 1.2;
}

/* ナビゲーション：width 100%にすることで、ロゴと電話の下に回り込む */
nav {
    width: 100%; 
    margin-top: 15px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    border-top: 2px solid #000;
}

nav li {
    flex: 1;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    background-color: #fff;
}
nav li.border-right {
    border-right: 2px solid #000;
}

nav a {
    padding: 15px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #333;
    transition: 0.4s;
}
nav a:hover{
    background-color: #eee;
}

/* スマホ対応 */
.hamburger {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 30px;
    height: 32px;
}
.hamburger span {
    position: absolute;
    background: #000;
    height: 3px;
    width: 100%;
    margin: 4px 0;
    border-radius: 2px;
    transition: transform .3s, opacity .3s, top .3s;
}
.hamburger span:nth-child(1) {
    top: 0;
}
.hamburger span:nth-child(2) {
    top: 10px;
}
.hamburger span:nth-child(3) {
    top: 20px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

@media screen and (max-width: 960px) {
    .sp {
        display: block;
    }
    .pc { 
        display: none;
    }
    .container { 
        align-items: center;
    }
    .logo{
        width: auto;
        padding: 0;
    }
    .logo p{
        font-size: 0.7em;
        margin: 0;
    }
    .logo img {
        height: 40px;
    }
    .hamburger {
        display: flex;
        margin-left: 10px;
    }
    nav {
        width: auto;
        margin-top: 0;
    }
    nav .sp-tel{
        border-bottom: 0;
    }
    nav .sp-tel a{
        padding-bottom: 5px;
    }
    nav .sp-time{
        padding: 0px 5px 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        color: #333;
        font-size: 0.8em;
        font-weight: normal;
    }
    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        flex-direction: column;
        transition: right .3s;
        z-index: 9999;
        display: block;
        border: none;
    }
    nav ul.active {
        right: 0;
    }
    nav li,
    nav li.border-right {
        border: none;
        border-bottom: 1px solid #eee;
    }
}