/*
Theme Name: Doto Autotech Corporate
Description: 道東オーテック企業サイト用WordPressテーマ
Version: 1.0
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.skip-link {
    top: -42px !important;
}
body {
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6;
    color: #1f1f1f;
    background-color: #fff;
    padding-top: 70px; /* ヘッダーの高さ分の余白 */
}


.grecaptcha-badge { visibility: hidden; }


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



/* ヘッダー */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed; /* relativeからfixedに変更 */
    top: 0; /* ページ最上部に固定 */
    left: 0; /* 左端に固定 */
    width: 100%; /* 横幅いっぱいに */
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 固定ヘッダーに影を追加 */
}
.admin-bar .header {
    margin-top: 32px !important;
}
.header-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a img {
    height: 46px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #4285f4;
}

.anchor {
    display: block;
    padding-top: 120px;
    margin-top: -120px;
}

.top-recruit {
    background: #e8f6fc;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}
.top-recruit .contents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.top-recruit .contents .text-block {
    flex: 2;
    min-width: 300px;
    text-align: left;
    margin-left: 70px;
}
.top-recruit .contents .text-block h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #1f1f1f;
}
.top-recruit .contents .text-block p {
    margin-bottom: 20px;
    line-height: 1.6;
}
h3.wp-block-heading {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 28px;
}
.main-content p {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 18px;
}
.main-content p.text-lay {
    margin: 30px 110px 105px;
}
.text-center {
    text-align: center;
}
.text-center p {
    text-align: left;
    display: inline-block;
}
.wp-block-separator {
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid #C4C4C4;
    margin-bottom: 120px;
    margin-top: 100px;
}

/* ヒーローセクション */
.hero {
    background-position: 0%;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    margin-top: -70px; /* ヘッダー分を相殺 */
    padding-top: 150px; /* 上部パディングを増やす */
    background-image: url(images/mainimage.jpg);
    display: block;
    margin: 0 auto;
    height: 100vh;
    max-height: 1200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    top: 40%;
    left: 50%;
    text-align: left;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1150px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero .tagline {
    font-size: 1rem;
    font-weight: 500;
}

/* ページヘッダー */
.page-header {
    background: #205cab;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: -70px; /* ヘッダー分を相殺 */
    padding-top: 130px; /* 上部パディングを増やす */
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

/* メインコンテンツ */
.main-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 60px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* セクション */
.section {
    margin-bottom: 60px;
}

h2.wp-block-heading {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

h2.wp-block-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #12a197;
    margin: 10px auto 0;
}

.company-mainimage {
    background-position: 0%;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    padding-top: 150px; /* 上部パディングを増やす */
    background-image: url(images/company-image.jpg);
    /*background-image: url(https://doto-o-tec.net/wp-content/uploads/2025/06/company-image.jpg);*/
    display: block;
    margin: 0 auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    width: 100%;
    min-height: 543px;
}

.company-mainimage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.company-content {
    top: 53%;
    left: 34%;
    text-align: left;
    position: absolute;
    transform: translate(-50%, -50%);
}

.company-mainimage h3 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.8px;
    line-height: 1.2;
    text-shadow: #242424 1px 0 10px;
}

.company-mainimage .tagline {
    font-size: 20px;
    font-weight: 600;
    text-shadow: #242424 1px 0 10px;
}

.recruit-mainimage {
    background-position: 0%;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    padding-top: 150px; /* 上部パディングを増やす */
    background-image: url(images/recruit-image.jpg);
    /*background-image: url(https://doto-o-tec.net/wp-content/uploads/2025/06/recruit-image.jpg);*/
    display: block;
    margin: 0 auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    width: 100%;
    min-height: 543px;
}
.recruit-mainimage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}
.recruit-contents {
    top: 56%;
    left: 22%;
    text-align: left;
    position: absolute;
    transform: translate(-50%, -50%);
}
.recruit-mainimage h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.8;
}

