/* style.css */

:root {
    --main-green: #2e7d32;
    --light-green: #4caf50;
    --very-light-green: #e8f5e9;
    --accent-green: #81c784;
    --dark-green: #1b5e20;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #f9f9f9;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* デフォルトのページ（背景画像あり） */
body {
    /* 基本スタイルはそのまま */
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
  }
  
  /* 背景画像を使用するページ */
  body.with-bg-image {
    /* 背景画像の設定 */
    background-image: url('IMG_2300_light.png');
    background-repeat: repeat;
    background-size: 300px auto;
    background-attachment: fixed;
  }
  
  /* 背景画像を使用しないページ */
  body.no-bg-image {
    background-image: none;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /*background-color: rgba(249, 249, 249, 0.85);*/
  }
  
  /* ヘッダー */
  header {
    background-color: var(--dark-green);
    color: var(--light-text);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .site-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }
  
  .site-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  }
  
  .logo {
    height: 50px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
  }
  
  /* メインコンテンツ */
  .main-content {
    display: flex;
    padding: 30px 0;
  }
  
  .content-area {
    flex: 1;
    padding-right: 30px;
  }
  
  /* ナビゲーション */
  .navigation {
    margin: 30px 0;
  }
  
  .nav-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .nav-item a {
    display: block;
    padding: 15px 20px;
    color: var(--main-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-left: 5px solid var(--accent-green);
    transition: background-color 0.3s ease;
  }
  
  .nav-item a:hover {
    background-color: var(--very-light-green);
  }
  
  .nav-item.featured a {
    background-color: var(--light-green);
    color: white;
    border-left: 5px solid var(--dark-green);
  }
  
  .nav-item.featured a:hover {
    background-color: var(--main-green);
  }
  
  /* サイドバー */
  .sidebar {
    width: 320px;
  }
  
  .twitter-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  }
  
  /* フッター */
  footer {
    background-color: var(--dark-green);
    color: var(--light-text);
    padding: 30px 0;
    margin-top: auto; /* 重要: コンテンツの後に自動マージンでフッターを下に押し出す */
    text-align: center;
    font-size: 0.9rem;
    /* 同じ外観にするためヘッダーと同じシャドウを追加 */
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    width: 100%; /* 幅を100%に */
  }
  
  /* ページ全体のレイアウト調整 - フッターを下部に固定 */
  html, body {
    height: 100%;
    margin: 0;
  }
  
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ビューポートの高さの最小値 */
  }
  
  .container:not(header .container):not(footer .container) {
    flex: 1;
  }

  .description{
    margin-left: 0.5em;
  }
  
  
  /* レスポンシブ対応 */
  @media screen and (max-width: 768px) {
    .main-content {
      flex-direction: column;
    }
    
    .content-area {
      padding-right: 0;
    }
    
    .sidebar {
      width: 100%;
      margin-top: 30px;
    }
    
    .site-title h1 {
      font-size: 1.8rem;
    }
  }

  /* 「戻る」リンクのスタイル */
.back-link {
    margin: 20px 0;
    position: relative;
  }
  
  .back-link a {
    display: inline-flex;
    align-items: center;
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border: 2px solid var(--dark-green);
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  .back-link a:before {
    content: "←";
    margin-right: 8px;
    font-size: 1.2em;
  }
  
  .back-link a:hover {
    background-color: var(--dark-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  
  .back-link a:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }


  /* style.cssに追加する日記ページ用のスタイル */

/* 日記コンテナ */
.diary-container {
    margin: 30px 0;
  }
  
  /* 日記エントリ */
  .diary-entry {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
    transition: all 0.3s ease;
  }
  
  .diary-entry:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  /* 日記ヘッダー */
  .diary-header {
    padding: 15px 20px;
    background-color: var(--light-green);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
  }
  
  .diary-header:hover {
    background-color: var(--main-green);
  }
  
  .diary-date {
    font-size: 1.1rem;
  }
  
  /* ヘッダーの矢印アイコン */
  .diary-header i {
    transition: transform 0.3s ease;
  }
  
  /* 日記の内容 */
  .diary-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
  }
  
  /* アクティブな（開いた）エントリのスタイル */
  .diary-entry.active .diary-content {
    padding: 20px;
    max-height: 2000px; /* 十分な高さを確保 */
  }
  
  .diary-entry.active .diary-header i {
    transform: rotate(180deg);
  }
  
  /* 日記内のテキストスタイル */
  .diary-content p {
    margin-bottom: 15px;
    line-height: 1.7;
  }
  
  /* 数式ブロック */
  .math-block {
    padding: 15px;
    background-color: var(--very-light-green);
    border-left: 4px solid var(--main-green);
    margin: 15px 0;
    overflow-x: auto;
  }
  
  /* 日記内の画像 */
  .diary-image {
    max-width: 100%;
    border-radius: 6px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }


  /* 短い文章を強調するためのクラス */
.highlight-text {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 25px auto;
    padding: 12px 20px;
    max-width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    /*
    background-color: var(--very-light-green);
    border-left: 4px solid var(--accent-green);
    border-right: 4px solid var(--accent-green);
    color: var(--dark-green);
    */
  }
  
  /* コンパクト版（一行用） */
  .highlight-text.compact {
    padding: 8px 15px;
    font-size: 1rem;
    display: inline-block;
  }
  
  /* 色のバリエーション 
  .highlight-text.important {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
  }*/
  
  .highlight-text.note {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    color: #0d6efd;
  }
  
  /* 日記内での使用に最適化 */
  .diary-content .highlight-text {
    margin: 20px 0;
    font-style: italic;
  }


  /* style.cssに追加する制作物・ツールページ用のスタイル */

/* ツール説明エリア */
.tool-description {
    margin: 30px 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .tool-description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  /* ツールグリッド */
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
  }
  
  /* ツールカード */
  .tool-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
  
  /* ツールアイコン */
  .tool-icon {
    background-color: var(--main-green);
    color: white;
    padding: 20px;
    text-align: center;
  }
  
  .tool-icon i {
    font-size: 3rem;
  }
  
  /* ツール情報 */
  .tool-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .tool-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--dark-green);
    font-size: 1.3rem;
  }
  
  .tool-info p {
    margin-bottom: 20px;
    flex-grow: 1;
  }
  
  /* ツールボタン */
  .tool-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-green);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .tool-button:hover {
    background-color: var(--main-green);
  }
  
  /* 開発中のツール */
  .tool-card.coming-soon {
    opacity: 0.8;
  }
  
  .tool-card.coming-soon .tool-icon {
    background-color: #6c757d;
  }
  
  .coming-soon-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
  }
  
  /* レスポンシブ対応 */
  @media screen and (max-width: 768px) {
    .tools-grid {
      grid-template-columns: 1fr;
    }
  }