/* ========================================
   フォント読み込み
   ======================================== */
@font-face {
    font-family: 'KouzanMouhituFont';
    src: url('../fonts/KouzanMouhituFontOTF.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ========================================
   CSSリセット
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Shippori Mincho', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ========================================
   オーバーレイ
   ======================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   共通レイアウト
   ======================================== */
.container {
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    background-color: #fff;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

/* ロゴエリア */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 60px;
}

/* ハンバーガーメニュー */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ナビゲーション */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(40, 40, 40, 0.95);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

.nav.is-open {
    right: 0;
}

.nav-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.nav-list {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-link {
    display: block;
    padding: 18px 20px;
    color: #fff;
    font-size: 1rem;
    text-align: left;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3A8FCC;
}

/* ========================================
   FV（ファーストビュー）
   ======================================== */
.fv {
    height: 500px;
    background-image: url('../images/fv-sp.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.fv-content {
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.fv-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.fv-title-line {
    display: block;
}

/* ========================================
   代表挨拶
   ======================================== */
.greeting {
    background-image: url('../images/greeting-sp.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

.greeting .container {
    margin: 0;
    width: 70%;
}

.greeting-title {
    color: #3A8FCC;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.greeting-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.8;
}

.greeting-text {
    margin-bottom: 50px;
}

.greeting-text p {
    margin-bottom: 20px;
    line-height: 2;
}

.greeting-signature {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.greeting-signature-title {
    font-family: 'KouzanMouhituFont', serif;
    font-size: 1.5rem;
    margin-right: 15px;
}

.greeting-signature-name {
    font-family: 'KouzanMouhituFont', serif;
    font-size: 2rem;
    line-height: 1;
}

/* ========================================
   事業紹介
   ======================================== */
.service-header {
    background-color: #3A8FCC;
    color: #fff;
    padding: 20px 20px;
    text-align: center;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title::before,
.service-title::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/polygon-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.service-title::before {
    margin-right: 15px;
}

.service-title::after {
    margin-left: 15px;
}

.service-subtitle {
    font-size: 1rem;
    line-height: 1.8;
}

.service-content {
    background-color: #fff;
    padding: 30px 0;
}

.service-content-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 40px;
}

.service-card {
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
    width: calc(50% - 20px);
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(100, 100, 100, 0.5);
    z-index: 1;
}

.service-card span {
    position: relative;
    z-index: 2;
}

.service-card--ashiba {
    background-image: url('../images/ashibakouji.png');
}

.service-card--tekkotsu {
    background-image: url('../images/tekkotsukouji.png');
}

.service-card--tetudou {
    background-image: url('../images/tetudoukouji.png');
}

.service-card--doboku {
    background-image: url('../images/dobokukouji.png');
}

.service-description {
    margin-bottom: 20px;
    line-height: 2;
    text-align: center;
}

.service-description p {
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3A8FCC;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.service-link:hover {
    background-color: #3a7ab7;
}

/* ========================================
   施工実績
   ======================================== */
.works {
    background-image: url('../images/sekoujisseki.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    color: #fff;
}

.works-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-title::before,
.works-title::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/polygon-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.works-title::before {
    margin-right: 15px;
}

.works-title::after {
    margin-left: 15px;
}

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

.works-year-block {
    margin-bottom: 50px;
}

.works-year-block:last-child {
    margin-bottom: 0;
}

.works-year {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.works-list {
    margin-left: 20px;
}

.works-item {
    margin-bottom: 15px;
    line-height: 1.8;
    transition: transform 0.2s ease;
}

.works-item:hover {
    transform: translateX(5px);
}

.works-project {
    font-weight: 600;
}

.works-client {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   ニュース&ブログ
   ======================================== */
.news {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

.news-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.news-title::before,
.news-title::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/polygon-gray.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.news-title::before {
    margin-right: 15px;
}

.news-title::after {
    margin-left: 15px;
}

.news-cards {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 40px;
}

.news-card {
    width: calc(50% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: left;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: contents;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e8e8e8;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-category-blog {
    background-color: #555;
    color: #fff;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.news-date {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

.news-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e0e0e0;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.news-link:hover {
    background-color: #d0d0d0;
}

/* ========================================
   会社情報
   ======================================== */
.company {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

.company .container {
    padding: 0 40px;
}

.company-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.company-content {
    display: flex;
    flex-direction: column;
}

.company-left {
    margin-bottom: 40px;
}

.company-address-block {
    margin-bottom: 20px;
}

.company-postal,
.company-tel,
.company-address {
    margin-bottom: 5px;
    line-height: 1.8;
}

.company-postal i,
.company-tel i,
.company-address i {
    margin-right: 10px;
    color: #3A8FCC;
}

.company-map {
    width: 100%;
}

.company-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.company-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.company-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    background-color: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    width: 30%;
}

.company-table td {
    padding: 15px 20px;
    line-height: 1.8;
}

/* ========================================
   採用情報
   ======================================== */
.recruit {
    background-color: #fff;
}

.recruit-content {
    display: flex;
    flex-direction: column;
}

.recruit-left {
    background-color: #3A8FCC;
    color: #fff;
    padding: 60px 40px;
}

.recruit-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruit-title::before,
.recruit-title::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/polygon-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.recruit-title::before {
    margin-right: 15px;
}

.recruit-title::after {
    margin-left: 15px;
}

.recruit-message-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 30px;
}

.recruit-message p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.recruit-right {
    background-color: #fff;
    padding: 60px 40px;
}

.recruit-section {
    margin-bottom: 40px;
}

.recruit-section-title {
    background-color: #3A8FCC;
    color: #fff;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.recruit-section-text {
    line-height: 2;
}

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

.recruit-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.recruit-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    background-color: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    width: 30%;
}

.recruit-table td {
    padding: 15px 20px;
    line-height: 1.8;
}

.recruit-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #3A8FCC;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 20px;
    float: right;
}

.recruit-button:hover {
    background-color: #3a7ab7;
}

/* ========================================
   お問い合わせ
   ======================================== */
.contact {
    background-color: #fff;
}

.contact-header {
    background-image: url('../images/contact-head-img.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.contact-form-area {
    padding: 80px 0;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
    background-color: #EDF4F6;
    padding: 12px 20px;
    border-left: 4px solid #3A8FCC;
}

.form-input,
.form-select,
.form-textarea {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    font-size: 1rem;
    font-family: 'Shippori Mincho', serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #EDF4F6;
    background-color: #EDF4F6;
    box-shadow: 0 0 0 3px rgba(237, 244, 246, 0.5);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #999;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23666' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.contact-button {
    padding: 18px 50px;
    background-color: transparent;
    color: #00A0B4;
    border: 1px solid #00A0B4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: #EDF4F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 244, 246, 0.6);
}

.contact-button:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 4px;
    color: #2e7d32;
    text-align: center;
}

.required {
    color: #e53935;
    margin-left: 4px;
}

.form-message.error {
    background-color: #ffebee;
    border-color: #e53935;
    color: #c62828;
}

/* ========================================
   確認モーダル
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.is-open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.confirm-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    margin-bottom: 25px;
}

.confirm-list dt {
    font-weight: 600;
    color: #666;
}

.confirm-list dd {
    color: #333;
    word-break: break-word;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.3s;
}

.modal-button.cancel {
    background-color: #e0e0e0;
    color: #333;
}

.modal-button.cancel:hover {
    background-color: #bdbdbd;
}

.modal-button.submit {
    background-color: #00A0B4;
    color: #fff;
}

.modal-button.submit:hover {
    background-color: #008999;
}

.modal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   トップへ戻るボタン
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(58, 143, 204, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 100;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: rgba(58, 143, 204, 0.9);
}

@media (max-width: 767px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   ページヘッダー（ニュース一覧）
   ======================================== */
.page-header {
    background-color: #3A8FCC;
    padding: 30px 20px;
    text-align: center;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

/* ========================================
   ニュース一覧ページ
   ======================================== */
.news-list-section {
    background-color: #fff;
    padding: 60px 0;
}

.news-list-content {
    display: flex;
    flex-direction: column;
}

.news-list-main {
    width: 100%;
    margin-bottom: 40px;
}

.news-list-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-list-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-list-category {
    display: inline-block;
    padding: 6px 16px;
    background-color: #e8e8e8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-list-category.category-blog {
    background-color: #555;
    color: #fff;
}

.news-list-date {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.news-list-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-list-excerpt {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.news-list-readmore {
    display: inline-block;
    padding: 10px 25px;
    background-color: #3A8FCC;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.news-list-readmore:hover {
    background-color: #3a7ab7;
}

.news-list-sidebar {
    width: 100%;
}

.sidebar-widget {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3A8FCC;
}

.sidebar-category-list,
.sidebar-archive-list {
    list-style: none;
}

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

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

.sidebar-category-link,
.sidebar-archive-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-category-link::before,
.sidebar-archive-link::before {
    content: '▶';
    margin-right: 10px;
    font-size: 0.7rem;
    color: #3A8FCC;
}

.sidebar-category-link:hover,
.sidebar-archive-link:hover {
    background-color: #f5f5f5;
    border-color: #3A8FCC;
}

.sidebar-category-link.active,
.sidebar-archive-link.active {
    background-color: #3A8FCC;
    border-color: #3A8FCC;
    color: #fff;
}

.sidebar-category-link.active::before,
.sidebar-archive-link.active::before {
    color: #fff;
}

/* ========================================
   ニュース詳細ページ
   ======================================== */
.news-detail-section {
    background-color: #fff;
    padding: 60px 0;
}

.news-detail-article {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.news-detail-category {
    display: inline-block;
    padding: 6px 16px;
    background-color: #e8e8e8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 15px;
}

.news-detail-category.category-blog {
    background-color: #555;
    color: #fff;
}

.news-detail-date {
    font-size: 0.9rem;
    color: #666;
}

.news-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.news-detail-content {
    line-height: 2;
    margin-bottom: 60px;
}

.news-detail-content p {
    margin-bottom: 25px;
    font-size: 1rem;
}

.news-detail-back {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.news-detail-back-link {
    display: inline-block;
    padding: 12px 40px;
    background-color: #e0e0e0;
    color: #333;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.news-detail-back-link:hover {
    background-color: #d0d0d0;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background-color: #4a5568;
    color: #fff;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-content .container {
    padding: 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
}

.footer-left {
    margin-bottom: 40px;
}

.footer-logo-area {
    display: flex;
    align-items: flex-end;
}

.footer-logo {
    width: 80px;
    margin-right: 20px;
}

.footer-address {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.footer-postal,
.footer-addr-text {
    margin-bottom: 5px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-postal i {
    margin-right: 8px;
    color: #3A8FCC;
}

.footer-right {
    width: 100%;
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    min-width: 180px;
}

.footer-link {
    color: #fff;
    padding: 8px 0;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-link::before {
    content: '▶';
    margin-right: 8px;
    font-size: 0.7rem;
    width: 15px;
    display: inline-block;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-bottom {
    background-color: #3a4556;
    padding: 20px 0;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   小画面スマホ (500px以下)
   ======================================== */
@media (max-width: 767px) {
    .footer-address {
        display: none;
    }

    .footer-logo-area {
        justify-content: center;
        margin-bottom: 0px;
    }

    .footer-right {
        background-color: rgba(255, 255, 255, 0.05);
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-nav {
        flex-direction: column;
    }

    .footer-nav-column {
        margin-bottom: 0;
        min-width: 100%;
    }

    .footer-link {
        padding: 16px 20px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 0;
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    .footer-nav-column:last-child .footer-link:last-child {
        border-bottom: none;
    }

    .footer-link:hover {
        background-color: rgba(255, 255, 255, 0.08);
        opacity: 1;
    }

    .footer-link::before {
        color: #3A8FCC;
    }
}

@media (max-width: 500px) {
    .greeting {
        background-image: url('../images/greeting-sp-2.png');
        background-size: cover;
        background-position: center top;
        padding: 0;
    }

    .greeting .container {
        width: 80%;
    }

    .greeting-content {
        padding: 20px 10px;
    }

    .greeting-title {
        font-size: 1.4rem;
    }

    .greeting-subtitle {
        display: none;
    }

    .greeting-text {
        margin-bottom: 20px;
    }

    .greeting-text p {
        font-size: 0.85rem;
    }

    .greeting-text-desktop {
        display: none;
    }

    .greeting-signature {
        align-items: flex-end;
    }

    .greeting-signature-title {
        font-size: 1rem;
    }

    .greeting-signature-name {
        font-size: 1.4rem;
    }

    .service-card {
        font-size: 1rem;
    }

    .service-title {
        font-size: 1.4rem;
    }

    .service-title::before,
    .service-title::after {
        width: 13px;
        height: 13px;
    }

    .works-title {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    .works-title::before,
    .works-title::after {
        width: 13px;
        height: 13px;
    }

    .works-year {
        font-size: 1.2rem;
    }

    .works-item {
        font-size: 0.9rem;
    }

    .news-title {
        font-size: 1.4rem;
    }

    .news-title::before,
    .news-title::after {
        width: 13px;
        height: 13px;
    }

    .news-card {
        padding: 15px;
    }

    .news-category {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .news-card-title {
        font-size: 0.85rem;
    }

    .news-date {
        font-size: 0.65rem;
    }

    .news-excerpt {
        font-size: 0.75rem;
    }

    .company-title {
        font-size: 1.4rem;
    }

    .company-table th,
    .company-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .recruit-title {
        font-size: 1.4rem;
    }

    .recruit-title::before,
    .recruit-title::after {
        width: 13px;
        height: 13px;
    }

    .recruit-left {
        padding: 40px 20px;
    }

    .recruit-right {
        padding: 40px 20px;
    }

    .recruit-table th,
    .recruit-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .contact-header {
        padding: 60px 20px;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-form-area {
        padding: 60px 0;
    }

    .page-header {
        padding: 25px 20px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .news-list-section {
        padding: 40px 0;
    }

    .news-list-card {
        padding: 20px;
    }

    .news-list-title {
        font-size: 1.2rem;
    }

    .news-list-excerpt {
        font-size: 0.9rem;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .sidebar-widget-title {
        font-size: 1.1rem;
    }

    .news-detail-section {
        padding: 40px 0;
    }

    .news-detail-title {
        font-size: 1.4rem;
    }

    .news-detail-content p {
        font-size: 0.9rem;
    }
}

/* ========================================
   タブレット (768px以上)
   ======================================== */
@media (min-width: 768px) {
    .overlay {
        display: none;
    }

    .logo-area {
        margin-left: 100px;
    }

    .logo-img {
        width: 70px;
    }

    .hamburger {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        margin-left: auto;
        background-color: transparent;
        overflow-y: visible;
    }

    .nav-close {
        display: none;
    }

    .nav-list {
        flex-direction: row;
        padding-top: 0;
    }

    .nav-item {
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
    }

    .nav-item:last-child {
        border-right: none;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 0.85rem;
        text-align: center;
        color: #333;
        white-space: nowrap;
    }

    .nav-link:hover {
        background-color: #f5f5f5;
        color: #3A8FCC;
    }

    .fv {
        height: 600px;
        background-image: url('../images/fv.png');
        background-size: cover;
    }

    .fv-title {
        font-size: 2.8rem;
    }

    .greeting {
        background-image: url('../images/greeting.png');
        background-size: cover;
        background-position: right center;
        background-repeat: repeat;
        padding: 80px 0;
    }

    .greeting-content {
        padding: 50px 60px;
    }

    .greeting-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .greeting-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .greeting-signature-name {
        font-size: 2.5rem;
    }

    .service-card {
        flex: 1;
        width: auto;
        margin-bottom: 0;
    }

    .service-title {
        font-size: 2.2rem;
    }

    .works {
        padding: 80px 40px;
    }

    .works-title {
        font-size: 2.2rem;
        margin-bottom: 80px;
    }

    .works-timeline {
        max-width: 900px;
    }

    .works-year {
        font-size: 1.8rem;
    }

    .works-item {
        font-size: 1rem;
    }

    .news {
        padding: 80px 0;
    }

    .news-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .news-card {
        padding: 25px;
    }

    .news-card-title {
        font-size: 1.2rem;
    }

    .news-excerpt {
        font-size: 0.95rem;
    }

    .company {
        padding: 80px 0;
    }

    .company-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .company-content {
        flex-direction: row;
    }

    .company-left {
        width: 45%;
        margin-right: 5%;
        margin-bottom: 0;
    }

    .company-right {
        width: 50%;
    }

    .recruit-content {
        flex-direction: row;
    }

    .recruit-left {
        width: 40%;
        padding: 80px 40px;
    }

    .recruit-right {
        width: 60%;
        padding: 80px 40px;
    }

    .recruit-title {
        font-size: 2.2rem;
    }

    .contact-header {
        padding: 100px 40px;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-form-area {
        padding: 100px 0;
    }

    .form-row {
        flex-direction: row;
        align-items: center;
    }

    .form-row:has(.form-textarea) {
        align-items: flex-start;
    }

    .form-label {
        width: 200px;
        margin-bottom: 0;
        margin-right: 30px;
        padding: 12px 15px;
    }

    .form-row:has(.form-textarea) .form-label {
        padding-top: 15px;
        align-self: flex-start;
    }

    .form-input,
    .form-select,
    .form-textarea {
        flex: 1;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-left {
        margin-bottom: 0;
    }

    .footer-right {
        width: auto;
    }

    .footer-nav {
        flex-direction: row;
    }

    .footer-nav-column {
        margin-bottom: 0;
        margin-left: 40px;
    }

    .page-header {
        padding: 35px 20px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .news-list-section {
        padding: 80px 0;
    }

    .news-list-content {
        flex-direction: row;
    }

    .news-list-main {
        width: 65%;
        margin-right: 5%;
        margin-bottom: 0;
    }

    .news-list-sidebar {
        width: 30%;
    }

    .news-detail-section {
        padding: 80px 0;
    }

    .news-detail-title {
        font-size: 2rem;
    }

    .news-detail-content p {
        font-size: 1.05rem;
    }
}

/* ========================================
   デスクトップ (1024px以上)
   ======================================== */
@media (min-width: 1024px) {
    .logo-img {
        width: 100px;
    }

    .nav-link {
        padding: 10px 22px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .fv {
        height: 700px;
    }

    .fv-content {
        padding: 0 80px;
    }

    .fv-title {
        font-size: 3.5rem;
    }

    .greeting {
        padding: 100px 0;
    }

    .greeting-content {
        padding: 60px 80px;
    }

    .greeting-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .greeting-subtitle {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }

    .greeting-text p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .greeting-signature-name {
        font-size: 3rem;
    }

    .service-title {
        font-size: 2.5rem;
    }

    .service-subtitle {
        font-size: 1.1rem;
    }

    .service-content-title {
        font-size: 2rem;
    }

    .works {
        padding: 100px 60px;
    }

    .works-title {
        font-size: 2.5rem;
    }

    .works-timeline {
        max-width: 1000px;
    }

    .works-year {
        font-size: 2rem;
    }

    .works-item {
        font-size: 1.05rem;
    }

    .news {
        padding: 100px 0;
    }

    .news-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }

    .news-card {
        width: calc(25% - 20px);
    }

    .news-card-title {
        font-size: 1.25rem;
    }

    .news-excerpt {
        font-size: 1rem;
    }

    .company {
        padding: 100px 0;
    }

    .company-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }

    .company-table th,
    .company-table td {
        padding: 18px 25px;
        font-size: 1rem;
    }

    .recruit-left {
        padding: 100px 60px;
    }

    .recruit-right {
        padding: 100px 60px;
    }

    .recruit-title {
        font-size: 2.5rem;
    }

    .recruit-table th,
    .recruit-table td {
        padding: 18px 25px;
        font-size: 1rem;
    }

    .contact-header {
        padding: 120px 60px;
    }

    .contact-title {
        font-size: 3rem;
    }

    .footer-content {
        padding: 80px 100px 60px;
    }

    .footer-logo {
        width: 140px;
    }

    .footer-nav-column {
        margin-left: 60px;
    }

    .page-header {
        padding: 40px 40px;
    }

    .page-title {
        font-size: 2rem;
    }

    .news-list-section {
        padding: 100px 0;
    }

    .news-list-card {
        padding: 30px;
    }

    .news-list-title {
        font-size: 1.5rem;
    }

    .news-list-excerpt {
        font-size: 1.05rem;
    }

    .sidebar-widget {
        padding: 30px;
    }

    .sidebar-widget-title {
        font-size: 1.3rem;
    }

    .news-detail-section {
        padding: 100px 0;
    }

    .news-detail-title {
        font-size: 2.2rem;
    }

    .news-detail-content p {
        font-size: 1.1rem;
    }
}

/* ========================================
   超大型デスクトップ (1440px以上)
   ======================================== */
@media (min-width: 1440px) {
    .fv-title {
        font-size: 4rem;
    }

    .greeting-title {
        font-size: 3rem;
    }

    .greeting-subtitle {
        font-size: 1.3rem;
    }

    .service-title {
        font-size: 3rem;
    }

    .works-title {
        font-size: 3rem;
    }

    .works-year {
        font-size: 2.2rem;
    }

    .news-title {
        font-size: 3rem;
    }

    .company-title {
        font-size: 3rem;
    }

    .recruit-title {
        font-size: 3rem;
    }

    .contact-title {
        font-size: 3.5rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .news-detail-title {
        font-size: 2.5rem;
    }
}
