/* =====================
   基本設定・背景
===================== */
body {
  background-image: url(../images/bg_all3.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: #f0f0f0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

/* =====================
   レイアウト共通制限
===================== */
header,
footer,
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1em;
  box-sizing: border-box;
}

.cta .btn {
  display: inline-block;
  min-width: 200px;
  padding: 0.8em 1.2em;
  font-size: 1em;
  text-align: center;
}

.cta {
  text-align: center;
  margin: 2em 0;
}

/* その他全体のリンクも強制上書きする場合 */
a,
a:visited,
a:hover,
a:active {
  color: #f0f0f0;
  text-decoration: underline;
}

/* ホバー時に濃く */
a:hover,
a:active {
  color: #ffffff;
}




/* =====================
   ファーストビュー画像調整
===================== */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* =====================
   フッター
===================== */
footer {
  text-align: center;
  padding: 1em 0;
}

footer small {
  display: block;
  font-size: 0.85em;
  color: #aaa;
  margin-top: 0.5em;
}

footer small a {
  color: #aaa;
  text-decoration: underline;
  transition: color 0.2s ease;
}

footer small a:hover {
  color: #777;
}


.sns-links {
  margin-bottom: 0.5em;
  text-align: center;
}

.sns-links a {
  margin: 0 0.5em;
  font-size: 1.3em;
  color: #ffffff;
  transition: color 0.3s;
}

.sns-links a:hover {
  color: #ffffff;
}

.sns-links img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
}

/* =====================
   ヘッダー周り
===================== */
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  position: fixed;
  top: 1em;
  right: 1em;
  z-index: 1000;
}

.menu-toggle::before {
  content: "\2630";
  /* ハンバーガー（≡） */
}

.menu-toggle.open::before {
  content: "\00d7";
  /* ×マーク */
}

.site-title {
  font-size: 3.5em;
  font-weight: bold;
  margin: 0;
  color: #ffffff;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-nav {
  display: flex;
  width: 100%;
  justify-content: center;
  z-index: 3;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1em;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  color: #ddd;
  font-weight: 500;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: #ffffff;
}

/* =====================
   トップページ共通：挨拶・紹介・スキル
===================== */
.intro,
.about,
.skills {
  margin: 2em ;
  padding: 1.5em;
  border-radius: 8px;
}

.intro h2,
.about h2,
.skills h2 {
  font-size: 1.4em;
  margin-bottom: 0.6em;
  color: #fff;
  text-align: center;
}

.intro p,
.about p,
.skills li {
  color: #eee;
  margin-bottom: 1em;
}

.skills ul {
  padding-left: 1.2em;
}

.skills li {
  margin-bottom: 0.5em;
}

/* =====================
   ページヘッダー（他ページ共通）
===================== */
.page-header {
  padding: 2em 0 1em;
  text-align: center;
}

.page-header h2 {
  font-size: 1.8em;
  margin-bottom: 0.2em;
  color: #fff;
}

.page-header p {
  color: #ccc;
}

/* =====================
   ライフログセクション（縦並びカード型／アイコン表示）
===================== */
.lifelog-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0;
  padding: 1em;
}

.lifelog-cards .card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5em 1em;
  margin-bottom: 2em;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.lifelog-cards .card .icon {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: #ffffff;
}

.lifelog-cards .card h3 {
  font-size: 1.2em;
  margin: 0.5em 0;
  color: #fff;
}

.lifelog-cards .card p {
  font-size: 0.95em;
  color: #ddd;
  margin-bottom: 0.8em;
}

.lifelog-cards .card .btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4em 1em;
  border-radius: 4px;
  font-size: 0.95em;
  color: #f0f0f0;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.lifelog-cards .card .btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* =====================
   サービス：料金表
===================== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  table-layout: fixed;
  word-break: break-word;
}

.price-table th,
.price-table td {
  padding: 0.8em 1em;
  text-align: left;
  line-height: 1.6;
  border-bottom: 1px solid #444;
}

/* note クラス共通スタイル */
.note {
  font-size: 0.9em;
  color: #ccc;
  margin: 1em 0;
}

/* note 内の段落（pタグ）を少し余白 */
.note p {
  margin: 0.5em 0;
}

/* =====================
   ボタン風リンク
===================== */
.btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4em 1em;
  border-radius: 4px;
  font-weight: 500;
  color: #f0f0f0;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

/* =====================
   SNSリンク
===================== */
.sns-links {
  text-align: center;
  margin: 1em 0;
}

.sns-links a {
  margin: 0 0.5em;
  font-size: 1.3em;
  color: #ffffff;
  transition: color 0.3s;
}

.sns-links a:hover {
  color: #ffffff;
}

.sns-links img {
  width: 20px;
  height: 20px;
  vertical-align: -0.15em;
  display: inline-block;
}

