/* ==========================================================================
   アイエムインテリア 共通スタイル
   index.html / privacy.html / news/*.html で共通利用
   ページ固有スタイルは各HTMLの <style> ブロック内に記述
   ========================================================================== */

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2b2b2b;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ========== CSS Variables ========== */
:root {
  --white: #ffffff;
  --bg-soft: #f8f8f8;
  --bg-card: #f2f2f2;
  --text-main: #1f1f1f;
  --text-sub: #555555;
  --text-light: #888888;
  --line: #e0e0e0;
  --line-strong: #c0c0c0;
  --accent: #1a1a1a;
  --accent-blue: #2c5282;
  --highlight: #fff8e7;
  --highlight-border: #d4a574;
}

/* ========== Header ========== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.header-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--text-main);
}
.header-tel-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
}
.header-tel-num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
}
.header-tel-hours {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
}
.logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
}
.logo .sub {
  font-size: 10px;
  color: var(--text-sub);
  display: block;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-top: 2px;
}
.menu-btn {
  background: var(--white);
  border: 1px solid var(--line-strong);
  width: 56px;
  height: 44px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 16px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  margin-top: 4px;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nav-menu.open { display: block; }
.nav-menu a {
  display: block;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}
.nav-menu a:last-child { border-bottom: none; }

/* ========== Footer ========== */
footer {
  background: var(--accent);
  color: var(--white);
  padding: 48px 24px 100px;
  font-size: 14px;
  line-height: 2;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-info {
  margin-bottom: 32px;
  color: #d0d0d0;
  line-height: 2;
}
.footer-links {
  border-top: 1px solid #444;
  padding-top: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: #d0d0d0;
  font-weight: 500;
}
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* ========== Fixed Bottom Bar (mobile only) ========== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line-strong);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 99;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.bottom-bar a {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
}
.bottom-bar a.tel {
  background: var(--accent);
  color: var(--white);
}
.bottom-bar a.contact-btn {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--line-strong);
}

/* ========== PC Responsive (Header / Footer / Bottom-bar) ========== */
@media (min-width: 768px) {
  header {
    display: flex;
    align-items: center;
    padding: 0 48px;
  }
  .header-row {
    padding: 20px 0;
  }
  .header-tel {
    flex-wrap: nowrap;
    background: transparent;
    border-top: none;
    padding: 0 0 0 24px;
    margin-left: 24px;
    border-left: 1px solid var(--line);
    gap: 4px;
    flex-direction: column;
    align-items: flex-end;
    min-height: 60px;
    justify-content: center;
  }
  .header-tel-label { font-size: 14px; }
  .header-tel-num { font-size: 22px; }
  .header-tel-hours { font-size: 14px; }
  .logo { font-size: 20px; }
  .menu-btn { display: none; }
  .nav-menu {
    display: flex !important;
    position: static;
    border: none;
    box-shadow: none;
    margin: 0 0 0 auto;
    gap: 32px;
    min-width: auto;
  }
  .nav-menu a {
    border: none;
    padding: 0;
    font-size: 15px;
  }
  .footer-inner { max-width: 1200px; margin: 0 auto; }
  footer { padding-bottom: 48px; }
  .bottom-bar { display: none; }
}