 :root{
      --bg: #ffffff;
      --muted: #6b7280;
      --accent: #0f172a;
      --border: #e6e9ee;
      --shadow: 0 2px 8px rgba(15,23,42,0.06);
      --max-w: 1180px;
      --gap: 16px;
      font-family: Inter, system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, "Helvetica Neue", Arial;
      color: var(--accent);
      background: var(--bg);
    }

    *{box-sizing:border-box}
    html,body{
        height:100%;
        margin:0;
        padding:0;
        background:
        var(--bg)
    }

    .site-container{
        display:flex;
        min-height:100vh;
        flex-direction:column;
    }

    .wrap{
        width:100%;
        max-width:var(--max-w);
        margin:0 auto;
        padding: 18px;
    }

    header{
        background:var(--bg);
        border-bottom:1px solid var(--border);
        box-shadow:var(--shadow);
        position:sticky;
        top:0;
        z-index:40;
    }

    .site-header{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:var(--gap);
        height:72px;
    }

    .site-title{
        font-weight:700;
        font-size:20px;
        letter-spacing:0.2px;
    }

    .nav{
        display:flex;
        align-items:center;
        gap:12px;
        flex-wrap:wrap;
    }

    .nav a{
        text-decoration:none;
        padding:8px 12px;
        border-radius:8px;
        font-size:14px;
        color:var(--accent);
    }

    .nav a:hover{
        background:#f4f6f9;
    }

    .btn-post{
        background:#ff7f50;
        color:white;
        box-shadow:0 2px 6px rgba(11,95,255,0.12);
    }

    .btn-search{
        background:#4f9cff;
        color:white;
        box-shadow:0 2px 6px rgba(11,95,255,0.12);
    }

    .btn-outline{
        border:1px solid var(--border);
    }



    /* メイン */

main {
    flex: 1 0 auto;
    padding: 48px 0;
}

