@charset "UTF-8";
/* ==========================================================================
   ノーティス公式サイト窓口（media.notice-myself.com トップ）
   元：demo.picnic.ne.jp/_notice/info/assets/css/style.css
   追加：最新記事一覧（.news）／WordPress共存用の調整（末尾）
   ========================================================================== */
:root {
  --ink: #14201b;
  --ink-2: #183b34;
  --muted: #5e6b65;
  --brand: #00604b;
  --brand-deep: #063d35;
  --accent: #e4f06b;
  --accent-2: #e4ee73;
  --mint: #eaf3ee;
  --line: #d5e1da;
  --dark: #0f1f19;
  --dark-line: #264236;
  --sage: #8fa89b;
  --footer-ink: #dce8e1;
  --line-green: #06c755;
  --page-bg: #e3ede7;
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-num: "Poppins", "Hiragino Sans", sans-serif;
  --f-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --col: 430px;
  --gutter: 20px;
  --aside: 297px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, p, dd { word-break: auto-phrase; line-break: strict; }
.u-em { color: var(--brand); }
.text-muted { color: var(--muted); }

/* ---------- Page layout (PC: 左メニュー / 本体 / 右サイト一覧) ---------- */
/* PC背景：左右の下の方に、うっすら道路写真 */
body::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 55vh;
  background: url(../img/road.jpg) center 60% / cover no-repeat;
  opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 65%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 65%);
  pointer-events: none;
}
.layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(var(--col), 100%) minmax(0, 1fr);
  min-height: 100vh;
}
.main {
  grid-column: 2;
  position: relative;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 50, 35, .18), 0 0 0 1px rgba(0, 60, 40, .06);
  overflow: hidden;
}
.aside { display: none; }
@media (min-width: 1024px) {
  .aside {
    display: block;
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
    padding: 32px 40px;
    scrollbar-width: none;
  }
  .aside--left { grid-column: 1; grid-row: 1; justify-self: end; width: var(--aside); }
  .aside--right { grid-column: 3; grid-row: 1; justify-self: start; width: var(--aside); }
}

/* ---------- Common parts ---------- */
.section { position: relative; padding: 64px var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.section--mint { background: var(--mint); }
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--brand);
  line-height: 1;
}
/* 番号：大きめの斜体数字 */
.eyebrow__num {
  font-family: var(--f-num);
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: 0;
}
.eyebrow__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.h2 { font-family: var(--f-serif); font-weight: 700; font-size: 24px; line-height: 1.5; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.85; }

/* ==========================================================================
   Left aside
   ========================================================================== */
