/* ページ全体のスタイル調整 */
body {
    font-family: '游ゴシック', YuGothic, sans-serif;
    line-height: 2;
    color: #333;
    margin: 0;
    padding: 0;

}

.ranking-officetitle {
    font-size: 1.3em;
    text-align: center;
    padding: 1em;
}


.title{
    background-color: #0060b9;
    font-size: 1.3em;
    text-align: center;
    padding: 1em;
    color: #fff;
}

.shindan-button {
    text-align: center;
    margin: 0 -1.5em 0;
  }

  .shindan-button img{
    width: 70%;
  }


h3 {
    border-bottom: 5px solid #ccc;
  }

h4 {
    margin-bottom: -.5em;
}

p {
    margin: 0 1em;
}

b {
    color: #333;
}

.font20 {
    font-size: 20px;
    font-weight: bold;
}

.font30 {
    font-size: 30px;
    font-weight: bold;
}

.font15 {
    font-size: 13px;
    font-weight: bold;
}



/* ヘッダー */
header {
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2em;
}

.top-img {
    width: 100%;
    margin: 0 auto;
}

.top-img img {
    width: 50%;
}

.header-pr {
    font-size: .8em;
    margin: 1em 6em;
    text-align: right;
}



/* ナビゲーションメニューのスタイル調整 */
.header-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

.header-nav li {
    margin: 0 20px;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* 目次のスタイル */
.table-of-contents {
    width: 300px;
    background: #fff;
    margin: 40px auto;
    padding: 10px 40px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 10px;
}

.table-of-contents ul {
    padding: 0;
    font-size: .8em;
    text-align: left;
    list-style:decimal;
    line-height: 1.5em;
}

.table-of-contents li {
    margin-bottom: 15px;
}

.table-of-contents a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
}

/* メインコンテンツ */
main {
    margin: 0 auto;
    max-width: 800px;
}

section {
    margin-bottom: 60px;
}



section p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 吹き出し */
.balloon-009 {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 0 22px;
}

.balloon-009 img {
    max-width: 70px;
    height: 100%;
    border: 3px solid #f2f2f2;
    border-radius: 50%;
}

.balloon-009 p {
    position: relative;
    width: 90%;
    margin: 3px 0 0;
    padding: .8em 1em;
    border-radius: 5px;
    background-color: #f2f2f2;
    color: #333333;
    font-weight: 500;
}

.balloon-009 p::before {
    position: absolute;
    left: -15px;
    width: 15px;
    height: 30px;
    background-color: #f2f2f2;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    content: '';
}



/* データ表1 */
.data-section {
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
}

.data-source {
    text-align: center;
    font-size: 0.9em;
    margin-top: 10px;
    color: #555;
}

.chart-container {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}

.pie-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        #4CAF50 0% 29.8%,
        #F44336 29.8% 100%
    );
    border-radius: 50%;
}

