@charset "utf-8";

/* 共有 */

html{
    font-size: 100%;
}

body#top {
	font-family: "Zen Maru Gothic", serif, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "sans-serif";
	font-weight: 500;
	font-style: normal;
	font-size:17px;
	line-height: 1.9;
	color:#5e3c1a;
	background-color: #fff;
	letter-spacing: 2px;
}

a{
    text-decoration: none;
	transition: 0.5s; 
}
a:hover {
	opacity: 0.7;
}

img{
    width: 100%;
    vertical-align: top;
}
p{
    color: black;
}

#sp_only {
	display: none;
}

/* ----- header ----- */
.hed-contents {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: #cecece;
    height: 10vh; 
    box-sizing: border-box; 
	background-image: url('../img/pc/hader.webp'); /* WordPressのテーマフォルダからのパスに合わせて要変更 */
    background-size: cover;       /* エリア全体を覆うように表示 */
    background-position: center;  /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
}

.logo {
   width: 100px;
}

/* PCナビの全体設定（Flexboxの親） */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px; /* 白枠とボタンの間の隙間 */
}

/* 白枠グループのスタイル */
.main-nav .nav-group {
    background-color: #fff;
    padding: 10px 30px;
    border-radius: 20px;
}

/* 白枠内のリスト設定 */
.main-nav .nav-group ul {
    display: flex;
    gap: 40px; /* ABOUT, WORKS, RECRUIT間の隙間 */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 白枠内のリンク文字 */
.main-nav .nav-group a {
    font-weight: 700;
    font-size: 1rem;
}

/* 問い合わせボタンのスタイル */
.main-nav .cta-button {
    display: block;
    font-weight: 700;
    background-color: #fff036;
    padding: 10px 30px;
    border-radius: 20px;
}
/* --------------------------------
 * ヒーローセクション
 * -------------------------------- */
.hero {
    display: flex;
    min-height: 90vh;
    background-color: #2D2D2D;
    color: #fff;
    box-sizing: border-box;
}

/* 左側の装飾エリア */
.hero-left {
    flex-basis: 15%;
    flex-shrink: 0;
    padding: 40px 0;
	background-image: url('../img/pc/main-left.webp'); /* WordPressのテーマフォルダからのパスに合わせて要変更 */
    background-size: cover;       /* エリア全体を覆うように表示 */
    background-position: center;  /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
}

/* 右側のメインコンテンツエリア */
.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 60px 40px;
	position: relative;
	background-image: url('../img/pc/back.webp'); /* WordPressのテーマフォルダからのパスに合わせて要変更 */
    background-size: cover;       /* エリア全体を覆うように表示 */
    background-position: center;  /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
}

/* テキストエリア（PCでは3割） */
.hero-text {
    /* flex-basis: 30%; を削除 */
    position: absolute;   /* ← 親要素を基準に絶対配置 */
    left: 40px;           /* ← 左からの位置 */
    top: 65%;             /* ← 上から50%の位置 */
    transform: translateY(-50%); /* ← 要素自身の高さの半分だけ上に戻して垂直中央揃え */
    z-index: 10;          /* ← イラストより手前に表示 */
    width:90%;           /* ← 横幅を指定 */
}

.hero-text h1 {
    font-size: 6rem; /* ← 文字を大きくする */
    line-height: 1.1;
    margin: 0;
}
.large{
    font-size: 2em;
}
.f-color{
	color: yellow;
    margin: 0 -50px;
}

/* イラストエリア（PCでは7割） */
.hero-illustrations {
    flex-basis: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 220px;
    align-items: center;
    margin-top: -140px;
}

/* 各アイテムの配置を指定 */
.illustration-item.item-1 {
    grid-column: 1 / 3;
    justify-self: center;
    width: 340px;
    margin-bottom: -130px;
}
.illustration-item.item-2 {
    grid-column: 1;
    justify-self: end;
    width: 340px;
    margin-top: -60px;
}
.illustration-item.item-3 {
    grid-column: 2;
    justify-self: start;
    width: 340px;
    margin-bottom: -100px;
}
.illustration-item.item-4 {
    grid-column: 1 / 3;
    justify-self: center;
    width: 340px;
    margin-top: -120px;
}



