/*
  ご家庭のお客様ハブ /for_home/ および注意・FAQ 等
読み込み: header.php（条件付き）
  更新: 2026年7月28日
*/

/* for_home セクション ---------------------------------------------- */

/* for_homeのメイン画像 */
#for_home .main-img {
    background-image: url(../img/for_home/bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 95px 0;
    color: #fff;
}

/* for_homeのメイン画像のインナー */
#for_home .main-img .inner {
    width: 980px;
    margin: 0 auto;
}

/* for_homeのメイン画像のタイトル */
#for_home .main-img .inner h2 {
    margin: 0 0 20px;
    letter-spacing: 1px;
    font-size: 30px;
    font-weight: 600;
}

/* for_homeのメイン画像のテキスト */
#for_home .main-img .inner p {
    line-height: 1.5;
}

/* for_homeのグレーボックス */
#for_home .gray-box {
    background: #f9fcf5;
    padding: 60px 0 120px;
}

/* for_homeのグレーボックスのインナー */
#for_home .gray-box .inner {
    width: 980px;
    margin: 0 auto;
}

/* for_homeのグレーボックスのタイトル */
#for_home .gray-box .inner h3 {
    margin: 0 0 20px;
    letter-spacing: 1px;
    font-size: 22px;
    line-height: 22px;
    font-weight: 600;
    padding: 0 25px;
}

/* for_homeのグレーボックスのタイトル内スパン */
#for_home .gray-box .inner h3 span {
    position: relative;
    top: -3px;
    display: inline-block;
    font-size: 16px;
    margin: 0 0 0 15px;
}

/* for_homeのグレーボックスのサブタイトル */
#for_home .gray-box .inner h4 {
    margin: 0 0 10px;
    letter-spacing: 1px;
    font-size: 20px;
    line-height: 42px;
    font-weight: 600;
    text-align: center;
    padding: 0 0 10px;
}

/* for_homeのグレーボックスの画像 */
#for_home .gray-box .inner img {
    margin: 0 0 20px;
}

/* for_homeのグレーボックスの最初のサブタイトル（アクセント線付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) h4 {
    border-bottom: 2px solid #30ac77;
}

/* for_homeのグレーボックスの2番目のサブタイトル（アクセント線付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(2) h4 {
    border-bottom: 2px solid #f39800;
}

/* for_homeのグレーボックスの左右フロート要素 */
#for_home .gray-box .inner .fl,
#for_home .gray-box .inner .fr {
    position: relative;
    width: 460px;
    padding: 30px;
    background: #fff;
    margin: 0 0 75px;
}

/* for_homeのグレーボックスのヘルプデスク要素 */
#for_home .gray-box .inner .helpdesk {
    display: flex;
    justify-content: space-between;
}

/* for_homeのグレーボックスのヘルプデスク内div */
#for_home .gray-box .inner .helpdesk div {
    width: 280px;
    background: #fff;
    padding: 20px;
}

/* for_homeのグレーボックスのヘルプデスク内画像 */
#for_home .gray-box .inner .helpdesk div img {
    display: block;
    margin: 0 auto 10px;
}

/* for_homeのグレーボックスのヘルプデスク内タイトル */
#for_home .gray-box .inner .helpdesk div h4 {
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 2px solid #009999;
}

/* for_homeのグレーボックスのリストリンク */
#for_home .gray-box .inner ul li a {
    display: block;
    font-weight: bold;
    font-size: 16px;
    line-height: 30px;
    padding: 0 0 0 40px;
    margin: 0 0 10px;
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 30px;
}

/* for_homeのグレーボックスの最初のクリアフィックス内フロート要素 */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fl,
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fr {
    min-height: 420px;
}

/* for_homeのグレーボックスの2番目のクリアフィックス内フロート要素 */
#for_home .gray-box .inner .clearfix:nth-of-type(2) .fl,
#for_home .gray-box .inner .clearfix:nth-of-type(2) .fr {
    min-height: 350px;
}

