/* style.css - Stella Chic & Stylish Theme */

/* :root 変数定義 */
:root {
    --primary-bg-color: #ffffff;
    --secondary-bg-color: #f8f9fa;
    --dark-bg-color: #1a2333; /* 濃いネイビーブルー */
    --text-color-dark: #2c3e50; /* 濃いテキスト色 */
    --text-color-light: #f8f9fa; /* 明るいテキスト色 */
    --accent-color: #d4af37; /* ゴールドのアクセント */
    --border-color: #e9ecef; /* 境界線 */

    --font-heading: 'Shippori Mincho', serif; /* 見出し用フォント */
    --font-body: 'Noto Sans JP', sans-serif; /* 本文用フォント */
}

/* 基本設定とリセット */
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: var(--text-color-dark);
    background-color: var(--primary-bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.right {
    margin: 0 0 0 auto;
    width:300px
}
.banaimg {
    margin: 0 auto;
    width:728px
}
.flex {
  display: flex;
  margin: 0 0 0 auto;
  width:300px
}


.flex .image {
  width: 100px; /*画像サイズ指定*/
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.flex .text {

  padding: 0;
}
.text-center {
    text-align: center;
}

.text-left {
    text-align: left !important;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    /* font-family: var(--font-heading); */
    color: var(--text-color-dark);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 50px;
    padding-bottom: 15px;
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2::after { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}


.icon-style {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 0.9em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 700;
    color: var(--text-color-dark);
    text-decoration: none;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 700;
    font-size: 1em;
    position: relative;
    padding-bottom: 5px;
}
header nav ul li a::after { /* ホバー時の下線アニメーション */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-color-dark);
    cursor: pointer;
}

/* メインコンテンツ */
main {
    padding-top: 90px;
}

#hero {
    background-image: url('./image/main.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    color: var(--text-color-light);
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

#hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}
#hero2 {
    background-image: url('./image/main2.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    color: var(--text-color-light);

    padding: 150px 20px;
    position: relative;
}

#hero2 h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

#hero2 p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--secondary-bg-color);
}

/* プログラム内容グリッド */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.program-item1 {
background-image: url('./image/program-item1.png');
    background-color: var(--primary-bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-item2 {
background-image: url('./image/program-item2.png');
    background-color: var(--primary-bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-item3 {
background-image: url('./image/program-item3.png');
    background-color: var(--primary-bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-item4 {
background-image: url('./image/program-item4.png');
    background-color: var(--primary-bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-item1:hover,
.program-item2:hover,
.program-item3:hover,
.program-item4:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.program-item h3 {
    color: var(--text-color-dark);
    margin-top: 0;
    font-size: 1.6em;
}

/* ご利用の流れリスト */
.flow-list {
    list-style: none;
    padding-left: 0;
    counter-reset: flow-counter;
}
.flow-list li {
    background: none;
    border: none;
    box-shadow: none;
    border-left: 3px solid var(--accent-color);
    padding: 15px 25px;
    margin-bottom: 30px;
    position: relative;
}
.flow-list h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--text-color-dark);
}

/* アクセス */
.access-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.access-details {
    flex: 1;
    min-width: 300px;
}

.access-map {
    flex: 1;
    min-width: 300px;
}
.access-map a {
    display: block;
    line-height: 0;
}
.map-image {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 5px;
    margin: 0;
    transition: opacity 0.3s ease;
}
.map-image:hover {
    opacity: 0.85;
}

/* よくあるご質問 */
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}
.faq-item h3 {
    font-size: 1.4em;
    color: var(--text-color-dark);
    margin-bottom: 10px;
}

/* お問い合わせ */
.contact-details {
    text-align: center;
    margin-top: 40px;
}

.contact-details p {
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details strong {
    font-size: 1.2em;
    font-family: var(--font-heading);
    color: var(--text-color-dark);
}

.contact-details a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color-dark);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--accent-color);
    opacity: 1;
}

.contact-details small {
    font-size: 0.9em;
    color: #6c757d;
}
.btn-outline {
  background: transparent;
  color: #0033A0;
  border: 2px solid #0033A0;
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #0033A0;
  color: white;
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* フッター */
footer {
    background-color: var(--dark-bg-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}
footer .container p {
    opacity: 0.8;
}

/* レスポンシブ対応 (スマートフォン向け) */
@media (max-width: 768px) {
    h2 { font-size: 1em; }

    header { padding: 15px 0; }
    header .container { flex-direction: row; }
    header .logo a { font-size: 1.6em; }
    main { padding-top: 73px; }

    header nav {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;

        padding: 20px 0;


    }
    header nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

    header nav ul.active {
        display: flex;
    }

    .mobile-menu-button {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    #hero { 
        padding: 80px 15px;
        background-attachment: scroll; /* スマホでは背景固定を解除 */
     }
    #hero h1 { font-size: 1em; }
    #hero2 { 
        padding: 80px 15px;
        background-attachment: scroll; /* スマホでは背景固定を解除 */
     }
    #hero2 h1 { font-size: 1em; }

    .program-grid { grid-template-columns: 1fr; }
    .access-grid { flex-direction: column; }
.banaimg {
    margin: 0 auto;
    max-width: 728px;
    width: 100%;
}
.program-item1 {
    line-height: 1.4;
    font-size: 15px;
}
.program-item2 {
    line-height: 1.4;
    font-size: 15px;
}
.program-item3 {
    line-height: 1.4;
    font-size: 15px;
}
.program-item4 {
    line-height: 1.4;
    font-size: 15px;
}
.flow-list h3 {

    font-size: 1.1em;

}
}


/*　簡易版レスポンシブ用CSS（必要最低限のみとしています。ブレークポイントも含め自由に設定下さい）　*/
table.formTable{
	width:100%;
	margin:0 auto;
	border-collapse:collapse;
text-align: left;
}
table.formTable td,table.formTable th{
	border:1px solid #ccc;
	padding:10px;
}
table.formTable th{
	width:30%;
	font-weight:normal;
	background:#efefef;
	text-align:left;
}
/*　簡易版レスポンシブ用CSS（必要最低限のみとしています。ブレークポイントも含め自由に設定下さい）　*/
@media screen and (max-width:572px) {
#formWrap {
	width:95%;
	margin:0 auto;
}
table.formTable th, table.formTable td {
	width:auto;
	display:block;
}
table.formTable th {
	margin-top:5px;
	border-bottom:0;
}
form input[type="text"], form textarea {
	width:80%;
	padding:5px;
	font-size:110%;
	display:block;
}
form input[type="submit"], form input[type="reset"], form input[type="button"] {
	display:block;
	width:100%;
	height:40px;
}
}

label {
  display: block;
}

label.required:after {
  margin-left: 1.0em;
  padding: 0px 6px 0px 6px;
  border-radius: 4px;
  font-size: 0.6em;
  color: white;
  background-color: #C44;
  content: "必須";
}
/*　bana　*/
.akiya-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.akiya-header {
  text-align: center;
  margin-bottom: 30px;
}

.akiya-area {
  background: #c00;
  color: #fff;
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.akiya-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.akiya-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.akiya-worries {
  margin-bottom: 20px;
}

.akiya-worries li {
  margin-bottom: 6px;
}

.akiya-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.akiya-table th,
.akiya-table td {
  border: 1px solid #ccc;
  padding: 8px;
}

.akiya-table th {
  background: #f5f5f5;
  width: 30%;
}

.akiya-btn {
    display: inline-block;
    background: #00bb00;
    color: #fff;
    padding: 1px;
    /* border-radius: 6px; */
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
}

.akiya-price,
.akiya-law {
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .akiya-flex {
    flex-direction: column;
  }

  .akiya-image img {
    max-width: 100%;
  }
}
.akiya-law-flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

.akiya-law-text {
  flex: 1;
}

.akiya-law-image {
  flex: 0 0 220px;
}

.akiya-law-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .akiya-law-flex {
    flex-direction: column;
  }

  .akiya-law-image {
    width: 100%;
    max-width: 300px;
  }
}
.akiya-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.akiya-header-text {
  flex: 1;
}

.akiya-header-image {
  flex: 0 0 120px;
}

.akiya-header-image img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .akiya-header-flex {
    flex-direction: column;
    text-align: center;
  }

  .akiya-header-image {
    max-width: 120px;
    margin: 10px auto 0;
  }
}

/* ===== 空き家イントロセクション ===== */

.akiya-intro {
  background: #f9f9f9;
  text-align: center;
}

.akiya-lead {
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 500;
}

.akiya-main {
  font-size: 2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.akiya-main .price {
  color: #d4af37;
  font-size: 1.3em;
  font-weight: bold;
}

.akiya-flex-custom {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.akiya-left,
.akiya-right {
  flex: 1;
}

.akiya-left img,
.akiya-right img {
  width: 100%;
  border-radius: 8px;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {

  .akiya-main {
    font-size: 1.3em;
  }

  .akiya-flex-custom {
    flex-direction: column;
    gap: 20px;
  }

  .akiya-lead {
    font-size: 1em;
  }
}

/* ===== 空き家：500円理由セクション ===== */

.akiya-reason {
  background: #ffffff;
}

.reason-title {
  text-align: center;
  margin-bottom: 40px;
}

.reason-list {
  max-width: 900px;
  margin: 0 auto;
}

.reason-item {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.reason-item h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.reason-item p {
  line-height: 1.8;
  color: #444;
}

.akiya-cta-message {
  margin-top: 60px;
  font-size: 1.4em;
  text-align: center;
  font-weight: 700;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* ===== スマホ対応 ===== */

@media screen and (max-width: 768px) {

  .reason-title {
    font-size: 1.1em;
  }

  .reason-item h3 {
    font-size: 1em;
  }

  .reason-item p {
    font-size: 0.9em;
  }

  .akiya-cta-message {
    font-size: 1em;
    padding: 20px;
  }
}

/* ===== LINE CTA ===== */

.akiya-line-cta {
  margin-top: 40px;
  text-align: center;
}

.line-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
}

.line-images img {
  max-width: 150px;
  height: auto;
}

.line-text {
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.5;
}

.line-text span {
  font-size: 1.8em;
  color: #00c300; /* LINEグリーン */
}

/* ===== スマホ対応 ===== */

@media screen and (max-width: 768px) {

  .line-images {
    flex-direction: column;
    gap: 20px;
  }

  .line-images img {
    max-width: 120px;
  }

  .line-text {
    font-size: 1.2em;
  }

  .line-text span {
    font-size: 1.4em;
  }
}

/* ===== 会社情報（LINE下） ===== */

.company-info-line {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end; /* PCでは右寄せ */
}

.company-info-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.company-logo img {
  max-width: 150px;
  height: auto;
}

.company-text {
  font-size: 1.1em;
  line-height: 1.6;
}

.company-text strong {
  font-size: 1.3em;
}

/* ===== スマホ対応 ===== */

@media screen and (max-width: 768px) {

  .company-info-line {
    justify-content: center; /* スマホは中央 */
  }

  .company-info-inner {
    flex-direction: column;
    text-align: center;
  }

  .company-logo img {
    max-width: 100px;
  }

  .company-text {
    font-size: 1em;
  }
}
/* 代表写真 */
.representative-photo {
    width: 100%;
    max-width: 600px; /* コンテナに合わせる */
    margin: 0 auto 30px auto;
}

.representative-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* 任意（不要なら削除） */
}
/* ===== 代表メッセージ横並びレイアウト ===== */

.message-flex {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.message-text {
  flex: 1;
  line-height: 1.9;
}

.message-side {
  width: 350px;
}

.representative-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.company-info img {
  width: 80px;
  height: auto;
}

.company-info p {
  margin: 0;
  line-height: 1.6;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {

  .message-flex {
    flex-direction: column;
  }

  .message-side {
    width: 100%;
  }

  .company-info {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

}
/* ===== 代表メッセージ右下配置 ===== */

.message-flex {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.message-text {
  flex: 1;
  line-height: 1.9;
}

.message-side {
  width: 350px;
  display: flex;
  justify-content: flex-end;  /* 右寄せ */
}

.side-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* 下寄せ */
  height: 100%;
  text-align: right;
}

.representative-photo img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.company-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.company-info img {
  width: 80px;
  height: auto;
}

.company-info p {
  margin: 0;
  line-height: 1.6;
}

/* ===== スマホ対応 ===== */

@media (max-width: 768px) {

  .message-flex {
    flex-direction: column;
  }

  .message-side {
    width: 100%;
    margin-top: 30px;
  }

  .side-inner {
    align-items: center;
    text-align: center;
  }

  .company-info {
    justify-content: center;
    flex-direction: column;
  }

}

/* ===== hero2 見出し文字装飾 ===== */

#hero2 h2 {
  color: #ffffff; /* 白文字 */
  text-shadow: 2px 2px 6px rgba(100, 100, 100, 0.8); /* グレー影 */
}
/* ===== 法改正 横並びレイアウト ===== */

.law-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.law-text {
  flex: 1;
}

.law-image {
  flex: 0 0 220px;
}

.law-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .law-item {
    flex-direction: column;
    text-align: center;
  }

  .law-image {
    max-width: 280px;
  }
}