/* フォーム */
                .wpcf7-form-control-wrap {
                    display: block;
                }
                .wpcf7-form-control {
                    padding: 12px 16px;
                    border: 2px solid #e0e0e0;
                    border-radius: 4px;
                    font-size: 1rem;
                }
                /*.wpcf7-submit {
                    background: #215cac !important;
                    color: white !important;
                    border: none !important;
                    padding: 15px 40px !important;
                    border-radius: 50px !important;
                    font-weight: 500 !important;
                    cursor: pointer !important;
                }
                .wpcf7-submit:hover {
                    background: #1565C0 !important;
                }*/
table.contact {
    border-top: 1px solid #dedede;
    border-collapse: collapse;
    width: 100%;
}
table.contact th {
    border-bottom: 1px solid #dedede;
    padding: 28px 13px;
    font-size: 18px !important;
    white-space: nowrap;
    font-weight: 500 !important;
    text-align: left;
    width: 300px;
    letter-spacing: 0px;
}
table.contact td {
    border-bottom: 1px solid #dedede;
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: 20px;
    font-size: 16px;
    font-weight: 400 !important;
}
table.contact .required {
    background-color: #ba1b21;
    color: #FFFFFF;
    font-size: 14px;
    padding: 1px 10px;
    line-height: 1;
    font-weight: 500;
    margin-right: 10px;
    letter-spacing: 0px !important;
    margin-left: 10px;
}
.wpcf7-checkbox .wpcf7-list-item {
    display: inline-block !important;
}
.wpcf7-form-control-wrap textarea {
    width: 98% !important;
    background-color: #F9FAFD !important;
}
.wpcf7-form-control-wrap input.wpcf7-text {
    width: 80% !important;
    background-color: #F9FAFD;
}
.wpcf7-form .soushin {
    text-align: center;
}
.wpcf7-form .soushin input,
.wpcf7-form .soushin input[type=submit] {
    background: #215cac !important;
    color: white !important;
    border: none !important;
    padding: 22px 40px !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    margin: 40px 10px 30px;
    display: inline-block;
    cursor: pointer;
    font-size: 18px;
    min-width: 200px;
}