.side-logo {
  display: block;
  width: 150px;
  height: 36px;
  background: var(--brand);
  -webkit-mask: url(../img/logo.png) left center / contain no-repeat;
  mask: url(../img/logo.png) left center / contain no-repeat;
}
.side-company { margin-top: 5px; padding-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.side-desc { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.side-menu-label { margin-top: 5px; padding-top: 19px; color: var(--brand); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .2em; }
.side-menu { margin: 5px 0 16px; padding: 7px 0; }
.side-menu a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  transition: color .2s;
}
.side-menu a::after { content: "→"; color: var(--brand); transition: transform .2s; }
.side-menu a:hover { color: var(--brand); }
.side-menu a:hover::after { transform: translateX(3px); }
.side-privacy { display: block; margin-top: 5px; padding-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.77; }
.side-privacy:hover { text-decoration: underline; }

/* ==========================================================================
   Right aside
   ========================================================================== */
.related-title { font-size: 15px; line-height: 1.85; margin-bottom: 12px; }
.related-list { display: grid; gap: 8px; }
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.related-card:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 60, 40, .1); }
/* 通常カード：上にバナーの帯、下に名前 */
.related-card:not(.related-card--strong) { flex-wrap: wrap; gap: 8px 12px; padding: 6px 6px 10px; }
.related-card__thumb { flex: none; width: 100%; height: 40px; border-radius: 8px; overflow: hidden; background: var(--mint); }
.related-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .3s; }
.related-card:hover .related-card__thumb img { transform: scale(1.04); }
.related-card:not(.related-card--strong) .related-card__text { padding-left: 8px; }
.related-card:not(.related-card--strong) .related-card__arrow { padding-right: 8px; }
.related-card:not(.related-card--strong) .related-card__en { display: none; }
.related-card__text { position: relative; flex: 1; min-width: 0; }
/* 法人・個人：右側に写真を敷き、緑へフェード */
.related-card--strong { position: relative; overflow: hidden; min-height: 84px; }
.related-card--strong .related-card__thumb {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  height: 100%;
  border-radius: 0;
  background: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 75%);
  opacity: .6;
}
.related-card--strong .related-card__thumb img { object-position: 65% 25%; }
.related-card--strong .related-card__arrow { position: relative; }
.related-card__en { display: block; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.76; letter-spacing: .11em; }
.related-card__name { display: block; font-size: 14px; font-weight: 700; line-height: 1.7; }
.related-card__desc { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; }
.related-card__arrow { color: var(--brand); font-size: 14px; font-weight: 700; }
.related-card--strong { background: var(--brand); border-color: var(--brand); color: #fff; padding: 14px 16px; }
.related-card--strong .related-card__en,
.related-card--strong .related-card__desc { color: #cfe3d9; }
.related-card--strong .related-card__arrow { color: var(--accent); }
/* グループ見出し：教育プログラム / 製品・情報・ストア */
.related-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.related-group::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--sage); }
.related-group--main { margin-top: 0; padding-top: 0; border-top: 0; color: var(--brand); }
.related-group--main::before { background: var(--brand); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px var(--gutter) 0;
}
.header__logo { display: grid; gap: 2px; width: 116px; }
.header__logo img { width: 116px; height: 28px; }
.header__logo small { color: #fff; opacity: .85; font-size: 9px; line-height: 1.85; letter-spacing: .08em; }
.header__line {
  padding: 6px 14px;
  background: var(--line-green);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 0 var(--gutter) 40px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(228, 240, 107, .16), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 70%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 80px rgba(255, 255, 255, .02);
  pointer-events: none;
}
/* 写真は下端を緑になじませ、上端はロゴが読めるよう少し暗くする */
.hero__photo {
  position: relative;
  height: 380px;
  margin: 0 calc(var(--gutter) * -1) -96px;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 61, 53, .55) 0%, rgba(6, 61, 53, 0) 28%),
    linear-gradient(180deg, rgba(0, 96, 75, 0) 40%, rgba(0, 96, 75, .5) 75%, rgba(0, 96, 75, 0) 100%);
}
.hero__eyebrow, .hero__title, .hero__rule, .hero__lead { position: relative; }
.hero__eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; line-height: 1; }
.hero__title { margin-top: 18px; font-family: var(--f-serif); font-size: 38px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; text-shadow: 0 2px 16px rgba(6, 61, 53, .45); }
.hero__rule { display: block; width: 64px; height: 3px; margin: 22px 0 20px; background: var(--accent); }
.hero__lead { font-size: 13px; line-height: 1.95; opacity: .92; }
.quick { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 36px; }
.quick a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  transition: background-color .2s;
}
.quick a::after { content: "↓"; color: var(--accent); }
.quick a:hover { background: rgba(255, 255, 255, .08); }

/* ==========================================================================
   NEWS 最新記事（ファーストビュー直下）※追加
   ========================================================================== */
.news { padding-top: 40px; padding-bottom: 48px; }
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.news__title { font-family: var(--f-serif); font-weight: 700; font-size: 20px; line-height: 1.5; }
.news__list { margin-top: 8px; border-top: 1px solid var(--line); }
.news__item a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.news__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mint);
}
.news__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news__thumb--noimg { display: grid; place-items: center; }
.news__thumb--noimg img { width: 60%; height: auto; opacity: .35; }
.news__item a:hover .news__thumb img { transform: scale(1.05); }
.news__body { display: grid; gap: 4px; min-width: 0; }
.news__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  transition: color .2s;
}
.news__item a:hover .news__name { color: var(--brand); }
.news__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.news__empty { padding: 20px 0; color: var(--muted); font-size: 13px; }
.news .btn-outline { margin-top: 20px; }

