/*//////////////////////////////////
　　　　　　　　共通
/////////////////////////////////*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8fafc;
    -webkit-text-size-adjust: 100%;
    font-size:1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
    width: 100%;
}

.container p{
    margin-bottom:30px;
}

.container p:last-child{
    margin-bottom:0;
}

/*//////////////////////////////////ヘッダー/////////////////////////////////*/
.header {
    background: rgba(255,255,255,0.9);
    position: fixed;
    z-index: 1000;
    border-bottom:1px solid #efefef;
    width:100%;
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    text-decoration: none;
    display:inline-block;
}

.logo-area:hover{
    opacity:0.7;
}

.tagline {
    font-size:0.9rem;
    color:#666;
    font-weight:600;
}
.logo-text {
    font-size: 1.4rem;
    color: #01469b;
    line-height:1.6rem;
    white-space: nowrap;
}

.header-info{
    line-height: 1.5rem;
    white-space: nowrap;
}
.tel-label{
    font-size:0.9rem;
}
.tel-number {
    font-size: 1.4rem;
    color: #0056b3;
    font-weight: bold;
    letter-spacing: 0.1rem;
}
.tel-time{
    font-size:0.8rem;
}

/*//////////////////////////////////ナビゲーション/////////////////////////////////*/
.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-list a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size:0.9rem;
    font-weight:600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-list a:hover{
    color:#004bb1;
}

/* チェックボックス非表示 */
.nav-unshown {
    display: none;
}



/*//////////////////////////////////お問い合わせボタン/////////////////////////////////*/
.cta-area {
    width: 100%;
    text-align: center;
    margin: 60px 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff !important;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/*//////////////////////////////////フッター/////////////////////////////////*/
.footer {
    background: #001a33;
    color: #fff;
    padding: 20px 20px;
    text-align: center;
}

.footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* フッターナビ */
.footer-nav {
    list-style: none;         /* 点を消す */
    display: flex;            /* 横並びにする */
    justify-content: center;  /* 中央寄せにする */
    flex-wrap: wrap;          /* 幅が足りない時は折り返す（スマホ対策） */
    margin: 20px 0;
    padding: 0;
}

.footer-nav li {
    margin: 0 15px;           /* メニュー間の左右余白 */
}

.footer-nav a {
    color: #fff;              /* 文字色（背景が暗い想定） */
    text-decoration: none;    /* 下線を消す */
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-nav a:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
    opacity: 0.8;
}

.footer-company{
    margin-bottom:0px !important;
}

.footer-address{
    margin:0;
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ブラウザ横幅縮小時のヘッダレイアウト */
@media (max-width: 1100px) {
    .header-container {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tagline {
        font-size:0.77rem;
        color:#666;
        font-weight:600;
    }
    .logo-text {
        font-size: 1.2rem;
        color: #01469b;
        line-height:1.37rem;
        white-space: nowrap;
    }

    .nav-list a {
        padding: 10px 10px;
    }
}

/* ハンバーガーメニュー (スマホ) */
@media (max-width: 850px) {
    .header-container { flex-direction: column; }
    .header-info { display: none; }
    .news-list li { flex-direction: column; }
    .news-date { margin-bottom: 5px; }

    #nav-open {
        display: block;
        width: 30px;
        height: 25px;
        position: absolute;
        top: 32px;
        right: 20px;
        z-index: 100;
        cursor: pointer;
    }
    #nav-open span, #nav-open span:before, #nav-open span:after {
        position: absolute;
        height: 3px;
        width: 100%;
        background: #01469b;
        content: '';
        transition: 0.4s;
    }
    #nav-open span:before { top: -10px; }
    #nav-open span:after { top: 10px; }

    #nav-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background: #01469b;
        z-index: 99;
        padding-top: 60px;
        transition: 0.4s ease-in-out;
    }

    .nav-list { flex-direction: column; }
    .nav-list a { 
        border-bottom: 1px solid #fff;
        color:#fff;
    }

    .nav-list a:hover{
    color:#fff;
}

    #nav-input:checked ~ #nav-content { right: 0; }
    #nav-input:checked ~ #nav-open span { background: transparent; }
    #nav-input:checked ~ #nav-open span:before { transform: rotate(45deg); top: 0; background: #fff; }
    #nav-input:checked ~ #nav-open span:after { transform: rotate(-45deg); top: 0; background: #fff; }

    /* チェックが入った時だけオーバーレイを表示 */
    #nav-input:checked ~ #nav-close {
        display: block;
    }

    /* ハンバーガーメニュー展開時の背景オーバーレイ (透過黒) */
    #nav-close {
        display: none; /* 通常時は非表示 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 98;
        cursor: pointer;
    }

    /* チェックが入った時（メニュー開時）にオーバーレイを表示 */
    #nav-input:checked ~ #nav-close {
        display: block;
    }

}


