@charset "UTF-8";
/* ==========================================================================
   株式会社 林商会 サイト共通スタイル
   --------------------------------------------------------------------------
   1. 基本設定（色・文字）
   2. ヘッダー・メニュー
   3. フッター
   4. ページ共通（見出し・パンくず・2カラム・サイドメニュー）
   5. 本文（post）の装飾
   6. 一覧（カード・お知らせ）
   7. トップページ
   8. 個別ページ用（沿革・免許/特許・コバルトの冒険・お問い合わせ）
   9. スマートフォン
   ========================================================================== */


/* 1. 基本設定 ============================================================= */
:root {
  --main: #0168b7;        /* メインカラー（青） */
  --main-dark: #00508e;
  --text: #222;
  --text-light: #666;
  --line: #ddd;
  --bg-gray: #f5f5f5;
  --news: #ff8c1a;        /* お知らせ「NEWS」ラベル */
  --topics: #368ee5;      /* お知らせ「TOPICS」ラベル */
  --width: 1200px;        /* コンテンツの最大幅 */
  --header-h-top: 90px;   /* ヘッダーの高さ（ページ上部） */
  --header-h: 70px;       /* ヘッダーの高さ（スクロール後） */

  /* フォント（変えるときは各ページ <head> の Google Fonts の読み込みも合わせて変更） */
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;  /* 日本語 */
  --font-en: "Montserrat", var(--font);   /* 英字の見出し（COMPANY など） */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  padding-top: var(--header-h-top);   /* 固定ヘッダーの分だけ下げる */
}
body.has-hero { padding-top: 0; }     /* 大きな写真のあるページは、写真の上にヘッダーを重ねる */

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--main); }
a:hover { color: var(--main-dark); }

.inner { max-width: var(--width); margin: 0 auto; padding: 0 30px; }


