/* エシカルいばらき 共通スタイル
   旧サイト（HAIK haik_seed テーマ・緑）の色と配置をそのまま引き継いでいる。 */

:root {
  --green: #4caf50;
  --green-light: #6ec071;
  --brown: #795548;
  --text: #333;
  --muted: #9e9e9e;
  --line: #ededed;
  --border: #ddd;
  --marker: #fffacc;
  --link: #337ab7;
  --container: 1045px;
  --font: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 10px; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .1em;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
@media (max-width: 767px) { body { letter-spacing: .05em; } }

img, video { max-width: 100%; height: auto; vertical-align: middle; }
iframe { max-width: 100%; border: 0; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a img { transition: opacity .2s; }
a:hover img { opacity: .85; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 6px 12px; }

/* ---------------------------------------------------------- header */

.headcopy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  font-weight: 400;
}

.site-nav { font-size: 13px; }
.site-nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: block; padding: 0; }
.site-logo img { height: 50px; width: auto; padding: 3px; }
.site-logo:hover img { opacity: 1; }

.menu-toggle {
  display: none;
  margin: 8px 0;
  padding: 5px 10px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font: 700 12px/1.8 var(--font);
  letter-spacing: .2em;
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus { background: var(--green-light); border-color: var(--green-light); }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu-wrap { margin-left: auto; }
.menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.menu > li { position: relative; }
.menu a, .menu .submenu-toggle {
  display: block;
  padding: 15px;
  color: #444;
  line-height: 20px;
  letter-spacing: .1em;
}
.menu a:hover, .menu .submenu-toggle:hover { color: var(--green); text-decoration: none; }
.menu .is-current > a, .menu .is-current > .submenu-toggle { color: var(--green); }
.menu .submenu-toggle {
  border: 0; background: none; font: inherit; cursor: pointer;
}
.menu .submenu-toggle::after {
  content: ""; display: inline-block; margin-left: 4px; vertical-align: middle;
  border-top: 4px solid; border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.menu .submenu {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
}
.menu .submenu a { padding: 10px 15px; }
.menu li.is-open > .submenu { display: block; animation: fade-in .3s; }
@media (hover: hover) and (min-width: 768px) {
  .menu li:hover > .submenu { display: block; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .site-nav .menu-wrap { flex-basis: calc(100% + 30px); margin: 0 -15px; display: none; }
  .menu a, .menu .submenu-toggle { padding-left: 15px; padding-right: 15px; }
  .site-nav.is-open .menu-wrap { display: block; }
  .menu { display: block; border-top: 1px solid var(--line); }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li:last-child { border-bottom: 0; }
  .menu .submenu { position: static; border: 0; box-shadow: none; }
  .menu .submenu-toggle { width: 100%; text-align: left; }
  .menu li.is-open > .submenu-toggle { color: var(--green); }
}

/* ---------------------------------------------------------- hero / title band */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hero-h, 150px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  color: #494949;
  text-align: center;
}
/* 本番（HAIK）と同じく、動画は原寸のまま右下を基準に置き、はみ出た分を切る */
.hero-video {
  position: absolute; right: 0; bottom: 0;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto; max-width: none;
}
/* スマホ・タブレットでは、本番のスマホ表示と同じ位置に地球儀が来るように置く
   （本番のスクリーンショットに合わせて決めた値） */
@media (hover: none) and (pointer: coarse) {
  .hero-video {
    top: auto; right: auto; bottom: -10%; left: 50%;
    width: auto; height: 160%; min-width: 0; min-height: 0;
    transform: translateX(-53%);
  }
}
@media (max-width: 767px) {
  .hero-video-bg .hero-content { padding-top: 29px; padding-bottom: 29px; }
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding: 15px;
}
.hero-content p { margin: 0; }
@media (max-width: 767px) {
  .hero, .hero-video-bg { min-height: var(--hero-h-sp, var(--hero-h, 150px)); }
}

.title-band {
  padding: 30px 0;
  background: #eee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.title-band .page-title {
  margin: 15px 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.5;
  color: #494949;
}
@media (max-width: 767px) { .title-band .page-title { font-size: 22px; } }

/* ---------------------------------------------------------- content */

.content-area { margin-top: 30px; margin-bottom: 30px; }
.with-sidebar { display: grid; gap: 30px; }
@media (min-width: 992px) { .with-sidebar { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); } }

.content { word-wrap: break-word; overflow-wrap: anywhere; }
.content p { margin: 0 0 30px; font-size: 15px; }
@media (max-width: 767px) { .content p { margin-bottom: 25px; } }

.content h2, .content h3, .content h4, .content h5 { font-weight: 400; line-height: 1.7; }
.content h2 {
  margin: 30px 0 25px;
  padding: 5px 15px;
  font-size: 25px;
  color: var(--green);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
}
.content h3 {
  margin: 20px 0 15px;
  font-size: 21px;
  color: var(--text);
  border-bottom: 2px solid var(--line);
}
.content h4 { margin: 15px 0 10px; font-size: 18px; color: var(--green); }
.content h5 { margin: 10px 0; font-size: 15px; }
.content > :first-child { margin-top: 0; }
@media (max-width: 767px) {
  .content h2 { font-size: 22px; }
  .content h3 { font-size: 20px; }
}

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

mark { background: var(--marker); color: inherit; padding: 0; }

.gap { height: 0; }
.gap-line { height: 1.8em; }

.content ul, .content ol { margin: 0 0 20px; padding-left: 25px; }
.content li { margin: 0; }

hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

.content .center img { margin-left: auto; margin-right: auto; }

/* 12カラムの段組み（旧 #cols） */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 30px; }
.cols > .col { grid-column: auto / span 12; min-width: 0; }
@media (min-width: 768px) {
  .cols > .col { grid-column: var(--start, auto) / span var(--span, 12); }
}

