/* 基本スタイル */
body {
    font-family: 'Segoe UI', 'メイリオ', Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF; /* 基本色：白 */
    color: #333333; /* 文字色：ダークグレー */
    line-break: strict;
}

/* ロゴの配色 */
:root {
    --color-teal-green: #008080;
    --color-orange: #FF931E;
    --color-red: #C1272D;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-teal-green); /* 見出しのメインカラー */
    overflow-wrap: break-word;
}

/* ヘッダー */
.main-header {
    background-color: #FFFFFF;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}

.main-header.hide-header {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-teal-green);
}

.main-header .logo img {
    height: 50px; /* 必要に応じて調整 */
    width: auto;
    vertical-align: middle;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
    position: relative; /* ドロップダウンの配置用 */
}

.main-nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--color-orange);
}
/* ドロップダウンメニュー */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    padding: 10px 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1em;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none; /* デスクトップでは非表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000; /* 他のコンテンツより前面に */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-teal-green);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* フッター */
.main-footer {
    background-color: #333333;
    color: #FFFFFF;
    padding: 40px 0 20px;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* アイテムを上端に揃える */
    text-align: left;
}

.main-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.main-footer .footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    flex: 2; /* より多くのスペースを取る */
    justify-content: space-around;
}

.main-footer .footer-column {
    margin: 0 15px 20px;
}

.main-footer .footer-column h4 {
    color: var(--color-orange);
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.main-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-column ul li {
    margin-bottom: 8px;
}

.main-footer .footer-column ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer .footer-column ul li a:hover {
    color: var(--color-orange);
}

.main-footer .social-media {
    flex: 1; /* スペースを少なめに取る */
    text-align: right;
    margin-left: 20px; /* サイトマップとアイコンの間のスペース */
}

.main-footer .social-media h4 {
    color: var(--color-orange);
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.main-footer .social-media a {
    display: inline-block;
    margin-left: 15px;
    color: #FFFFFF;
    font-size: 1.8em; /* アイコンサイズの調整 */
    transition: color 0.3s ease;
}

.main-footer .social-media a img {
    width: 60px;
    height: 60px;
    vertical-align: middle;
}

.main-footer .social-media a:hover {
    color: var(--color-orange);
}

.main-footer .copyright {
    width: 100%; /* 著作権表示を全幅に */
    margin-top: 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.main-footer .footer-bottom-links {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 0.85em;
}

.main-footer .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer .footer-bottom-links a:hover {
    color: var(--color-orange);
}

.main-footer .footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
}

.back-to-top-btn {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
    background-color: #ffffff;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
}

/* ボタン */
.btn-primary {
    background-color: var(--color-orange); /* メインの行動喚起ボタン（CTA）のアクセントカラー */
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    margin: 30px auto 0;
    max-width: 350px;
    box-sizing: border-box; /* すべての画面サイズでパディングを含めて幅を計算 */
}

.btn-primary:hover {
    background-color: #E6831A; /* ホバー時は少し濃いオレンジに */
}

.btn-secondary {
    background-color: var(--color-teal-green); /* セカンダリーボタンのメインカラー */
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #006666; /* ティールの濃い色に変化 */
}

.btn-outline-secondary {
    background-color: #FFFFFF;
    color: var(--color-teal-green);
    padding: 8px 18px; /* 枠線2px分を考慮して調整 */
    border: 2px solid var(--color-teal-green);
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--color-teal-green);
    color: #FFFFFF;
}

.button-container-center {
    text-align: center;
}

/* レイアウト - コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.box-shadow {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* セクションの見出し */
.section-heading {
    text-align: center;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 40px; /* セクション間のスペースを一定に */
    position: relative;
    color: var(--color-teal-green); /* デフォルトの見出し色 */
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-orange);
    margin: 15px auto 0;
}

.section-heading--no-underline::after {
    display: none;
}

/* スクロール時のアニメーション */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* インデックス　Hero Section */
.hero-section {
    background-color: #F8F8F8; /* Light gray background for contrast */
    /* padding: 40px 0; */
    text-align: center;
}

