/* ============================================================
   日英カーボン製作所 - 共通スタイルシート
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #e0e0e0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
  flex: 1;

}

/* ===== Global Nav ===== */
.global-nav ul {
  display: flex;
  gap: 4px;
  order: 1;
}

.global-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  border-radius: 4px;
  transition: background 0.2s;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  background: #f0f0f0;
}

.global-nav .nav-label-ja {
  font-weight: bold;
  font-size: 14px;
}

.global-nav .nav-label-en {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}

/* ===== Mobile Nav Toggle ===== */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

/* ===== Page Title ===== */
.page-title-section {
  background: #003A27;
  padding: 30px 20px 20px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.page-title-section h1 {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 1100px;
  margin: 12px auto 0;
  font-size: 13px;
  color: #ffffff;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.breadcrumb li + li::before {
  content: "›";
  color: #ffffff;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== Main Content ===== */
.main-content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

/* ===== text Section ===== */
.text-section {
  margin-bottom: 48px;
  background-color: #FFF;
  padding: 20px;
  border-radius: 6px;
}

.text-section p {
  font-size: 15px;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.8;
}

.text-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #444;
  font-size: 15px;
}

/* ===== card link ===== */
.card-links {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.card-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;

}

.card-link:hover img {
  transform: scale(1.1);
}

.card-link-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,58,39,0.80);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 25px;
}

.card-link-label .arrow {
  font-size: 18px;
}

/* ===== Section Heading ===== */
.main-content h2 {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  border-left: 4px solid #006540;
  padding-left: 12px;
  margin-bottom: 10px;
}

/* ===== material title section ===== */

.material-title-section {
  color: #fff;
  background-image: linear-gradient(rgba(0,58,39,0.80));
  background-position: center;
  background-attachment: scroll;
  background-size: contain;
  padding: 50px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  background-repeat: no-repeat;
  background-color: #fff;
}


/* ===== Footer ===== */
.site-footer {
  background: #3a3a3a;
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 13px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-nav {
  margin-bottom: 24px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: underline;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  border-top: 1px solid #555;
  padding-top: 16px;
  color: #888;
  font-size: 12px;
}

.page-top {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  background: #555;
  color: #fff;
  border-radius: 3px;
  font-size: 12px;
}

.page-top:hover { background: #333; }

/* ===== Cookie Notice ===== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(50, 50, 50, 0.95);
  color: #eee;
  padding: 12px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 999;
}

.cookie-notice a {
  text-decoration: underline;
  color: #aed6f1;
}

.cookie-notice button {
  padding: 4px 14px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }

  .global-nav {
    display: none;
    width: 100%;
  }

  .global-nav.open { display: block; }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .global-nav a {
    flex-direction: row;
    gap: 8px;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
  }

  .mobile-nav-toggle { display: flex; }

  .page-title-section h1 { font-size: 22px; }
}
