/* ==========================================================
   SUN合同会社 ホームページの見た目（全ページ共通）
   ----------------------------------------------------------
   色を変えたいときは「① 色とフォント」だけを書きかえると、
   すべてのページの色がまとめて変わります。
   ロゴの色：オレンジ #F39A1E ／ 黄 #FFD43B ／ 白
   ========================================================== */

/* ① 色とフォント ------------------------------------------ */
:root {
  --sun-orange: #F39A1E;
  --sun-orange-dark: #D9800A;
  --sun-yellow: #FFD43B;
  --ink: #2B2620;
  --ink-sub: #6B6158;
  --navy: #1F2F4A;
  --bg: #FFFCF6;
  --card: #FFFFFF;
  --line: #EEE2CF;
  --cream: #FFF4DF;
  --coral: #FF7A59;
  --night: #121A3E;
  --violet: #4B3A9A;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --width: 1080px;
}

/* ② ページ全体 -------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.9; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; }
.inner { max-width: var(--width); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.button { display: inline-block; background: var(--sun-orange); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 28px; border-radius: 999px; transition: background .15s; }
.button:hover { background: var(--sun-orange-dark); }
.tag { display: inline-block; background: var(--cream); color: var(--sun-orange-dark); border: 1px solid var(--line); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 10px; line-height: 1.9; }

/* ③ ヘッダーとメニュー ------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.gnav { margin-left: auto; height: 100%; }
.gnav > ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; align-items: center; gap: 4px; }
.gnav-item { height: 100%; display: flex; align-items: center; }
.gnav-item > a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; border-bottom: 3px solid transparent; }
.gnav-item > a:hover, .gnav-item > a[aria-current] { color: var(--sun-orange-dark); border-bottom-color: var(--sun-yellow); }
.gnav-contact a { margin-left: 8px; background: var(--navy); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
/* 大きなメニュー（マウスをのせると開く） */
.mega { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(43, 38, 32, .08); opacity: 0; visibility: hidden; transition: opacity .15s; }
.has-sub:hover .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; }
.mega-inner { max-width: var(--width); margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.mega-title .en { margin: 0; font-size: 13px; letter-spacing: .15em; color: var(--sun-orange); font-weight: 700; }
.mega-title a { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.mega ul a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mega ul a:hover { color: var(--sun-orange-dark); }
.menu-btn { display: none; }

/* ④ トップのスライド -------------------------------------- */
.hero { position: relative; }
.slides { position: relative; min-height: 460px; overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 48px 24px 72px; opacity: 0; transition: opacity .8s; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide-body { max-width: 560px; }
.slide-label { margin: 0; font-size: 13px; letter-spacing: .3em; font-weight: 700; }
.slide h2 { font-size: 42px; margin: 8px 0 16px; }
.slide p { margin: 0 0 24px; }
.slide-logo { width: 240px; }
.theme-sun { background: radial-gradient(circle at 70% 40%, #FFF0C8 0%, var(--bg) 65%); }
.theme-sun .slide-label { color: var(--sun-orange); }
.theme-coral { background: linear-gradient(120deg, #FFE4DA, #FFF6E0); }
.theme-coral .slide-label { color: var(--coral); }
.theme-coral .button { background: var(--coral); }
.theme-night { background: radial-gradient(circle at 80% 25%, #F6E7B0 0 50px, transparent 52px), linear-gradient(180deg, #060A1E, #1A2350); color: #fff; }
.theme-night .slide-label { color: #E8C26A; }
.theme-night .button { background: #E8C26A; color: var(--night); }
.dots { position: absolute; z-index: 2; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.dots button { width: 36px; height: 6px; border: 0; border-radius: 3px; background: rgba(43, 38, 32, .2); cursor: pointer; padding: 0; }
.dots button.is-active { background: var(--sun-orange); }

/* ⑤ トップの各セクション ---------------------------------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head .en { margin: 0; width: 100%; font-size: 13px; letter-spacing: .2em; color: var(--sun-orange); font-weight: 700; }
.sec-head h2 { margin: 0; font-size: 28px; }
.sec-head .more { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--sun-orange-dark); text-decoration: none; }
.band { background: var(--cream); }
.split { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.split-img { width: 260px; }
.link-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.link-list a { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; text-decoration: none; color: var(--ink); font-weight: 600; }
.link-list a::after { content: " →"; color: var(--sun-orange); }
.cta { background: var(--navy); color: #fff; text-align: center; }
.cta h2 { margin: 0 0 8px; }

/* ⑥ ニュース一覧 ------------------------------------------ */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list a { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-list a:hover .t { color: var(--sun-orange-dark); }
.news-list time { color: var(--ink-sub); font-size: 14px; min-width: 120px; }
.empty { color: var(--ink-sub); }

/* ⑦ カード ------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border-radius: 18px; padding: 26px; color: #fff; text-decoration: none; min-height: 220px; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card .kind { margin: 0; font-size: 12px; letter-spacing: .1em; opacity: .85; }
.card h3 { margin: 4px 0 8px; font-size: 22px; }
.card p { margin: 0 0 16px; font-size: 14px; }
.card .status { margin-top: auto; font-size: 13px; font-weight: 700; }
.card.theme-coral { background: linear-gradient(150deg, var(--coral), #FFA27F); }
.card.theme-night { background: linear-gradient(150deg, #0E1430, #24306B); }
.card.theme-blue { background: linear-gradient(150deg, #2F7DF6, #5AA0FF); }
.theme-blue { background: linear-gradient(120deg, #DCEBFF, #FFF8E0); }
.theme-blue .slide-label { color: #2F7DF6; }
.theme-blue .button { background: #2F7DF6; }
.brand-logo { display: flex; align-items: center; gap: 20px; margin: 0 0 8px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; max-width: 560px; }
.brand-logo img { flex-shrink: 0; width: 80px; height: 80px; }
.brand-name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 30px; color: #1D2340; line-height: 1.3; }
.brand-name span { color: #2F7BF6; }
.brand-sub { margin: 4px 0 0; font-weight: 700; color: #4A5568; letter-spacing: .12em; font-size: 15px; }
@media (max-width: 720px) { .brand-logo { padding: 18px 16px; gap: 14px; } .brand-name { font-size: 19px; white-space: nowrap; } .brand-sub { font-size: 12px; } .brand-logo img { width: 56px; height: 56px; } }
.card.theme-hotaru { background: radial-gradient(circle at 82% 22%, #F6F9C4 0 3px, rgba(233,242,122,.35) 6px, transparent 30px), linear-gradient(150deg, #141A28, #2A3550); }
.card.theme-lumistice { background: radial-gradient(circle at 50% 120%, #F6B65A 0 22%, transparent 50%), linear-gradient(180deg, #0A0F1F, #3B2E5A); }
.wide-card.mt { margin-top: 16px; }
.card.theme-violet { background: linear-gradient(150deg, #3A2E6E, #6C4BD1); }
.wide-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.wide-card:hover { box-shadow: 0 8px 24px rgba(243, 154, 30, .18); }
.wide-card h3 { margin: 10px 0 6px; font-size: 24px; }
.wide-card p { margin: 0 0 8px; color: var(--ink-sub); }
.wide-card .more { color: var(--sun-orange-dark); font-weight: 700; font-size: 14px; }

/* ⑧ ふつうのページ ---------------------------------------- */
.page-head { background: linear-gradient(180deg, #FFF4DF, var(--bg)); padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--ink-sub); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-sub); }
.page-en { margin: 24px 0 0; font-size: 13px; letter-spacing: .2em; color: var(--sun-orange); font-weight: 700; }
.page-head h1 { margin: 4px 0 0; font-size: 34px; }
.page-lead { margin: 8px 0 0; color: var(--ink-sub); }
.page-body { padding-top: 48px; padding-bottom: 72px; }
.page-body h2 { font-size: 24px; margin: 40px 0 12px; padding-left: 14px; border-left: 6px solid var(--sun-orange); }
.page-body h2:first-child { margin-top: 0; }
.article { max-width: 800px; }
.back { margin-top: 48px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; }
.tile b { color: var(--sun-orange); }
.tile small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--ink-sub); }
.tile:hover { border-color: var(--sun-orange); }
.table, .page-body table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.table th, .table td, .page-body th, .page-body td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table th, .page-body th { width: 26%; background: var(--cream); }
.logo-feature { text-align: center; margin-bottom: 32px; }
.logo-feature img { width: 220px; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 28px; margin-bottom: 24px; }
.contact-box p { margin: 6px 0; display: flex; gap: 16px; }
.contact-box span { min-width: 4em; font-weight: 700; }
.sitemap, .sitemap ul { list-style: none; }
.sitemap { padding: 0; }
.sitemap > li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.sitemap ul { padding-left: 20px; font-weight: 400; }

/* ⑨ フッター ---------------------------------------------- */
.site-footer { background: var(--navy); color: #E7EAF2; font-size: 14px; }
.site-footer a { color: #E7EAF2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand .name { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin: 8px 0; }
.footer-brand .name span { font-size: 13px; opacity: .7; }
.footer-brand .addr { opacity: .8; font-size: 13px; }
.footer-brand .addr a { text-decoration: underline; text-underline-offset: 2px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer-nav p { margin: 0 0 6px; font-weight: 700; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; opacity: .85; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; padding-bottom: 24px; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom p { margin: 0; opacity: .7; }

/* ⑩ スマホ用（画面のはばが 900px 以下のとき） -------------- */
@media (max-width: 900px) {
  .inner, .header-inner { padding-left: 16px; padding-right: 16px; }
  .header-inner { height: 60px; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 56px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0 10px; }
  .menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu-btn b { font-size: 9px; font-weight: 700; white-space: nowrap; text-align: center; }
  .gnav { display: none; position: absolute; top: 60px; left: 0; right: 0; height: auto; max-height: calc(100vh - 60px); overflow: auto; background: #fff; border-bottom: 1px solid var(--line); }
  .gnav.is-open { display: block; }
  .gnav > ul { flex-direction: column; align-items: stretch; height: auto; padding: 8px 16px 20px; gap: 0; }
  .gnav-item { display: block; height: auto; border-bottom: 1px solid var(--line); }
  .gnav-item > a { padding: 14px 4px; border-bottom: 0; }
  .mega { position: static; opacity: 1; visibility: visible; border: 0; box-shadow: none; }
  .mega-inner { display: block; padding: 0 0 10px 12px; }
  .mega-title { display: none; }
  .mega ul { display: block; }
  .mega ul a { border: 0; padding: 6px 0; font-size: 14px; color: var(--ink-sub); }
  .gnav-contact { padding-top: 16px; }
  .gnav-contact a { display: block; text-align: center; margin: 0; }
  .slides { min-height: 520px; }
  .slide { flex-direction: column-reverse; gap: 16px; text-align: center; padding: 32px 16px 64px; }
  .slide h2 { font-size: 28px; }
  .slide-logo { width: 120px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .sec-head h2 { font-size: 24px; }
  .split { grid-template-columns: 1fr; }
  .split-img { display: none; }
  .page-head h1 { font-size: 26px; }
  .table th, .page-body th { width: 34%; }
  .table th, .table td, .page-body th, .page-body td { padding: 12px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ⑪ 英語のサブサイト（/en/）と言語の切りかえ　2026-11-07 ---------- */
.gnav-lang a { display: block; padding: 6px 12px; margin-left: 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-sub); text-decoration: none; font-size: 13px; font-weight: 700; }
.gnav-lang a:hover { color: var(--sun-orange-dark); border-color: var(--sun-orange); }
.en-note { margin-top: 48px; font-size: 13px; color: var(--ink-sub); }
.small-muted { font-size: 13px; color: var(--ink-sub); }
@media (max-width: 900px) { .gnav-lang { padding-top: 12px; } .gnav-lang a { display: inline-block; margin: 0; } }
