:root {
    --primary-color: #f7b15a; /* 温かいオレンジ */
    --bg-color: #ffffff;
    --text-color: #4a4a4a;
    --white: #ffffff;
    
    /* 半透明用（変更なし） */
    --white-rgb: 255, 255, 255; 
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ヘッダー */
header {
    /* rgb ではなく rgba にし、スラッシュをカンマ（,）に変えます */
    background-color: rgba(var(--white-rgb), 0.80); 

    padding: 0.0rem 4%;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e0e0e0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    z-index: 100;
}

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

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: 0.3s;
}

.hero {
    height: 50vh;
    width: 100%;
    background: url('image/top_01.png');
    /* 画像全体を収めつつ、はみ出しを防ぐ */
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    /* 画像が切れる左右（または上下）を画像に近い色で埋める */
    background-color: #ffffff; 
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: #fb8c00;
    margin-bottom: 20px;
}

/* カードデザイン */
.features {
    padding: 40px 5%;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.card {
    background: #ffffff;
    padding: 10px;
    border-radius: 30px; /* 大きめの角丸で親しみやすく */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

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

.icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.marker-yellow {
    background: linear-gradient(transparent 60%, #ffff00 60%);
}

/* ナビゲーションの親要素を調整 */
.line-nav {
  display: flex;
  gap: 12px; /* ボタン同士の間隔 */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ボタンの基本デザイン */
.line-nav a {
  display: block;
  padding: 10px 20px;            /* ボタンの広さ */
  text-decoration: none;         /* 下線を消す */
  color: #333;                   /* 文字色 */
  background-color: transparent;
  border-radius: 8px;            /* 少しだけ角を丸くして今っぽく */
  font-weight: 500;
  transition: all 0.3s ease;     /* ふんわり変化させる */
  border: 2px solid transparent; /* ホバー時の枠線用に透過で設定 */
}

/* ホバーした時の動き */
.line-nav a:hover {
  background-color: #e0e0e0;     /* 少し濃いグレーに */
  color: var(--primary-color);   /* メインカラーに変化 */
}

/* 現在のページ（既に指定がある場合） */
.line-nav a[style*="--primary-color"] {
  background-color: var(--primary-color); /* 背景をメインカラーに */
  color: #fff !important;                 /* 文字を白抜きに */
  border-color: var(--primary-color);
}
/* 現在のページ用のスタイル */
.line-nav a.is-current {
  background-color: var(--primary-color);
  color: #fff;
}

.line-nav li {
    margin: 0 15px;
}

.line-nav li a {
    display: inline-block;
    padding: 5px 0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
}

/* 擬似要素でオレンジのラインを作成 */
.line-nav li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* 少し太めにするとオレンジが映えます */
    background-color: #ff9800; /* ★ここをオレンジに変更 */
    
    transform: scaleX(0);
    transform-origin: left top;
    transition: transform 0.3s ease;
}

/* マウスを乗せた時にラインを伸ばす */
.line-nav li a:hover::after {
    transform: scaleX(1);
}

/* （お好みで）ホバー時に文字色も少し変える場合 */
.line-nav li a:hover {
    color: #ff9800; 
}
.rounded-img {
    border-radius: 15px; /* 数字を大きくするほど丸みが強くなります */
}

.side-scroll-text {
  position: fixed;
  right: 20px; /* スクロールバーのすぐ左側に配置 */
  bottom: 50px;
  writing-mode: vertical-rl; /* 縦書きにする */
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: #444; /* 主張しすぎないグレー */
  font-family: serif; /* シックにするなら明朝体もおすすめ */
  z-index: 9999;
  text-transform: uppercase;
}

/* 線の演出を加える */
.side-scroll-text::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 40px;
  background: #666;
  margin-bottom: 10px;
/* スルスルと動くアニメーションを追加（任意） */
/*  animation: scroll-line-move 2.5s infinite;*/
}

@keyframes scroll-line-move {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-sidebar {
    position: fixed;
    right: 20px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
    /* 消える時のアニメーション設定 */
    transition: opacity 2.0s ease, visibility 1.5s;
}

.scroll-text {
    writing-mode: vertical-rl;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: #e65100;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: sans-serif;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(230, 81, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e65100;
    animation: scrollLineAnim 2s cubic-bezier(0.76, 0, 0.3, 1) infinite;
}

@keyframes scrollLineAnim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 消すためのクラス */
.is-hidden {
    opacity: 0;
    visibility: hidden;
}

/* 英字: クイック・スライドイン */
@keyframes fadeFast {
	0% {
		opacity: 0;
		transform: translateY(10px);
		filter: blur(5px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

/* 漢字: クイック・ポップイン */
@keyframes popIn {
	0% {
		opacity: 0;
		transform: scale(0.9);
		filter: blur(8px);
	}
	100% {
		opacity: 1;
		transform: scale(1);
		filter: blur(0);
	}
}

.char-container {
	color: #000000;
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.char-pop {
	display: inline-block;
	opacity: 0;
	/* 0.08秒間隔でテンポよく表示 */
	animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.2s + var(--i) * 0.08s) forwards;
}
		
.office-refined-section {
    padding: 80px 5%;
    background-color: #fff;
    color: #333;
    /* スマホ等で数字が勝手に青文字（リンク）になるのを防止 */
    -webkit-text-size-adjust: 100%;
}
.office-inner {
    max-width: 900px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.sub-title {
    font-size: 0.85rem;
    color: #e65100;
    font-weight: 700;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 8px;
}
.main-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.1em; 
	border-bottom: 1px solid #d4bda2; /* 下線を引き受ける */
	padding-bottom: 20px;            /* 文字から線までの距離（ここを増やすと線が下がります） */
    margin-bottom: 20px;             /* 線から下のコンテンツまでの距離 */
}
.office-list {

}

.office-item {
    display: flex;
    padding: 35px 15px;
    border-bottom: 1px solid #eee;
    gap: 40px;
    align-items: center; /* 中央揃えに調整 */
}

/* 画像：主張しすぎないコンパクトサイズ */
.office-img {
    flex-shrink: 0;
    width: 170px; 
}
.office-img img {
    width: 100%;
    height:110px;
    border-radius: 4px;
    filter: grayscale(20%); /* 少し彩度を落として馴染ませる */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.office-body {
    flex: 1;
}

.office-header {
    margin-bottom: 8px;
}
.office-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #e65100;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2px;
}
.office-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: #000;
}

.office-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.office-addr {
    font-size: 1rem;
    margin: 0 !important;
    line-height: 1.5;
    color: #444;
}
.zip {
    font-weight: 600;
    color: #999;
    margin-right: 10px;
    font-family: Arial, sans-serif;
}

/* 連絡先：リンクなしテキスト設定 */
.office-contact {
    display: flex;
    gap: 30px;
    margin-top: 5px;
}
.contact-box {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: Arial, sans-serif;
    pointer-events: none; /* クリック無効化 */
}
.contact-box .label {
    font-size: 0.6rem;
    background: #e65100;
    color: #fff;
    padding: 2px 5px;
    border-radius: 2px;
    margin-right: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
/* FAXは控えめに */
.contact-box.gray {
    color: #888;
}
.contact-box.gray .label {
    background: #bbb;
}

@media (max-width: 768px) {
    .office-item {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .office-img {
        width: 160px;
    }
    .office-contact {
        gap: 15px;
        flex-direction: column;
    }
}

.btn-recruit {
    display: inline-block;
    padding: 18px 50px;
    background-color: #fb8c00;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px; /* 丸みをつけて親しみやすさを */
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(251, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-recruit:hover {
    background-color: #e65100;
    transform: translateY(-3px); /* 浮き上がる演出 */
    box-shadow: 0 6px 20px rgba(251, 140, 0, 0.4);
}

.section-label {
	font-size: 10px;
	letter-spacing: 0.3em;
	color: var(--accent);
	margin-bottom: 6px;
	font-weight: 400;
}
.section-title {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 32px;
	letter-spacing: 0.05em;
}

.recruit-row {
	display: flex;
	border-bottom: 1px solid #b3b3b3;
	flex-wrap: wrap;
}
.recruit-row dt {
	width: 160px;
	padding: 18px 20px;
	background: #f5e6d3;
	font-weight: 700;
	color: #e65100;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
}
.recruit-row dd {
	flex: 1;
	min-width: 300px;
	padding: 20px;
	margin: 0;
	box-sizing: border-box;
}
.salary-text {
	font-size: 1.1rem;
}
.sp-only {
	display: none;
}

/* スマホ画面（幅768px以下）用の調整 */
@media screen and (max-width: 768px) {
	.recruit-row dt {
		width: 100% !important;
		justify-content: flex-start !important;
		padding: 10px 15px !important;
		font-size: 0.95rem;
	}
	.recruit-row dd {
		min-width: 100% !important;
		padding: 15px !important;
	}
	.salary-text {
		font-size: 1.0rem !important;
	}
	.sp-only {
		display: block;
	}
}
.exhibition-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.exhibition-gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 300 / 200;
	border-radius: 10px;
}
/* PC用の標準スタイル */
.greeting-container {
	display: grid;
	grid-template-columns: 1fr 180px;
	gap: 20px;
	align-items: start;
}
.exhibition-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.exhibition-gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 200 / 140;
	border-radius: 4px;
}

/* スマホ（幅768px以下）用の調整 */
@media screen and (max-width: 768px) {
	.greeting-container {
		display: flex;
		flex-direction: column-reverse; /* スマホでは画像を上、文章を下にする */
		gap: 15px;
	}
	.greeting-img {
		margin: 0 auto 10px !important;
	}
	.exhibition-gallery {
		grid-template-columns: repeat(2, 1fr); /* 2列×2行に変形してはみ出しを防ぐ */
		gap: 8px;
	}
}
			/* 標準のフォントサイズ指定 */
.product-title {
	font-size: 1.8rem;
}

/* スマホ（幅768px以下）用の調整 */
@media screen and (max-width: 768px) {
	.product-section {
		padding: 25px 15px !important; /* 内側の余白を少し狭めてすっきりさせる */
	}
	.product-title {
		font-size: 1.4rem !important; /* スマホで見やすい文字サイズに縮小 */
		margin-bottom: 15px !important;
	}
	.product-flex {
		flex-direction: column-reverse; /* ★ここがポイント：スマホの時だけ画像（後ろの要素）を上に上げる */
		gap: 20px !important;
	}
	.product-text {
		min-width: 100% !important;
	}
	.product-img {
		flex-basis: 100% !important;
		width: 100%;
		margin-bottom: 10px;
	}
}

.card-link {
    text-decoration: none;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    /* ▼ 枠線の色を #e0e0e0 から #cccccc に濃くしました */
    border: 1px solid #cccccc; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
}

.card-link:hover {
    transform: translateY(-8px);
    /* ▼ ホバー時はブランドカラーのオレンジで強調します */
    border-color: #e65100; 
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.2);
}

.card-img-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    /* ▼ こちらの境界線も同様に濃くしました */
    border-bottom: 1px solid #cccccc;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-link:hover .card-img {
    transform: scale(1.03);
}

.card-body {
    padding: 24px;
    background-color: #ffe0b2;
}

/* 見出し全体のコンテナ */
.card-body h3 {
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #e65100;
}

/* 英語部分のスタイル */
.card-body h3 .sub-title {
    display: block;
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-body p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.menu-cards {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-cards > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* スマホ・タブレット対応 */
@media (max-width: 900px) {
    .menu-cards > div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .menu-cards > div {
        grid-template-columns: 1fr;
    }
}

/* グリッドレイアウトの設定（ここがプロのポイント） */
.maker-grid {
    display: grid;
    /* 画面幅に合わせて自動で列数を変更 */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0px;
}

.maker-item {
	background: rgba(249, 249, 249, 0.4);
    padding: 5px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
    transition: background 0.3s;
}

/* ホバー時に少し反応すると高級感が出ます */
.maker-item:hover {
    background: #fff0d6;
    color: #e65100;
    font-weight: bold;
}

.section-label-pop {
	display: inline-block;
	background: linear-gradient(90deg, var(--deep-orange), var(--primary-orange));
	color: #fff;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 800;
	border-radius: 4px;
	letter-spacing: 0.1em;
	margin-bottom: 8px;
}

/* ==========================================
   スマホ表示用レスポンシブ設定 (幅768px以下)
   ========================================== */
@media screen and (max-width: 768px) {
    /* --- 1. ヘッダー＆ナビゲーションの折り返し調整 --- */
    nav {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    nav ul.line-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .line-nav li {
        margin: 0;
    }

    .line-nav a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* --- 2. ヒーロー領域の高さ調整 --- */
    .hero {
        height: 35vh; /* スマホでは少し低めに調整 */
    }

    /* --- 3. お知らせ欄のレイアウト調整 --- */
    .news-row {
        flex-direction: column;
    }

    .news-row dt {
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }

    .news-row dd {
        width: 100% !important;
        min-width: unset !important;
        padding: 10px 12px !important;
        box-sizing: border-box;
    }

    /* --- 4. 画面固定の「SCROLL」演出をスマホでは非表示または調整 --- */
    .scroll-sidebar,
    .side-scroll-text {
        display: none; /* スマホ画面の文字被りを防ぐため非表示 */
    }

    /* --- 5. フッターの調整 --- */
    footer {
        padding: 20px 10px 10px !important;
    }

    footer > div {
        flex-direction: column;
        text-align: center;
        gap: 10px !important;
    }

    /* パイプライン（|）区切りをスマホで非表示に */
    footer span:nth-child(2),
    footer span:nth-child(4) {
        display: none;
    }
}