/* ==========================================================================
   01 SELECT（法人 / 個人）
   ========================================================================== */
.select__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.door {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.6;
  border-radius: 16px;
  overflow: hidden;
  background: var(--brand-deep);
  color: #fff;
  isolation: isolate;
}
.door__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transition: transform .5s; z-index: -2; }
.door--personal .door__img { object-position: 65% 25%; }
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 61, 53, 0) 30%, rgba(6, 61, 53, .92) 72%);
  z-index: -1;
}
.door--personal::before { background: linear-gradient(180deg, rgba(20, 32, 27, 0) 30%, rgba(20, 32, 27, .9) 72%); }
.door:hover .door__img { transform: scale(1.04); }
.door__body { position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: 14px; }
.door__tag {
  justify-self: start;
  padding: 3px 10px;
  background: var(--accent);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.door--personal .door__tag { background: #fff; }
.door__name { font-family: var(--f-serif); font-size: 17px; font-weight: 700; line-height: 1.45; }
.door__desc { font-size: 10px; line-height: 1.7; opacity: .85; }
.door__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   バナーカード（製品 / 学ぶ・購入）
   ========================================================================== */
.cards { display: grid; gap: 16px; margin-top: 12px; }
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 60, 40, .1); }
.card__img { width: 100%; aspect-ratio: 1000 / 350; object-fit: cover; }
.card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; }
.card__en { display: block; color: var(--brand); font-size: 10px; font-weight: 700; line-height: 1.76; letter-spacing: .12em; }
.card__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; }
.card__desc { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; }
.card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s, color .2s;
}
.card:hover .card__arrow { background: var(--brand); color: #fff; }

/* ==========================================================================
   04 LINE
   ========================================================================== */
.line-card {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid #bfe6cb;
  border-radius: 16px;
}
.line-card__title { font-family: var(--f-serif); font-weight: 700; font-size: 19px; line-height: 1.6; }
.line-card__text { color: var(--muted); font-size: 13px; line-height: 1.8; padding-bottom: 9px; }
.line-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--line-green);
  border-radius: 12px;
  color: #fff;
  transition: opacity .2s;
}
.line-btn:hover { opacity: .9; }
.line-btn__badge { padding: 11px 7px; background: #fff; border-radius: 8px; color: var(--line-green); font-size: 12px; font-weight: 900; line-height: 1; }
.line-btn__text { flex: 1; display: grid; line-height: 1.85; }
.line-btn__text small { font-size: 10px; opacity: .92; }
.line-btn__text strong { font-size: 14px; }
.line-btn__arrow { font-size: 14px; font-weight: 700; }

/* ==========================================================================
   05 COMPANY
   ========================================================================== */
.company__list { margin-top: 12px; border-top: 1px solid var(--line); }
.company__list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.company__list dt { color: var(--brand); font-size: 12px; font-weight: 700; line-height: 1.85; }
.company__list dd { min-width: 0; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 22px 0 24px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s, color .2s;
}
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 44px var(--gutter) 40px; background: var(--dark); color: var(--footer-ink); display: grid; gap: 10px; }
.footer__logo { width: 116px; height: 28px; }
.footer__tagline { font-size: 13px; line-height: 1.85; }
.footer__copy { padding-top: 18px; border-top: 1px solid var(--dark-line); color: var(--sage); font-size: 11px; line-height: 1.85; }
.footer__copy a { text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   WordPress共存用の調整 ※追加
   ========================================================================== */
/* ログイン中の管理バー分、PCの左右カラムを下げる */
.admin-bar .aside { top: 32px; max-height: calc(100vh - 32px); }
@media (max-width: 782px) { .admin-bar .aside { top: 46px; } }