/* スマホ */
@media (max-width: 600px) {
    body {
        line-height: 1.6;
        font-size:0.9rem;
    }

    .header-container {
        margin: 0;
        padding: 10px 20px;
        display: block;
    }

    .tagline {
        font-size:0.77rem;
    }
    .logo-text {
        font-size: 1.08rem;
        line-height:1.37rem;
    }

    .cta-area {
        margin: 20px 0;
    }

    .cta-button {
        padding: 10px 20px;
    }

    .footer-nav li {
        margin: 5px 10px;
    }
}


/*//////////////////////////////////TOPページ/////////////////////////////////*/
/* ヒーローエリア */
.hero { /* トップページのヒーローエリア */
    position: relative;
    width: 100%;
    height: 700px;
}

.hero-second { /* 2階層のヒーローエリア */
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #eee;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-wrap {
position: absolute;
    /* 上下中央の設定 */
    top: 57%;
    transform: translateY(-50%);

    /* 左右の位置（左に固定） */
    left: 0;
    
    /* 必要に応じて */
    width: auto;
    max-width: 90%; /* スマホではみ出さないための保険 */
    border-bottom:3px solid #fff;
}

.hero-title {
    background: rgba(255,255,255,0.9);
    padding: 30px 100px;
    background: linear-gradient(to right, rgba(1, 70, 155, 0.9), rgba(26, 121, 223, 0.9));
    color:#fff;
    font-size: 2rem;
    letter-spacing: 0.2rem;
}

/* メッセージ */
.message-section {
    margin: 50px 0;
}

.message-box {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* サービス概要→→サービス概要のページのcssで制御 */

/* 新着情報 */
.news-section {
    margin-bottom: 80px;
}

.news-list {
    list-style: none;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.news-list li {
    padding: 15px 10px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: bold;
    color: #0056b3;
    width: 130px;
    flex-shrink: 0;
}

/* スマホ */
@media (max-width: 600px) {
    /* ヒーローエリア */
    .hero {
        height: 300px;
    }

    .hero-second {
        height: 300px;
    }

    .hero-text-wrap {
    position: absolute;
        /* 上下中央の設定 */
        top: 59%;
        border-bottom:2px solid #fff;
    }

    .hero-title {
        padding: 10px 10px;
        font-size: 1rem;
    }

    /* メッセージ */
    .message-section {
        margin: 0 0 30px;
    }

    /* 新着情報 */
    .news-section {
        margin-bottom: 0;
    }

    .news-list {
        padding: 0 10px 10px;
        border-radius: 5px;
    }

    .news-list li {
        padding: 0 0 10px;
    }

    .news-date {
        width: 100%;
        margin-bottom:0;
    }
}


/*//////////////////////////////////法人のお客様/////////////////////////////////*/
.greeting h3{
    color:#01469b;
    border-bottom:1px solid #01469b;
    margin-bottom:30px;
}

.greeting-flex {
  display: flex;
  align-items: center; /* 垂直方向の中央揃え（お好みで） */
  gap: 40px;           /* 要素間の隙間 */
}

.greeting-flex img{
    width:400px;
}


/* スマホ */
@media (max-width: 600px) {

    .greeting h3{
        margin-bottom:20px;
    }

    .greeting-flex {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center;    /* 水平方向（左右）の中央揃え */
        gap: 20px;
    }

    .greeting-flex img{
        width:100%;
    }

}

/*//////////////////////////////////サービス概要/////////////////////////////////*/
/* サービス内容 */
.section-title {
    font-size: 1.8rem;
    color: #01469b;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* クリック中のカードのデザイン */
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    position: relative;
    text-decoration:none;
    padding-bottom:10px;
}

/* 下向き矢印 */
.service-card::after {
    content: "";
    position: absolute;
    bottom: 15px;      /* 位置の微調整 */
    left: 50%;
    /* 45度回転させて「くの字」にする */
    transform: translateX(-50%) rotate(45deg);
    /* サイズの指定 */
    width: 12px;
    height: 12px;
    /* 右と下のボーダーだけを描画 */
    border-right: 3px solid #0056b3;
    border-bottom: 3px solid #0056b3;
    z-index: 10;
}

.service-card.active {
    border: 2px solid #0056b3;
    background: #eef6ff;
}


.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eef6ff;
}

.service-card h3 {
    padding: 15px;
    font-size: 1.1rem;
    color: #01469b;
}

/* ホバー時の画像拡大 */
.card-img-placeholder {
  overflow: hidden; 
}

.card-img-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease; /* 0.3秒で変化 */
}