/* for_homeのグレーボックスのクリアフィックス内最後のリストリンク */
#for_home .gray-box .inner .clearfix .fl ul li:last-of-type a,
#for_home .gray-box .inner .clearfix .fr ul li:last-of-type a {
    margin: 0;
}

/* for_homeのグレーボックスの最初のクリアフィックス内左フロートの1番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fl ul li:nth-of-type(1) a {
    background-image: url(../img/for_home/icon01.png);
}

/* for_homeのグレーボックスの最初のクリアフィックス内左フロートの2番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fl ul li:nth-of-type(2) a {
    background-image: url(../img/for_home/icon02.png);
}

/* for_homeのグレーボックスの最初のクリアフィックス内左フロートの3番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fl ul li:nth-of-type(3) a {
    background-image: url(../img/for_home/icon03.png);
}

/* for_homeのグレーボックスの最初のクリアフィックス内右フロートの1番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fr ul li:nth-of-type(1) a {
    background-image: url(../img/for_home/icon04.png);
}

/* for_homeのグレーボックスの最初のクリアフィックス内右フロートの2番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fr ul li:nth-of-type(2) a {
    background-image: url(../img/for_home/icon05.png);
}

/* for_homeのグレーボックスの最初のクリアフィックス内右フロートの3番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fr ul li:nth-of-type(3) a {
    background-image: url(../img/for_home/icon06.png);
}

/* for_homeのグレーボックスの最初のクリアフィックス内右フロートの4番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(1) .fr ul li:nth-of-type(4) a {
    background-image: url(../img/for_home/icon07.png);
}

/* for_homeのグレーボックスの2番目のクリアフィックス内左フロートの1番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(2) .fl ul li:nth-of-type(1) a {
    background-image: url(../img/for_home/icon08.png);
}

/* for_homeのグレーボックスの2番目のクリアフィックス内右フロートの1番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(2) .fr ul li:nth-of-type(1) a {
    background-image: url(../img/for_home/icon09.png);
}

/* for_homeのグレーボックスの2番目のクリアフィックス内右フロートの2番目リンク（アイコン付き） */
#for_home .gray-box .inner .clearfix:nth-of-type(2) .fr ul li:nth-of-type(2) a {
    background-image: url(../img/for_home/icon10.png);
}

/* for_homeのグレーボックスのヘルプデスク内1番目divの1番目リンク（アイコン付き） */
#for_home .gray-box .inner .helpdesk div:nth-of-type(1) ul li:nth-of-type(1) a {
    background-image: url(../img/for_home/icon11.png);
}

/* for_homeのグレーボックスのヘルプデスク内1番目divのリンク（疑似要素付き） */
#for_home .gray-box .inner .helpdesk div:nth-of-type(1) ul li:nth-of-type(1) a:before,
#for_home .gray-box .inner .helpdesk div:nth-of-type(1) ul li:nth-of-type(2) a:before {
    content: "\30FB";
}

/* for_homeのグレーボックスのヘルプデスク内2番目divの1番目リンク（アイコン付き） */
#for_home .gray-box .inner .helpdesk div:nth-of-type(2) ul li:nth-of-type(1) a {
    background-image: url(../img/for_home/icon12.png);
}

/* for_homeのグレーボックスのヘルプデスク内3番目divの1番目リンク（アイコン付き） */
#for_home .gray-box .inner .helpdesk div:nth-of-type(3) ul li:nth-of-type(1) a {
    background-image: url(../img/for_home/icon13.png);
}

/* for_homeのグレーボックスのヘルプデスク内3番目divの2番目リンク（アイコン付き） */
#for_home .gray-box .inner .helpdesk div:nth-of-type(3) ul li:nth-of-type(2) a {
    background-image: url(../img/for_home/icon14.png);
}

/* 旧 LP（#lp）は css/lp.css に分離（/for_home/lp 等） */

/* 都市ガス #city お知らせ系は css/city-gas.css に分離 */