.pie-chart .inner-label {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #000;
    font-weight: bold;
    font-size: 1.2em;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.chart-label {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.label-box {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}

.label-received {
    background-color: #4CAF50;
}

.label-not-received {
    background-color: #F44336;
}

/* 自力回収できない理由の表 */
.jirikidata-section {
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
}

.jirikidata-source {
    text-align: center;
    font-size: .7em;
    margin-top: 10px;
    color: #555;
}

.jirikidata-table {
    width: 90%;
    margin: 30px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.jirikidata-table th {
    padding: 15px;
    text-align: center;
}

.jirikidata-table td {
    padding: 15px;
    text-align: left;
}

.jirikidata-table th {
    font-weight: bold;
}


@media (max-width: 768px) {
    .jirikidata-table th, .data-table td {
        font-size: 1.1em;
        padding: 10px;
    }
}

.data-section {
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
}

.data-source {
    text-align: center;
    font-size: 0.9em;
    margin-top: 10px;
    color: #555;
}

.flow-step {
    margin: 20px auto;
    padding: 20px;
    max-width: 700px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.flow-step h3 {
    background-color: #ffa726;
    color: white;
    padding: 5px 20px;
    border-radius: 5px;
    margin-top: 0;
    text-align: left;
}

.flow-step ul {
    padding-left: 20px;
    list-style-type: disc;
    margin: 15px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .flow-step {
        padding: 15px;
        font-size: 0.9em;
    }
}

/* 横にスライドできますメッセージ */
.scroll-message {
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
    position: relative;
}

.scroll-message img {
    max-width: 100%;
    height: auto;
}

.scroll-icon {
    display: none; /* 初期状態で非表示にする */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 1em;
    z-index: 1000;
    width: 100px;
    height: 100px;
    background-image: url('path/to/scroll-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


.office-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.box-007 {
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #ffb36b;
    border-radius: 5px;
    color: #333333;
}

.box-007 div {
    display: inline-flex;
    align-items: center;
    column-gap: 4px;
    position: relative;
    top: -13px;
    left: 10px;
    margin: 0 7px;
    padding: 0 20px;
    background: #fff;
    color: #ffb36b;
    font-weight: 600;
    vertical-align: top;
}

.box-007 div::before {
    width: 22px;
    height: 22px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.8995 6.85453L17.1421 11.0972L7.24264 20.9967H3V16.754L12.8995 6.85453ZM14.3137 5.44032L16.435 3.319C16.8256 2.92848 17.4587 2.92848 17.8492 3.319L20.6777 6.14743C21.0682 6.53795 21.0682 7.17112 20.6777 7.56164L18.5563 9.68296L14.3137 5.44032Z' fill='%23ffb36b'%3E%3C/path%3E%3C/svg%3E");
}

.box-007 p {
    margin: 0;
    padding: 0 20px 20px;
}

.box-005 {
    width: 95%;
    margin: 0 auto 1em;
    border: 2px solid #f06060;
    border-radius: 5px;
    color: #333333;
}

.box-005 div {
    display: inline-flex;
    align-items: center;
    column-gap: 4px;
    position: relative;
    top: -13px;
    left: 10px;
    margin: 0 7px;
    padding: 0 8px;
    background: #fff;
    color: #f06060;
    font-weight: 600;
    vertical-align: top;
    font-size: 1.2em;
}

.box-005 div::before {
    width: 25px;
    height: 25px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z' fill='%23f06060'%3E%3C/path%3E%3C/svg%3E");
}

.box-005 p {
    margin: 0;
    padding: 0 1.5em 1em;
}


.box-006 {
    grid-gap: 0 .7em;
    margin: 0 auto;
    padding: 1em;
    border-radius: 5px;
    background-color: #fff9e5;
    color: #333333;
}


.box-006 p {
    margin: 0;
    padding: 0 0 0 .7em;
}

.hiyou-hikaku {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.hiyou-hikaku th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.hiyou-hikaku th {
    background: #e6bc00;
    color: #000;
    text-align: center;
}
.hiyou-hikaku tr:nth-child(even) {
    background: #f2f2f2;
}

.hiyou-shippai-hikaku {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.hiyou-shippai-hikaku th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}
.hiyou-shippai-hikaku th {
    background: #e6bc00;
    color: #000;
}
.hiyou-shippai-hikaku tr:nth-child(even) {
    background: #f2f2f2;
}
.hiyou-shippai-hikaku tr:last-child {
    font-weight: bold;
    background: #ffeb99;
}

.button-4 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80％;
    margin:0 auto;
    padding: .9em 2em;
    border: none;
    border-bottom: solid 5px #db8400;
    border-radius: 5px;
    background-color: #ffc400;
    color: #000;
    font-weight: 600;
    font-size: 1em;
    transition: .5s ease;
}

.button-4:hover {
    transform: translateY(3px);
    border-bottom-width: 2px;
}

.button-4 a {
    text-decoration: none;
    color: inherit;
}


.office-contents {
    margin: 1em;
    font-size: .9em;
}

.point-box {
    padding: .1em 1em;
    background-color:#fef48b;
    border-radius: 1em;
}



.office-header ul {
    list-style-position: outside; /* デフォルトのアイコン（番号など）が外側に来るようにする */
    padding-left: 20px; /* リスト全体の左側の余白を追加 */
}

.office-header li{
    flex-direction: column;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.5em;
    list-style-position: outside; /* インデントの調整 */
    text-indent: -1em; /* 1行目のテキストを左に寄せる */
    padding-left: 1em;  /* 折り返し後の行が1em分右にくるようにする */
}


.office-header {
    text-align: center;
    margin: 10px 20px;
}

.office-header img {
    max-width: 100%;
    border-radius: 8px;
}

.office-header h1 {
    font-size: 1.8em;
    margin-top: 20px;
}

.office-header p {
    font-size: 1.1em;
    color: #666;
}

.office-info {
    margin-top: 20px;
}

.balloon-001 {
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
    padding: .8em 1.2em;
    border-radius: 5px;
    background-color: #fef48b;
    color: #333333;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.5em;
    text-align: left;
}

.balloon-001::before {
    position: absolute;
    bottom: -15px;
    width: 30px;
    height: 15px;
    background-color: #fef48b;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: #ff7d0b;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.rating {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.rating span {
    font-size: 1.5em;
    color: #FFD700;
    margin-right: 5px;
}

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

.office-table th, td {
    padding: 15px;
    border: 1px solid #ccc;
    text-align: left;
    width: 30px;
}

.office-table th {
    background-color: #f2f2f2;
}

.contact-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.contact-buttons a {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    border-radius: 8px;
    margin: -1em 0 .5em;
}

.phone-btn {
    background-color: #3cbe00;
}

.web-btn {
    background-color: #ffa200;
}





/* ランキング表 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .7em;
    text-align: center;
}




.office-cell {
    text-align: center;
    vertical-align: top;
    padding: 10px;
  }

  .office-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .office-image {
    width: 150px;
    height: auto;
  }

  .office-title {
    font-size: 1.2em;
    margin: 10px 0;
    line-height: 1.2em;
    text-decoration: none;
  }

  .official-site-button {
    display: inline-block;
    background-color: #ffa200;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    width: 70px;
    font-size: 10px;
    font-weight: bold;
  }

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    vertical-align: middle;
    word-wrap: break-word;
    width: 150px;
    font-size: 1.4em;
    text-align: center;
}

th {
    background-color: #f7f7f7;
    font-weight: bold;
}

td img {
    max-width: 100%;
    height: auto;
}

.office-name {
    display: flex;
    align-items: center;
}

.office-logo {
    margin-right: 10px;
}

.marker-yellow {
    background: linear-gradient(to bottom, transparent 50%, yellow 50%);
    padding-bottom: 2px;
    font-weight: bold;
  }

  .marker-yellow-red {
    background: linear-gradient(to bottom, transparent 50%, yellow 50%);
    padding-bottom: 2px;
    font-weight: bold;
    color: #e60023;
  }

  .marker-red {
    font-weight: bold;
    color: #e60023;
  }

  .marker-pink {
    background: linear-gradient(to bottom, transparent 50%, rgb(255, 192, 229) 50%);
    padding-bottom: 2px;
    font-weight: bold;
  }

  .shindan-button {
    text-align: center;
    margin: 0 -1.5em 0;
  }

  .shindan-button img{
    width: 100%;
  }


/* 養育費回収までの流れ */
.step {
    background: #ebfeff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.step-marker {
    width: 50px;
    height: 50px;
    background-color: #00076a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #00076a;
    margin: 10px auto 30px;
}

.step-title {
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 30px;
}

.step p {
    margin-top: 10px;
    font-size: .9em;
}

/* 弁護士に依頼するメリット */
.benefit-section {
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.benefit-section h3 {
    text-align: center;
    background-color: #74fe7e;
    color: rgb(25, 25, 25);
    padding: 10px;
    border-radius: 5px;
    margin-top: 0;
}

.benefit-section .benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefit-section .benefit-item img {
    width: 100px;
    height: auto;
    margin-right: 15px;
}

.benefit-section .benefit-item div {
    flex: 1;
}

@media (max-width: 768px) {
    .benefit-section {
        padding: 15px;
        font-size: 1.1em;
    }
    .benefit-section .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .benefit-section .benefit-item img {
        margin-bottom: 10px;
    }
}

.box-020 {
    position: relative;
    margin: 0 auto;
    padding: 1em 1.5em;
    background-color: #e0fbff;
    color: #333;
}

.box-020::after {
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: #d3dfc0 #fff;
    box-shadow: -1px 1px 1px rgb(0 0 0 / 5%);
    content: '';
}

/* フッター */
footer {
    background: #f4f4f4;
    text-align: center;
    padding: 20px;
    margin: 0 0 60px;
}



/*フッターメニュー
-------------------------------------*/
.footer-001 {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 15px 20px 20px;
    background-color: #ededed;
}

.footer-001 a{
    text-decoration: none;
}

.footer-001__logo {
    width: 130px;
    height: 30px;
}

.footer-001__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 1.5em;
    list-style-type: none;
    margin: 0 0 .5em;
    padding: .5em;
}

.footer-001__link {
    color: #343434b3;
    font-weight: 200;
    text-decoration: none;
}

.footer-001__copyright {
    margin: 0;
    color: #343434b3;
    font-weight: 200;
    font-size: .8em;
}


.footer_g_nav {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 10000;
    width: 35%;
}

.policy-box {
    margin: 0 auto;
}

.policy-box p{
    text-align: center;
    color: #555;
    font-size: 5px;

}



@media (max-width: 768px) {
.footer_g_nav {
    position: fixed;
    bottom: 0;
    z-index: 10000;
    width: 100%;
    text-align: center;
    margin-bottom: -.6em;
}
}

@media (min-width: 769px) {
.footer_g_nav {
    display: none;
}
}




/* メディアクエリ（スマホ表示の調整） */
@media (max-width: 768px) {
    header {
        padding-top: 20px;
    }

    header h1 {
        font-size: 1.6em;
    }

    .header-nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .header-nav li {
        margin: 10px 0;
    }

  
    .top-img img {
        width: 100%;
    }
    
    .header-pr {
        font-size: .8em;
        margin: .5em 2em;
        text-align: right;
    }

    .table-of-contents {
        width: 70%;
        margin: 20px auto;
        padding: 10px 30px;
    }


    main {
        padding: 20px;
        max-width: 100%;
    }


    section p {
        text-align: left;
    }

    table {
        width: 600px;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: .7em;
        text-align: center;
    }
    
    th, td {
        padding: 5px;
        font-size: 1.2em;
        width: 100px;
        word-wrap: break-word;
    }

    .scroll-icon {
        display: block;
    }

    .chat-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .chat-icon {
        min-width: 60px;
        min-height: 60px;
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    .chat-bubble {
        max-width: calc(100% - 60px);
        margin-left: 0;
        margin-top: 0;
    }

    .chat-bubble::after {
        top: 50%;
        left: -10px;
        transform: translateY(-50%);
        border-right-color: #f1f1f1;
        border-left: 0;
    }


}