/* =====================
   ポートフォリオ：グリッド表示
===================== */
.portfolio-grid {
  margin: 2em 0;
  padding: 1.5em;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5em;
  justify-items: center;
}

.card {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1em;
  border-radius: 8px;
  text-align: center;
}

.card img {
  max-width: 100%;
  border-radius: 4px;
}

.card p {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #eee;
}

/* =====================
   お問い合わせページ専用スタイル
===================== */
.container {
  max-width: 600px;
  /* フォーム幅を狭めに固定 */
  margin: 2em auto;
  /* 中央寄せ */
  padding: 2em 1em;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.container h1 {
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.5em;
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #f0f0f0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 90%;
  padding: 0.7em;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1em;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}


.form-group input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 0.5em;
}

.form-group textarea {
  resize: vertical;
}

.form-group a {
  color: #aaa; /* 少し落ち着いたグレー */
  text-decoration: underline; /* 下線は残す */
  font-weight: normal;
}

.form-group a:hover {
  color: #666; /* ホバー時に少し濃くする */
}


.btn-submit {
  display: block;
  width: 100%;
  padding: 0.8em;
  font-size: 1.1em;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.form-group.flex-row {
  display: flex;
  align-items: center;
  gap: 1em;
  /* 間隔調整、好みで */
  flex-wrap: wrap;
  /* スマホ時に折り返せるように */
}

.form-group .g-recaptcha {
  margin: 0 auto;
  display: block;
  width: fit-content;
}

/* =====================
   ニュースページ専用スタイル
===================== */

/* ニュース詳細画像のラッパー */
.news-image-wrapper {
  text-align: center;
  margin: 2em 0;
}

/* ニュース詳細画像本体 */


.news-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}



.news-content img {
  max-width: 100%;     /* 画像が枠からはみ出さないように */
  height: auto;        /* アスペクト比を維持して縮小 */
  display: block;      /* 余計な下の隙間を防ぐ */
  margin: 1em auto;    /* 上下に余白＋中央寄せ */
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin-top: 2em;
}


.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin: 2em auto;
  max-width: 700px; /* ←中央寄せで幅を絞る */
  width: 90%;
}

.news-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1em 1.5em;
  border: 1px solid #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-item h4 a {
  color: #f0f0f0;
  text-decoration: none;
}

.news-item h4 a:hover {
  color: #fff;
}

.news-date {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 0.5em;
}


.pagination {
  text-align: center;
  margin-top: 2em;
}

.pagination a {
  display: inline-block;
  margin: 0 0.3em;
  padding: 0.4em 0.8em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background-color 0.3s, transform 0.2s;
}

.pagination a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.pagination a.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}


/* =====================
   ニュース詳細専用スタイル
===================== */
.news-detail {
  max-width: 700px;
  margin: 2em auto;
  padding: 1.5em;
}

.news-detail h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #fff;
  text-align: center;
}

.news-detail p {
  font-size: 0.9em;
  color: #ccc;
  text-align: center;
}

.news-detail .news-image-wrapper {
  text-align: center;
  margin: 2em 0;
}

.news-detail .news-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.news-detail .news-back {
  text-align: center;
  margin: 2em 0;
}

.news-detail .news-back a {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
}

.news-detail .news-back a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ニュース詳細ページ リンク色を強制 */
/* ニュース詳細ページ リンク色を強制 */
.news-detail a,
.news-detail a:visited,
.news-detail a:hover,
.news-detail a:active {
  color: #f0f0f0 !important;
  text-decoration: underline;
}



/* =====================
   レスポンシブ対応（スマホ向け）
===================== */
@media screen and (max-width: 900px) {
  /* ハンバーガーメニュー */
  .menu-toggle { display: block; }

  /* ナビゲーションオーバーレイ */
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,1);
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    padding: 2em 0 16em;
    box-sizing: border-box;
  }
  .site-nav.active { display: flex; }

  /* ナビゲーションリスト */
  .site-nav ul {
    flex-direction: column;
    gap: 0.5em;
    width: 100%;
    align-items: center;
  }
  .site-nav ul li {
    width: 100%;
    text-align: center;
  }
  .site-nav ul li a {
    display: block;
    width: 100%;
    padding: 0.8em 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* タイトルサイズ */
  .site-title { font-size: 2em; }

  /* ヘッダー */
  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* 料金表スクロール */
  .price-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* SNSリンク */
  .sns-links { text-align: center; }
  .sns-links a {
    font-size: 1.1em;
    margin: 0 0.4em;
  }

  /* reCAPTCHA中央寄せ */
  .form-group .g-recaptcha { margin: 0 auto; }

  /* フッター文字 */
  footer small { font-size: 0.75em; }

  /* ボタン */
  .btn {
    margin: 0 auto;
    display: block;
    text-align: center;
  }
}
