﻿/* ================================
   基本設定
================================ */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Noto Sans JP", sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
}
/* ================================
   ヘッダー（Excelリボン風）
================================ */
.header {
  background: #217346;
  border-bottom: 3px solid #1b5e20;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-img {
  height: 42px;
  width: auto;
}
.h1-font {
  color: #ffffff;
  gap: 18px;
  font-size: 1.3rem;
}
.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav a:hover {
  background: #1b5e20;
}

/* ================================
   ページ全体レイアウト
================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}

.main-content {
  width: 100%;
}

/* 右側広告 */
.sidebar {
  width: 260px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.ad-box {
  background: #ffffff;
  border: 1px solid #c8d0d9;
  padding: 0px 12px 12px 12px;
  border-radius: 4px;
}

/* ================================
   セクションタイトル（Excelタブ風）
================================ */
.section-title {
  position: relative;
  font-size: 1.3rem;
  padding: 10px 16px;
  background: #2e7d32;
  border-left: 8px solid #1b5e20;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  border-bottom: 2px solid #c8d0d9;
}

.section-title::after {
  content: "📄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

/* ================================
   Excelセル風カード
================================ */
.card {
  background:
    linear-gradient(#e0e6eb 1px, transparent 1px),
    linear-gradient(90deg, #e0e6eb 1px, transparent 1px);
  background-size: 22px 22px;
  background-color: #ffffff;
  border: 1px solid #c8d0d9;
  border-radius: 4px;
  padding: 20px;
  margin-top: 20px;
}


.icon-konoha {
  width: 28px !important;
  height: 21px !important;
  object-fit: contain;
}
.soft-card,
.share-card {
  display: block;
  background: #ffffff;
  border: 1px solid #c8d0d9;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.soft-card:hover,
.share-card:hover {
  background: #f0f7f0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ================================
   Excelリボン風ボタン
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #217346;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25);
  cursor: pointer;
}

.btn:hover {
  background: #1b5e20;
}

/* ================================
   フォーム（送金フォーム用）
================================ */
.field-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.field-label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #1b5e20;
}

input[type="text"],
select,
textarea {
  padding: 8px;
  border: 1px solid #c8d0d9;
  border-radius: 4px;
  font-size: 1rem;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

/* 銀行振込専用欄 */
.bank-only {
  display: none;
}
.ad-top {
  margin: 20px 0;
  text-align: center;
  max-height: 120px;
  overflow: hidden;
}
.ad-inline, .ad-bottom {
  margin: 20px 0;
 }

/* ================================
   アコーディオン
================================ */
.accordion {
  margin-top: 20px;
  border: 1px solid #c8d0d9;
  border-radius: 4px;
}

.accordion-header {
  background: #e0e6eb;
  padding: 10px;
  cursor: pointer;
  font-weight: 700;
}

.accordion-body {
  display: none;
  padding: 10px 20px;
  background: #ffffff;
}

.accordion-body ul {
  padding-left: 20px;
  line-height: 1.7;
}
.accordion.open .accordion-body {
  display: block;
}
/* ================================
   フッター（Excelステータスバー風）
================================ */
.footer {
  background: #e6e6e6;
  border-top: 1px solid #c0c0c0;
  padding: 12px 0;
  margin-top: 40px;
}

.footer p {
  text-align: center;
  color: #333;
  font-size: 0.9rem;
  margin: 0;
}
/* 右側リンク（Excel グリーン風） */
.side-menu-green {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-menu-green li a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #0f5132; 
  border: 1px solid #bcd0c7;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
}

.side-menu-green li a:hover {
  background: #d1f0df;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* ================================
   スマホ対応
================================ */
@media (max-width: 800px) {

  .page-layout {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px !important;
    grid-template-columns: none !important;
    grid-auto-flow: unset !important;
    grid-template-rows: none !important;
  }

  .sidebar {
    position: static;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
  }

  .card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  img,
  iframe {
    max-width: 100% !important;
    height: auto;
  }
  .header-inner {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
  }
  .nav a {
    font-size: 0.9rem;
    padding: 4px 6px;
  }
 .ad-inline {
    display: none;
  }

  .ad-top, .ad-bottom {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box;
  }

  /* 長文の折り返し（今回の決定打） */
  .help-links div {
    word-break: break-all;
    overflow-wrap: break-word;
  }
}