@charset "UTF-8";

/* Google Fonts読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;600&family=Zen+Old+Mincho:wght@300;400&display=swap');



/* 基本設定 */
:root {
  /* 色の定義 */
  --p-c: #f7f6f0;
  --m-c: #295e62;
  --b-c: #595757;
  --db-c: #253529;
  --accent-c: #fff;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 200;
    line-height: 1.5;
    color: var(--b-c);
    background-color: var(--p-c);
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Zen Old Mincho', serif;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: var(--m-c);
    transition: color 0.3s, opacity 0.3s;
}

a:hover {
    color: var(--db-c);
    opacity: 0.8;
}

/* コンテナ */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background-color: #fff;
    padding: 1em 0;
    border-bottom: 3px solid var(--m-c);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.8rem;
    color: var(--db-c);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo .logo-mark {
    flex-shrink: 0;
    height: 44px;
    width: auto;
    object-fit: cover;
}
.site-logo a span { /* ロゴ下のタグラインなど */
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-top: 2px;
    letter-spacing: 0.05em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    color: #333; /* ナビゲーションは太字 */
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent; /* ホバー用 */
    transition: border-bottom-color 0.3s;
}
nav a:hover {
    color: var(--m-c);
    border-bottom-color: var(--m-c); /* ホバー時に下線 */
    opacity: 1; /* 下線があるので透明度は変えない */
}
nav a.is-current {
    color: var(--m-c);
    border-bottom-color: var(--m-c);
}

/* ハンバーガーメニュー (スマホ用) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
    margin-left: auto;
}
.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--m-c);
    margin: 5px 0;
    transition: all 0.4s;
}

/* 見出しスタイル */
h1, h2, h3 {
    color: var(--m-c);
    margin-top: 0;
    line-height: 1.4;
}

h1 {
    font-size: 2.5rem; 
    margin-bottom: 40px;
    text-align: center; 
    border-bottom: 2px solid var(--m-c); 
    padding-bottom: 15px;
}

h2 {
    font-size: 2rem; 
    margin-bottom: 30px; 
    border-left: 5px solid var(--m-c); 
    padding-left: 15px; 
}

.section.contact > h2 {
  border-left: 0px solid var(--m-c);
  padding-left: 0px;
}

h3 {
    font-size: 1.5rem; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--m-c); 
    padding-bottom: 8px;
}

.section.contact > h2 {
  border-left: 0px solid var(--m-c);
  padding-left: 0px;
}

p {
    margin-bottom: 1.6em;
}

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

.section {
    margin-bottom: 60px;
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* ボタン */
.button {
    display: inline-block;
    background-color: var(--m-c);
    color: #fff;
    padding: 12px 35px;
    border: 1px solid var(--m-c);
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.hero .button {
    background-color: #fff;
    color: var(--m-c);
}

.button:hover {
    background-color: var(--db-c);
    border-color: var(--db-c);
    color: #fff;
}

.button-outline {
    background-color: transparent;
    color: var(--m-c);
    border: 1px solid var(--m-c);
}
.button-outline:hover {
    background-color: var(--m-c);
    color: #fff;
}

/* TOPページ用 */


.hero {
    padding: 60px 0;
    margin-bottom: 60px;
    text-align: center;
    background-color: var(--p-c);
    margin-bottom: 80px;
}

.hero {
    display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-evenly;
}

.hero > .container,
.hero > ._image {
    width: 40%;
}

.hero > .container {
    margin: 0;
}

.hero > ._image > img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--m-c);
    margin-bottom: 20px;
    border: none;
    padding-bottom: 0;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(61, 74, 51, 0.12);
}
.feature-item .icon {
    font-size: 2.5rem;
    color: var(--m-c);
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 1.3rem;
    color: var(--m-c);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
}
.feature-item p {
    font-size: 0.95rem;
    text-align: left;
}

/* お知らせ欄 */
.news-list dl {
    border-top: 1px solid #eee;
    margin-top: 30px;
}
.news-list dt, .news-list dd {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}
.news-list dt {
    width: 130px;
    color: #555;
    flex-shrink: 0;
}
.news-list dd {
    flex: 1;
    margin-left: 0;
    padding-left: 20px;
}


/* 会社紹介ページ：サービスの流れ（旧pagese.cssより移設） */
.workflow-list_ul {
    display: flex;
    flex-direction: column;
    gap: 60px;
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
}
.workflow-list_ul > li {
    position: relative;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.workflow-list_ul li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: 32px;
    height: 32px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.03);
}
.workflow-list_ul h3 {
    color: var(--m-c);
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}
.workflow-list_ul p {
    line-height: 1.5;
    margin-bottom: 0;
}

/* 会社紹介ページ用 */
.company-feature {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--p-c);
    border-radius: 5px;
    align-items: center; 
}
.company-feature .icon {
    font-size: 3rem;
    color: var(--m-c);
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}
.company-feature-text h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
    color: var(--m-c);
    font-size: 1.4rem;
}
.company-feature-text p {
    margin-bottom: 0;
    font-size: 1rem;
}

.content-block {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}
.content-block.reverse {
    flex-direction: row-reverse;
}
.content-text {
    flex: 1.2; 
}
.content-image {
    flex: 0.8;
    text-align: center;
}
.content-image img {
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* 会社概要ページ用 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
}
.info-table th,
.info-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}
.info-table th {
    background-color: var(--p-c);
    width: 200px;
    color: #333;
}
.history-table { /* 沿革用 */
     width: 100%;
     border-collapse: collapse;
     margin-top: 15px;
}
.history-table th,
.history-table td {
    border: none;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
    text-align: left;
}
.history-table th {
    width: 120px;
    vertical-align: top;
}