/* --------------------------------
 * ふわふわアニメーション (変更なし)
 * -------------------------------- */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
.illustration-item {
    animation: floatAnimation 6s ease-in-out infinite;
}
.illustration-item.item-2 { animation-delay: -1.5s; }
.illustration-item.item-3 { animation-delay: -3s; }
.illustration-item.item-4 { animation-delay: -4.5s; }

/* --------------------------------
 * ページヒーロー（ABOUTページなど）
 * -------------------------------- */

/* セクション全体（帯状の背景画像） */
.page-hero {
    height: 35vh; /* 高さを画面の35%に */
    background-image: url('../img/pc/page-hero.webp'); /* 帯状の背景画像 */
    background-size: cover;
    background-position: center;
    display: flex; /* 中の要素を中央揃えにするため */
    align-items: center;
    justify-content: center;
}

/* 位置調整用のインナーコンテナ */
.page-hero-inner {
    position: relative; /* 子要素を重ねるための基準点 */
    width: 100%;
    max-width: 1200px;
    height: 100%;
}
/* 浮遊するアイコン画像 */
.page-hero-icon {
    position: absolute;
    top: 20%;
    left: 5%;
    transform: translateY(-50%);
    width: 370px;
    z-index: 2; /* 重なりの順番を2番（手前）に */

    /* トップページで作成したアニメーションを再利用 */
    animation: floatAnimation 6s ease-in-out infinite;
}
.page-hero-decoi{
	position: absolute;
    width: 300px;
    top: 45%;
    left: 35%;
}
/* --------------------------------
 * ABOUTページ：導入セクション
 * -------------------------------- */
.intro {
    padding: 100px 40px;
}

.intro-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-text {
    flex-basis: 60%;
}

.intro-text h2 {
    font-size: 2.5rem;
    line-height: 1.5;
    margin-bottom: 30px;
}
.intro-text p{
	font-size: 1.3rem;
    line-height: 1.5;
}

.intro-image {
    flex-basis: 40%;
}
/* --------------------------------
 * ABOUTページ：理念セクション
 * -------------------------------- */
.philosophy {
    padding: 50px 0px 100px; /* セクション上下の余白 */
    background-color: #fff; /* 背景が画像などの場合、必要に応じて変更 */
	display: flex;
    justify-content: flex-end; /* 中の要素を右端に配置 */
}

.philosophy-content {
    width: 50%; /* 画面幅の75%の横幅に */
    padding: 80px 120px;
    background-color: #2D2D2D;
    color: #fff;
    border-radius: 20px 0 0 20px; /* 右側の角の丸みをなくす */
}
.philosophy-text{
	width: 70%;
}
.philosophy-text h3 {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.philosophy-text p {
    color: #fff; /* pタグの文字色を白に上書き */
    margin-bottom: 30px;
	font-size: 1.3rem;
	line-height: 1.6;
}

.philosophy-text .signature {
    text-align: right; /* 右寄せ */
    margin-top: 50px;
    margin-bottom: 0; /* 最後のpタグなので下の余白は不要 */
}
/* --------------------------------
 * ABOUTページ：会社情報セクション
 * -------------------------------- */
.company-profile {
    padding: 100px 40px;
    max-width: 1000px;
    margin: 0 auto; /* ← セクション全体を中央に */
	    display: flex;             /* ← flexコンテナにする */
    flex-direction: column;    /* ← 子要素を縦に並べる */
    align-items: center;       /* ← 子要素を水平方向の中央に配置 */
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* h2の下に追加する黄色の線 */
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #fff036;
}

.profile-item {
    display: flex; /* ← dtとddを横並びにする */
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
	padding: 0 50px 25px;
}

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

.profile-item dt {
    flex-basis: 150px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5;
}

.profile-item dd {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
}
.profile-item dd span {
    display: block; /* 各項目をブロック要素にして改行させる */
    padding-left: 1.5em; /* 「・」を置くためのスペースを確保 */
    text-indent: -1.5em; /* 1行目を字下げして「・」をスペースに配置 */
}
.profile-item dd span:not(:last-child) {
    margin-bottom: 0.5em; /* 各項目の下の余白 */
}

/* ::before疑似要素を使ってCSSで「・」を追加 */
.profile-item dd span::before {
    content: '・';
    display: inline-block;
    width: 1.5em; /* padding-leftと同じ幅を確保 */
}
/* --------------------------------
 * ABOUTページ：お問い合わせセクション (CTA)
 * -------------------------------- */
.cta {
	padding: 80px 40px;
    background-image: url('../img/pc/cta-bg.webp'); 
    background-size: cover;
    background-position: center;
	margin-bottom: 100px;
}

.cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center; /* 中の要素をすべて中央揃え */
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.cta .cta-button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 15px 50px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
	font-size: 1.1rem;
}
/* --------------------------------
 * ページヒーロー（works)
 * -------------------------------- */
 .page-hero-icon-works {
    position: absolute;
    top: 40%;
    left: 5%;
    transform: translateY(-50%);
    width: 370px;
    z-index: 2;
    animation: floatAnimation 6s ease-in-out infinite;
}
/* --------------------------------
 * WORKSページ：実績紹介セクション
 * -------------------------------- */
