@charset "utf-8";

/* ==========================================================================
   共通変数・ベース設定
   ========================================================================== */
:root {
    --primary-green: #2d5a27;    /* 深い森の緑：信頼と安定 */
    --light-green: #8eb69b;      /* 若葉の緑：成長と調和 */
    --bg-white: #ffffff;         /* クリーム色：温かみとレトロな紙感 */
    --accent-gold: #b8860b;      /* ゴールド：誇りと価値 */
    --text-main: #333333;
    --cream: #fdfaf5;
    --border-color: #d1c7b7;     /* 落ち着いたベージュ系の境界線 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  height:100%;
}

@media screen and (min-width: 601px) {
    body {
        font-family: 'Yu Gothic Medium';
        font-size: 16px;
        color: var(--text-main);
        line-height: 1.9;
        margin:0;
    }
}

@media screen and (max-width: 600px) {
    body {
        font-family: 'Yu Gothic Medium';
        font-size: 15px;
        color: var(--text-main);
        line-height: 1.75;
        margin:0;
    }
}

h1, h2, h3, .serif {
    font-family: 'Noto Serif JP', serif;
}

section[id] {
    scroll-margin-top: 100px; 
}

.bg {
  animation:changeColor 15s ease-in-out infinite;
  bottom:0;
  left:-50%;
  opacity:.5;
  position:fixed;
  right:-50%;
  top:0;
  z-index:-1;
}

.bg2 {
  animation-direction:alternate-reverse;
  animation-duration:15s;
}

.bg3 {
  animation-duration:15s;
}

.content {
  background-color:rgba(255,255,255,.8);
  border-radius:.25em;
  box-shadow:0 0 .25em rgba(0,0,0,.25);
  box-sizing:border-box;
  left:50%;
  padding:10vmin;
  position:fixed;
  text-align:center;
  top:50%;
  transform:translate(-50%, -50%);
}

.circles{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0 10% 0 10%;
    z-index: -1;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    background: rgba(255, 255, 255, 0);
    animation: animate 18s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1){
    left: 35%;
    animation-delay: 0s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}