.hero-section h1 {
    font-size: 2.8em;
    color: var(--color-teal-green);
    margin-bottom: 20px;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-section p {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 40px;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

.page-hero-section .btn-primary {
    margin-top: 30px;
    display: inline-block; /* マージンが適用されるように */
}

/* Aboutセクション */
.about-section {
    padding: 40px 0;
    background-color: #FFFFFF;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.7em; /* 見出しのフォントサイズを調整 */
    margin-bottom: 20px;
    color: var(--color-teal-green);
}

.about-text p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-button-container {
    text-align: center;
    margin-top: 40px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* お知らせセクション */
.news-section {
    padding: 80px 0;
    background-color: #F8F8F8; /* 必要に応じて薄い背景色 */
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: baseline;
    padding: 15px 20px;
    margin: 10px;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .news-date {
    font-size: 0.95em;
    color: #777;
    margin-right: 20px;
    flex-shrink: 0; /* 日付の縮小を防ぐ */
}

.news-item a {
    font-size: 1.1em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: var(--color-teal-green);
}

/* index.html 用のサービスセクション */
.services-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

/* services.html 用のサービス概要セクション */
.services-overview-section {
    padding: 80px 0; /* 一貫性のためにパディングを調整 */
    background-color: #F8F8F8; /* 明るいグレー背景でコントラストを出す */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: left; /* 左寄せに変更 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 40px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-item h3 {
    font-size: 1.5em;
    color: var(--color-teal-green);
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* 残りの高さを埋めるように */
}

.service-item .button-container-center {
    margin-top: auto; /* ボタンを下部に配置 */
}

/* HP制作・PC教室・塾ページの内容 */
.service-detail-content {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.service-detail-content h3 {
    font-size: 2em;
    color: var(--color-teal-green);
    margin-bottom: 20px;
}

.service-detail-content h4 {
    font-size: 1.5em;
    color: var(--color-teal-green);
    margin-top: 40px;
    margin-bottom: 15px;
}

.service-detail-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin-left: 20px;
}

.service-detail-content ul li {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.service-detail-content ul li::before {
    content: '\2713'; /* チェックマークアイコン */
    color: var(--color-orange);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* トップページの実績セクション */
.works-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); /* 各アイテムの最大幅を約380pxに設定 */
    gap: 30px;
    justify-content: center; /* アイテム数が少ない場合にグリッド全体を中央に配置 */
}

.work-item {
    background-color: #FFFFFF;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.work-item-content {
    padding: 25px 30px 30px;
}

.work-item h3 {
    font-size: 1.4em;
    color: var(--color-teal-green);
    margin: 0 0 10px 0;
}

.work-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 20px 0;
}

.work-item h3 .work-item-client {
    display: block;
}

.work-item h3 .work-item-type {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
    color: #555;
    margin-top: 4px;
}

/* 実績ページの詳細セクション */
.works-detail-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.works-filter .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.works-filter label {
    font-weight: bold;
    color: var(--color-teal-green);
}

.works-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    appearance: none; /* デフォルトのセレクト矢印を非表示 */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23008080%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.2-6.4H18.6c-5%200-9.3%201.8-13.2%206.4-3.9%204.6-5.9%2010.1-5.9%2016.1s2%2011.5%205.9%2016.1l128%20128c3.9%204.6%209.3%206.4%2013.2%206.4s9.3-1.8%2013.2-6.4l128-128c3.9-4.6%205.9-10.1%205.9-16.1s-2-11.5-5.9-16.1z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
}

.works-filter .filter-group {
    display: flex;
    align-items: center; /* 要素を縦方向中央に揃える */
}
.works-filter .btn-primary {
    margin-left: 1rem; /* ボタンの左側に余白を追加 */
    margin-top: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.pagination .page-numbers.current {
    background-color: var(--color-teal-green);
    color: #fff;
    border-color: var(--color-teal-green);
}

.pagination .page-numbers:hover {
    background-color: #f4f4f4;
}

/* お客様の声セクション */
.testimonials-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item .quote {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
    font-style: italic;
    text-align: left;
}

.testimonial-item .testimonial-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-teal-green);
    margin-bottom: 10px;
    text-align: left;
}

.testimonial-item .author {
    font-weight: bold;
    color: var(--color-teal-green);
    text-align: center;
}

/* お問い合わせセクション */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-teal-green); /* メインカラーの背景 */
    color: #FFFFFF;
    text-align: center;
}

.contact-section .section-heading {
    color: #FFFFFF;
}

.contact-section .section-heading--no-underline::after {
    display: none;
}

.contact-section p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
    overflow-wrap: break-word;
}

.contact-section .btn-primary {
    background-color: var(--color-orange);
    color: #FFFFFF;
}

.contact-section .btn-primary:hover {
    background-color: #E6831A;
}


/* サブページ　ヒーローセクション */
.page-hero-section {
    background-color: var(--color-teal-green); /* メインカラーの背景 */
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
}

.page-hero-section h1 {
    color: #FFFFFF;
    font-size: 2.8em;
    margin-bottom: 15px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.page-hero-section p {
    font-size: 1.2em;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}


/* 会社詳細セクション固有のスタイル */
/* 私たちの価値観セクション */
.our-values-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* 白に戻す */
}

.our-strengths {
    margin-top: 60px;
    padding-top: 80px; /* パディング上を調整 */
    padding-bottom: 80px; /* 下のパディングを追加 */
    border-top: 1px solid #eee;
    background-color: #F8F8F8;
}

.our-strengths h3 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    color: var(--color-teal-green);
}

.strength-item {
    background-color: #FFFFFF; /* 白に変更 */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.strength-item h4 {
    font-size: 1.6em;
    color: var(--color-orange);
    margin-bottom: 15px;
}

.strength-item p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555555;
}

/* スタッフ紹介 */
.our-team {
    padding-top: 80px; /* パディング上を調整 */
    padding-bottom: 80px;
}

.our-team h3 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    color: var(--color-teal-green);
}