/* ボタン */
.btn {
    display: inline-block;
    padding: 23px 138px 23px 75px;
    background: #205cab;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 18px;
    position: relative;
}
.btn::before {
    content: '';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 1px solid white;
    border-right: 1px solid white;
}
.btn:hover {
    background: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.btn-center {
    text-align: center;
    margin: 40px 0;
}

.message {
    margin-bottom: 80px;
}
p.name-president br {
    display: none;
}
p.name-president strong {
    font-size: 29px;
    font-family: "ab-ootori", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* 会社概要テーブル */
.company-info {
    overflow: hidden;
    margin: 40px 0 150px;
}

.company-info table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #e2e2e2;
}

.company-info th,
.company-info td {
    padding: 28px 40px;
    border-bottom: 1px solid #e2e2e2;
    text-align: left;
}

.company-info th {
    background: #f2f2f2;
    color: #000000;
    font-weight: 500;
    width: 240px;
}

.company-info td {
    background: white;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

/*.card:hover {
    transform: translateY(-5px);
}*/


.card .wp-element-caption {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    position: absolute;
    left: 20px;
    top: 42px;
    z-index: 1000;
}





/* ホーム専用セクション */
.home-section {
    padding: 0px 0px 80px;
}
.home-section.end {
    padding: 0px !important;
}

.home-section .container {
    max-width: 1160px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.card .sec1_img {
	position: relative;
}
.card .sec1_img:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(3, 115, 227, 0.5);
	-webkit-transition: all .6s ease;
	-o-transition: all .6s ease;
	transition: all .6s ease;
}
.card .sec1_img img {
    width: 100%;
    height: auto;
    
}
.card a {
	line-height: 0;
}
.card a:hover {
	color: #fff;
}
.card a:hover img {
	opacity: 1;
}
.card a:hover .sec1_img:after {
	opacity: 0;
	left: 100%;
}

/* ニュース */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.news-item {
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.news-item:hover {
    border-color: #4285f4;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.2);
}
.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    position: absolute;
    bottom: 0px;
}

.news-title {
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    margin-bottom: 40px;
    margin-left: 20px;
    margin-right: 20px;
}

.news-link:hover .news-title {
    color: #4285f4;
}

.news-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #4285f4;
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-image {
    width: 100%;
    height: 148px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.news-thumbnail {
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-link:hover .news-thumbnail {
    transform: scale(1.05);
}

.news-default-image {
    opacity: 0.8;
}

.news-link:hover .news-default-image {
    opacity: 1;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0 85px;
}
.wp-element-caption2 {
    font-size: 16px !important;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5 !important;
}
.wp-element-caption2 span {
    font-size: 14px;
}
.voice-staff .wp-element-caption {
    text-align: center;
    font-weight: 600;
    font-size: 20px;
}
.voice-staff .wp-element-caption span {

    font-size: 15px;
}

/* フッター */
.footer {
    background: #205cab;
    color: white;
    padding: 100px 0 0px;
}

.footer-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 30px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.footer-company {
    margin-bottom: 85px;
}

.footer-company h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-company p {
    margin-bottom: 5px;
}

.footer-copyright {
    padding-top: 20px;
    opacity: 0.8;
    font-size: 14px;
    background-color: #2E5280;
    text-align: center;
    padding-bottom: 20px;
}

/* ===============================
   新しいスタイル（画像デザインに合わせた修正）
   =============================== */

/* メインコンテンツ（新しいスタイル） */
.main-content {
    padding-top: 70px;
    max-width: none; /* 既存の制限を解除 */
    margin: 0 0 120px;
    padding: 70px 0 0 0; /* 既存のパディングを調整 */
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションタイトル（新しいスタイル） */
.home-section .section-title {
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #12a197;
}

.home-section .section-title::after {
    display: none; /* 既存のアンダーラインを非表示 */
}

/* RECRUITセクション特別スタイル */
.recruit-hero {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    padding: 60px 40px;
    border-radius: 12px;
    margin: 0 0 60px 0;
    position: relative;
    overflow: hidden;
}

.recruit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.recruit-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.recruit-image {
    flex: 1;
    min-width: 280px;
}

.recruit-image img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.recruit-text {
    flex: 2;
    min-width: 300px;
    color: white;
}

.recruit-text h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 600;
}

.recruit-text p {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.95;
}

.recruit-text .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.recruit-text .btn:hover {
    background: white;
    color: #1976d2;
}
.works-group {
    display: none !important;
}
.works-group .wp-element-caption {
    font-size: 14px;
    text-align: center;
}
.timeline {
    position: relative;
    max-width: 1120px;
    margin-bottom: 85px;
    padding-left: 80px;
}
.timeline dl::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ccc;
}
.timeline dl:after {
	content: "";
	display: block;
	clear: both;
}
.timeline dl dt {
    position: relative;
    margin-bottom: 10px;
    float: left;
    width: 90px;
    font-size: 17px;
    line-height: 1.3;
    text-align: right;
    color: #000000;
}
.timeline dl dt strong {
    font-size: 20px;
    display: block;
}
.timeline dl dt::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 5px;
    width: 19px;
    height: 19px;
    background: #205cab;
    border-radius: 50%;
    z-index: 500;
}
.timeline dl dd {
    float: left;
    margin-bottom: 90px;
    padding-left: 100px;
    font-size: 18px;
    line-height: 1.3;
    color: #000000;
}
.list ul {
    list-style: none;
    padding: 0;
    margin-left: 5px;
    margin-bottom: 0px;
    display: inline-block;
    text-align: left;
}
.list ul li {
    position: relative;
    padding-left: 15px;
}
.list ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background-color: #11a295;
    border-radius: 50%;
}


/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        /*flex-direction: column;*/
        gap: 15px; /* スマホでは間隔を狭める */
        padding: 10px; /* パディングも調整 */
    }
    
    /* スマホ用のbody上余白調整 */
    body {
        padding-top: 100px; /* スマホではヘッダーが高くなるため */
    }
    .logo a img {
    height: 38px;
}
    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
