/* 基本設定 */

:root{
    --main-color:#555;
    --bg:#d0bbba;
    --rose:#A6656F;
    --text-gray:#47423f;
    --text-white:#fff;
}



body {
    font-family: "Shippori Mincho";
    color: #5d4e4e;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    border-radius:10px;
}

h1 img{
    height:30px;
}

h2 {
    color: var(--rose);
    margin:0;
    padding: 1em 0;
    font-size: calc(1vw + 1rem);
    letter-spacing:7px;
    font-family: "Quintessential", "Shippori Mincho";
    font-weight:normal;
}

section{
    padding-bottom:2em;
}

/* ヘッダー */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

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

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a{
    text-decoration:none;
    color:#555;
}

/** hero image *********************/

.hero{
    background-image: linear-gradient(0deg, #e3e3e3, #d9d9d9);
    height:calc(80vh + 5em);
    padding-bottom:0;

}

.hero-img {
    background-image: url("img/IMG_5223_a.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width:1500px;
    height:max(80vh);
    margin: 0 auto;
}

.hero .container{
    position:relative;
    font-size:1.7em;
    font-weight:bold;
    color:var(--rose);
}

.catchphrase{
    margin:0;
    position:absolute;
    top:5vh;
    left:calc(50% - 7em);
}


/** intoro - What's "photo art frame"? *********************/

.intro{
    margin-top:-5em;
}

.intro-bg {
    background: linear-gradient(to top, #fff 0%, #d8c3c3 30%);
    background-color: #d8c3c3; /* 画像の上部背景色 */
    color: #fff;
    /*border-radius: 10% 10% 0 0;*/
}

.intro p:not(.small-text){
    font-size: 24px;
    font-weight:bold;
    letter-spacing:0.5em;
}


.intro .small-text{
    color:var(--text-gray);
    padding-bottom:3em;
}



/** scenes - おすすめの使用シーン *********************/

.scene-item p, .detail-item p {
    font-size: 15px;
    margin-top:0;
}

.scene-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.scene .detail-item p{
    font-size:16px;
}





/** spec - 仕様・価格 *********************/

.spec{
    margin-bottom:0;
    background-color: var(--bg);
}

.spec p{
    margin:0;
}

table , td, th {
    /*border:1px solid #ccc;*/
    border-collapse: collapse;
}

table{
    width:100%;
}
table img{
    border-radius:0;
}
td, th {
    height:2.5em;
    padding:10px;
}
th {
    background: #f0e6cc;
}

tr:nth-child(odd){
    background-color:rgba(255, 255, 255, 0.7);
}
tr:nth-child(even){
    background-color:rgba(255, 255, 255, 0.5);
}

tr:nth-child(1){
    color:#fff;
    font-size:1.5em;
    font-weight:bold;
    background-color:transparent;
}

tr:nth-child(2){
    background-color:#E6E4E5;
}

tr:nth-child(2) td{
    padding:0;
}

.spec-tables {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.spec-card {
    color: #333;
    flex: 1;
}



/** point - 選ばれる理由 *********************/

.point{
    background-color:var(--bg);
    margin-bottom:0;
}

.point ul{
    text-decoration: none;
    list-style-type: none;
    display: flex;
    gap: 20px;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom:0;
}

.point li{
    max-width:380px;
}

.point img{
    width: 400px;
    border-radius:0;
}

.point p{
    margin-top: 5px;
    margin-bottom: 25px;
    color:white;
    letter-spacing:0.1em;
    line-height:1.5em;
}

.point .type-name{
    margin-bottom: 0;
    background-color:var(--rose);
    border-radius:10px 10px 0 0;
    padding:10px;
    color:white;
}

.point p:not(.type-name){
    font-size:15px;
    text-align:left;
}


/** voice - お客様の声 *********************/

.voice{
    background-color:var(--bg);
}

.voice .syoukai{
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 0.2em;
    margin-top:0;
    color:white;
}

.voice ul{
    margin:0 auto;
    max-width:100%;
    list-style-type: none;
}

.voice li{
    background-color: #fff;
    padding: 2em 3em;
    border-radius: 10px;
    margin:2em 0;
}

.voice img{
    float: left;
    width: 25%;
}

.voice .text{
    width: 65%;
    float: right;
}

.c-name{
    text-align:left;
    font-size:1em;
    font-weight: bold;
    margin-top: 0;
}

.voice .text p:not(.c-name){
    text-align:left;
    font-size:0.8em;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}



/** faq - よくあるご質問 *********************/


.faq-container{
    max-width:600px;
    margin:0 auto;
    text-align:left;
}


.faq-item {
  border-bottom: 1px solid var(--rose);
  margin-bottom: 10px;
}

/* 質問部分 (クリックエリア) */
.faq-question {
  list-style: none; /* デフォルトの矢印を消す */
  padding: 15px 10px 15px 45px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  transition: color 0.3s;
}

/* 「Q」のアイコンを擬似要素で作成 */
.faq-question::before {
  content: "Q";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--rose);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* 回答部分 */
.faq-answer {
  padding: 10px 15px 20px 45px;
  line-height: 1.6;
  color: #666;
  font-size: 0.95rem;
}

/* Chrome/Safariなどのデフォルト矢印を非表示 */
.faq-question::-webkit-details-marker {
  display: none;
}

/* アニメーション用の設定を追加 */
.faq-item::details-content {
  /* 閉じている状態 */
  opacity: 0;
  display: block;
  overflow: hidden;
  transition: content-visibility 0.4s allow-discrete, 
              opacity 0.4s, 
              grid-template-rows 0.4s;
}

/* 開いている状態のアニメーション */
.faq-item[open]::details-content {
  opacity: 1;
}

/* 従来のブラウザ向け：中身をふわっと出す擬似的な設定 */
.faq-answer {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 質問をクリックした時の「Q」アイコンの動き（おまけ） */
.faq-item[open] .faq-question::before {
  background-color: var(--bg);
  transition: background-color 0.3s;
}



/** flow - お届けまでの流れ *********************/

.step-flow {
  display: flex;
  align-items: flex-end; /* 下揃えにするとテキストのラインが綺麗に見えます */
  justify-content: space-between;
  list-style: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.step-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1; /* 均等に幅を割り振る */
  min-width: 0; /* flexアイテムのはみ出し防止 */
}

/* 画像コンテナ */
.step-flow .step-img {
  width: 80%; /* 親要素(li)に対してのサイズ */
  max-width: 140px;
  margin-bottom: 10px;
}

.step-flow .step-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト：画面が小さくなると文字も小さくなるように設定 */
.step-flow p {
  color: var(--rose);
  font-weight: bold;
  margin: 0;
  text-align: center;
  white-space: nowrap; /* 改行させない */
  font-size: 16px; /* PCでの基本サイズ */
}

/* 矢印（疑似要素） */
.step-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--rose);
  border-right: 2px solid var(--rose);
  transform: translateY(-50%) rotate(45deg);
}


/** message - 一言 *********************/

.message{
    color:white;
    background-color:var(--bg);
}

.message img{
    margin-top:2em;
}


/** footer - ロゴとか *********************/

footer{
    background-color: #fff;
    text-align: center;
    margin-top: 3em;
    padding: 1em;
}

footer p{
    font-size: min(100%, 2.2vw);
    white-space: nowrap;
}

footer img{
    width: 50%;
    max-width: 200px;
}














/* グリッドレイアウト */

@media (max-width: 600px) {
    .scene-grid, .about-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* ボタンデザイン */
.btn-gold {
    display: inline-block;
    padding: 15px 50px;
    background-color: #c9ae82;
    color: #fff;
    text-decoration: none;
    letter-spacing:3px;
    border-radius: 30px;
    margin-top: 40px;
    font-weight:bold;
}

.btn-dark {
    display: inline-block;
    padding: 10px 30px;
    background-color:var(--rose);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    letter-spacing:3px;
    border-radius:30px;
    margin-top: 20px;
    font-weight:bold;
}


/* --- ハンバーガーボタンのスタイル --- */
.hamburger {
    display: none; /* PCでは隠す */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

  .br-sp {
    display: none;
  }

/* --- スマホ用レイアウト (768px以下) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* スマホで表示 */
    }

    nav {
        display: none; /* 初期状態は隠す */
        position: absolute;
        top: 70px; /* ヘッダーの高さに合わせる */
        left: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
    }

    /* メニューが開いたとき用のクラス */
    nav.active {
        display: block;
        z-index:100;
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
    }

    /* ハンバーガーを「X」にするアニメーション（お好みで） */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

  .br-sp {
    display:inline-block;
  }

  .container{
    width:80%;
  }

  .hero{
    height:calc(50vh + 5em);
  }

  .hero-img{
    height:50vh;
  }

  .catchphrase{
    font-size:5vw;
  }

  .intro-bg{
    border-radius:0;
  }

  .intro-bg h2{
    font-size:100%;
    font-weight:bold;
  }

  .intro .small-text{
    font-size:80%;
  }

  .intro p:not(.small-text){
    font-size:100%;
    font-weight:bold;
  }

  .spec-tables{
    display:grid;
    margin:0 auto;
    gap:5em;
  }

  .about p, .gift p{
    font-size:80%;
  }

  .voice ul, .step-flow{
    padding:0;
  }

  .step-flow p{
    font-size:0.8em;
  }
}




/** ふわっと出てくる *********************/

/* 最初は隠しておく */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* JSでこのクラスを付与する */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