.our-team p {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2カラム表示に調整 */
    gap: 30px;
    justify-content: center;
}

.team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-decoration: none !important; /* 下線を消し優先 */
    color: inherit; /* テキストカラーを継承 */
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--color-teal-green);
}

.team-member h4 {
    font-size: 1.3em;
    color: var(--color-teal-green);
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.95em;
    color: #777777;
    margin-bottom: 0;
}
/* サービスページ用の特徴セクション */
.feature-intro {
    padding: 30px;
    margin-bottom: 50px;
    text-align: left;
}

.feature-intro h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.feature-intro p {
    font-size: 1.1em;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* 最小幅を広げました */
    gap: 40px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex; /* Flexboxを有効に */
    align-items: flex-start; /* 上端揃え */
    text-align: left;
}

.feature-icon {
    margin-right: 20px;
    flex-shrink: 0; /* アイコンが縮まらないように */
}

.feature-text-content {
    flex-grow: 1; /* テキストが残りスペースを埋める */
}

.feature-icon img {
    border-radius: 50%;
}

.feature-item h4 {
    font-size: 1.4em;
    color: var(--color-teal-green);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
}

.feature-outro-cta {
    text-align: center;
    padding: 50px 30px;
    background-color: #FFFFFF;
    border: 3px solid var(--color-teal-green);
    border-radius: 10px;
    color: #333;
    max-width: 800px;
    margin: 50px auto 0;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.feature-outro-cta h4 {
    font-size: 1.6em;
    color: var(--color-teal-green);
    margin-bottom: 15px;
}

.feature-outro-cta p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.feature-outro-cta .btn-primary {
    background-color: var(--color-orange);
}

.feature-outro-cta .btn-primary:hover {
    background-color: #E6831A;
}

/* HP制作 */
/* 料金プランセクション */
.pricing-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.sp-pricing-grid {
    display: none;
}

.pricing-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* 高さを揃える */
}

.pricing-plan.wide {
    grid-column: 1 / span 3;
    justify-self: center;
    max-width: 700px; /* 任意、2カラム分相当の幅 */
    width: 100%;
}

.pricing-plan {
    background-color: #FFFFFF;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column; /* 子要素を縦に並べる */
    border: 1px solid #eee;
}

.pricing-plan.recommended {
    border-color: var(--color-orange);
    transform: scale(1.05);
    position: relative;
}

.pricing-plan.recommended::before {
    content: 'おすすめ';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-orange);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.pricing-plan h3 {
    font-size: 1.6em;
    color: var(--color-teal-green);
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.pricing-plan .price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--color-teal-green);
    margin-bottom: 30px;
    white-space: nowrap;
}

.pricing-plan .price span {
    font-size: 0.5em;
    font-weight: normal;
    color: #777;
}

.pricing-plan .price--contact {
    font-size: 1.8em;
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1; /* ulが残りスペースを埋める */
}

.pricing-plan ul li {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.pricing-plan ul li::before {
    content: '\2713'; /* チェックマーク */
    color: var(--color-orange);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.pricing-plan a {
    margin-top: auto; /* ボタンを下に配置 */
}

.pricing-plan .btn-primary {
    max-width: 250px;
}

.plan-compare {
    padding: 60px 0;
    background-color: #fff;
}

/* 制作プラン比較表 */
.table-wrap {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid #ddd;
}

.comparison-table th {
    background-color: #008080;
    color: #fff;
    font-weight: bold;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: bold;
    background-color: #f0f0f0;
}

.comparison-table .price-row td {
    font-size: 1.1em;
    font-weight: bold;
    background-color: #fffbe6;
}

/* オプション */
.option-services {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.option-card h3 {
    font-size: 1.2em;
    color: #008080;
    margin-bottom: 10px;
}

.option-card .desc {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.option-card .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}
.option-card.recommended {
    position: relative;
    border: 2px solid var(--color-orange, #ff931e); /* オレンジ枠（色変数なければfallback） */
}

.option-card.recommended::before {
    content: 'おすすめ';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-orange, #ff931e);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* FAQセクション */
.faq-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.faq-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 1.4em;
    color: var(--color-teal-green);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555555;
}


/* スタッフ紹介ページ */
.staff-page-hero {
    background-color: var(--color-teal-green);
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
}
.staff-page-hero h1 {
    color: #FFFFFF;
    font-size: 2.8em;
    margin-bottom: 15px;
}
.staff-page-hero p {
    font-size: 1.2em;
    line-height: 1.8;
}
.staff-list-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}
.staff-member-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px auto; /* 分離のために下マージンを追加 */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: #F8F8F8; /* 各メンバーカードの薄い背景色 */
}
.staff-member-detail:last-child {
    margin-bottom: 0; /* 最後の項目はマージンなし */
}
.staff-member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-orange);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.staff-member-text {
    text-align: center;
}
.staff-member-text h2 {
    font-size: 2.2em;
    color: var(--color-teal-green);
    margin-bottom: 10px;
}
.staff-member-text h3 {
    font-size: 1.5em;
    color: var(--color-orange);
    margin-bottom: 20px;
}
.staff-member-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
}
.staff-specialty {
    background-color: #FFFFFF; /* 専門分野ボックスの白背景 */
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.staff-specialty h4 {
    font-size: 1.4em;
    color: var(--color-teal-green);
    margin-bottom: 15px;
}
.staff-specialty ul {
    list-style: none;
    padding: 0;
}
.staff-specialty ul li {
    font-size: 1.05em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}
.staff-specialty ul li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
}