/* 都市ガス #city / #plan（および #plan タブ）は css/city-gas.css に分離 */


/* for_home about_gas ---------------------------------------------- */

#about_gas form {
    padding: 0 0 30px;
}

#about_gas .table {
    display: table;
    border-collapse: separate;
    border-spacing: 15px;
    width: 100%;
}

#about_gas .table:nth-of-type(3) {
    width: 222px;
}

#about_gas .table div {
    display: table-cell;
    vertical-align: middle;
    width: 192px;
    height: 80px;
}

#about_gas .table div button {
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 20px 20px 20px 70px;
    border: 1px dotted #ccc;
    font-size: 13px;
    border-radius: 3px;
}

#about_gas .table div button span {
    display: block;
}

#about_gas .table:nth-of-type(1) div:nth-of-type(1) button,
#about_gas .table:nth-of-type(4) div:nth-of-type(1) button {
    background: url(../img/for_home/about_gas/icon01.png) left 10px center no-repeat;
}

#about_gas .table:nth-of-type(1) div:nth-of-type(2) button,
#about_gas .table:nth-of-type(4) div:nth-of-type(2) button {
    background: url(../img/for_home/about_gas/icon02.png) left 10px center no-repeat;
}

#about_gas .table:nth-of-type(1) div:nth-of-type(3) button,
#about_gas .table:nth-of-type(4) div:nth-of-type(3) button {
    background: url(../img/for_home/about_gas/icon03.png) left 10px center no-repeat;
}

#about_gas .table:nth-of-type(2) div:nth-of-type(1) button,
#about_gas .table:nth-of-type(5) div:nth-of-type(1) button {
    background: url(../img/for_home/about_gas/icon04.png) left 10px center no-repeat;
}

#about_gas .table:nth-of-type(2) div:nth-of-type(2) button,
#about_gas .table:nth-of-type(5) div:nth-of-type(2) button {
    background: url(../img/for_home/about_gas/icon05.png) left 10px center no-repeat;
}

#about_gas .table:nth-of-type(2) div:nth-of-type(3) button,
#about_gas .table:nth-of-type(5) div:nth-of-type(3) button {
    background: url(../img/for_home/about_gas/icon06.png) left 10px center no-repeat;
}

#about_gas .table:nth-of-type(3) div:nth-of-type(1) button,
#about_gas .table:nth-of-type(6) div:nth-of-type(1) button {
    background: url(../img/for_home/about_gas/icon07.png) left 10px center no-repeat;
}

#about_gas h4 {
    background: #c9caca;
    padding: 10px;
    font-size: 16px;
    margin: 0 0 15px;
}



/* for_home about_lpgas ---------------------------------------------- */

.tab-content input[type="radio"] {
    display: none;
}

.tab-content .tab-list {
    display: flex;
}

.tab-content label {
    position: relative;
    display: inline-block;
    padding: 5px 2px 5px 9px;
    cursor: pointer;
    font-size: .9em;
    line-height: 1.3;
    text-align: center;
}

.tab-content label span {
    display: block;
}

.tab-content label:hover,
.tab-content input[type="radio"]:checked+label {
    color: #21a564;
}

.tab-content label:before {
    position: absolute;
    left: 0;
    bottom: 1em;
    display: inline-block;
    content: "";
    height: 1.2em;
    border-left: 1px solid #ccc;
}

.tab-content label:first-of-type:before {
    display: none;
}

.tab-content label:nth-of-type(2) span,
.tab-content label:nth-of-type(3) span,
.tab-content label:nth-of-type(4) span {
    position: relative;
    bottom: .5em;
}

.tab-content .tab-box {
    padding: 40px 0;
    border-top: 3px solid #21a564;
}

.tab-content>.tab-box>div {
    display: none;
}

#tab1:checked~.tab-box>#tabView1 {
    display: block;
}

#tab2:checked~.tab-box>#tabView2 {
    display: block;
}

#tab3:checked~.tab-box>#tabView3 {
    display: block;
}