.circles li:nth-child(2){
    left: 75%;
    animation-delay: 1.5s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.circles li:nth-child(3){
    left: 65%;
    animation-delay: 3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.circles li:nth-child(4){
    left: 25%;
    animation-delay: 4.5s;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.circles li:nth-child(5){
    left: 55%;
    animation-delay: 6s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.circles li:nth-child(6){
    left: 45%;
    animation-delay: 7.5s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.circles li:nth-child(7){
    left: 75%;
    animation-delay: 9s;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.circles li:nth-child(8){
    left: 35%;
    animation-delay: 10.5s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.circles li:nth-child(9){
    left: 25%;
    animation-delay: 12s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.circles li:nth-child(10){
    left: 45%;
    animation-delay: 13.5s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.circles li:nth-child(11){
    left: 65%;
    animation-delay: 15s;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.circles li:nth-child(12){
    left: 55%;
    animation-delay: 16.5s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}


/*
.circles li:nth-child(1){
    left: 20%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}


.circles li:nth-child(2){
    left: 20%;
    width: 20px;
    height: 20px;
    animation-delay: 1.8s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.circles li:nth-child(3){
    left: 20%;
    width: 40px;
    height: 40px;
    animation-delay: 3.6s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.circles li:nth-child(4){
    left: 50%;
    width: 20px;
    height: 20px;
    animation-delay: 6s;
}

.circles li:nth-child(5){
    left: 50%;
    width: 60px;
    height: 60px;
    animation-delay: 7.8s;
}

.circles li:nth-child(6){
    left: 50%;
    width: 40px;
    height: 40px;
    animation-delay: 9.6s;
}

.circles li:nth-child(7){
    left: 80%;
    width: 40px;
    height: 40px;
    animation-delay: 12s;
    border-radius: 50%;
}

.circles li:nth-child(8){
    left: 80%;
    width: 20px;
    height: 20px;
    animation-delay: 13.8s;
    border-radius: 50%;
}

.circles li:nth-child(9){
    left: 80%;
    width: 60px;
    height: 60px;
    animation-delay: 15.6s;
    border-radius: 50%;
}
*/

/* ==========================================================================
   共通コンポーネント (全ページ共通)
   ========================================================================== */

/* Header */
header {
    border-bottom: 4px solid #2d5a2730;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #ffffff;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.0rem;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    display: block;      /* 親要素の幅いっぱいに広げる */
    padding: 20px 30px;  /* 上下 20px、左右 30px に広げる */
    border-bottom: 3px solid transparent; /* 下線の位置を固定 */
}

@media (min-width: 767px) {
    @media (hover: hover) {
        nav ul li:hover .nav-item-wrapper {
            color: var(--primary-green);
            background-color: #c7e2f5;
            border-radius: 10px;
            height:55px;
        }
    }
}

/* ハンバーガーボタン（初期状態は非表示） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1100;
}
.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
}

/* モバイル用メニューアイテムのラップ */
.nav-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* サブメニュー展開ボタン(+) */
.sub-toggle {
    display: none; /* PCでは非表示 */
    background: none;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
}

/* --- ドロップダウンメニューのスタイル追加 --- */

/* 親メニューの li */
nav ul li {
    position: relative; /* サブメニューの基準点にする */
}

/* サブメニュー全体 (初期状態は非表示) */
.nav-sub {
    position: absolute;
    top: 80%; 
    left: 0;
    width: 180px; /* サブメニューの幅 */
    background: #ffffff;
    list-style: none;
    padding: 10px 0;
    display: none; /* 通常は隠す */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1100;
    border-radius: 10px;
}

@media (min-width: 767px) {
    @media (hover: hover) {
        /* 親メニューにホバーしたらサブメニューを表示 */
        nav ul li:hover .nav-sub {
            display: block;
            animation: fadeInDown 0.3s ease;
        }

        /* サブメニュー項目へのホバー */
        .nav-sub li a:hover {
            background-color: #e3ffd5;
            color: var(--primary-green);
            border-bottom: none;
        }
    }
}

/* サブメニュー内の項目 */
.nav-sub li {
    width: 100%;
}

.nav-sub li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary-green);
    font-size: 0.85rem;
    border-bottom: none; /* 親メニューの線を消す */
    text-align: left;
    transition: background 0.3s;
}

/* ドロップダウン用の矢印（任意） */
.has-sub::after {
    content: " ▼";
    font-size: 0.6rem;
    vertical-align: middle;
}

.nav-cta {
    background-color: #0073b1; /* 画像のような鮮やかな青色 */
    color: #ffffff !important; /* 文字色は白に固定 */
    border-radius: 50px;        /* 角を完全に丸めてカプセル型に */
    padding: 8px 20px !important; /* 上下左右に余白を作りボタン状にする */
    border-bottom: none !important; /* 共通メニューのアンダーラインを消す */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
}

@media (hover: hover) {
    /* ホバー（マウスを乗せた時）の演出 */
    .nav-cta:hover {
        background-color: #005a87; /* 少し濃い青にしてクリック感を出す */
        color: #ffffff !important;
        border-bottom: none !important;
        transform: translateY(-2px); /* 少しだけ上に浮かせる */
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
}

@media (min-width: 767px) {
    .toiawase_mb {
        display: none;
    }
}

/* Page Title Section */
.page-title {
    color: var(--primary-green);
    text-align: center;
    padding: 85px 20px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 285px;
}

.page-title h1 {
    font-size: 2.8rem;
    letter-spacing: 0.2em;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-in;
}

.page-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

/* Section Common */
section {
    max-width: 1100px;
    margin: 50px auto 50px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

.stack {
    background-color: #f9fcf980;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px dashed var(--light-green);
    margin-top: 20px;
}

.stack strong {
    color: var(--primary-green);
    display: block;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #ffffff;
    color: #000000;
    padding: 40px 0;
    text-align: center;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.3);
}

.site-map-link {
    display: flex;
    justify-content: left;
    margin-left: 5px;
    gap: 20px;
    list-style: none;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: #003291;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-title-design {
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: bold;
}

@media screen and (min-width: 767px) {
    .footer-design {
        display: inline-flex;
        align-items: center;
    }

    #privacy {
        margin: 20px;
        clear: both;
        height: 100px;
        display: flex;
        width:30%
    }

    .footer-right {
        width: 31%;
    }

    #privacy ul {
        float: left;
    }

    .site-map {
        display: inline-flex;
        width: 39%; 
        margin-left: 20px;
        justify-content: center;
    }

    @media screen and (max-width: 1000px) {

        .site-map-page {
            max-width: 100px;
            min-width: 75px;
        }

        .site-map-link a {
            color: #003291;
            text-decoration: none;
            font-size: 0.7rem;
            opacity: 0.8;
        }
        
    }

    @media screen and (min-width: 1000px) {

        .site-map-page {
            width: 25%;
        }

        .site-map-link a {
            color: #003291;
            text-decoration: none;
            font-size: 0.75rem;
            opacity: 0.8;
        }

    }

}

@media screen and (max-width: 767px) {
    .footer-design {
        justify-content: center;
        display: inline-block;
    }

    #privacy {
        clear: both;
        height: 100px;
        display: flex;
        width: 70%;
        margin: 0 auto;
        margin-bottom: 40px;
    }

    .footer-right {
        width: auto;
    }

    #privacy ul {
        float: left;
    }

    .site-map-page {
        margin: 40px auto;
        width: 50%;
        max-width: 100px;
    }

    .site-map-link a {
        color: #003291;
        text-decoration: none;
        font-size: 0.7rem;
        opacity: 0.8;
    }

}

/* ==========================================================================
   ページ固有スタイル
   ========================================================================== */

/* --- Index Page --- */
.hero {
    position: relative;
    height: 60vh;
    min-height: 375px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--cream);
    background: url('imgs/24146578_m2.jpg'); 
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.hero-content {
    max-width: 800px; 
    padding: 0 20px; 
    animation: fadeInUp 2.5s ease-out; 
    margin-bottom: 30px;
}

.catchphrase { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    letter-spacing: 0.1em; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}
.sub-catchphrase { 
    font-size: 1.8rem; 
    letter-spacing: 0.05em; 
    opacity: 0.9; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
    font-family: 'Noto Serif JP', serif;
}

.pride-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}

.pride-image { 
    background-color: #ffffff;
    border: 1px solid #cab49f;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 5px 5px 0px #ababab;
    text-align: center;
}

.pride-image img { 
    max-width: 100%; 
    height: auto; 
    filter: sepia(20%); 
}

.news-more {
    display: block;
    text-align: right;
    padding: 25px 20px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.aboutus-box {
    background-color: #fdfaf5e0;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 6px 6px 2px 0px #ababab;
    position: relative;
    border-radius: 20px;
}

/* --- Company Page --- */
.greeting-card { 
    background-color: #fdfaf5e0; 
    padding: 40px 60px 40px 60px; 
    box-shadow: 6px 6px 2px 0px #ababab;
    position: relative; 
    border-radius: 20px;
}

.greeting-card::before { 
    content: ""; 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    right: 10px; 
    bottom: 10px; 
    border: 1px solid var(--border-color); 
    border-radius: 20px;
    pointer-events: none; 
}

.greeting-name {
    margin: 30px 30px 0px 30px;
    text-align: right;
    font-weight: bold;
}

@media screen and (max-width: 767px) {
    .greeting-name {
        margin: 30px 15px 0px 0px;
        text-align: right;
        font-weight: bold;
    }
}

.philosophy-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.philosophy-item { 
    background-color: #fdfaf5e0; 
    padding: 40px; 
    transition: transform 0.3s;
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

/* 1. アニメーションさせたい要素の初期状態 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* ここで時間を指定 */
    will-change: opacity, transform; /* ブラウザの描画を最適化 */
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-kf {
    opacity: 0;
}
.scroll-animate-kf.is-visible {
    animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
    .philosophy-item:hover { 
        transform: translateY(-5px); 
    }
}

.philosophy-item h3 { 
    font-size: 1.4rem; 
    color: var(--primary-green); 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--accent-gold); 
    display: inline-block; 
    padding-bottom: 5px; 
}



.company-table { 
    width: 100%; 
    border-collapse: collapse; 
    background-color: #fdfaf5e0; 
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

.company-table th, .company-table td { 
    padding: 20px; 
    border-bottom: 1px solid var(--border-color); 
    text-align: left; 
}

.company-table th { 
    background-color: #d2d1ce85; 
    color: var(--primary-green); 
    width: 30%; 
    font-weight: bold; 
}

tr:first-child th {
    border-radius: 20px 0px 0px 0px; 
}

tr:last-child th {
    border-radius: 0px 0px 0px 20px; 
}

tr:last-child th, tr:last-child td{
    border-bottom: none;
}

.history-table { 
    width: 100%; 
    border-collapse: collapse; 
    background-color: #fdfaf5e0; 
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

.history-table th, .history-table td { 
    padding: 15px 20px; 
    border-bottom: 1px solid var(--border-color);
}

.history-table th { 
    background-color: #d2d1ce85; 
    color: var(--primary-green); 
    font-weight: bold; 
}

.history-date { 
    width: 150px; 
    font-weight: bold; 
    color: var(--primary-green); 
    border-right: 2px solid var(--accent-gold); 
    text-align: center; 
}

.access-img { 
    margin: 15px 5px 15px 5px;
}

.access-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}

.access-info { 
    background-color: #fdfaf5e0; 
    padding: 30px; 
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}


.access-info-upper {
    display: flex;
}

.access-info-text {
    margin: 15px;
}

@media screen and (max-width: 1100px) {
    .access-info-upper {
        display: block;
    }

    .access-info-text {
        margin: 15px 0px 15px 0px;
    }
}

.map-placeholder { 
    width: 100%; 
    background-color: #fdfaf5e0; 
    border: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #666; 
    font-style: italic; 
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 767px) {
    .map_style {
        border:0;
        height: 540px;
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .map_style {
        border:0;
        height: 300px;
        width: 100%;
    }
}

/* --- Services Page --- */
.overview-box { 
    background-color: #fdfaf5e0; 
    padding: 40px 60px 40px 60px;
    box-shadow: 6px 6px 2px 0px #ababab;
    text-align: left;  
    margin: 0 auto 40px auto; 
    border-radius: 20px;
}

@media screen and (max-width: 767px) {
    .overview-box { 
        background-color: #fdfaf5e0; 
        padding: 40px;
        box-shadow: 6px 6px 2px 0px #ababab;
        text-align: left;  
        margin: 0 auto 40px auto; 
        border-radius: 20px;
    }
}


.tech-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 60px; 
}

.tech-card { 
    background-color: #fdfaf5e0; 
    padding: 30px; 
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

.tech-card h3 { 
    color: var(--primary-green); 
    font-size: 1.4rem; 
    margin-bottom: 20px; 
    border-left: 5px solid var(--accent-gold); 
    padding-left: 15px; 
}

.industry-header { 
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.industry-header h3 { 
    font-size: 1.6rem; 
    color: var(--primary-green); 
    white-space: nowrap; 
}

@media (max-width: 370px) {
    .industry-header h3 { 
        font-size: 1.35rem; 
        color: var(--primary-green); 
        white-space: nowrap; 
    }
}


.industry-header .line { 
    height: 1px; 
    background-color: var(--border-color); 
    flex-grow: 1; 
}

.gyomu-img {
    flex-shrink: 0;
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    width: auto;
    max-height: 88px;
    object-fit: contain;
    max-width: 20%;
}

.achievement-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-bottom: 60px; 
}

.achievement-item { 
    background-color: #fdfaf5; 
    padding: 25px; 
    transition: all 0.3s; 
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

@media (hover: hover) {
    .achievement-item:hover { 
        border-color: var(--primary-green); 
        transform: translateY(-3px); 
        box-shadow: 6px 6px 2px 0px #ababab; 
    }
}

.achievement-item .label { 
    font-weight: bold; 
    color: var(--primary-green); 
    font-size: 1.1rem; 
    display: block; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 5px; 
    margin-bottom: 10px; 
}

.gyomu {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.gyomu-title-style {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 20px;
    background-color: #ffffffe0;
    padding: 20px;
    border-radius: 10px;
}

/* --- Recruit Page --- */

.persona-box { 
    background-color: #fdfaf5e0; 
    padding: 40px 80px 40px 80px;
    box-shadow: 6px 6px 2px 0px #ababab;
    margin-bottom: 60px;
    border-radius: 20px; 
}

.recruit-grid { 
    display: grid; 
    gap: 40px; 
}

.recruit-card { 
    background-color: #fdfaf5e0; 
    border: 1px solid var(--border-color); 
    overflow: hidden; 
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

.recruit-card-header { 
    color: var(--primary-green); 
    padding: 20px; 
    text-align: center; 
    font-size: 1.5rem; 
    display: flex;
    justify-content: center;
}

.recruit-card-body { 
    padding: 30px; 
}

.recruit-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.95rem; 
}

.recruit-table th, .recruit-table td { 
    padding: 15px; 
    border-bottom: 1px solid #eee; 
    text-align: left; 
    vertical-align: top; 
}

.recruit-table th { 
    width: 30%; 
    color: var(--primary-green); 
    font-weight: bold; 
    background-color: #d2d1ce85; 
}

.skill-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 5px; 
}

.skill-tag { 
    background-color: #eef3ef; 
    color: var(--primary-green); 
    border: 1px solid var(--light-green); 
    padding: 2px 8px; 
    border-radius: 3px; 
    font-size: 0.8rem; 
    font-weight: bold; 
}

.contact-box { 
    background-color: #fdfaf5e0; 
    border: 1px solid var(--border-color); 
    padding: 40px; 
    text-align: center; 
    margin-top: 60px; 
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

.contact-link { 
    display: inline-block; 
    background-color: var(--primary-green); 
    color: var(--cream); 
    text-decoration: none; 
    padding: 15px 40px; 
    font-weight: bold; 
    border-radius: 4px; 
    transition: background 0.3s; 
    margin: 20px; 
    margin-bottom: 40px;
}

.ralogo {
    margin: 20px;
    width: 150px;
    display: inline-block;
    background-color: #ffffff;
    padding: 20px 20px;
    border: 1px solid #065aaa;
}



/* --- Contact Page --- */
.intro-text { 
    text-align: center; 
    margin-bottom: 60px; 
    color: #555; 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-bottom: 60px; 
}

.contact-card { 
    background-color: #fdfaf5e0;
    padding: 40px 30px; 
    text-align: center; 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

@media (hover: hover) {
    .contact-card:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.07); 
    }
}

.contact-card .icon { 
    width: 60px; 
    height: 60px; 
    background-color: #f2f5f2; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    color: var(--primary-green); 
    font-size: 1.5rem; 
    border: 1px solid var(--light-green); 
}

.contact-card h3 { 
    font-size: 1.3rem; 
    color: var(--primary-green); 
    margin-bottom: 20px; 
}

.contact-tel {
    color: inherit;
    text-decoration: none;
    pointer-events: none;      
}

@media (pointer: coarse) {
    .contact-tel {
        pointer-events: auto;        
        color: var(--primary-green);
        text-decoration: underline;
    }
}

.email-button { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 25px; 
    background-color: var(--primary-green); 
    color: var(--cream); 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 4px; 
    transition: background 0.3s; 
}

.notice-area { 
    background-color: #f9fcf982; 
    border: 1px solid var(--light-green); 
    padding: 25px; 
    text-align: center; 
    font-size: 0.95rem; 
    color: #666; 
    border-radius: 20px;
}

/* --- Privacy Page --- */
.policy-content { 
    background-color: #fdfaf5e0; 
    padding: 50px;
    box-shadow: 6px 6px 2px 0px #ababab;
    color: #444; 
    border-radius: 20px;
    max-width: 900px;
    margin: 50px auto 50px auto;
}

.policy-content p {
    text-align: justify;
}

.policy-list { 
    list-style: none; 
    margin-bottom: 2rem; 
}

.policy-list li { 
    position: relative; 
    padding-left: 1.5rem; 
    margin-bottom: 1rem; 
}

.policy-list li::before { 
    color: var(--primary-green); 
    position: absolute; 
    left: 0; 
    font-size: 0.8rem; 
    top: 0.2rem; 
}

.privacy-list {
    margin-left:40px
}

.policy-detail { 
    margin-bottom: 2rem; 
}

.policy-detail h3 { 
    font-size: 1.2rem; 
    color: var(--primary-green); 
    margin-bottom: 1rem; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 5px; 
}

.policy-detail ul li { 
    margin-left:40px
}

.contact-btn {
    display: inline-block;
    text-align: center;
    padding: 15px 20px;
    background-color: var(--primary-green);
    color: var(--cream);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* --- News Page --- */

.news-archive-container { 
    border-radius: 4px; 
    overflow: hidden; 
    box-shadow: 6px 6px 2px 0px #ababab;
}

.news-list { 
    list-style: none; 
    border-radius: 20px;
    box-shadow: 6px 6px 2px 0px #ababab;
}

.news-item { 
    display: flex; 
    border-bottom: 1px solid #e0e0e0; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    position: relative; 
    background-color: #fdfaf5e0;
}

.news-item:first-child {
    border-radius: 20px 20px 0px 0px; 
}

.news-item:last-child { 
    border-radius: 0px 0px 20px 20px; 
    border-bottom: none; 
}

@media (hover: hover) {
    .news-item:hover { 
        background-color: #f9fcf9;
    }

    .news-item:hover::before { 
        content: ""; 
        position: absolute; 
        left: 0; 
        top: 0; 
        bottom: 0; 
        width: 4px; 
        background-color: var(--accent-gold); 
    }

    .news-item:hover .news-content {
        transform: translateX(10px); /* 文字部分だけを右に10pxずらす */
        transition: transform 0.3s ease; /* 動きを滑らかにする */
    }
}

.news-date { 
    width: 140px; 
    padding: 20px; 
    font-weight: bold; 
    color: var(--primary-green); 
    flex-shrink: 0; 
    border-right: 1px solid #eee; 
    text-align: center; 
    font-family: 'Noto Serif JP', serif; 
}

.news-content { 
    padding: 20px; 
    flex-grow: 1; 
    font-size: 1rem; 
    color: #444; 
    transition: transform 0.3s ease; /* 追加 */
}


/* --- フォーム専用スタイル --- */
.form-section {
    max-width: 1100px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.form-card {
    background-color: var(--white);
    padding: 60px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1rem;
}

.required-mark {
    color: #d9534f;
    margin-left: 5px;
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

/* ラジオボタンのグループ化 */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.radio-item input {
    margin-right: 8px;
    accent-color: var(--primary-green); /* チェック色をブランドカラーに */
    width: 18px;
    height: 18px;
}

/* テキストエリア */
.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* 同意セクション */
.consent-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9fcf9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.consent-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #666;
}

.consent-options {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.consent-options label {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 送信ボタン */
.submit-container {
    text-align: center;
    margin-top: 50px;
}

.submit-btn {
    background-color: var(--primary-green);
    color: #FFFFFF;
    padding: 20px 40px;
    font-size: 1.0rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.submit-btn:hover {
    background-color: #1e3d1a;
    transform: translateY(-2px);
}

/* レスポンシブ */
@media (max-width: 600px) {
    .form-card { padding: 30px 20px; }
    .radio-group { flex-direction: column; gap: 10px; }
    .consent-options { flex-direction: column; align-items: center; gap: 15px; }
}



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

@media (max-width: 767px) {
    .header-container { 
        flex-direction: row; 
        gap: 15px; 
    }
    nav ul { 
        gap: 10px; 
    }
    .pride-grid, .philosophy-grid, .tech-grid, .recruit-grid, .access-container { 
        grid-template-columns: 1fr; 
    }
    .company-table th { 
        width: 40%; 
    }
    .news-item { 
        flex-direction: column; 
    }
    .news-date { 
        width: 100%; 
        border-right: none; 
        border-bottom: 1px solid #eee; 
        text-align: left; 
        padding: 10px 20px; 
    }
    .catchphrase { 
        font-size: 1.8rem; 
    }
    .page-title h1 { 
        font-size: 2.2rem; 
    }

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

    .nav-toggle {
        display: flex; /* ボタンを表示 */
    }

    /* ハンバーガーボタンが active になった時のアニメーション（X印に） */
    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg); 
    }

    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); 
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面外に隠す */
        width: 80%;    /* 画面の8割をカバー */
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px; /* ヘッダーの高さ分あける */
    }

    nav.is-active {
        right: 0; /* 画面内にスライドイン */
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        padding: 20px;
        width: 100%;
        border-bottom: 1px solid #eee;
        display: block;
    }

    .nav-item-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sub-toggle {
        display: block; /* モバイルでは表示 */
        margin-right: 20px;
        width: 45px;
    }

    /* サブメニューの挙動 */
    .nav-sub {
        position: static; /* 絶対配置を解除 */
        display: none;    /* 初期は非表示 */
        width: 100%;
        background: #ffffff;
        box-shadow: none;
    }

    .nav-sub.is-open {
        display: block; /* ボタン押下で表示 */
    }

    .nav-sub li a {
        padding-left: 40px; /* 段落を下げる */
        font-size: 0.9rem;
        color: #666;
    }

    .nav-cta {
        display: none;
    }

    .industry-header .line { 
        height: 0px; 
        width: 0px
    }

    .gyomu-title-style {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        gap: 0px;
        background-color: #ffffffe0;
        border: 1px solid var(--border-color);
        padding: 20px;
        border-radius: 10px;
    }


    .greeting-card {
        background-color: #fdfaf5e0;
        padding: 30px;
        box-shadow: 6px 6px 2px 0px #ababab;
        position: relative;
        border-radius: 20px;
    }

    .persona-box { 
        background-color: #fdfaf5e0; 
        padding: 25px; 
        border: 1px solid var(--border-color); 
        box-shadow: 6px 6px 2px 0px #ababab;
        margin-bottom: 50px; 
    }       

}

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

/* フェードアウトのアニメーション */
@keyframes slideRightMaskWhite {
    0% {
        background-color: #ffffff;
        opacity:1;
    }
    15% {
        background-color: #ffffff;
        opacity:1;
    }
    100% {
        background-color: #ffffff00;
        opacity:0;
    }
}

@keyframes slide {
  0% {
    transform:translateX(-12%);
  }
  100% {
    transform:translateX(12%);
  }
}

@keyframes slide2 {
  0% {
    transform:translateX(-12%);
  }
  50% {
    transform:translateX(12%);
  }
  100% {
    transform:translateX(-12%);
  }
}

@keyframes changeColor {
  0% {
    background-color: #ebf7e4; /* 薄い緑 */
  }
  33% {
    background-color: #bfdef3; /* 薄い青 */
  }
  66% {
    background-color: #ffd8d4; /* 薄いピンク */
  }
  100% {
    background-color: #ebf7e4; /* 薄い緑 */
  }
}

/*
@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        border: 2px solid #f0f4f5;
    }

    100%{
        border: 2px solid #f0f4f5;
        transform: translateY(-120vh) rotate(360deg);
    }

}
    */

@keyframes animate {

    0%{
        transform: translateY(0);
        border: 2px solid #f0f4f5;
    }

    100%{
        transform: translateY(-120vh);
        border: 2px solid #f0f4f5;
    }

}