.footer {
    padding: 40px 0 0px;
}
.footer-content {
     padding: 0px;
}
    .footer-nav ul {
    gap: 10px;
    font-size: 15px;
    }
.footer-company {
    margin-bottom: 35px;
}
.footer-company h3 img {
    width: 60%;
}
.footer-company p {
    font-size: 14px;
}
.footer-copyright {
    font-size: 12px;
}
    .hero {
        margin-top: -100px;
        padding-top: 180px;
    }
    .hero {
    background-image: url(images/mainimage-smp.jpg);
}
    .hero h1 {
    font-size: 2rem;
    letter-spacing: 0px;
    line-height: 1.2;
    }
    .hero-content {
    top: 20%;
    left: 50%;
    text-align: left;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 90%;
}
    .page-header {
        margin-top: -100px;
        padding-top: 140px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .main-content {
    padding: 0px;
    margin: 0 0 60px;
    }
    .single .main-content,
    .page .main-content {
    padding: 30px 0px 0px;
    }
    .single .main-article {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    }
    .container {
    padding: 0px;
}

.company-mainimage {
    background-position: 0%;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    padding-top: 150px; /* 上部パディングを増やす */
    min-height: auto;
}
.company-content {
    top: 56%;
    left: 38%;
}
.company-mainimage h3 {
    font-size: 30px;
}
.company-mainimage .tagline {
    font-size: 15px;
    line-height: 1.5;
}
.recruit-mainimage {
    min-height: auto;
}
.recruit-contents {
    top: 56%;
    left: 34%;
}
.recruit-mainimage h3 {
    font-size: 22px;
    line-height: 1.5;
}

.top-recruit {
    background: #e8f6fc;
    padding: 20px 20px 30px;
    text-align: center;
    margin: 0px auto 40px;
    width: 95%;
}
.top-recruit .contents {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.top-recruit .contents img {
    width: 100%;
}
.top-recruit .contents .text-block {
    margin-left: 0px;
    margin-top: 20px;
}
.top-recruit .contents .text-block h4 {
    font-size: 21px;
    letter-spacing: -0.8px;
}
.top-recruit .contents .text-block p {
    margin-bottom: 20px;
    line-height: 1.6;
}
    .btn {
        padding: 20px 88px 20px 55px;
    }
    .voice-item {
        flex-direction: column;
        text-align: center;
    }
    
    .voice-image {
        align-self: center;
    }
    
.voice-staff {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.voice-staff h3.wp-block-heading {
    line-height: 1.3;
}
.entry-text {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.entry-tel img {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.wpcf7-form-control-wrap input.wpcf7-text {
    width: 90% !important;
}
.wpcf7-form-control-wrap textarea {
    width: 90% !important;
}
.char-counter {
    margin-right: 10px;
}
.wpcf7-spinner {
    display: block;
}

    /* 新しいスタイル用レスポンシブ */
    .home-section .section-title {
    font-size: 40px;
    margin-bottom: 20px;
    }

    .recruit-content {
        flex-direction: column;
        text-align: center;
    }

    .recruit-text h3 {
        font-size: 1.2rem;
    }
    .home-section .section-grid {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    }
    .section-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
    }
    .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px auto 0px;
    width: 90%;
    }

    .news-link {
        padding: 0px;
    }

    .news-image {
        height: 120px;
        margin-bottom: 15px;
    }
.news-date {
    margin-left: 10px;
    margin-right: 10px;
}
    .news-title {
    font-size: 16px;
    margin-left: 10px;
    margin-right: 10px;
    }
.news-thumbnail {
    width: 100%;
    height: 100px;
}
.voice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px auto 50px;
    width: 90%;
}
.wp-element-caption2 {
    margin-top: 10px;
    margin-bottom: 20px;
}

.wp-block-separator {
    margin: 20px auto 60px;
    width: 90%;
}
    
h2.wp-block-heading {
    font-size: 24px;
    margin-bottom: 30px;
}
table.contact th {
    border-bottom: 0px solid #dedede;
    padding: 28px 13px 0px;
    text-align: left;
    width: auto;
    letter-spacing: 0px;
    display: block;
}
table.contact td {
    border-bottom: 1px solid #dedede;
    padding-top: 15px;
    padding-bottom: 28px;
    padding-left: 20px;
    display: block;
}
.main-content p.text-lay {
    margin: 10px 15px 50px;
}
.message {
    margin-bottom: 50px;
}
.message img {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.message .wp-block-media-text__content {
    width: 90%;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
}
p.name-president br {
    display: block;
}
.company-info {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}
.company-info th,
.company-info td {
    display: block;
    width: 100%;
    padding: 15px 10px;
}
.company-info th {
    border-bottom-style: none;
    font-size: 0.9rem;
}
.soshikizu img {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.works-group {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}
.timeline {
    padding-left: 40px;
    margin-right: 10px;
    margin-bottom: 40px;
}
.timeline dl::before {
  left: 20px;
}
.timeline dl dt {
    width: 190px;
    text-align: left;
}
.timeline dl dt strong br {
    display: none;
}
.timeline dl dd {
    margin-bottom: 40px;
    padding-left: 0px;
}
.wp-container-core-group-is-layout-6be84c55 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}

@media (max-width: 480px) {
    /* より小さなスマホ画面用 */
    body {
        padding-top: 140px; /* メニューが縦並びになるため更に調整 */
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    /*.hero {
        padding: 60px 20px;
        margin-top: -140px;
        padding-top: 200px;
    }*/
    
    .page-header {
        padding: 40px 20px;
        margin-top: -140px;
        padding-top: 130px;
    }
    
    /*.btn {
        padding: 12px 30px;
    }*/
    
    
    .card-grid {
        grid-template-columns: 1fr;
    }

    /* 新しいスタイル用レスポンシブ */
    .recruit-hero {
        padding: 40px 20px;
    }

    .home-section {
        padding: 30px 0;
    }

    .news-image {
        height: 100px;
    }


}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* アクセシビリティ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* プリント用スタイル */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
}

/* ===============================
   サイドバー用スタイル
   =============================== */

/* サイドバーレイアウト */
.main-content .container-with-sidebar {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content .main-article {
    flex: 1;
    min-width: 0;
}

/* サイドバー */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* サイドバーウィジェット */
.sidebar-widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ウィジェットタイトル */
.widget-title {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #333;
    border-left: 4px solid #4285f4;
    padding-left: 15px;
    font-weight: 600;
}

/* 検索フォーム */
.sidebar .search-form {
    position: relative;
}

.sidebar .search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.sidebar .search-input:focus {
    border-color: #4285f4;
}

.sidebar .search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.sidebar .search-button:hover {
    background: #3367d6;
}

/* サイドバーリスト */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

/* 最新記事リスト */
.recent-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.recent-posts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts-list a {
    text-decoration: none;
    color: #333;
    display: block;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.recent-post-title {
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-posts-list a:hover .recent-post-title {
    color: #4285f4;
}

/* カテゴリー・アーカイブリスト */
.category-list a,
.archive-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.archive-list a:hover {
    background: #e9ecef;
    color: #4285f4;
}

.category-count,
.archive-count {
    background: #4285f4;
    color: white;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* タグクラウド */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    text-decoration: none;
    background: white;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-link:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.tag-count {
    margin-left: 4px;
    opacity: 0.7;
}

/* 会社情報ウィジェット */
.company-widget {
    text-align: center;
}

.company-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.company-name {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.company-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.company-btn {
    display: inline-block;
    background: #4285f4;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.company-btn:hover {
    background: #3367d6;
    color: white;
}

/* スクロールバーカスタマイズ */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===============================
   サイドバー用レスポンシブ
   =============================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content .container-with-sidebar {
        gap: 30px;
    }
    
    .sidebar-widget {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .main-content .container-with-sidebar {
        flex-direction: column;
        gap: 0;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 40px;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .tag-cloud {
        gap: 6px;
    }
    
    .tag-link {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sidebar-widget {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .recent-posts-list li {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .category-list a,
    .archive-list a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .company-description {
        font-size: 0.85rem;
    }
    
    .company-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}