/*
 Theme Name:   OnePress Child
 Theme URI:    https://www.famethemes.com
 Description:  OnePress sample child theme
 Author:       FameThemes
 Author URI:   https://www.famethemes.com
 Template:     onepress
 Version:      1.0.0
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  onepress-child
*/

/* Add your custom css below
-------------------------------------------------------------- */

body, p, li, td {
    font-size: 16px !important;
    color: #334155 !important;/
}

.wp-block-table table.has-fixed-layout tr td:first-child {
    font-size: 16px !important;
}

@media screen and (max-width: 768px) {
    body, p, li, td,
    .wp-block-table table.has-fixed-layout tr td:first-child {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
}

.entry-content h2 {
    padding-bottom: 10px;
    border-bottom: 2px solid #017272;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #017272;
}

/* TOP円アイコンをhover変化させない */
.feature-media .icon-background-default,
.feature-media .icon-background-default:hover {
  color: #007377 !important; /* 現在の緑色を指定 */
}

/* STEPアイテムのhoverを無効化（影・浮き上がり・下線） */
.section-services .service-item:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  transform: none;
  border: none;
}

.service-icon-wrapper {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.service-square-icon {
    display: block;
    margin: 0 auto;
    width: 90px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    background-color: #017272;
    border-radius: 16px;
    color: #ffffff;
    font-size: 36px;
    transition: transform 0.3s ease;
}

.service-square-icon:hover {
    transform: translateY(-5px);
}

.custom-icon-wrapper {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.custom-circle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    background-color: #017272;
    border-radius: 50%;
    color: #ffffff;
    font-size: 36px;
    transition: transform 0.3s ease; 
}

.custom-circle-icon:hover {
    transform: translateY(-5px);
}

.custom-icon-wrapper {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.custom-circle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    background-color: #017272;
    border-radius: 50%;
    color: #ffffff;
    font-size: 36px;
    transition: transform 0.3s ease;
}

.custom-circle-icon:hover {
    transform: translateY(-5px);
}

.wp-block-heading + .wp-block-columns .wp-block-group,
.wp-block-heading + .wp-block-columns + .wp-block-columns .wp-block-group {
    background-color: #ffffff !important;
    padding: 30px 25px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
}

.wp-block-group .wp-block-columns {
    align-items: center !important;
    margin-bottom: 0 !important;
}

.flow-icon-wrapper {
    display: block;
    text-align: center;
}

.flow-icon-wrapper .flow-direct-icon {
    display: inline-block;
    color: #017272 !important;
    font-size: 56px;
    line-height: 1;
}

.wp-block-heading + .wp-block-columns,
.wp-block-heading + .wp-block-columns + .wp-block-columns {
    gap: 24px !important;
    margin-bottom: 24px !important;
}

.wp-block-table {
    width: 100% !important;
    max-width: 900px !important;
    margin: 40px auto !important;
    overflow-x: auto;
}

.wp-block-table table.has-fixed-layout {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 3px solid #017272 !important;
}

.wp-block-table table.has-fixed-layout tr td:first-child {
    width: 25% !important;
    padding: 24px 16px 24px 0 !important;
    background-color: transparent !important;
    color: #017272 !important;
    font-weight: 700 !important;
    text-align: left !important;
    vertical-align: top !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 16px !important;
    letter-spacing: 0.05em !important;
}

.wp-block-table table.has-fixed-layout tr td:last-child {
    width: 75% !important;
    padding: 24px 0 24px 16px !important;
    color: #334155 !important;
    text-align: left !important;
    vertical-align: top !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.wp-block-table table.has-fixed-layout tr:last-child td {
    border-bottom: none !important;
}

.entry-content h3 {
	line-height:1.5;
}

@media screen and (max-width: 768px) {
    .wp-block-table table.has-fixed-layout {
        table-layout: auto !important;
        border-bottom: none !important;
    }
    
    .wp-block-table table.has-fixed-layout tr {
        display: block !important;
        width: 100% !important;
        padding: 20px 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .wp-block-table table.has-fixed-layout tr:last-child {
        border-bottom: 3px solid #017272 !important;
    }

    .wp-block-table table.has-fixed-layout tr td:first-child,
    .wp-block-table table.has-fixed-layout tr td:last-child {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    .wp-block-table table.has-fixed-layout tr td:first-child {
        margin-bottom: 8px !important;
        font-size: 15px !important;
    }

    .wp-block-table table.has-fixed-layout tr td:last-child {
        font-size: 15px !important;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

body, h1, h2, h3, h4, h5, h6, p, a, span, input, textarea, button {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif !important;
}