#tab4:checked~.tab-box>#tabView4 {
    display: block;
}

#tab5:checked~.tab-box>#tabView5 {
    display: block;
}

#tab6:checked~.tab-box>#tabView6 {
    display: block;
}

#tab7:checked~.tab-box>#tabView7 {
    display: block;
}

#tab8:checked~.tab-box>#tabView8 {
    display: block;
}

#about_lpgas dl {
    padding: 20px 0 0;
}

#about_lpgas dl dt {
    margin: 0 0 10px;
}

#about_lpgas dl dd {
    border: 1px solid #c9caca;
    background: #f7f8f8;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.5;
}

#about_lpgas ul {
    padding: 0 0 0 1.2em;
}

#about_lpgas ul li {
    list-style: decimal;
    line-height: 1.3;
    margin: 0 0 1em;
}

#about_lpgas h4 {
    background: #21a564;
    color: #fff;
    padding: 5px;
    margin: 0 0 10px;
}


/* for_home question ---------------------------------------------- */

#question {
    padding: 0 0 50px;
}

#question h3 {
    background: #36a46d;
    padding: 0 5px 5px;
    line-height: 26px;
    font-size: 18px;
    margin: 0 0 15px;
    color: #fff;
}

#question h3:before {
    position: relative;
    bottom: -5px;
    display: inline-block;
    content: "";
    border-left: 5px solid #fff;
    height: 26px;
    margin: 0 5px 0 0;
}


#question h5 {
    padding: 5px 0 0;
    line-height: 26px;
    font-size: 15px;
    margin: 0 0 15px;
    font-weight: 600;
}

#question details {
    margin: 0 0 20px;
}

#question details summary {
    background-image: url(../img/for_home/question/q.png);
    background-position: left top;
    background-repeat: no-repeat;
    padding: 0 30px 15px 45px;
    cursor: pointer;
    border-bottom: 1px dashed #ccc;
    color: transparent;
    position: relative;
    line-height: 1.3;
}

#question details summary:after {
    position: absolute;
    content: "\FF1E";
    bottom: 23px;
    right: 0;
    color: #000;
}

#question details[open] summary:after {
    transform: rotate(90deg);
}

#question details summary span {
    display: block;
    color: #000;
    position: relative;
    top: -10px;
}

#question details div {
    background-image: url(../img/for_home/question/a.png);
    background-position: left 45px top 20px;
    background-repeat: no-repeat;
    padding: 20px 10px 10px 90px;
}




#question_2 {
    padding: 0 0 50px;
}

#question_2 ul {
    padding: 0 0 0 2.2em;
}

#question_2  ul li {
    list-style: decimal;
    line-height: 1.3;
    margin: 0 0 1em;
}

#question_2 h4 {
    padding: 10px 5px;
    line-height: 26px;
    font-size: 18px;
    margin: 0 0 15px;
    font-weight: 600;
    color: #333;
}




/* お問い合わせ（#contact）は css/contact.css に分離 */