.works-grid {
    padding: 60px 40px;
}

.works-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.works-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 50px auto 40px;
    font-size: 1.3rem;
    line-height: 1.5;
}

/* カテゴリーボタン */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-filters button {
    background-color: #2D2D2D;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-filters button.active,
.category-filters button:hover {
    background-color: #fff036; /* 黄色 */
    color: #2D2D2D;
}

/* 実績カードグリッド */
.works-items {
    display: grid;
    /* 6列のグリッドを作成し、アイテムのサイズに応じて列を結合する */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.work-card {
    grid-column: span 2; /* 通常カードは2列分の幅を取る (6 / 2 = 3列) */
    background-color: #2D2D2D;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-card.large {
    grid-column: span 3; /* largeカードは3列分の幅を取る (6 / 3 = 2列) */
}

.work-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.work-card-title {
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    flex-grow: 1; /* タイトルの高さが可変でもボタンの位置を揃える */
}

.work-card-button {
    background-color: #fff036;
    color: #2D2D2D;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
}
/* 各カードを定義したエリアに配置 */
.card-consulting { grid-area: consulting; }
.card-dx { grid-area: dx; }
.card-other { grid-area: other; }


.service-card {
    background-color: #2D2D2D;
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}
.service-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}
.service-card p {
    color: #fff;
    margin: auto;
    width: 90%;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: start;
}

/* 「その他」のコンテナカードの特別スタイル */
.service-card.is-container {
    display: flex;
    flex-direction: column;
}
.sub-service-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex: 1; /* 親コンテナの残りの高さいっぱいに広がる */
}
.sub-service-card {
    flex: 1; /* 2つのカードが均等に幅を取る */
    background-color: #444;
    padding: 30px;
    border-radius: 10px;
}
.sub-service-card h4 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #fff036; /* 黄色 */
}
.works-items + .service-card {
    margin-top: 20px;
}

/* --------------------------------
 * 実績カード：詳細表示機能
 * -------------------------------- */
/* 開閉ボタンのスタイル（変更なし） */
.work-card-toggle {
    background-color: #fff036;
    color: #2D2D2D;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
}
/* クリックされたボタンのスタイル */
.work-card-toggle.is-active {
    background-color: #aaa;
    color: #fff;
}