/* 2. ヘッダー・メニュー ==================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h-top);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  transition: height .3s, background-color .3s, border-color .3s;
}

/* スクロール後：少し低くして半透明の白に（main.js が body に is-scrolled を付ける） */
.is-scrolled .site-header {
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 大きな写真のあるページ（body に has-hero）のスクロール前：透明で白い文字 */
.has-hero:not(.is-scrolled) .site-header { background: transparent; border-bottom-color: transparent; }
.has-hero:not(.is-scrolled) .global-nav > ul > li > a { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.has-hero:not(.is-scrolled) .menu-toggle span { background: #fff; }

/* 透明ヘッダーにマウスを乗せたら（サブメニュー表示中も）白に戻す */
.has-hero:not(.is-scrolled) .site-header:hover,
.has-hero:not(.is-scrolled) .site-header:focus-within { background: #fff; border-bottom-color: var(--line); }
.has-hero:not(.is-scrolled) .site-header:hover .global-nav > ul > li > a,
.has-hero:not(.is-scrolled) .site-header:focus-within .global-nav > ul > li > a { color: var(--text); text-shadow: none; }
.has-hero:not(.is-scrolled) .site-header:hover .global-nav > ul > li > a:hover,
.has-hero:not(.is-scrolled) .site-header:hover .global-nav > ul > li > a[aria-current],
.has-hero:not(.is-scrolled) .site-header:focus-within .global-nav > ul > li > a[aria-current] { color: var(--main); }
.site-header .logo {
  display: flex; align-items: center;
  height: 100%; padding: 0 40px;
  background: var(--main);
}
.site-header .logo img { width: 169px; }

.global-nav { margin-left: clamp(20px, 8vw, 180px); height: 100%; }  /* ロゴとの間隔 */
.global-nav > ul { display: flex; height: 100%; margin: 0; padding: 0 20px 0 0; list-style: none; }
.global-nav > ul > li { position: relative; }
.global-nav a { display: block; color: var(--text); text-decoration: none; }
.global-nav > ul > li > a {
  display: flex; align-items: center; height: 100%;
  padding: 0 18px; font-size: 15px; font-weight: 700;
  transition: color .3s;
}
.global-nav > ul > li > a:hover,
.global-nav > ul > li > a[aria-current] { color: var(--main); }

/* サブメニュー（マウスを乗せると表示） */
.global-nav ul ul {
  position: absolute; top: 100%; left: 0;
  min-width: 200px; margin: 0; padding: 0; list-style: none;
  background: var(--main);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.global-nav li:hover > ul,
.global-nav li:focus-within > ul { opacity: 1; visibility: visible; }
.global-nav ul ul a { padding: 12px 20px; font-size: 14px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); }
.global-nav ul ul a:hover { background: var(--main-dark); color: #fff; }

/* スマホ用メニューボタン（PCでは非表示） */
.menu-toggle {
  display: none;
  margin-left: auto; width: var(--header-h); height: 100%;
  border: 0; background: none; cursor: pointer;
}
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px auto; background: var(--text); transition: .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* 3. フッター ============================================================= */
.site-footer { margin-top: 100px; border-top: 1px solid var(--line); text-align: center; }
.page-top {
  display: block; padding: 14px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 13px; letter-spacing: .1em;
}
.page-top::before { content: "▲"; display: block; font-size: 10px; color: var(--main); }
.footer-logo { margin: 50px 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 16px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-nav a { display: block; padding: 4px 16px; color: var(--text); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--main); }
.copyright { margin: 0; padding: 16px; font-size: 12px; }


/* 4. ページ共通 =========================================================== */

/* 一覧ページ上部の大きな画像 */
.page-hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 85vh; min-height: 460px; max-height: 900px; padding: 0 20px 80px;
  background: #333 center / cover no-repeat;
  color: #fff; text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); }
.page-hero h1 { position: relative; margin: 0; font-size: 44px; line-height: 1.5; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* パンくずリスト */
.breadcrumb { border-bottom: 1px solid var(--line); font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0 auto; padding: 12px 30px; max-width: var(--width); list-style: none; }
.breadcrumb li + li::before { content: "›"; margin: 0 10px; color: #999; }
.breadcrumb a { color: var(--text); text-decoration: none; }

/* 見出し（英字＋日本語） */
.section-title { margin: 80px 0 40px; text-align: center; line-height: 1.3; }
.section-title .en { display: block; font-family: var(--font-en); font-size: 32px; font-weight: 600; color: var(--main); letter-spacing: .14em; }
.section-title .ja { display: block; margin-top: 6px; font-size: 14px; color: var(--text-light); }

/* 大きな写真の下端に重なる青い四角の見出し（一覧ページ） */
.section-box {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  width: 300px; height: 300px; margin: -150px auto 60px; padding-bottom: 40px;
  background: var(--main);
}
.section-box .en, .section-box .ja { color: #fff; }

/* 2カラム（本文＋サイドメニュー） */
.columns { display: flex; gap: 60px; max-width: var(--width); margin: 0 auto; padding: 50px 30px 0; }
.columns .main { flex: 1; min-width: 0; }
.columns .side { flex: 0 0 260px; }
.single { max-width: 900px; margin: 0 auto; padding: 50px 30px 0; }

.page-title { margin: 0 0 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); position: relative; font-size: 28px; line-height: 1.5; letter-spacing: .06em; color: var(--main); }
.page-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100px; height: 3px; background: var(--main); }
.eyecatch { width: 100%; margin-bottom: 40px; border-radius: 4px; }

/* サイドメニュー */
.side-menu { margin-bottom: 40px; }
.side-menu h2 { margin: 0; padding: 22px 26px; background: var(--main); color: #fff; font-family: var(--font-en); font-size: 18px; font-weight: 600; letter-spacing: .12em; line-height: 1.3; }
.side-menu h2 small { font-family: var(--font); letter-spacing: 0; }
.side-menu h2 small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; }
.side-menu ul { margin: 0; padding: 0; list-style: none; }
.side-menu a { display: block; padding: 14px 26px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.side-menu a:hover, .side-menu a[aria-current] { color: var(--main); background: var(--bg-gray); }


/* 5. 本文の装飾 =========================================================== */
.post > :first-child { margin-top: 0; }
.post p { margin: 0 0 1.5em; }
.post h2 { margin: 2.5em 0 1em; padding: 10px 16px; border-left: 5px solid var(--main); background: var(--bg-gray); font-size: 22px; line-height: 1.5; letter-spacing: .06em; }
.post h3 { margin: 2.5em 0 1em; padding-bottom: 10px; border-bottom: 2px solid var(--main); font-size: 20px; line-height: 1.5; letter-spacing: .06em; }
.post h4 { margin: 2em 0 .8em; font-size: 18px; color: var(--main); }
.post ul, .post ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.post figure { margin: 0 0 1.5em; }
.post iframe { width: 100%; height: 400px; border: 0; margin-bottom: 1.5em; }
.post table { width: 100%; margin-bottom: 1.5em; border-collapse: collapse; }
.post th, .post td { padding: 14px 18px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.post th { width: 20%; background: var(--bg-gray); white-space: nowrap; text-align: center; vertical-align: middle; }
.post dl { margin: 0; }
.post dt { font-weight: 700; color: var(--main); }
.post dd { margin: 0 0 1em; }

/* ボタン */
.button {
  display: inline-block; min-width: 240px; padding: 16px 30px;
  border-radius: 40px; background: var(--main); color: #fff;
  text-align: center; text-decoration: none; font-weight: 600; transition: background .2s;
}
.button:hover { background: var(--main-dark); color: #fff; }
.button-wrap { margin: 40px 0 0; text-align: center; }


/* 6. 一覧 ================================================================= */

/* 画像カードの一覧（会社案内・事業内容・RM研究） */
.card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: var(--width); margin: 0 auto; padding: 0 30px; list-style: none; }
.card a { display: block; height: 100%; color: var(--text); text-decoration: none; }
.card .thumb { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--bg-gray); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card a:hover .thumb img { transform: scale(1.06); }
.card h2, .card h3 { margin: 16px 0 6px; font-size: 18px; color: var(--main); line-height: 1.5; }
.card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-light); }

/* お知らせ一覧 */
.news-list { max-width: 900px; margin: 0 auto; padding: 0 30px; list-style: none; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; align-items: center; gap: 20px; padding: 18px 10px; color: var(--text); text-decoration: none; }
.news-list a:hover { background: var(--bg-gray); }
.news-list time { flex: 0 0 auto; font-size: 13px; color: var(--text-light); }
.news-list .title { flex: 1; font-size: 15px; }
.label { display: inline-block; flex: 0 0 auto; min-width: 80px; padding: 2px 10px; border-radius: 20px; color: #fff; font-family: var(--font-en); font-size: 10px; letter-spacing: .1em; text-align: center; line-height: 1.9; }
.label.news { background: var(--news); }
.label.topics { background: var(--topics); }

/* お知らせ カテゴリ切り替え */
.news-filter { display: flex; justify-content: center; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.news-filter a { display: block; padding: 6px 22px; border: 1px solid var(--main); border-radius: 20px; text-decoration: none; font-size: 14px; }
.news-filter a[aria-current] { background: var(--main); color: #fff; }

/* お知らせ記事 */
.news-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.news-meta time { font-size: 14px; color: var(--text-light); }


/* 7. トップページ ========================================================= */

/* メイン画像（スライド） */
.hero { position: relative; height: 100vh; min-height: 520px; max-height: 1000px; overflow: hidden; background: #000; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s; }
.hero .slide.is-active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero .slide.is-active img { transform: scale(1); }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.hero .caption { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -40%); width: 90%; max-width: 1000px; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero .caption h2 { margin: 0 0 20px; font-size: 48px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; }
.hero .caption p { margin: 0 0 30px; font-size: 17px; }
.hero .dots { position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero .dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero .dots button.is-active { background: #fff; }

.top-news { padding-bottom: 20px; }

/* 事業内容（画像タイル） */
.top-service { margin-top: 80px; }
.service-tiles { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.service-tiles a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; text-decoration: none; }
.service-tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.75)); }
.service-tiles a:hover img { transform: scale(1.08); }
.service-tiles .text { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.service-tiles h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.4; }
.service-tiles p { margin: 0; font-size: 13px; line-height: 1.7; }

/* 環境方針・SDGs・SBT */
.top-eco { margin-top: 80px; padding: 1px 0 80px; background: var(--bg-gray); }
.top-eco .lead { margin: -20px 0 40px; text-align: center; }
.eco-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: var(--width); margin: 0 auto; padding: 0 30px; list-style: none; }
.eco-list li { display: flex; flex-direction: column; padding: 30px; background: #fff; }
.eco-list .image { height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.eco-list .image img { max-height: 100%; width: auto; }
.eco-list h3 { margin: 0 0 10px; font-size: 20px; color: var(--main); }
.eco-list p { flex: 1; margin: 0 0 20px; font-size: 14px; line-height: 1.9; }
.eco-list .button { min-width: 0; }

/* RM研究（カード1枚を中央に） */
.top-rm .card-list { grid-template-columns: minmax(0, 400px); justify-content: center; }


/* 8. 個別ページ用 ========================================================= */

/* 沿革（年表） */
.timeline { list-style: none; padding: 0 !important; border-left: 3px solid var(--main); margin-left: 8px !important; }
.timeline li { position: relative; padding: 0 0 24px 30px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--main); }
.timeline .year { display: block; font-weight: 700; color: var(--main); }
.timeline h3 { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; font-size: 20px; }
.timeline p { margin: 0 0 .5em !important; }
.timeline img { margin: 10px 0; }

/* 免許・特許・取扱形状（画像のグリッド） */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0 0 1.5em; }
.photo-grid figure { margin: 0; text-align: center; }
.photo-grid img { border: 1px solid var(--line); }
.photo-grid figcaption { margin-top: 8px; font-size: 14px; }

/* 会社案内PDFバナー */
.download { display: inline-block; max-width: 360px; text-align: center; text-decoration: none; }
.download span { display: block; margin-top: 8px; }

/* コバルトの冒険（各話ごとに --cobalt の色が変わる） */
.cobalt-story { --cobalt: var(--main); }
.cobalt-story .photo img { width: 100%; border-radius: 4px; }
.cobalt-story .lead { margin: 30px 0 50px; padding-left: 18px; border-left: 6px solid var(--cobalt); font-size: 20px; font-weight: 600; line-height: 1.7; }
.cobalt-story .episode { overflow: hidden; margin-bottom: 60px; }
.cobalt-story .episode h2 { margin: 0 0 24px; padding: 0 0 14px; border: 0; border-bottom: 2px solid var(--cobalt); background: none; font-size: 22px; }
.cobalt-story .episode h2 small { display: block; font-family: var(--font-en); font-size: 13px; letter-spacing: .15em; color: var(--cobalt); }
.cobalt-story .illust { max-width: 40%; margin: 4px 0 16px; padding: 10px; border-radius: 6px; background: var(--cobalt); }
.cobalt-story .illust.right { float: right; margin-left: 28px; }
.cobalt-story .illust.left { float: left; margin-right: 28px; }
.cobalt-story .episode p { line-height: 2.1; }
.cobalt-nav { padding-top: 30px; border-top: 1px solid var(--line); }
.cobalt-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.cobalt-nav li a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; font-size: 14px; }
.cobalt-nav li a:hover { background: var(--bg-gray); }
.cobalt-nav li a[aria-current] { font-weight: 700; border-color: var(--cobalt); }
.cobalt-nav li i { flex: 0 0 12px; height: 12px; border-radius: 50%; }
.cobalt-pager { display: flex; justify-content: space-between; gap: 10px; }
.cobalt-pager a { padding: 12px 26px; border-radius: 40px; background: var(--cobalt); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }

/* お問い合わせフォーム */
.form .note { font-size: 14px; }
.form .row { margin-bottom: 26px; }
.form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.form .req { display: inline-block; margin-left: 6px; padding: 4px 6px; border-radius: 3px; background: var(--main); color: #fff; font-size: 11px; font-weight: 400; line-height: 1; vertical-align: 2px; }
.form input[type=text], .form input[type=email], .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ccc; border-radius: 4px;
  background: #fafafa; font: inherit; font-size: 16px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--main); background: #fff; box-shadow: 0 0 0 3px rgba(1,104,183,.15); }
.form [aria-invalid=true] { border-color: #c62828; background: #fff6f6; }
.form textarea { min-height: 200px; resize: vertical; }
.form .count { margin: 4px 0 0; text-align: right; font-size: 12px; color: #888; }
.form .err { margin: 6px 0 0; color: #c62828; font-size: 13px; }
.form .err:empty { display: none; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.form button { min-width: 240px; height: 60px; border: 1px solid var(--main); border-radius: 60px; background: var(--main); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.form button.sub { background: #fff; color: var(--main); }
.form button[disabled] { opacity: .5; cursor: wait; }
.form dl { border-top: 1px solid var(--line); }
.form dt { padding: 16px 0 4px; font-size: 14px; color: #555; }
.form dd { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.form .done { padding: 40px 0; text-align: center; }
.form .done strong { display: block; margin-bottom: 20px; font-size: 20px; color: var(--main); }


/* 9. スマートフォン（幅 960px 以下） ====================================== */
@media (max-width: 960px) {
  :root { --header-h-top: 60px; --header-h: 60px; }
  body { font-size: 15px; }
  .inner, .columns, .single, .card-list, .news-list, .eco-list { padding-left: 16px; padding-right: 16px; }

  .site-header .logo { padding: 0 16px; }
  .site-header .logo img { width: 140px; }
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin-left: 0;
    height: auto; overflow-y: auto; background: var(--main);
    transform: translateX(100%); transition: transform .3s;
  }
  .menu-open .global-nav { transform: none; }
  .global-nav > ul { display: block; height: auto; padding: 0; }
  .global-nav > ul > li > a { padding: 16px 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); }
  .site-header .global-nav > ul > li > a { color: #fff !important; }  /* 開いたメニューの文字は常に白 */
  .global-nav ul ul { position: static; opacity: 1; visibility: visible; background: var(--main-dark); }
  .global-nav ul ul a { padding-left: 36px; }

  .page-hero { height: 55vh; min-height: 320px; padding-bottom: 60px; }
  .page-hero h1 { font-size: 26px; }
  .section-title.section-box { width: 200px; height: 200px; margin: -100px auto 40px; padding-bottom: 20px; }
  .breadcrumb ol { padding: 10px 16px; }
  .section-title { margin: 50px 0 30px; }
  .section-title .en { font-size: 26px; }

  .columns { display: block; padding-top: 30px; }
  .columns .side { margin-top: 60px; }
  .single { padding-top: 30px; }
  .page-title { font-size: 22px; }

  .post th, .post td { display: block; width: 100%; }
  .post th { text-align: left; }
  .post iframe { height: 300px; }

  .card-list, .eco-list { grid-template-columns: 1fr; gap: 24px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .news-list a { flex-wrap: wrap; gap: 6px 12px; padding: 14px 4px; }
  .news-list .title { flex-basis: 100%; }

  .hero { height: 80vh; min-height: 460px; }
  .menu-open .site-header { background: #fff !important; }      /* メニューを開いたら白に */
  .is-scrolled .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .95); }  /* ぼかしがあるとスマホメニューが表示されないため */
  .menu-open .menu-toggle span { background: var(--text) !important; }
  .hero .caption { width: 88%; }
  .hero .caption h2 { font-size: 28px; }
  .hero .caption p { font-size: 14px; }

  .service-tiles { grid-template-columns: 1fr 1fr; }
  .service-tiles li:last-child { grid-column: span 2; }
  .service-tiles li:last-child a { aspect-ratio: 16 / 9; }
  .service-tiles h3 { font-size: 18px; }
  .service-tiles .text { left: 14px; right: 14px; bottom: 14px; }

  .cobalt-story .lead { font-size: 17px; }
  .cobalt-story .episode h2 { font-size: 18px; }
  .cobalt-story .illust.right, .cobalt-story .illust.left { float: none; display: block; max-width: 70%; margin: 0 auto 20px; }
  .cobalt-nav ul { grid-template-columns: 1fr; }
  .form button { width: 100%; min-width: 0; }
}
