@charset "UTF-8";
/* ==========================================================================
   マイクロアルジェコーポレーション株式会社 トップページ（会社概要）
   css/style.css
   既存の店舗申込ページ（shops/index.html）と青系#2c6496で統一
   ========================================================================== */

:root {
  --color-primary: #023b38;
  --color-primary-dark: #011f1d;
  --color-accent: #78bea0;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-soft: #f2f7f6;
  --color-border: #dde6e5;
  --max-width: 1080px;
  --radius: 6px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.75;
}

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

/* ---------------- Header ---------------- */
#siteHeader {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#siteHeader .headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

#siteHeader .logoArea a {
  display: flex;
  align-items: center;
  gap: 10px;
}

#siteHeader .logoArea img {
  height: 48px;
  width: auto;
}

/* Navigation */
#globalNav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

#globalNav a {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: var(--radius);
}

#globalNav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

#navToggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

#navToggle span,
#navToggle span::before,
#navToggle span::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: all var(--transition);
}

#navToggle span::before {
  position: absolute;
  top: -8px;
}

#navToggle span::after {
  position: absolute;
  top: 8px;
}

/* ---------------- Hero ---------------- */
#hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

#hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #bcdcef;
  font-weight: bold;
  margin-bottom: 12px;
}

#hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 16px;
  font-weight: bold;
  letter-spacing: 0.03em;
}

#hero p {
  font-size: 16px;
  color: #e3edf5;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------------- Section common ---------------- */
.section {
  padding: 64px 0;
}

.section.alt {
  background-color: var(--color-bg-soft);
}

.sectionHead {
  text-align: center;
  margin-bottom: 40px;
}

.sectionHead .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 8px;
}

.sectionHead h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
  color: var(--color-text);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.sectionHead h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ---------------- 会社概要テーブル ---------------- */
.companyTable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.companyTable th,
.companyTable td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.companyTable th {
  width: 220px;
  background-color: var(--color-bg-soft);
  color: var(--color-primary-dark);
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.companyTable td {
  font-size: 15px;
}

.companyTable tr:last-child th,
.companyTable tr:last-child td {
  border-bottom: none;
}

/* ---------------- 事業内容 カード ---------------- */
.businessGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.businessCard {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.businessCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(2, 59, 56, 0.15);
}

.businessCard .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
}

.businessCard .icon svg {
  width: 26px;
  height: 26px;
}

.businessCard h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--color-primary-dark);
}

.businessCard p {
  font-size: 13.5px;
  color: var(--color-text-light);
  margin: 0;
}

/* ---------------- 経営理念 ---------------- */
.philosophyBox {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.philosophyBox h3 {
  font-size: 20px;
  margin: 0 0 16px;
}

.philosophyBox p {
  font-size: 14.5px;
  color: #e3edf5;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------------- アクセス ---------------- */
.accessWrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.accessInfo dt {
  font-weight: bold;
  color: var(--color-primary-dark);
  font-size: 14px;
  margin-top: 16px;
}

.accessInfo dt:first-child {
  margin-top: 0;
}

.accessInfo dd {
  margin: 4px 0 0;
  font-size: 14.5px;
}

.mapFrame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mapFrame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------- CTA ---------------- */
.ctaBox {
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 30px;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--color-primary-dark);
  opacity: 1;
  transform: translateY(-2px);
  color: #fff;
}

/* ---------------- Footer ---------------- */
#siteFooter {
  background-color: var(--color-primary-dark);
  color: #cfe0ee;
  padding: 40px 0 24px;
}

#siteFooter .footerNav {
  text-align: center;
  margin-bottom: 16px;
}

#siteFooter .footerNav a {
  color: #cfe0ee;
  font-size: 13px;
  text-decoration: underline;
  margin: 0 12px;
}

#siteFooter .copyright {
  text-align: center;
  font-size: 12px;
  color: #9fb8cc;
  margin: 0;
}

/* ---------------- Back to top ---------------- */
#pageTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

