@charset "UTF-8";

/* ==========================================================================
   ★ ロゴサイズ調整エリア（ロゴの大きさを変えたいときはここだけ編集）
   ========================================================================== */
:root {
  /* ① ヘッダーのロゴ（logo_s.png）の高さ */
  --header-logo-height: 28px;

  /* ② メインビジュアルのロゴ（logo_w.png）の横幅 */
  --top-logo-width-sp: 240px;  /* スマホ・タブレット用 */
  --top-logo-width-pc: 320px;  /* PC用 */
}


/* ==========================================
   全体のスタイル・リセット
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p, h1, h2, h3, h4, address, small, dt, dd {
  font-family: 'Noto Sans JP', sans-serif;
}

hr {
  border: none;
  border-top: 1px dashed #999;
}


/* ==========================================
   ヘッダー
========================================== */
#header {
  background-color: white;
  padding: 18px 16px;
  position: sticky;
  top: 0;
  z-index: 99;
}

#header h1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#header img {
  display: block;
  margin: 0 auto;
  height: var(--header-logo-height); /* 最上部の設定エリアで変更できます */
  width: auto;
  max-width: 100%;
}


/* ==========================================
   トップメインビジュアル
========================================== */
#img_bar_top {
  height: 460px;
  background-image: url(top01_sp.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 24px;
}

#img_bar_top h2 {
  margin-bottom: 12px;
  line-height: 1;
}

#img_bar_top h2 img {
  display: block;
  width: var(--top-logo-width-sp);   /* 最上部の設定エリアで変更できます */
  max-width: 80%;                   /* 画面幅が極端に狭い端末での見切れ防止 */
  height: auto;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.8));
}

#img_bar_top h3 {
  color: white;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}


/* ==========================================
   スライダー
========================================== */
#slider {
  padding: 32px 32px 0;
  background-color: white;
}


/* ==========================================
   NEWS セクション
========================================== */
.news-section {
  padding: 64px 20px;
  background-color: #ffffff;
}

.news-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.news-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.25em;
  margin-bottom: 8px;
  color: #333333;
}

.news-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: #666666;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  border-top: 1px solid #e0e0e0;
}

.news-item {
  border-bottom: 1px solid #e0e0e0;
}

.news-item-hidden {
  display: none;
}

.news-item-hidden.is-open {
  display: list-item;
}

.news-link {
  display: flex;
  align-items: center;
  padding: 22px 10px;
  text-decoration: none;
  color: #333333;
  transition: opacity 0.2s ease;
}

.news-link:hover {
  opacity: 0.6;
}

.news-date {
  font-size: 15px;
  font-weight: 300;
  color: #444444;
  width: 140px;
  flex-shrink: 0;
  text-align: left;
  letter-spacing: 0.05em;
}

.news-text {
  font-size: 15px;
  font-weight: 300;
  color: #333333;
  text-align: left;
  flex-grow: 1;
  letter-spacing: 0.03em;
}

.news-btn-wrap {
  text-align: center;
}

.more-btn {
  display: inline-block;
  width: 240px;
  height: 44px;
  line-height: 44px;
  padding: 0;
  background-color: #a99;
  color: #ffffff;
  border: none;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.more-btn:hover {
  background-color: #855;
}

@media (max-width: 600px) {
  .news-section {
    padding: 40px 16px;
  }

  .news-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 4px;
  }

  .news-date {
    width: auto;
    margin-bottom: 6px;
    font-size: 13px;
  }

  .news-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .more-btn {
    width: 100%;
    max-width: 280px;
  }
}


/* ==========================================
   ABOUT US
========================================== */
#about {
  padding: 64px 32px;
  background-color: white;
}

#about h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

#about p {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.6em;
  margin-bottom: 32px;
}


/* ==========================================
   PRODUCTS
========================================== */
#products {
  padding: 64px 24px;
  background-color: white;
}

#products h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

#products h3 {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 2px;
}

#products h4 {
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 8px;
}

.column-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.column-item {
  background-color: white;
  display: flex;
  flex-direction: column;
}

.column-item img {
  margin-bottom: 6px;
}

.flat-btn {
  margin-bottom: 16px;
  font-size: 10px;
  margin-top: auto;
  display: block;
  background-color: #a99;
  color: #fff;
  padding: 8px 20px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.flat-btn:hover {
  background-color: #855;
}


/* ==========================================
   POLICY (COMPANY)
========================================== */
#policy {
  padding: 64px 32px;
  background-color: white;
}

.company-visual {
  margin-bottom: 32px;
  width: 100%;
}

.company-visual img {
  width: 100%;
  height: auto;
  display: block;
}

#policy h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

#policy h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #333333;
  margin-bottom: 24px;
}

#policy p {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin-bottom: 16px;
}

#policy img {
  width: 100%;
}


/* ==========================================
   代表挨拶 (MESSAGE)
========================================== */
#message {
  padding: 64px 32px 64px;
  background-color: #ffffff;
}

.message-container {
  width: 100%;
}

#message h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
  color: #333333;
}

.message-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: #666666;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.message-catch {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #333333;
  margin-bottom: 24px;
  border-left: 3px solid #a99;
  padding-left: 12px;
}

.message-text {
  margin-bottom: 32px;
}

.message-text p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #333333;
  margin-bottom: 16px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-signature {
  display: flex;
  justify-content: flex-end; /* 全体を右寄せにする */
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
}