/* お問い合わせフォームセクション */
.contact-form-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.contact-form-section .form-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    font-size: 1em;
    color: #333333;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--color-teal-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.2);
}

.form-group textarea {
    resize: vertical; /* 縦方向のサイズ変更を許可 */
}

.form-group .required {
    color: var(--color-red);
    font-size: 0.9em;
    margin-left: 5px;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px 30px;
    font-size: 1.2em;
}

.cta-banner {
    text-align: center;
    padding: 40px 40px 60px 40px;
    margin-top: 50px;
    background-color: #f8f8f8;
    border: 2px solid var(--color-teal-green);
}

.cta-banner h4 {
    font-size: 1.8em;
    color: var(--color-teal-green);
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 30px;
}

.cta-banner .btn-primary {
    background-color: var(--color-orange);
    font-size: 1.2em;
}

.cta-banner .btn-primary:hover {
    background-color: #E6831A;
}


/* 確認ページ　*/
.confirm-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.confirm-content {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.confirm-group {
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.confirm-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.confirm-group label {
    display: block;
    font-weight: bold;
    color: var(--color-teal-green);
    margin-bottom: 5px;
    font-size: 1.1em;
}

.confirm-group p {
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    padding-left: 10px;
}

.confirm-buttons {
    display: flex;
    flex-direction: column;
    align-items: center; /* 垂直方向の中央揃え */
    margin-top: 40px;
    text-align: center; /* テキストも中央揃え */
}
.confirm-buttons input {
    text-align: center;
    margin-bottom: 40px;
}
.confirm-buttons .btn-secondary,
.confirm-buttons .btn-primary {

    width: 100%; /* 幅を100%にする */
    max-width: 300px; /* 最大幅を設定 */
    margin-bottom: 25px; /* ボタン間のスペースを増やす */
}


/* singleページ */
.single-post-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
}

.single-post-container .entry-title {
    font-size: 2.5em;
    color: var(--color-teal-green);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.single-post-container .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 30px auto;
    display: block;
}

.single-post-container .entry-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333333;
}

.single-post-container .entry-content h2 {
    font-size: 1.8em;
    color: var(--color-teal-green);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.single-post-container .entry-content h3 {
    font-size: 1.5em;
    color: var(--color-teal-green);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--color-orange);
    padding-left: 15px;
}

.single-post-container .entry-content p {
    margin-bottom: 20px;
}

.single-post-container .site-url-link {
    text-align: center;
    margin-top: 30px;
}

.single-post-container .site-url-link .btn-primary {
    display: inline-block;
    width: auto;
    max-width: 300px;
    margin: 0 auto;
}

.single-post-container .entry-content a {
    color: var(--color-orange);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-orange);
}

.single-post-container .entry-content a:hover {
    color: #E6831A;
    border-bottom: 1px solid #E6831A;
}

.single-post-container .entry-content ul,
.single-post-container .entry-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.single-post-container .entry-content li {
    margin-bottom: 10px;
}

.single-post-container .post-date {
    margin-top: 40px;
    text-align: right;
    font-size: 0.9em;
    color: #777;
}

.single-post-container .works-categories {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: #777;
}

.single-post-container .works-category {
    display: inline-block;
    background-color: var(--color-teal-green);
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 5px 5px 0;
}

.single-post-container .works-date {
    text-align: right;
    font-size: 0.9em;
    color: #777;
    margin-top: 20px;
}

.post-navigation {
    margin: 60px auto;
    max-width: 800px;
}

.post-navigation .nav-links {
    display: flex;
    width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex-basis: 48%;
    max-width: 48%;
}