/* JSで動的に生成される詳細パネルのスタイル */
.work-details-panel {
    grid-column: 1 / -1; /* グリッドの全列を専有する */
    padding: 30px;
    margin-top: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: left;
    position: relative;
    animation: fadeIn 0.5s ease;
}
.work-details-panel p {
    margin: auto;
    color: #333;
    font-size: 1.2rem;
    width: 90%;
    line-height: 1.5;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --------------------------------
 * SERVICEページ
 * -------------------------------- */
.service-page {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-grid-container {
    display: grid;
    /* 2と3の最小公倍数である6列のグリッドを作成 */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* 上段のカード (2枚) */
.service-grid-container .service-card:nth-child(-n+2) {
    grid-column: span 3; /* 3列分の幅を取る (6 / 3 = 2列) */
}

/* 下段のカード (3枚) */
.service-grid-container .service-card:nth-child(n+3) {
    grid-column: span 2; /* 2列分の幅を取る (6 / 2 = 3列) */
}


/* --------------------------------
 * ページヒーロー（recruit)
 * -------------------------------- */
 .page-hero-icon-recruit {
    position: absolute;
    top: 10%;
    left: 15%;
    transform: translateY(-50%);
    width: 370px;
    z-index: 2;
    animation: floatAnimation 6s ease-in-out infinite;
}
.recruit-page {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;             /* ← flexコンテナにする */
    flex-direction: column;    /* ← 子要素を縦に並べる */
    align-items: center;       /* ← 子要素を水平方向の中央に配置 */
}

/* 職種選択カード */
.job-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 1000px;
}
.job-tab {
    flex: 1;
    width: 100%;
    max-width: 300px;
    padding: 30px;
    background-color: #2D2D2D;
    color: #fff;
    border: none;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}
.job-tab:hover {
    transform: translateY(-5px);
}
.job-tab h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}
.job-tab img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}
.job-tab-button {
    display: inline-block;
    width: 80%;
    padding: 12px;
    background-color: #fff036;
    color: #2D2D2D;
    border-radius: 8px;
    font-weight: 700;
}
/* 選択中カードのスタイル */
.job-tab.active {
    background-color: #444;
}

/* JSで動的に生成される詳細パネルのスタイル */
.job-details-panel {
    width: 95%; /* PC表示の時はコンテナ幅に合わせる */
    padding: 20px;
    margin-top: 20px; /* カードと少し重ねる */
    background-color: #fff036;
    border-radius: 15px;
    animation: fadeIn 0.5s ease;
    z-index: -1;
    position: relative;
}