/* サインと役職の塊（ここを左揃えにする） */
.signature-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;   /* 役職名が画像の左上に揃う */
}

.signature-title {
  font-size: 12px;
  font-weight: 300;
  color: #666666;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* サイン画像のサイズ調整（スマホ用） */
.signature-img {
  display: block;
  width: auto;
  max-width: 150px;          /* スマホでのサイン幅（お好みで調整） */
  height: auto;
}


/* ==========================================
   会社概要 (COMPANY OVERVIEW)
========================================== */
.company-section {
  padding: 0 32px 64px;
  background-color: #ffffff;
}

.company-container {
  width: 100%;
}

.company-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.6;
}

.company-item dt {
  width: 100%;
  font-weight: 700;
  font-size: 13px;
  color: #333333;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.company-item dd {
  width: 100%;
  font-weight: 300;
  font-size: 13px;
  color: #333333;
  letter-spacing: 0.05em;
  margin: 0;
}

.company-item dd a {
  color: #333333;
  text-decoration: underline;
  word-break: break-all;
  transition: opacity 0.2s ease;
}

.company-item dd a:hover {
  opacity: 0.6;
}

.company-item.related-company {
  margin-top: 12px;
}

.company-subname {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 6px;
}

.company-subinfo {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.5;
}


/* ==========================================
   CONTACT
========================================== */
#contact {
  padding: 64px 32px;
  background-color: #eee;
}

#contact p {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

#contact h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

#contact h3 {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

#contact h4 {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

#contact input {
  width: 100%;
  height: 36px;
  margin-bottom: 16px;
  padding: 0 8px;
  border: 1px solid #ccc;
}

#contact textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid #ccc;
}

#contact button {
  width: 100%;
  height: 40px;
  background-color: #a99;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #855;
}


/* ==========================================
   フッター・帯画像・汎用クラス
========================================== */
#footer {
  padding: 32px 32px;
  background-color: #3c3c43;
}

#footer h1 {
  color: white;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-align: left;
  margin-bottom: 16px;
}

#footer h1 img {
  height: var(--header-logo-height) !important;
  width: auto !important;
  max-width: 100% !important;
  display: block;
  margin-bottom: 8px;
}

#footer address {
  color: white;
  font-size: 13px;
  line-height: 1.1em;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  font-style: normal;
}

#footer small {
  color: white;
  font-size: 10px;
  line-height: 1.1em;
  letter-spacing: 0.2em;
}

.img_bar {
  display: flex;
  align-items: flex-end;
}

.img_1 {
  height: 160px;
  background-image: url(img_bar01_sp.jpg);
  background-size: cover;
}

.img_2 {
  height: 160px;
  background-image: url(img_bar02_sp.jpg);
  background-size: cover;
}

.pad16 { padding: 0 16px; }
.mt32 { margin-top: 32px; }
.mt64 { margin-top: 64px; }


/* ==========================================
   PC向け表示レイアウト (min-width: 960px)
========================================== */
@media (min-width: 960px) {
  .pad16 { padding: 0; }
  .w480 { width: 480px; margin: 0 auto; }
  .w960 { width: 960px; margin: 0 auto; }
  .col2 { display: block; }

  #img_bar_top {
    background-image: url(top01_pc.jpg);
  }

  /* PC表示時のトップロゴ画像サイズ */
  #img_bar_top h2 img {
    width: var(--top-logo-width-pc);
    max-width: 100%;
  }

  #slider {
    width: 960px;
    margin: 0 auto;
    padding: 32px 0 0;
  }

  #about {
    width: 960px;
    margin: 0 auto;
    display: block;
    padding: 64px 0;
  }

  #about h2 {
    margin-bottom: 32px;
  }

  #products {
    width: 960px;
    margin: 0 auto;
    padding: 64px 0;
  }

  .column-container {
    grid-template-columns: repeat(4, 1fr);
  }

  /* COMPANY (#policy) */
  #policy {
    width: 960px;
    margin: 0 auto;
    padding: 64px 0;
  }

  #policy h3 {
    font-size: 20px;
  }

  #policy p {
    font-size: 15px;
  }

  /* MESSAGE (PC時) */
  #message {
    width: 960px;
    margin: 0 auto;
    padding: 64px 0 64px;
  }

  .message-catch {
    font-size: 20px;
  }

  .message-text p {
    font-size: 15px;
  }

  .signature-name {
    font-size: 18px;
  }

  /* 会社概要 */
  .company-section {
    width: 960px;
    margin: 0 auto;
    padding: 0 0 64px;
  }

  .company-list {
    gap: 24px;
  }

  .company-item {
    flex-direction: row;
  }

  .company-item dt {
    width: 200px;
    font-size: 15px;
    margin-bottom: 0;
  }

  .company-item dd {
    font-size: 15px;
  }

  .company-subname {
    font-size: 16px;
  }

  .company-subinfo {
    font-size: 14px;
  }

  /* CONTACT (#contact) */
  #contact {
    width: 100%;
    padding: 64px 0;
  }

  #contact .w960 {
    width: 960px;
    margin: 0 auto;
  }

  #contact .w480 {
    width: 480px;
    margin: 0 auto;
  }

  .img_1 {
    height: 160px;
    background-image: url(img_bar01.jpg);
    background-position: center;
  }

  .img_2 {
    height: 160px;
    background-image: url(img_bar02_pc.jpg);
    background-position: center;
  }

  #contact p {
    font-size: 14px;
  }
}