/* カード（旧 #thumbnails） */
.cards { display: grid; gap: 30px; margin-bottom: 20px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.card {
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.card img { display: block; margin: 0 auto; }
.card p { margin-bottom: 15px; }
.card h4 { margin-top: 5px; }

/* 枠（旧 #bs_box / #panel） */
.box, .panel {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.box { padding: 15px; }
.box > :last-child, .panel-body > :last-child { margin-bottom: 0; }
.box-success, .panel-success { border-color: #d6e9c6; }
.box-info, .panel-info { border-color: #bce8f1; }
.box-warning, .panel-warning { border-color: #faebcc; }
.box-danger, .panel-danger { border-color: #ebccd1; }
.box-well { padding: 19px; background: #f5f5f5; border-color: #e3e3e3; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); }
.panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-radius: 3px 3px 0 0; }
.panel-heading p { margin: 0; }
.panel-success > .panel-heading { background: #dff0d8; border-color: #d6e9c6; color: #3c763d; }
.panel-warning > .panel-heading { background: #fcf8e3; border-color: #faebcc; color: #8a6d3b; }
.panel-info > .panel-heading { background: #d9edf7; border-color: #bce8f1; color: #31708f; }
.panel-default > .panel-heading { background: #f5f5f5; border-color: var(--border); }
.panel-body { padding: 15px; }

/* 帯（旧 #section） */
/* 本番と同じく画面幅いっぱいに広げる */
.band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 20px;
  padding: 15px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.band p { margin-bottom: 0; }

/* 表形式の定義リスト（旧 : 項目|内容） */
.dl-table { margin: 0 0 20px; }
.dl-table dt { font-weight: 700; padding-top: 10px; }
.dl-table dd { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .dl-table { display: grid; grid-template-columns: 220px 1fr; column-gap: 20px; }
  .dl-table dt { text-align: right; }
  .dl-table dd { padding-top: 10px; }
  .dl-table dt { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
}

/* 埋め込み（地図・動画） */
.embed { margin-bottom: 20px; }
.embed iframe { width: 100%; }
.embed iframe[src*="youtube"] { height: auto; aspect-ratio: 16 / 9; }
.embed iframe[style*="aspect-ratio"] { height: auto; }

/* 横に流れる写真（旧 #bs_carousel） */
.carousel { position: relative; margin-bottom: 20px; }
.content .carousel-track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; text-align: center; }
.carousel-slide img { width: 100%; }
/* 左右の切り替えは本番（Bootstrap）と同じく、端の半透明の帯と矢印 */
.carousel-prev, .carousel-next {
  position: absolute; top: 0; bottom: 0; width: 15%;
  border: 0; padding: 0; cursor: pointer;
  color: #fff; font-size: 50px; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  opacity: .5; background: transparent;
}
.carousel-prev { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, .0001)); }
.carousel-next { right: 0; background: linear-gradient(to right, rgba(0, 0, 0, .0001), rgba(0, 0, 0, .5)); }
.carousel-prev:hover, .carousel-next:hover, .carousel-prev:focus, .carousel-next:focus { opacity: .9; outline: 0; }

/* PC だけ・スマホだけ */
@media (max-width: 767px) { .pc-only { display: none !important; } }
@media (min-width: 768px) { .sp-only { display: none !important; } }

/* ボタン */
.btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn-default { color: #333; background: #fff; border-color: #ccc; }
.btn-default:hover { background: #e6e6e6; }
.btn-success { color: #fff; background: #5cb85c; border-color: #4cae4c; }
.btn-success:hover { background: #449d44; }
.btn-info { color: #fff; background: #5bc0de; border-color: #46b8da; }
.btn-info:hover { background: #31b0d5; }
.btn-warning { color: #fff; background: #f0ad4e; border-color: #eea236; }
.btn-warning:hover { background: #ec971f; }
.btn-danger { color: #fff; background: #d9534f; border-color: #d43f3a; }
.btn-danger:hover { background: #c9302c; }
.btn-primary { color: #fff; background: var(--link); border-color: #2e6da4; }
.btn-large { padding: 10px 24px; font-size: 18px; border-radius: 6px; }
.btn-small { padding: 5px 10px; font-size: 12px; border-radius: 3px; }
.btn-gradient { background-image: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, 0)); }
.btn-ghost { background: transparent; border-width: 2px; }
.btn-default.btn-ghost { color: #444; border-color: #444; }
.btn-default.btn-ghost:hover { color: #fff; background: #444; }
.btn-success.btn-ghost { color: #5cb85c; }
.btn-info.btn-ghost { color: #46b8da; }
.btn-info.btn-ghost:hover, .btn-success.btn-ghost:hover { color: #fff; }

/* ---------------------------------------------------------- blog */

.content .post-list { list-style: none; margin: 0 0 20px; padding: 0; }
.post-list li { margin-bottom: 20px; border-bottom: 1px solid #eee; }
/* 本番と同じく、サムネイルを左に置き、タイトルと抜粋はその右から下へ回り込む */
.post-list a { display: flow-root; padding-bottom: 20px; color: var(--text); }
.post-list a:hover { text-decoration: none; }
.post-list a:hover .post-title { color: var(--green); }
.post-thumb {
  position: relative; float: left; width: 120px; height: 120px; margin: 0 15px 5px 0;
  background: #eee center / cover no-repeat;
}
.post-thumb.is-logo { background-color: #fff; background-size: contain; }
.post-date-tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2px 0;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.content .post-title { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.7; color: var(--text); border: 0; }
.content .post-excerpt { margin: 14px 0 0; font-size: 14px; }
@media (max-width: 767px) {
  .content .post-title { font-size: 18px; }
  .content .post-excerpt { font-size: 13px; }
}
.more-link { text-align: right; }

.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 15px; }
.post-category { padding: 1px 8px; border-radius: 3px; background: #999; color: #fff; font-size: 11px; }
.post-header h1 {
  margin: 0 0 25px;
  padding: 5px 15px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--green);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
}
.post-nav { display: flex; justify-content: space-between; gap: 15px; margin: 40px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.post-nav a { max-width: 48%; }
.post-nav .next { margin-left: auto; text-align: right; }

.sidebar { margin-top: 0; }
.sidebar h2 {
  margin: 15px 0 0;
  padding: 7px 15px;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  border-bottom: 2px solid var(--line);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar li a { display: block; padding: 8px 15px; color: #444; font-size: 13px; line-height: 1.6; }
.sidebar li a:hover { color: var(--green); text-decoration: none; }

/* ---------------------------------------------------------- closed notice */

.closed-notice {
  max-width: 720px;
  margin: 40px auto;
  padding: 2em 3em;
  background: #fff;
  border: 1px solid #ccc;
}
.closed-notice h1 { margin: 0 0 16px; font-size: 20px; }
body.is-closed { background: #f5f5f5; }

/* ---------------------------------------------------------- footer */

.site-footer { padding: 30px 0; }
.site-footer .container { border-top: 1px solid var(--line); padding-top: 15px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); }
.copyright {
  padding: 15px;
  background: rgba(76, 175, 80, .8);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .01em;
  text-align: center;
}
.copyright p { margin: 0; }
.copyright a { color: #fff; }

@media print {
  .site-nav, .site-footer, .hero video { display: none; }
}