.service-card:hover .card-img-placeholder img {
  transform: scale(1.1); /* 1.1倍の大きさにズーム */
}

.tab-content {
    display: none;
    position:relative;
    padding: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s; /* ふわっと表示させるアニメーション */
}

/* activeクラスがついているものだけ表示 */
.tab-content.active {
    display: block;
}

.tab-content h4{
    margin-bottom:40px;
    padding-left:110px;
    font-size:1.2rem;
    border-bottom:1px solid #01469b;
    color:#01469b;
}

.tab-content .service-num{
    position:absolute;
    top:35px;
    left:50px;
    color:#01469b;
    opacity:0.2;
    font-size:80px;
    font-weight:600;
    line-height:1;
}


/* 表示時のアニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-flex {
  display: flex;
  gap: 40px;           /* 要素間の隙間 */
}

.service-flex img{
    width:300px;
}


/* スマホ */
@media (max-width: 600px) {
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding-bottom: 5px;
    }

    .service-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin-bottom: 20px;
    }

    .service-card {
        border-radius: 5px;
        padding-bottom:20px;
    }

    .service-card::after {

        bottom: 10px;      /* 位置の微調整 */
        left: 50%;
        width: 9px;
        height: 9px;
        /* 右と下のボーダーだけを描画 */
        border-right: 2px solid #0056b3;
        border-bottom: 2px solid #0056b3;
    }

    .service-card.active {
        border: 1px solid #0056b3;
    }

    .service-card h3 {
        padding: 5px;
        font-size: 0.9rem;
        line-height:1.3rem;
    }

    .tab-content {
        padding: 20px;
        border-radius: 5px;
    }

    .tab-content h4{
        margin-bottom:20px;
        padding-left:75px;
        font-size:1rem;
    }

    .tab-content .service-num{
        top:15px;
        left:20px;
        font-size:56px;
    }


    .service-flex {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center;    /* 水平方向（左右）の中央揃え */
        gap: 20px;
    }

    .service-flex img{
        width:100%;
    }
}

/*//////////////////////////////////会社概要/////////////////////////////////*/

.company-box{
    padding: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.company-table{
    border-collapse: collapse;
    width: 100%;
    margin: 0 auto;
    border-top:1px solid #ddd;
}

.company-table th, .company-table td{
    border-bottom:1px solid #ddd;
    padding:20px 0;
}

.company-table th{
    color: #01469b;
    width:30%;
}

.company-map{
    width:100%;
    height:400px;
    border:none;
    margin-top:50px;
}

/* スマホ */
@media (max-width: 600px) {
    .company-box{
        padding: 20px;
        border-radius: 5px;
    }

    .company-table th, .company-table td{
        padding:10px 0;
    }

    .company-table th{
        width:35%;
    }

    .company-map{
        height:300px;
        border:none;
        margin-top:30px;
    }
}

/*//////////////////////////////////お問い合わせ/////////////////////////////////*/
.contact-flex {
  display: flex;
  gap: 40px;
}

.contact-box {
    width:50%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding:30px;
}

.contact-box h3{
    color:#01469b;
    border-bottom:1px solid #01469b;
    margin-bottom:30px;
}

/* アイコンのサイズと色 */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;  /* アイコンを表示する領域の幅 */
  height: 40px; /* アイコンを表示する領域の高さ */
  color: #004bb1; /* 会社カラーの青（SVG内のstroke="currentColor"に適用される） */
}

.contact-box-flex{
    display:flex;
    align-items: center;
}

.contact-icon {
  width: 100%;
  height: 100%;
}

.contact-value{
    font-size:1.6rem;
    font-weight:600;
    margin-left:10px;
}


/* スマホ */
@media (max-width: 600px) {
    .contact-flex {
        flex-direction: column; /* 縦並びに変更 */
        justify-content: center; /* 中央寄せ */
        gap: 20px; /* 項目間の隙間を広くする */
    }

    .contact-box {
        width:100%;
        border-radius: 5px;
        padding:20px;
    }

    .contact-box h3{
        margin-bottom:20px;
    }

    /* アイコンのサイズと色 */
    .icon-wrapper {
    width: 30px;  /* アイコンを表示する領域の幅 */
    height: 30px; /* アイコンを表示する領域の高さ */
    }

    .contact-value{
        font-size:1.1rem;
    }

}