#pageTop.show {
  opacity: 1;
  visibility: visible;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .businessGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accessWrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 48px 0;
  }

  #hero {
    padding: 56px 0;
  }

  .businessGrid {
    grid-template-columns: 1fr;
  }

  .companyTable th {
    width: 120px;
    font-size: 13px;
  }

  .companyTable th,
  .companyTable td {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  #navToggle {
    display: block;
  }

  #globalNav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  #globalNav.open {
    max-height: 320px;
  }

  #globalNav ul {
    flex-direction: column;
  }

  #globalNav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .philosophyBox {
    padding: 28px 20px;
  }
}

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

/* ---------------- 規約・ポリシー等ページ共通 ---------------- */
.legalWrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legalTitle {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 6px 6px 0 0;
  margin: 0;
}

.legalTitle h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.legalBox {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.legalUpdated {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin: 0 0 20px;
}

.legalHeading {
  border-left: 5px solid var(--color-primary);
  background: var(--color-bg-soft);
  padding: 8px 14px;
  margin: 28px 0 10px;
  border-radius: 0 4px 4px 0;
}

.legalHeading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primary-dark);
  line-height: 1.5;
}

.legalSection {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--color-text);
}

.legalSection p {
  margin: 6px 0;
}

.legalSection ul {
  padding-left: 1.5em;
  margin: 6px 0;
}

.legalSection ul li {
  margin-bottom: 4px;
}

.legalSection table {
  width: 100%;
  margin: 8px 0;
  font-size: 14px;
  border-collapse: collapse;
}

.legalSection table th {
  background: var(--color-bg-soft);
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  white-space: nowrap;
  width: 30%;
  text-align: left;
  color: var(--color-primary-dark);
}

.legalSection table td {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
}

.legalNotice {
  background: #fff8e1;
  border-left: 4px solid #f0ad4e;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #666;
  margin: 10px 0;
}

.legalActions {
  margin-top: 32px;
  text-align: center;
}

.legalActions .btn {
  margin: 0 6px;
  font-size: 14px;
  padding: 12px 28px;
}

.legalActions .btnOutline {
  display: inline-block;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: bold;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 30px;
  margin: 0 6px;
  transition: background var(--transition), color var(--transition);
}

.legalActions .btnOutline:hover {
  background: var(--color-primary);
  color: #fff;
  opacity: 1;
}

/* ==========================================================================
   法的ページ共通スタイル（privacy.html / torihiki.html / yakkan.html）
   ========================================================================== */
.legalSection {
  padding: 48px 0 72px;
}

.legalBox {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
}

.pageTitle {
  background: var(--color-primary);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.pageTitle h1 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.legalBody {
  border: 1px solid var(--color-border);
  border-top: none;
  padding: 28px 28px 36px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.ppUpdated {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin: 0 0 20px;
}

.sectionHeading {
  border-left: 5px solid var(--color-primary);
  background: var(--color-bg-soft);
  padding: 8px 14px;
  margin: 28px 0 10px;
  border-radius: 0 4px 4px 0;
}

.sectionHeading h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: bold;
  color: var(--color-primary-dark);
  line-height: 1.5;
}

.ppSection {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--color-text);
}

.ppSection p {
  margin: 6px 0;
}

.ppSection ul {
  padding-left: 1.4em;
  margin: 6px 0;
}

.ppSection ul li {
  margin-bottom: 4px;
}

.noticeBox {
  background: #fdf6e3;
  border-left: 4px solid #d9a441;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #665a3a;
  margin: 10px 0;
}

.legalTable {
  width: 100%;
  margin: 8px 0 4px;
  font-size: 14px;
  border-collapse: collapse;
}

.legalTable th {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  white-space: nowrap;
  width: 30%;
  text-align: left;
}

.legalTable td {
  padding: 9px 12px;
  border: 1px solid var(--color-border);
}

.legalNote {
  font-size: 12.5px;
  color: var(--color-text-light);
}

.legalBackWrap {
  margin-top: 30px;
  text-align: center;
}

.legalFoot {
  text-align: right;
  color: #999;
  font-size: 12px;
  margin-top: 20px;
}

@media (max-width: 680px) {
  .legalBody {
    padding: 22px 18px 28px;
  }

  .legalTable th {
    width: 38%;
    font-size: 13px;
  }
}