.map-container {
    margin-top: 30px;
    position: relative;
    padding-bottom: 50%; /* 地図の縦横比に合わせて調整 */
    height: 0;
    overflow: hidden;
    border: 1px solid #ddd;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* フッター */
footer {
    background-color: var(--db-c); /* 濃いオリーブ */
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 上揃え */
    flex-wrap: wrap; /* スマホ用に折り返し */
    gap: 30px;
}
.footer-info {
    flex-basis: 40%; /* 左側の情報エリア幅 */
    min-width: 280px; /* 最小幅 */
}
.footer-logo {
    margin: 1em auto;
    width: 240px;
}

.footer-logo > img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}
.footer-info p > a {
    border: solid 1px #fff;
    color: #fff;
    display: inline-block;
    margin: 1em auto;
    padding: 1em 0.5em;
    text-align: center;
}

.footer-nav {
    flex-basis: 55%; /* 右側のナビゲーションエリア幅 */
    min-width: 280px;
    text-align: right;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    flex-wrap: wrap; /* 折り返し */
    gap: 10px 25px; /* 上下左右の隙間 */
}
.footer-nav a {
    color: #fff;
    font-size: 0.9rem;
}
.footer-nav a:hover {
    opacity: 0.7;
    color: #fff;
}
.copyright {
    border-top: 1px solid #4f5448; /* 薄い区切り線 */
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #ccc;
}


/* レスポンシブデザイン (ブレイクポイント 843px) */
@media (max-width: 843px) {
    body {
        font-size: 15px;
    }
    .container {
        padding: 0 15px;
    }

    /* ヘッダー */
    header {
        padding: 15px 0;
        border-bottom-width: 2px;
    }
    .site-logo a {
        font-size: 1.5rem;
    }
    .site-logo a span {
        font-size: 0.7rem;
    }
    .site-logo .logo-mark {
        height: 24px;
    }

    /* ハンバーガーメニュー表示 */
    nav ul {
        display: none;
        position: absolute;
        top: 65px; /* ヘッダー高さに合わせて調整 */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 5px 0;
        z-index: 50;
    }
    nav.active ul { /* JSで <nav> に activeクラス付与 */
      display: flex;
    }
    nav li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
     nav li:last-child {
        border-bottom: none;
    }
    nav a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: none; /* スマホではホバー下線なし */
    }
     nav a:hover {
         background-color: #f0f0f0; /* ホバー背景色 */
         border-bottom: none;
     }

    .hamburger-menu {
        display: block;
    }
    /* ハンバーガーアクティブ時（前回と同じ） */
    .hamburger-menu.active span:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active span:nth-of-type(2) { opacity: 0; }
    .hamburger-menu.active span:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }

    h1 { font-size: 1.8rem; margin-bottom: 2em; margin-top: 1em; padding-bottom: 0.5em; }
    h2 { font-size: 1.6rem; margin-bottom: 1.5em; padding-left: 1em; border-left-width: 4px;}
    h3 { font-size: 1.3rem; margin-bottom: 1em; padding-bottom: 6px;}

    .section {
        margin-bottom: 40px;
        padding: 30px 20px;
    }

    /* TOPページ */
    .hero {
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .hero > .container {
        width: 100%;
    }

    .hero > ._image {
        display: none;
    }

    .hero h1 {
        font-size: 3em; 
    }

    .hero p { 
        font-size: 1rem; 
    }

    .features-grid { 
        gap: 20px; 
    }

    .feature-item { 
        padding: 25px; 
    }

    .news-list dt, .news-list dd {
        flex-direction: column;
        padding: 12px 5px;
    }
    .news-list dt {
        width: auto;
        margin-bottom: 5px;
        font-size: 0.9em;
    }
    .news-list dd {
        padding-left: 5px;
    }


    /* 会社紹介ページ */
    .company-feature {
        flex-direction: column; /* 縦積み */
        text-align: center;
        gap: 15px;
        padding: 25px;
    }
    .company-feature .icon { width: auto; margin-bottom: 10px; font-size: 2.5rem; }
    .company-feature-text h3 { font-size: 1.3rem; text-align: center; }
    .company-feature-text p { font-size: 0.95rem; text-align: center; }

    .content-block {
        flex-direction: column;
        gap: 30px;
    }
     .content-block.reverse {
        flex-direction: column; /* スマホでは常にテキストが下 */
    }
    .content-image { order: -1; /* 画像を上に */ }


    /* 会社概要ページ */
    .info-table th,
    .info-table td {
        display: block; /* 縦積み表示 */
        width: 100%;
        box-sizing: border-box; /* padding含めて100%に */
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 10px 5px;
    }
    .info-table th {
        background-color: #f0f0f0; /* 背景色変更 */
        border-bottom: none; /* thの下線は不要 */

    }
     .info-table tr:last-child td {
         border-bottom: none; /* テーブル最後のtdの下線削除 */
     }
     .history-table th, .history-table td {
         display: block;
         width: 100%;
         padding: 8px 0;
     }
     .history-table th {
    
     }

    .map-container { padding-bottom: 65%; } /* 地図高さ調整 */

    /* フッター */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-info, .footer-nav {
        flex-basis: auto;
        width: 100%;
        text-align: center;
    }
     .footer-nav ul {
         justify-content: center; /* 中央寄せ */
         margin-top: 20px;
     }
     .copyright {
         margin-top: 25px;
         padding-top: 15px;
     }
}