.job-details-content {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
}
.job-details-image { flex-basis: 40%; }
.job-details-text { flex-basis: 60%; }
.job-details-text h3 { margin: 0 0 20px;; font-size: 1.8rem; }
.job-details-text h4 { font-size: 1.3rem; border-bottom: 2px solid #2D2D2D; padding-bottom: 5px; margin-bottom: 15px; }
.job-details-text ul { list-style: none; padding: 0; margin: 0 0 30px 0; color: #333; font-size: 1rem; }
.job-details-text li { margin-bottom: 0.5em; line-height: 1.2;}
/* --------------------------------
 * ページヒーロー（inquiry)
 * -------------------------------- */
 .page-hero-icon-inquiry {
    position: absolute;
    top: 20%;
    left: 5%;
    transform: translateY(-50%);
    width: 370px;
    z-index: 2;
    animation: floatAnimation 6s ease-in-out infinite;
}
/* --------------------------------
 * ハンバーガーボタン
 * -------------------------------- */
.hamburger-button {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.hamburger-button span {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: #5e3c1a;
    transition: all 0.3s;
}

.hamburger-button span:nth-of-type(1) {
    top: 10px;
}
.hamburger-button span:nth-of-type(2) {
    top: 19px;
}
.hamburger-button span:nth-of-type(3) {
    bottom: 10px;
}

/* --------------------------------
 * スライドメニュー
 * -------------------------------- */
.slide-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: #f0f0f0;
    padding-top: 100px;
    transform: translateX(100%); /* 右側画面外に隠す */
    transition: transform 0.4s;
    z-index: 105;
}

.slide-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* --------------------------------
 * メニューが開いた時のスタイル
 * -------------------------------- */
body.is-active .slide-nav {
    transform: translateX(0); /* 右からスライドイン */
}

body.is-active .hamburger-button span:nth-of-type(1) {
    top: 19px;
    transform: rotate(45deg);
}

body.is-active .hamburger-button span:nth-of-type(2) {
    opacity: 0;
}

body.is-active .hamburger-button span:nth-of-type(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* --------------------------------
 * お問い合わせフォーム（MW WP Form）
 * -------------------------------- */

/* フォームテーブル全体 */
.form-table {
    width: 100%;
    max-width: 800px; /* フォームの最大幅 */
    margin: 60px auto; /* 上下の余白と中央揃え */
    border-collapse: collapse; /* テーブルの線を結合 */
}

/* ラベル（th）と入力欄（td） */
.form-table th,
.form-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.form-table th {
    width: 240px; /* ラベル列の幅を固定 */
    font-weight: 700;
    text-align: left;
    vertical-align: top; /* 上揃えにする */
}

/* 「必須」マーク */
.form-table .required {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.8em;
    background-color: #e53935;
    color: #fff;
    border-radius: 4px;
}

/* 入力フィールド（input, textarea） */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.form-table input:focus,
.form-table textarea:focus {
    outline: none;
    border-color: #5e3c1a;
    box-shadow: 0 0 5px rgba(94, 60, 26, 0.3);
}

/* ボタンエリア */
.btn-2nd {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    flex-direction: row-reverse; /* ← この行を追加 */
}

/* 送信・確認ボタン */
.btn_submit {
    background-color: #2D2D2D;
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn_submit:hover {
    background-color: #444;
}

/* 戻るボタン */
.back {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 15px 50px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.back:hover {
    background-color: #bbb;
}
/* --------------------------------
 * お問い合わせ完了ページ
 * -------------------------------- */
.thank-you-message {
    max-width: 800px; /* ボックスの最大幅 */
    margin: 80px auto; /* 上下の余白と中央揃え */
    padding: 50px; /* 内側の余白 */
    border: 1px solid #e0e0e0; /* 薄いグレーの枠線 */
    border-radius: 10px; /* 角を少し丸くする */
    text-align: center; /* テキストを中央揃え */
}

.thank-you-message p {
    line-height: 1.8; /* 行間を少し広げる */
    margin-bottom: 25px;
}

/* 最初のpタグ（「ありがとうございました」の行） */
.thank-you-message p:first-child {
    font-size: 1.3em; /* 文字を少し大きく */
    font-weight: 700; /* 太字にする */
}

/* 最後のpタグ */
.thank-you-message p:last-child {
    margin-bottom: 0; /* 最後の行の下の余白をなくす */
}
/* --------------------------------
 * フッター
 * -------------------------------- */
.site-footer {
    height: 5vh; /* フッターの高さを画面の5%に */
    background-color: #2D2D2D; /* 背景色 */
    color: #fff; /* 文字色 */

    /* 中のテキストを上下左右中央に配置 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff; /* pタグのデフォルト色を上書き */
}

/* --------------------------------
 * レスポンシブ設定
 * -------------------------------- */
@media (max-width: 768px) {

    /* --- 全ページ共通 --- */
    body {
        font-size: 16px; /* スマホでの基準フォントサイズ */
    }

    /* --- ヘッダー関連 --- */
    #sp_only{
        display: block;
    }
    #pc_only{
        display: none;
    }
    .logo {
        width: 70px;
    }
    .hed-contents {
        padding: 10px 20px;
    }

    /* --- トップページ：ヒーロー --- */
    .hero {
        flex-direction: column;
        min-height: 90vh;
    }
    .hero-left {
        display: none;
    }
    .hero-right {
        padding: 80px 20px;
        text-align: center;
    }
    .hero-text, .hero-illustrations {
        flex-basis: auto;
        text-align: start;
        left: 20px;
        top: 75%;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .f-color {
        margin: 0 -15px;
    }
    .hero-illustrations {
        margin-top: -100px;
        gap: 0px 30px;
    }
    .illustration-item, .illustration-item.item-1, .illustration-item.item-2, .illustration-item.item-3, .illustration-item.item-4 {
        width: 150px;
    }

    /* --- ABOUT, WORKS, RECRUIT, INQUIRY共通 --- */
    .page-hero {
        height: 25vh;
    }
    .page-hero-icon, .page-hero-icon-works, .page-hero-icon-recruit, .page-hero-icon-inquiry {
        width: 150px; /* アイコンサイズを統一 */
        top: 50%;
        left: 10%;
    }
    .illustration-item.item-1 {
        margin-bottom: -10px;
    }
    .illustration-item.item-2 {
        margin-bottom: -50px;
    }
    .illustration-item.item-3 {
        margin-bottom: -50px;
    }
    .illustration-item.item-4 {
        margin-top: 20px;
    }
    .page-hero-decoi {
        width: 180px;
        left: 45%;
        top: 55%;
    }
    .section-title h2 {
        font-size: 2rem; /* h2タイトルのフォントサイズを統一 */
    }
    .cta {
        padding: 60px 20px;
        margin-bottom: 50px;
    }
    .cta h2 { font-size: 1.8rem; }
    .cta p { font-size: 1rem; }


    /* --- ABOUTページ --- */
    .intro { padding: 80px 20px; }
    .intro-inner {
        flex-direction: column;
        gap: 40px;
    }
    .intro-text, .intro-image {
        flex-basis: auto;
        width: 100%;
    }
    .intro-text h2 { font-size: 1.8rem; }
    .intro-text p { font-size: 1rem; }

    .philosophy { padding: 80px 0; }
    .philosophy-content {
        width: 100%;
        padding: 40px 20px;
        border-radius: 0;
    }
    .philosophy-text { width: 100%; }
    .philosophy-text h3 { font-size: 1.3rem; }
    .philosophy-text p { font-size: 1rem; }

    .company-profile { padding: 80px 20px; }
    .profile-item {
        flex-direction: column;
        gap: 10px;
        padding: 0 0 25px;
    }
    .profile-item dt {
        flex-basis: auto;
        font-size: 1rem;
    }
    .profile-item dd {
        font-size: 1rem;
        line-height: 1.6;
    }
    .profile-item dd span::before {
        width: 1em;
    }
    .profile-item dd span {
        text-indent: -1em;
    }

    /* --- WORKSページ --- */
    .page-hero-icon-works{
        top: 70%;
    }
    .works-grid, .service { padding: 80px 20px; }
    .works-intro-text { font-size: 1rem; }
    .works-items, .service-grid {
        grid-template-columns: 1fr;
    }
    .work-card, .work-card.large {
        grid-column: span 1;
    }
    .service-grid {
        grid-template-areas: "consulting" "dx" "other";
    }
    .sub-service-grid {
        flex-direction: column;
    }
    .work-card-title { font-size: 1.1rem; }
    .service-card h3 { font-size: 1.3rem; }
    .service-card p { font-size: 1rem; }
    .work-details-panel p {
        font-size: 1rem;
    }

    /* --- SERVICEページ --- */
    .service-page { padding: 80px 20px; }
    .service-grid-container {
        grid-template-columns: 1fr;
    }
    .service-grid-container .service-card,
    .service-grid-container .service-card:nth-child(-n+2),
    .service-grid-container .service-card:nth-child(n+3) {
        grid-column: span 1;
    }

    /* --- RECRUITページ --- */
    .recruit-page { padding: 80px 20px; }
    .job-tabs {
        flex-direction: column;
        align-items: center;
        margin-top: 0px;
                width: auto;
    }
    .job-details-content {
        flex-direction: column;
    }
    .job-details-image {
        width: 70%;
    }
    /* --- お問い合わせフォーム --- */
    .form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td {
        display: block;
        width: 100%;
    }
    .form-table tr {
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .form-table tr:last-child { border-bottom: none; }
    .form-table th {
        padding: 0 0 10px 0;
        border-bottom: none;
    }
    .form-table td { padding: 0; border-bottom: none; }
    .btn-2nd { flex-direction: column; }
    .form-table input[type="text"], .form-table input[type="email"], .form-table input[type="tel"], .form-table textarea {
    padding: 3px;
    }
}