@charset "UTF-8";

/* ===================================
 * 変数定義（カラーパレット等）
 * =================================== */
:root {
  --primary-color: #2563eb; /* ここを変えるとイメージカラーが変わる（今はブルー） */
  --primary-hover: #1d4ed8;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-white: #ffffff;
  --bg-light: #f8fafc; /* セクション区切り用の背景カラー（今はグレー） */
  --border-color: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-white);
}

/* ===================================
 * ヘッダー
 * =================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

/* ===================================
 * ヒーローセクション
 * =================================== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url("../marutakiimages/marutakihero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  animation: heroZoom 8s ease-out forwards;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

.hero h1 {
  font-size: 56px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.5s;
}

.hero p {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 1s;
}

/* ===================================
 * 共通セクション設定
 * =================================== */
section {
  padding: 100px 20px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

h2, .about-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.section-subtitle, .about-subtitle {
  text-align: center;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 50px;
}

/* セクションの背景色を交互にする */
#about, #works, #company, #contact {
  background: var(--bg-white); /* 白背景のグループ */
}

#news, #service, #faq, #ceo {
  background: var(--bg-light); /* 灰色背景のグループ */
}

/* ===================================
 * About
 * =================================== */
#about p {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 16px;
}

/* ===================================
 * Service
 * =================================== */
.service-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  flex: 1;
  min-width: 300px;
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===================================
 * News (お知らせ)
 * =================================== */
.news-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

/* 一番下と一番上の線の調整 */
.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.news-item:first-child {
  padding-top: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 220px; /* 日付とタグの幅を固定して、右側のタイトル開始位置をピッタリ揃える */
}

.news-date {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* カテゴリタグのデザイン */
.news-category {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  white-space: nowrap;
}

/* タグの色分け（HTMLのクラス名で色が変わります） */
.tag-info {
  background-color: var(--primary-color); /* メインの青 */
}
.tag-service {
  background-color: #10b981; /* グリーン系 */
}

.news-title {
  flex: 1;
}

.news-title a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 15px;
  transition: color 0.3s ease;
  display: block; /* クリックできる範囲を横いっぱいに広げる */
}

.news-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===================================
 * レスポンシブ対応（スマホの場合は縦並びに）
 * ※この部分は一番下の @media (max-width: 768px) { ... } の中に入れてもOKです
 * =================================== */
@media (max-width: 768px) {
  .news-container {
    padding: 20px;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .news-meta {
    min-width: auto;
  }
}

/* ===================================
 * Works
 * =================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.work-item {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.work-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.work-item h3 {
  font-size: 18px;
  margin: 20px 20px 10px;
}

.work-item p {
  font-size: 14px;
  margin: 0 20px 20px;
  color: var(--text-muted);
}

.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===================================
 * FAQ
 * =================================== */
.faq-item {
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 25px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
}

.faq-item .question {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.faq-item .answer {
  color: var(--text-main);
}

/* ===================================
 * Company
 * =================================== */
.company-table {
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.company-table th,
.company-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 25%;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===================================
 * CEO Greeting
 * =================================== */
.ceo-container {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.ceo-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ceo-message p {
  font-size: 16px;
  line-height: 1.9;
}

/* ===================================
 * Contact
 * =================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.contact-form label {
  font-weight: 600;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form button {
  padding: 16px;
  background: var(--primary-color);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.contact-form button:hover {
  background: var(--primary-hover);
}
/* ===================================
 * プライバシーポリシー
 * =================================== */
.privacy-section {
  max-width: 800px;
  margin: 0 auto 100px; /* 上のContactセクションとの距離感 */
  padding: 0 20px;
}

.privacy-details {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px; /* サイト全体の丸みに合わせる */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* 他のカードと影を統一 */
  overflow: hidden;
}

.privacy-details summary {
  padding: 18px 20px;
  background: var(--bg-light);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
  text-align: center;
  transition: background 0.3s ease;
}

.privacy-details summary::-webkit-details-marker {
  display: none;
}

.privacy-details summary:hover {
  background: #e2e8f0; /* ホバー時に少しだけ色を濃く */
}

/* 右側の矢印アイコン */
.privacy-details summary::after {
  content: '▼';
  position: absolute;
  right: 20px;
  font-size: 12px;
  color: var(--primary-color); /* 矢印はテーマカラーの青 */
  transition: transform 0.3s ease;
}

.privacy-details[open] summary::after {
  transform: rotate(180deg);
}

.privacy-content {
  padding: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted); /* 文章は少し落ち着いたグレーに */
}

.privacy-content h3 {
  font-size: 16px;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 5px;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 15px;
}

.privacy-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.privacy-content li {
  margin-bottom: 5px;
}


/* ===================================
 * フッター (本格デザイン)
 * =================================== */
.site-footer {
  background: #111827; /* 信頼感のあるダークグレー */
  color: rgba(255, 255, 255, 0.7); /* 少し透けさせて洗練された印象に */
  padding: 60px 20px 20px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* スマホで落ちるようにする */
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* うすい区切り線 */
  padding-bottom: 40px;
}

/* 左側の会社情報 */
.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff; /* ロゴは真っ白で目立たせる */
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-address, 
.footer-tel {
  line-height: 1.8;
  margin-bottom: 10px;
}

/* 右側のリンク集 */
.footer-nav {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ホバーした時は明るい青（空色）にして見やすくする */
.footer-links a:hover {
  color: #60a5fa; 
}

/* 一番下のコピーライト */
.footer-bottom {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ===================================
 * フッター用 スマホ対応
 * =================================== */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
  .footer-nav {
    gap: 40px;
  }
}

/* ===================================
 * アニメーション
 * =================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
 * News Detail (お知らせ詳細ページ)
 * =================================== */
.news-detail-section {
  padding: 120px 20px 80px; /* ヘッダーが上にかぶさらないように余白を多めに */
  background: var(--bg-light);
  min-height: calc(100vh - 100px); /* 画面が短くてもフッターが下に行くように */
}

.news-detail-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 50px 60px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.news-title-main {
  font-size: 28px;
  color: var(--text-main);
  margin: 20px 0 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
  line-height: 1.4;
}

.news-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-main);
}

.news-content h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.back-link {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px dashed var(--border-color);
}

.btn-back {
  display: inline-block;
  padding: 12px 30px;
  background: var(--bg-white);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.btn-back:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* スマホ表示用 */
@media (max-width: 768px) {
  .news-detail-container {
    padding: 30px 20px;
  }
  .news-title-main {
    font-size: 22px;
  }
}

/* ===================================
 * レスポンシブ対応（スマホ）
 * =================================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.3;
    padding: 0 15px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 60px 20px;
  }

  h2, .about-title {
    font-size: 28px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
  
  .company-table th {
    border-bottom: none;
    padding-bottom: 5px;
  }

  .company-table td {
    padding-top: 0;
    margin-bottom: 10px;
  }

  .ceo-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .ceo-photo img {
    width: 200px;
    height: 200px;
  }
}