/* ============================================================
   宮沢石材店 (Miyazawa Sekizai) - Static Site Stylesheet
   Reconstructed from web.archive.org/web/20130614075010/
   http://miyazawasekizai.com/
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "MS Mincho", "MS 明朝", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 14px;
  color: #222;
  background: #e8e8e8;
  min-height: 100vh;
}

a {
  color: #ffa500;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #ffcc66;
}

/* --- Outer Wrapper --- */
#wrapper {
  width: 960px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  background: #fff;
  border-bottom: 3px double #888;
  padding: 10px 0 6px 0;
  text-align: center;
  position: relative;
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 20px;
}

#header .header-inner img.ojiichan {
  width: 52px;
  height: 58px;
}

#header .header-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

#header .subtitle {
  font-size: 15px;
  font-family: "MS Mincho", "MS 明朝", "Hiragino Mincho ProN", serif;
  color: #333;
  letter-spacing: 0.05em;
}

#header .main-title {
  font-size: 32px;
  font-family: "AR隷書体M", "HGS隷書体", "MS Mincho", "Hiragino Mincho ProN", serif;
  color: #111;
  letter-spacing: 0.08em;
  font-weight: normal;
}

#header .header-rule {
  border: none;
  border-top: 2px solid #999;
  margin: 6px 0 0 0;
}

/* ============================================================
   NAVIGATION BAR (below header)
   ============================================================ */
#navbar {
  background: #3b5998;
  border-bottom: 2px solid #2a4070;
}

#navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

#navbar ul li a {
  display: block;
  color: #fff;
  font-size: 13px;
  font-family: "MS Gothic", "MS ゴシック", sans-serif;
  padding: 9px 22px;
  border-right: 1px solid #4a6aaa;
  transition: background 0.15s;
  letter-spacing: 0.05em;
}

#navbar ul li:first-child a {
  border-left: 1px solid #4a6aaa;
}

#navbar ul li a:hover,
#navbar ul li a.active {
  background: #ffa500;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   MAIN LAYOUT — Sidebar LEFT + Content RIGHT
   ============================================================ */
#main-layout {
  display: flex;
  flex: 1;
  align-items: stretch;
}

/* --- Sidebar --- */
#sidebar {
  width: 234px;
  min-width: 234px;
  background: #3b5998;
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-logo {
  background: #3b5998;
  padding: 20px 16px 10px 16px;
  text-align: center;
  border-bottom: 1px solid #4a6aaa;
}

#sidebar .sidebar-logo img {
  width: 80px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

#sidebar .sidebar-logo .shop-name {
  display: block;
  font-size: 18px;
  font-family: "AR隷書体M", "MS Mincho", serif;
  color: #ffa500;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

#sidebar nav {
  padding: 10px 0;
  flex: 1;
}

#sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar nav ul li {
  border-bottom: 1px solid #4a6aaa;
}

#sidebar nav ul li a {
  display: block;
  color: #fff;
  font-size: 13px;
  font-family: "MS Gothic", "MS ゴシック", sans-serif;
  padding: 11px 18px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.04em;
}

#sidebar nav ul li a:hover,
#sidebar nav ul li a.active {
  background: #ffa500;
  color: #fff;
  text-decoration: none;
}

#sidebar nav ul li a::before {
  content: "▶ ";
  font-size: 10px;
  color: #ffa500;
  margin-right: 4px;
}

#sidebar nav ul li a:hover::before,
#sidebar nav ul li a.active::before {
  color: #fff;
}

#sidebar .sidebar-contact-box {
  background: #2a4070;
  padding: 16px;
  margin: 10px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: #dde;
}

#sidebar .sidebar-contact-box strong {
  display: block;
  color: #ffa500;
  font-size: 13px;
  margin-bottom: 6px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content {
  flex: 1;
  padding: 24px 28px;
  background: #fff;
}

/* --- Home page hero section --- */
.home-intro {
  text-align: center;
  margin-bottom: 20px;
}

.home-intro .tagline {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.8;
  margin-bottom: 14px;
  font-family: "MS Mincho", "Hiragino Mincho ProN", serif;
}

.home-gallery {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 20px 0;
}

.home-gallery .gallery-img {
  flex: 0 0 auto;
}

.home-gallery .gallery-img img {
  width: 210px;
  height: 280px;
  object-fit: cover;
  border: 1px solid #ccc;
  display: block;
}

.home-gallery .gallery-text {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
}

.home-gallery .gallery-text p {
  font-size: 15px;
  font-weight: bold;
  line-height: 2.1;
  color: #222;
  font-family: "MS Mincho", "Hiragino Mincho ProN", serif;
}

.home-bottom-img {
  text-align: center;
  margin: 16px 0 10px 0;
}

.home-bottom-img img {
  width: 310px;
  height: auto;
  border: 1px solid #ccc;
}

/* --- Section headings --- */
.section-heading {
  font-size: 18px;
  font-family: "MS Mincho", "Hiragino Mincho ProN", serif;
  color: #3b5998;
  border-left: 5px solid #3b5998;
  padding-left: 10px;
  margin-bottom: 16px;
  font-weight: normal;
}

/* --- Blog page --- */
.blog-post {
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post .post-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  font-family: sans-serif;
}

.blog-post .post-title {
  font-size: 17px;
  font-family: "MS Mincho", "Hiragino Mincho ProN", serif;
  color: #3b5998;
  margin-bottom: 8px;
}

.blog-post .post-body {
  font-size: 14px;
  line-height: 1.85;
  color: #333;
}

/* --- Contact page --- */
.contact-form {
  max-width: 560px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 5px;
  font-family: "MS Gothic", sans-serif;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #bbb;
  font-size: 14px;
  font-family: "MS Mincho", serif;
  background: #fafafa;
  color: #222;
  border-radius: 2px;
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3b5998;
  background: #fff;
}

.contact-form .btn-submit {
  background: #3b5998;
  color: #fff;
  border: none;
  padding: 10px 32px;
  font-size: 14px;
  font-family: "MS Gothic", sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
}

.contact-form .btn-submit:hover {
  background: #ffa500;
}

.contact-info-box {
  background: #f4f6fb;
  border: 1px solid #c8d0e8;
  border-left: 4px solid #3b5998;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}

.contact-info-box strong {
  color: #3b5998;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #2a3a5c;
  color: #aab;
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
  font-family: "MS Gothic", sans-serif;
  border-top: 3px solid #3b5998;
}

#footer a {
  color: #ffa500;
}

#footer .footer-nav {
  margin-bottom: 6px;
}

#footer .footer-nav a {
  margin: 0 10px;
  font-size: 12px;
}

/* ============================================================
   RESPONSIVE (basic — for narrower screens)
   ============================================================ */
@media (max-width: 980px) {
  #wrapper {
    width: 100%;
  }
}

@media (max-width: 700px) {
  #main-layout {
    flex-direction: column;
  }
  #sidebar {
    width: 100%;
    min-width: unset;
  }
  #sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  #sidebar nav ul li {
    flex: 1 1 50%;
  }
  .home-gallery {
    flex-direction: column;
    align-items: center;
  }
  #wrapper {
    width: 100%;
  }
}