/*
  スマホ上書き
  for-home.css は responsive.css より後に読まれるため、
  デスクトップの display:table / width:980px が SP を潰さないようここで再指定する。
*/
@media screen and (max-width: 979px) {
    #for_home .fl,
    #for_home .fr {
        float: none;
    }

    #for_home .main-img {
        padding: 1rem 0 3rem;
    }

    #for_home .main-img .inner,
    #for_home .gray-box .inner {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    #for_home .main-img .inner h2 {
        margin: 0 0 1rem;
        padding: 2rem 0 0;
        font-size: 2rem;
    }

    #for_home .main-img .inner p {
        padding: 0 1rem;
        word-break: break-word;
    }

    #for_home .gray-box {
        padding: 3rem 0 5rem;
    }

    #for_home .gray-box .inner h3 {
        margin: 0 0 2rem;
        padding: 0;
        font-size: 2rem;
        line-height: 3rem;
        text-align: center;
    }

    #for_home .gray-box .inner h3 span {
        display: block;
        font-size: 1.2rem;
        margin: .5rem 0 0;
        line-height: 1.5rem;
        top: 0;
    }

    #for_home .gray-box .inner img {
        margin: 0 0 1.5rem;
        max-width: 100%;
        height: auto;
    }

    #for_home .gray-box .inner h4 {
        margin: 0 0 1rem;
        font-size: 2rem;
        line-height: 1.4;
        padding: 0 0 1rem;
    }

    #for_home .gray-box .inner .fl,
    #for_home .gray-box .inner .fr {
        width: 100% !important;
        padding: 2rem;
        margin: 0 0 3rem;
        min-height: auto !important;
    }

    #for_home .gray-box .inner .helpdesk {
        display: block !important;
    }

    #for_home .gray-box .inner .helpdesk div {
        width: 100% !important;
        padding: 2rem;
        margin: 0 0 2rem;
        box-sizing: border-box;
    }

    #for_home .gray-box .inner .helpdesk div img {
        margin: 0 auto 1rem;
    }

    #for_home .gray-box .inner .helpdesk div h4 {
        margin: 0 0 2rem;
    }

    #for_home .gray-box .inner .fl ul,
    #for_home .gray-box .inner .fr ul {
        padding: 0 0 1rem;
    }

    #for_home .gray-box .inner ul li a {
        font-size: 1.6rem;
        line-height: 1.5;
        padding: 0 0 0 3.5rem;
        margin: 0 0 1rem;
        background-size: 3rem;
        white-space: normal;
    }

    #for_home .gray-box .inner .clearfix:nth-of-type(1) .fl,
    #for_home .gray-box .inner .clearfix:nth-of-type(1) .fr,
    #for_home .gray-box .inner .clearfix:nth-of-type(2) .fl,
    #for_home .gray-box .inner .clearfix:nth-of-type(2) .fr {
        min-height: auto !important;
    }

    #about_gas form {
        padding: 0 0 1rem;
    }

    #about_gas .table {
        display: block !important;
        width: 100% !important;
        border-spacing: 0;
    }

    #about_gas .table:nth-of-type(3) {
        width: 100% !important;
        margin: 0 0 3rem;
    }

    #about_gas .table div {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 1rem;
    }

    #about_gas .table div button {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 4.5rem;
        padding: 1.2rem 1rem 1.2rem 5rem;
        font-size: 1.4rem;
        text-align: left;
        white-space: normal;
        line-height: 1.45;
        box-sizing: border-box;
    }

    #about_gas .table div button span {
        display: inline !important;
    }

    #about_gas .table:nth-of-type(1) div:nth-of-type(1) button,
    #about_gas .table:nth-of-type(4) div:nth-of-type(1) button,
    #about_gas .table:nth-of-type(1) div:nth-of-type(2) button,
    #about_gas .table:nth-of-type(4) div:nth-of-type(2) button,
    #about_gas .table:nth-of-type(1) div:nth-of-type(3) button,
    #about_gas .table:nth-of-type(4) div:nth-of-type(3) button,
    #about_gas .table:nth-of-type(2) div:nth-of-type(1) button,
    #about_gas .table:nth-of-type(5) div:nth-of-type(1) button,
    #about_gas .table:nth-of-type(2) div:nth-of-type(2) button,
    #about_gas .table:nth-of-type(5) div:nth-of-type(2) button,
    #about_gas .table:nth-of-type(2) div:nth-of-type(3) button,
    #about_gas .table:nth-of-type(5) div:nth-of-type(3) button,
    #about_gas .table:nth-of-type(3) div:nth-of-type(1) button,
    #about_gas .table:nth-of-type(6) div:nth-of-type(1) button {
        background-position: left 1rem center;
        background-repeat: no-repeat;
        background-size: 3rem;
    }

    #about_gas h4 {
        padding: 1rem;
        font-size: 1.4rem;
        margin: 0 0 1rem;
    }
}