.post-navigation a {
    display: block;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--color-teal-green);
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.post-navigation a:hover {
    background-color: #f8f8f8;
    border-color: var(--color-teal-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-navigation .nav-title {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 8px;
}

.post-navigation .post-title {
    font-weight: bold;
}

.post-navigation .nav-next {
    text-align: right;
    margin-left: auto;
}



/* メディアクエリ */

/* 大画面（例：デスクトップ） */
@media (max-width: 1280px) {
    .container {
        max-width: 960px; /* やや小さい画面用にコンテナ幅調整 */
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .section-heading {
        font-size: 2em;
    }

    .about-content {
        gap: 30px;
    }

    .about-text h3 {
        font-size: 1.6em;
    }

    .service-item h3 {
        font-size: 1.4em;
    }

    .service-item-detail h3 {
        font-size: 1.9em;
    }

    .service-detail-content h3 {
        font-size: 1.9em;
    }

    .service-detail-content h4 {
        font-size: 1.4em;
    }

    .work-item h3 {
        font-size: 1.3em;
    }

    .testimonial-item .testimonial-title {
        font-size: 1.05em;
    }

    .contact-section .section-heading {
        font-size: 2em;
    }

    .main-footer .footer-column h4 {
        font-size: 1.05em;
    }

    .main-footer .social-media h4 {
        font-size: 1.05em;
    }

    .our-values-section .value-item h4 {
        font-size: 1.3em; /* 中画面で改行防止のためフォントサイズ調整 */
        line-height: 1.3;
    }

    .our-values-section .value-item p {
        font-size: 0.8em;
    }

    .our-strengths h3 {
        font-size: 2.1em;
    }

    .strength-item h4 {
        font-size: 1.5em;
    }

    .our-team h3 {
        font-size: 2.1em;
    }

    .team-member h4 {
        font-size: 1.2em;
    }

    .faq-item h3 {
        font-size: 1.3em;
    }

    .cta-banner h4 {
        font-size: 1.7em;
    }

    .feature-intro h3 {
        font-size: 1.7em;
    }

    .feature-item h4 {
        font-size: 1.3em;
    }

    .feature-outro-cta h4 {
        font-size: 1.5em;
    }

    .pricing-plan h3 {
        font-size: 1.5em;
    }

    .feature-icon img {
        width: 60px;
        height: 60px;
    }

    .feature-text-content {
        min-width: 0; /* Flexアイテムのオーバーフローを防ぐ */
    }

    .feature-item h4 {
        word-break: break-word; /* 長い単語を強制的に改行してはみ出しを防ぐ */
    }

    .service-grid, .works-grid, .testimonial-grid, .team-grid, .features-grid, .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .pricing-plan .btn-primary {
        max-width: 180px;
    }
}

/* 中画面（例：タブレット） */
@media (max-width: 981px) {
/* header */
    .main-header .container {
        flex-wrap: wrap;
        justify-content: flex-start; /* ロゴを左寄せ */
    }

    .main-header .logo {
        margin-bottom: 15px; /* ロゴとメニュートグルの間隔 */
    }

    .menu-toggle {
        display: flex; /* 小さい画面でハンバーガーメニュー表示 */
        position: absolute; /* ヘッダーに対して位置指定 */
        right: 20px; /* 右寄せ */
        top: 35px; /* 縦位置調整 */
    }

    .main-nav {
        display: flex; /* 常にflexにして配置調整 */
        flex-direction: column; /* メニュー項目を縦積み */
        position: fixed; /* スライドイン用の固定配置 */
        top: 0;
        right: -100%; /* 画面外右側にスタート */
        width: 280px; /* スライドメニューの幅 */
        height: 100vh; /* ビューポート高さに合わせる */
        background-color: #f9f9f9; /* モバイルメニューの背景色 */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); /* 左側に影 */
        padding: 30px 10px 10px; /* パディングを更に減らす */
        z-index: 999; /* 他のコンテンツより上に */
        transition: right 0.3s ease-in-out; /* スムーズなスライド */
        overflow-y: hidden; /* スクロール禁止 */
        align-items: flex-start; /* 左寄せ */
    }

    .main-nav.active {
        right: 0; /* 表示用にスライドイン */
    }

    /* メニューアクティブ時のオーバーレイ */
    body.menu-open {
        overflow: hidden; /* メニュー開時のスクロール禁止 */
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* 黒の半透明オーバーレイ */
        z-index: 998;
    }

    body.menu-open .main-footer {
        display: none;
    }

    .main-nav ul {
        flex-direction: column; /* リストアイテム縦積み */
        width: 100%;
        text-align: left;
        padding-left: 50px;
        margin-bottom: 10px; /* メインナビの下マージンを更に減らす */
    }

    .main-nav ul li {
        margin: 5px 0; /* マージンを更に減らす */
        width: 100%;
    }

    .main-nav ul li a {
        padding: 4px 0;
        display: block;
        font-size: 1em; /* フォントサイズをさらに小さく */
    }

    .dropdown-content {
        position: static; /* モバイルドロップダウンは絶対配置解除 */
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        width: 100%;
    }

    .dropdown-content a {
        padding: 3px 0;
        font-size: 0.9em;
        color: #555; /* サブアイテムの色調整 */
    }

    .dropdown:hover .dropdown-content {
        display: block; /* 現状ホバーで開いたまま（JSで制御予定） */
    }

/* ハンバーガーアニメーション */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* フッター調整 */
    .main-footer {
        display: none;
    }

/* Aboutセクション調整 */
    .about-content {
        flex-direction: column; /* テキストと画像を縦並びに */
        gap: 30px;
    }

    .about-image {
        order: -1; /* モバイルで画像をテキストの上に移動 */
    }

/* ホームページ制作ページ */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-plan.wide {
        grid-column: auto;
        max-width: none;
        width: 85%;
    }
}


@media (max-width: 768px) {
/* 共有 */
    .box-shadow {
        padding: 30px; /* パディング減少 */
    }
/* フッターの内容をハンバーガーに移動した後 */
    .main-footer .container {
        flex-direction: column;
        align-items: center;
    }

    .main-footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .main-footer .footer-sitemap {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-footer .footer-column {
        margin: 15px 0; /* マージンを減らす */
        text-align: center;
    }

    .main-footer .social-media {
        text-align: center;
        margin-left: 0;
        margin-top: 15px; /* マージンを減らす */
    }

    .main-footer .footer-column h4 {
        font-size: 1em;
    }

    .main-footer .social-media h4 {
        font-size: 1em;
    }
    .main-footer .social-media a {
        margin: 0 8px;
    }

    .mobile-footer-content .social-media a img {
        width: 40px;
        height: 40px;
        vertical-align: middle;
        margin: 0 5px; /* アイコン間の余白調整 */
    }

    .mobile-footer-content .social-media a {
        font-size: 0; /* テキストが残っている場合非表示に */
        display: inline-block; /* サイズ調整のためブロック扱い */
        line-height: 0; /* 余分な行の高さを削除 */
    }

    .mobile-dynamic-content {
        width: 100%;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 20px;
    }

    .mobile-footer-bottom-links {
        text-align: center;
        margin-top: 20px;
        font-size: 0.85em;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-footer-bottom-links a {
        color: rgba(0, 0, 0, 0.6);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .mobile-footer-bottom-links a:hover {
        color: var(--color-orange);
    }

    .mobile-footer-bottom-links .separator {
        color: rgba(0, 0, 0, 0.6);
        margin: 0 8px;
    }

    /* 中画面全般の調整 */
/* インデックス */
    .hero-section {
        padding: 60px 0; /* パディング減少 */
    }

    .hero-section h1 {
        font-size: 1.8em; /* フォントサイズ減少 */
    }

    .hero-section p {
        font-size: 1em; /* フォントサイズ減少 */
    }

    .page-hero-section {
        padding: 50px 0; /* パディング減少 */
    }

    .page-hero-section h1 {
        font-size: 1.8em; /* フォントサイズ減少 */
    }

    .page-hero-section p {
        font-size: 1em; /* フォントサイズ減少 */
    }

    .contact-section p {
        font-size: 1em; /* フォントサイズ減少 */
    }

/* 見出し */
    .section-heading {
        font-size: 1.6em; /* フォントサイズ減少 */
        margin-bottom: 40px; /* マージン減少 */
    }

/* 私たちについて */
    .about-text h3 {
        font-size: 1.5em;
    }

/* サービス */
    .service-item h3 {
        font-size: 1.3em;
    }

    .service-detail-content h3 {
        font-size: 1.8em;
    }

    .service-detail-content h4 {
        font-size: 1.3em;
    }

/* 実績 */
    .work-item h3 {
        font-size: 1.2em;
    }
/* お客様の声 */
    .testimonial-item .testimonial-title {
        font-size: 1em;
    }
/* お問い合わせ */
    .contact-section .section-heading {
        font-size: 1.6em;
    }
/* aboutページ */
/* 価値観 */
    .our-values-section .value-item h4 {
        font-size: 1.4em;
    }

    .our-strengths h3 {
        font-size: 2em;
    }
/* 強み */
    .strength-item h4 {
        font-size: 1.4em;
    }

    .our-team h3 {
        font-size: 2em;
    }
/* aboutのスタッフ */
    .team-member h4 {
        font-size: 1.1em;
    }
/* よくある質問 */
    .faq-item h3 {
        font-size: 1.2em;
    }

    .cta-banner h4 {
        font-size: 1.6em;
    }

/* サービスページ　共通 */
    .feature-intro h3 {
        font-size: 1.6em;
    }

    .feature-item h4 {
        font-size: 1.3em;
    }

    .service-item {
        padding: 30px 30px 50px;
    }
    .feature-intro {
        padding: 15px; /* パディング減少 */
    }

    .feature-outro-cta {
        padding: 30px 15px; /* パディング減少 */
    }

    .feature-outro-cta h4 {
        font-size: 1.4em;
    }
/* HPプラン */
    .pricing-plan .btn-primary,
    .pricing-plan .btn-secondary {
        width: 100%;
        max-width: none; /* 既存のmax-widthを上書き */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box; /* パディングを含めて幅を100%にする */
    }
    .pricing-plan h3 {
        font-size: 1.4em;
    }
    .pricing-grid {
        display: none;
    }
    .plan-compare {
        display: none;
    }

/*  スマホ用のプラン */
    .sp-pricing-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        align-items: stretch; /* 高さを揃える */
    }
    .sp-pricing-plan {
        background-color: #FFFFFF;
        padding: 40px 30px;
        text-align: center;
        display: flex;
        flex-direction: column; /* 子要素を縦に並べる */
        border: 1px solid #eee;
    }

    .sp-pricing-plan.recommended {
        border-color: var(--color-orange);
        position: relative;
    }

    .sp-pricing-plan.recommended::before {
        content: 'おすすめ';
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--color-orange);
        color: #fff;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.9em;
        font-weight: bold;
    }

    .sp-pricing-plan h3 {
        font-size: 1.6em;
        color: var(--color-teal-green);
        margin-bottom: 10px;
    }

    .sp-pricing-plan .price {
        font-size: 2.5em;
        font-weight: bold;
        color: var(--color-teal-green);
        margin: 10px 0 30px;
        white-space: nowrap;
    }

    .sp-pricing-plan .price span {
        font-size: 0.5em;
        font-weight: normal;
        color: #777;
    }

    .sp-pricing-plan .price--contact {
        font-size: 1.8em;
    }

    .sp-pricing-plan ul {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
        text-align: left;
        flex-grow: 1; /* ulが残りスペースを埋める */
    }

    .sp-pricing-plan ul li {
        font-size: 1em;
        line-height: 1.6;
        color: #555555;
        margin-bottom: 15px;
        position: relative;
        padding-left: 25px;
    }

    .sp-pricing-plan ul li::before {
        content: '\2713'; /* チェックマーク */
        color: var(--color-orange);
        position: absolute;
        left: 0;
        top: 0;
        font-weight: bold;
    }

    .sp-pricing-plan a {
        margin-top: auto; /* ボタンを下に配置 */
    }

    .sp-pricing-plan .btn-primary {
        max-width: 250px;
    }

/* 実績ページ */
    .work-item {
        padding: 25px 30px 0;
    }
/* お知らせ */
    .news-item {
        padding: 8px 12px; /* パディング減少 */
    }
/* お問い合わせ */
    .contact-form {
        padding: 25px; /* パディング減少 */
    }

    .cta-banner {
        padding: 25px; /* パディング減少 */
    }

/* スタッフページ*/
    .staff-member-detail {
        flex-direction: row; /* デスクトップは横並びレイアウト */
        text-align: left;
    }
    .staff-member-image {
        flex-shrink: 0;
    }
    .staff-member-text {
        text-align: left;
    }

/* 確認ページ */
    .confirm-content {
        padding: 30px;
    }
    .confirm-group label {
        font-size: 1em;
    }
    .confirm-group p {
        font-size: 0.95em;
    }
    .confirm-buttons input {
        margin-bottom: 50px;
    }
    .confirm-buttons .btn-secondary,
    .confirm-buttons .btn-primary {
        width: 100%;
        margin-right: 0; /* モバイルでは右マージンをリセット */
        margin-bottom: 15px; /* ボタン間の縦方向のスペース */
    }
    .confirm-buttons .btn-primary {
        margin-top: 0; /* モバイルで上のボタンとの間に余分なマージンが入らないように */
    }

    .feature-outro-cta {
        padding: 30px 20px; /* 左右のパディングを調整 */
    }

/* single */
    .single-post-container {
        margin: 40px auto;
        padding: 30px;
    }
    .single-post-container .entry-title {
        font-size: 2em;
    }
    .single-post-container .entry-content {
        font-size: 1em;
    }
    .post-navigation {
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    .post-navigation .nav-links {
        flex-direction: column;
    }
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .post-navigation .nav-next {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .staff-member-detail {
        padding: 20px; /* モバイルはパディング小さめ */
    }
    .staff-member-image {
        width: 150px;
        height: 150px;
    }
    .staff-member-text h2 {
        font-size: 1.8em;
    }
    .staff-member-text h3 {
        font-size: 1.2em;
    }
    .staff-member-text p {
        font-size: 1em;
    }
    .staff-specialty {
        padding: 20px;
    }
    .staff-specialty h4 {
        font-size: 1.2em;
    }
    .staff-specialty ul li {
        font-size: 0.9em;
    }

 /* HP制作プラン */
    .pricing-grid {
        grid-template-columns: 1fr;
        width: 80%;
    }

    .pricing-plan.wide {
        background-color: #FFFFFF;
        padding: 40px 30px;
        text-align: center;
        display: flex;
        flex-direction: column; /* 子要素を縦に並べる */
        border: 1px solid #eee;
    }
}

/* 小画面（例：スマートフォン） */
@media (max-width: 480px) {
    .confirm-content {
        padding: 20px;
    }

    .btn-primary {
        padding: 10px 15px; /* 横のパディングをさらに調整 */
        font-size: 1em; /* フォントサイズを調整 */
        box-sizing: border-box; /* パディングを含めて幅を計算 */
    }

    .feature-outro-cta {
        max-width: none; /* 狭い画面では最大幅の制限を解除 */
        padding: 30px 15px; /* 左右のパディングを調整 */
    }
}

@media (max-width: 430px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 1.5em;
    }

    .hero-section p {
        font-size: 0.95em;
    }

    .page-hero-section {
        padding: 40px 0;
    }

    .page-hero-section h1 {
        font-size: 1.6em;
    }

    .page-hero-section p {
        font-size: 0.95em;
    }

    .contact-section p {
        font-size: 0.95em;
    }

    .section-heading {
        font-size: 1.5em;
        margin-bottom: 40px;
    }

    .section-heading::after {
        width: 60px;
    }

    .about-text h3 {
        font-size: 1.3em;
    }

    .service-item h3 {
        font-size: 1.1em;
    }

    .service-item-detail h3 {
        font-size: 1.6em;
    }

    .service-detail-content h3 {
        font-size: 1.6em;
    }

    .service-detail-content h4 {
        font-size: 1.1em;
    }

    .work-item h3 {
        font-size: 1em;
    }

    .testimonial-item .quote {
        font-size: 0.95em;
    }

    .testimonial-item .testimonial-title {
        font-size: 1em;
    }

    .testimonial-item .author {
        font-size: 0.95em;
    }

    .contact-section .section-heading {
        font-size: 1.5em;
    }

    .main-footer .footer-column h4 {
        font-size: 0.9em;
    }

    .main-footer .social-media h4 {
        font-size: 0.9em;
    }

    .our-values-section .value-item h4 {
        font-size: 1em; /* 小画面での不要な改行防止のためフォントサイズ調整 */
        line-height: 1.3;
    }

    .our-values-section .value-item p {
        font-size: 0.8em;
    }

    .our-values-section .value-grid {
        grid-template-columns: 1fr;
        gap: 15px; /* 積み重なったアイテムの間隔調整 */
    }

    .our-strengths h3 {
        font-size: 2.1em;
    }

    .strength-item h4 {
        font-size: 1.2em;
    }

    .our-team h3 {
        font-size: 1.6em;
    }

    .team-member h4 {
        font-size: 1em;
    }

    .faq-item h3 {
        font-size: 1em;
    }

    .cta-banner h4 {
        font-size: 1.4em;
    }

    .feature-intro h3 {
        font-size: 1.4em;
    }

    .feature-item h4 {
        font-size: 1.1em;
    }

    .feature-outro-cta h4 {
        font-size: 1.2em;
    }

    .pricing-plan h3 {
        font-size: 1.2em;
    }

    .box-shadow {
        padding: 15px;
    }

    .main-header .logo img {
        height: 40px;
    }

    .menu-toggle {
        top: 25px; /* 小さいロゴに合わせて縦位置調整 */
    }

    .main-nav {
        top: 0; /* ビューポート上部から開始 */
        padding: 70px 10px 10px;  /* ヘッダーの空間確保と全体の高さを減らすため調整 */
    }

    .main-nav ul li {
        margin: 10px 0; /* マージンをさらに減らす */
    }

    .main-nav ul li a {
        font-size: 1em; /* フォントサイズをさらに小さく */
    }

    .dropdown-content a {
        padding: 2px 0;
        font-size: 1em;
    }

    .service-grid, .works-grid, .testimonial-grid, .team-grid, .features-grid, .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .service-item {
        padding: 20px 20px 40px;
    }

    .work-item {
        padding: 25px 30px 0;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-item .news-date {
        margin-bottom: 5px;
    }

    .contact-form {
        padding: 20px;
    }

    .cta-banner {
        padding: 20px;
    }

    .feature-intro {
        padding: 15px;
    }

    .feature-outro-cta {
        padding: 30px 15px;
    }

    .main-footer .footer-column {
        margin: 15px 0;
    }

    .main-footer .social-media a {
        margin: 0 8px;
    }

    /* 小画面用ハンバーガーメニュー内のモバイルフッターコンテンツ */
    .mobile-footer-content {
        margin-top: 10px; /* マージントップをさらに減らす */
        padding-top: 8px; /* パディングトップをさらに減らす */
        padding-left: 8px; /* 小画面に合わせたパディング調整 */
        padding-right: 8px; /* 小画面に合わせたパディング調整 */
    }

    .mobile-footer-content .footer-sitemap {
        margin-bottom: 8px; /* スペースをさらに減らす */
    }

    .mobile-footer-content .footer-column {
        margin: 5px 0; /* マージンをさらに減らす */
    }

    .mobile-footer-content .footer-column h4 {
        font-size: 0.9em; /* フォントサイズをさらに減らす */
        margin-bottom: 4px; /* マージンをさらに減らす */
        text-align: left; /* 左寄せを維持 */
    }

    .mobile-footer-content .footer-column ul li {
        margin-bottom: 2px; /* マージンをさらに減らす */
    }

    .mobile-footer-content .footer-column ul li a {
        font-size: 0.8em; /* フォントサイズをさらに減らす */
        padding: 1px 0; /* パディングをさらに減らす */
        text-align: left; /* 左寄せを維持 */
    }

    .mobile-footer-content .social-media {
        margin-top: 6px; /* マージンをさらに減らす */
    }

    .mobile-footer-content .social-media h4 {
        font-size: 0.9em; /* フォントサイズをさらに減らす */
        margin-bottom: 4px; /* マージンをさらに減らす */
        text-align: left; /* 左寄せを維持 */
    }

    .mobile-footer-content .social-media a {
        margin-bottom: 4px; /* マージンをさらに減らす */
        font-size: 0.8em; /* フォントサイズをさらに減らす */
        text-align: left; /* 左寄せを維持 */
    }
}