/* 2カラム全体 */
.content-container {
    display: flex;
    gap: 24px; /* カラム間の余白 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}




/* 左カラム（検索スペース） */
.sidebar {
    flex: 0 0 280px; /* 固定幅 */
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

/* 検索ボックスの中身 */
.search-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- バナー部分 --- */
.sidebar-banner-wrap {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-banner {
    display: block;
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 募集投稿ボタン */
.sidebar-banner-post {
    background: linear-gradient(135deg, #ff7f50, #ff6347);
    color: #fff;
}
.sidebar-banner-post:hover {
    background: linear-gradient(135deg, #ff9168, #ff7558);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 99, 71, 0.3);
}

/* 投稿一覧検索ボタン */
.sidebar-banner-search {
    background: linear-gradient(135deg, #4f9cff, #357ae8);
    color: #fff;
}
.sidebar-banner-search:hover {
    background: linear-gradient(135deg, #66adff, #4688f1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(53, 122, 232, 0.3);
}

/* テキスト */
.banner-text {
    display: inline-block;
    font-size: 1rem;
}









/* 右カラム（メインコンテンツ） */
.main-content {
    flex: 1; /* 残りの幅を占有 */
}




/* 投稿カード */

.post-card {
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  
}

.industry-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
}

.post-date {
  color: #666;
  font-size: 0.85rem;
}

.post-url {
  font-size: 0.9rem;
  margin-bottom: 8px;
  word-break: break-all;
}

.post-url a {
  color: #0077cc;
  text-decoration: none;
}

.post-url a:hover {
  text-decoration: underline;
}

.post-detail {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
  /* white-space: pre-wrap; */
  background-color: #ebebeb;

  overflow-wrap: break-word;
  word-wrap: break-word;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.company-name {
  font-weight: bold;
  color: #444;
  font-size: 0.9rem;
}

.detail-link {
  font-size: 0.85rem;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.detail-link:hover {
  text-decoration: underline;
}

/* ---------------------
   業種ごとの色設定
---------------------- */
.industry-1 { background-color: #e57373; }  /* 例：赤 */
.industry-2 { background-color: #f06292; }  /* ピンク */
.industry-3 { background-color: #ba68c8; }  /* 紫 */
.industry-4 { background-color: #64b5f6; }  /* 青 */
.industry-5 { background-color: #4dd0e1; }  /* 水色 */
.industry-6 { background-color: #4db6ac; }  /* エメラルド */
.industry-7 { background-color: #81c784; }  /* 緑 */
.industry-8 { background-color: #aed581; }  /* ライトグリーン */
.industry-9 { background-color: #fff176; }  /* 黄 */
.industry-10 { background-color: #ffd54f; } /* オレンジ */
.industry-11 { background-color: #ffb74d; } /* 濃いオレンジ */
.industry-12 { background-color: #a1887f; } /* ブラウン */
.industry-13 { background-color: #90a4ae; } /* グレー */
.industry-14 { background-color: #b0bec5; } /* 明るいグレー */
.industry-15 { background-color: #562af7; } /*  */



   .heading-1 {
        padding: 0.4em 0.7em;
        border-left: 5px solid #2589d0;
    }




/* 投稿フォーム */

.form-container{
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 28px;
  background: linear-gradient(180deg, var(--card), #fff);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20,20,30,0.06);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #111827;
}

/* Title */
.form-title{
  margin: 0 0 18px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Alerts */
.alert{
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.alert-success{
  background: rgba(22,163,74,0.08);
  color: var(--success);
  border: 1px solid rgba(22,163,74,0.12);
}

/* Field layout */
.field{
  margin-bottom: 14px;
}
.field-label{
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}
.field-input,
.field-select,
.field-textarea{
  width: 100%;
  padding: 10px 12px;
  font-size: 0.97rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .12s ease;
  outline: none;
  color: #0b1220;
  box-shadow: none;
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: #a8b0bb;
}

/* Focus */
.field-input:focus,
.field-select:focus,
.field-textarea:focus{
  border-color: rgba(31,111,235,0.9);
  box-shadow: 0 4px 14px rgba(31,111,235,0.06);
}

/* Textarea specifics */
.field-textarea{
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
  padding-top: 12px;
}

/* Error message */
.field-error{
  margin-top: 6px;
  color: #e63946;
  font-size: 0.88rem;
}




/* Rows & columns (responsive) */
.row{
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.row .col{
  flex: 1 1 200px;
  min-width: 160px;
}

/* Actions */
.form-actions{
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.btn-primary{
  appearance: none;
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31,111,235,0.16);
  transition: transform .08s ease, box-shadow .12s ease;
}
.btn-primary:active{ transform: translateY(1px); }
.btn-primary:focus{ outline: 3px solid rgba(31,111,235,0.16); }













/* 投稿詳細ページ */

/* --- レイアウト --- */
.post-wrap {
  max-width: 900px;
  margin: 24px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  background: #ffffff;
  font-family: "Yu Gothic","Hiragino Kaku Gothic Pro","Noto Sans JP",sans-serif;
  color: #222;
}

/* ヘッダ行 */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* 投稿ID 丸ラベル */
.post-id {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFE7D6, #FFD6A5);
  color: #663300;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(102,51,0,0.12);
}

/* 名前 */
.post-name {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 8px 0;
}

/* 区切り hr */
.post-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
  margin: 8px 0 18px 0;
}

/* メタ行（業種 / 日付） */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.meta-item {
  font-size: 14px;
  color: #444;
}
.industry-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: white;
}

/* サービス詳細、相互リンク等のボックス */
.detail-box {
  background: #fbfbfb;
  border: 1px solid #eee;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  line-height: 1.8;
  white-space: pre-wrap;

  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* URL 表示 */
.url-line a {
  word-break: break-all;
  color: #0a66c2;
  text-decoration: none;
}
.url-line a:hover { text-decoration: underline; }

/* 住所など */
.address-line {
  font-size: 14px;
  color: #333;
  margin-bottom: 14px;
}

/* 日付行（左右） */
.date-row {
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}

/* 操作ボタン */
.controls {
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.btn {
  display:inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor:pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background:#1f93ff; color:#fff; }
.btn-secondary { background:#f2f2f2; color:#333; }
.btn-danger { background:#ff6b6b; color:#fff; }

/* フォームスタイル */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
.form-grid label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display:block;
}
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="url"],
.form-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
}
.form-grid textarea { min-height: 120px; resize: vertical; }

/* メッセージ */
.alert {
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 12px;
}
.alert-success { background:#e8f7ea; color:#1b7a3a; border:1px solid #d1efd7; }

.error-text {
  color: #e63946;
  font-size: 13px;
  margin-top: 4px;
}
input.error, textarea.error {
  border: 1px solid #e63946;
  background-color: #fff5f5;
}


/* 検索ページ */
.search-container h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-left: 4px solid #0078d7;
    padding-left: 10px;
    color: #333;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group select,
.form-group input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #0078d7;
    background-color: #fff;
}

.form-actions {
    text-align: right;
}

.search-btn {
    background-color: #0078d7;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #005fa3;
}










/* マイページ */
.profile-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 30px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.message {
    background-color: #e6f7ee;
    border-left: 4px solid #38a169;
    padding: 10px 15px;
    color: #2f855a;
    border-radius: 4px;
    margin-bottom: 25px;
    text-align: center;
}

.form-section {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fafafa;
    transition: border 0.2s, background-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007acc;
    background-color: #fff;
}

.error {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 4px;
}

.update-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007acc;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.update-btn:hover {
    background-color: #005fa3;
}

.delete-section {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.delete-section h3 {
    color: #b30000;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.delete-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #e53e3e;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-btn:hover {
    background-color: #c53030;
}




/* サイト説明 */

.site-main{padding-right:8px}
.site-card{background:#fff;padding:22px;border-radius:10px;border:1px solid #f0f2f5;margin-bottom:18px}
.site-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.site-feature{padding:14px;border-radius:8px;background:linear-gradient(180deg,#ffffff,#fbfdff);border:1px solid #eef3ff}
.site-feature h3{font-size:15px;margin-bottom:6px}
.site-feature p{font-size:13px;color:#555}


.site-usage{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.site-step{display:flex;gap:12px;align-items:flex-start}
.site-step .site-num{min-width:36px;height:36px;border-radius:50%;background:#eef6ff;color:#1b66d2;display:flex;align-items:center;justify-content:center;font-weight:700}
.site-step .site-desc{font-size:14px}


.site-aside{position:relative}
.site-aside-card{position:sticky;top:28px;padding:18px;border-radius:10px;border:1px solid #f0f2f5;background:linear-gradient(180deg,#fff,#fcfffe)}
.site-cta{display:block;padding:12px;border-radius:8px;text-align:center;text-decoration:none;font-weight:700;border:1px solid #1b66d2;background:#1b66d2;color:#fff}
.site-muted{font-size:13px;color:#666;margin-top:10px}

/* 利用規約 */

.guide-container {
    max-width: 900px;
    margin: 60px auto;
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.guide-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.guide-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
}

.guide-heading {
    font-size: 1.2rem;
    border-left: 4px solid #007acc;
    padding-left: 10px;
    margin-top: 40px;
    color: #222;
}

.guide-text {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #555;
}

.guide-list {
    margin: 10px 0 30px 25px;
}

.guide-list li {
    margin-bottom: 8px;
}

.guide-footer {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 50px;
}



/* 問合せ */

.guide-form {
    max-width: 600px;
    margin: 0 auto;
}

.guide-form-group {
    margin-bottom: 25px;
}

.guide-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
}

.guide-input,
.guide-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.guide-input:focus,
.guide-textarea:focus {
    border-color: #007acc;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 122, 204, 0.3);
}

.guide-button {
    background-color: #007acc;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.guide-button:hover {
    background-color: #005fa3;
}

.guide-center {
    text-align: center;
}

.guide-note {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}
.guide-success {
    background-color: #e7f6ec;
    color: #2b7a3d;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
}

.guide-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin-top: 5px;
}





    footer{
        border-top:1px solid var(--border);
        background:var(--bg);
        padding:32px 0;
        color:var(--muted);
        font-size:14px;
    }

    .footer-inner{
        display:flex;
        gap:32px;align-items:flex-start;
        justify-content:space-between;
        flex-wrap:wrap;
    }

    .footer-col{
        min-width:160px;
    }

    .footer-links{
        display:flex;
        flex-wrap:wrap;
        gap:16px;
        margin-top:8px;
    }

    .footer-links a{
        color:var(--muted);
        text-decoration:none;
    }

    .footer-links a:hover{
        text-decoration:underline;
    }

    .footer-bottom{
        margin-top:24px;
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:12px;
        flex-wrap:wrap;
        color:var(--muted);
        font-size:13px;
    }





    /* SP用削除 */
.sp-header { 
  display: none;
 }


 /*====================
SP用のスタイル
=====================*/



    @media (max-width:720px){
      .site-header{height:64px}
      .site-title{font-size:18px}
      .nav a{padding:8px 10px;font-size:13px}
      .footer-links{flex-direction:column;gap:8px;}



          .content-container {
        flex-direction: column; /* 縦並びに変更 */
    }

    .sidebar {
        flex: none;
        width: 100%;
        margin-bottom: 24px;
    }

    .main-content {
        flex: none;
        width: 100%;
    }

    .site-header { 
  display: none;
 }

   .container-sp {
    display: block;
  }

/* ==== SP用ヘッダー ==== */
.sp-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1000;
}

.sp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.sp-site-title a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

/* ==== ハンバーガーボタン ==== */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 8px;
}
.hamburger span:nth-child(3) {
  top: 16px;
}

/* 開いたときのアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* ==== メニュー ==== */
.sp-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.sp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.sp-nav a, .logout-btn {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  background: #fff;
  width: 100%;
  text-align: left;
  border: none;
}

.sp-nav a:hover, .logout-btn:hover {
  background: #f8f8f8;
}

/* ==== 開閉状態 ==== */
.sp-nav.active {
  display: block;
}




    }